/* dustinduenas.com — shared chassis
   Direction F · Modern Operator. Paper / metal / signal.
   Self-hosted fonts only (Inter + IBM Plex Mono, WOFF2 latin). No CDN at runtime.
   Phone-first: every block is a single column until it earns a second one.

   One front door. Home is the whole product; there is no top-level venture nav.
   Sub-pages get a single back-mark to home and nothing else. */

/* ---------- fonts (local, relative to this file) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --paper: #f4f5f7;
  --panel: #ffffff;
  --metal: #1a2332;
  --metal-hover: #243044;
  --muted: #5a6570;
  --steel: #8b95a5;
  --line: #d5dbe3;
  --signal: #00c2a8;
  --signal-dim: #0a8f7c;
  --on-metal: #ffffff;

  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;

  --safe: clamp(1.1rem, 5vw, 2rem);
  --gut: var(--safe);
  --measure: 62rem;
  --read: 34rem;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --t: 150ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  min-width: 0;
  background: var(--paper);
  color: var(--metal);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal-dim);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- shell ---------- */
.wrap {
  width: 100%;
  min-width: 0;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: var(--gut);
  top: -6rem;
  z-index: 50;
  background: var(--metal);
  color: var(--on-metal);
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 0.6rem;
}

/* ---------- masthead ---------- */
/* Wordmark only. A nav here would re-open the four-door problem. */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding-block: 0.7rem;
}

.mark {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}

.mark-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

a.mark.back {
  color: var(--muted);
  transition: color var(--t);
}
a.mark.back:hover {
  color: var(--metal);
}

.arrow {
  margin-right: 0.4rem;
  color: var(--steel);
}

/* ---------- shared type ---------- */
main {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--steel);
  max-width: 100%;
  white-space: normal;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-radius: 1px;
  background: var(--signal);
  vertical-align: 0.12em;
}

@media (min-width: 40rem) {
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    white-space: nowrap;
  }
}

.eyebrow.plain {
  color: var(--steel);
}
.eyebrow.plain::before {
  background: var(--steel);
}

.lede {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(1.85rem, 7.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: min(17ch, 100%);
}

.hero-home .lede {
  font-size: clamp(2.1rem, 8.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: min(14ch, 100%);
}

h2 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  max-width: min(var(--read), 100%);
  color: var(--muted);
}

.sec-head {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

section {
  padding-block: clamp(2.5rem, 8vw, 3.75rem);
  border-top: 1px solid var(--line);
}

section > .wrap > * + * {
  margin-top: 1rem;
}

/* ---------- hero ---------- */
.hero {
  border-top: 0;
  padding-block: clamp(1.5rem, 6vw, 4.75rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 194, 168, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(26, 35, 50, 0.06), transparent 45%),
    linear-gradient(165deg, #e8ecf1 0%, #f4f5f7 45%, #eef1f5 100%);
}

.hero-home {
  padding-top: clamp(1.15rem, 4.5vw, 3.25rem);
  padding-bottom: clamp(2rem, 8vw, 4.75rem);
}

.hero .wrap > :first-child {
  margin-top: 0;
}

/* The standfirst under the lede: one sentence, still readable at arm's length.
   Exclude the eyebrow — .hero p was winning at 1.05rem and wrapping the mono line. */
.hero p:not(.eyebrow),
.stand {
  font-size: 1.05rem;
}

/* Phone: line, standfirst, action, then proof. Desktop stretches to two columns
   (text left, proof right) without changing DOM order. */
@media (min-width: 60rem) {
  .hero-home .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(2rem, 5vw, 3.5rem);
  }

  .hero-home .wrap > * {
    margin-top: 0;
  }

  .hero-home .eyebrow { grid-area: 1 / 1; }
  .hero-home .lede    { grid-area: 2 / 1; margin-top: 0.85rem; }
  .hero-home .stand   { grid-area: 3 / 1; margin-top: 1rem; }
  .hero-home .actions { grid-area: 4 / 1; align-self: start; margin-top: 1.4rem; }

  .hero-home .proof {
    grid-area: 1 / 2 / 5 / 3;
    align-self: start;
    margin-top: 0.35rem;
    max-width: none;
  }
}

/* ---------- sub-page head (no gradient — it must not read as a second home) ---------- */
.page-head {
  border-top: 0;
  padding-block: clamp(2rem, 7vw, 2.75rem);
}

.page-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ---------- actions ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.hero-home .actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  max-width: 100%;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-md);
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.btn-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.65rem 1.2rem 0.55rem;
  line-height: 1.15;
}

.btn-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in oklab, var(--on-metal) 82%, var(--signal));
}

.btn-primary {
  background: var(--metal);
  color: var(--on-metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: var(--metal-hover);
}

.btn-ghost {
  background: var(--panel);
  color: var(--metal);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: #a9b3c0;
}

.quiet-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.quiet-link:hover {
  color: var(--metal);
}

/* ---------- proof ---------- */
/* Held narrower than the text column so the whole proof tile plus its
   caption still land in the first screen on a laptop. */
.proof {
  margin-top: 1.75rem;
  max-width: min(32rem, 100%);
  min-width: 0;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.caption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: min(var(--read), 100%);
}

.caption a {
  color: var(--signal-dim);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.proof-pair {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

@media (min-width: 46rem) {
  .proof-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }
}

/* ---------- built grid ---------- */
/* Six tiles: 1 col phone, 2 col tablet, 3 col desktop. No orphan. */
.built {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

@media (min-width: 40rem) {
  .built {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.4rem;
  }
}

@media (min-width: 60rem) {
  .built {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.built figure {
  min-width: 0;
}

.built .caption strong {
  color: var(--metal);
  font-weight: 600;
}

.built-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- who (portrait + copy) ---------- */
.who-split {
  display: grid;
  gap: 1.25rem;
}

.who-photo {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
  max-width: 22rem;
}

.who-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  max-height: 60vh;
}

.who-copy {
  min-width: 0;
}

.who-copy p {
  color: var(--metal);
  font-size: 1.05rem;
}

.who-copy p + p {
  margin-top: 1rem;
}

/* 23.56rem = 38% of --measure (62rem) ≈ 377px at a 16px root, ≥ 360px DoD. */
@media (min-width: 60rem) {
  .who-split {
    grid-template-columns: 23.56rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .who-photo {
    max-width: none;
    width: 100%;
  }

  .who-photo img {
    max-height: none;
  }

  .who-copy {
    max-width: var(--read);
    padding-top: 0;
  }
}

/* ---------- steps (home: how the work starts) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 0 1rem 2.4rem;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--metal);
  color: var(--on-metal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.steps p {
  font-size: 0.92rem;
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    border-top: 0;
  }

  .steps li {
    padding: 1rem 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .steps li::before {
    position: static;
    margin-bottom: 0.65rem;
  }
}

/* ---------- offer blocks (/web/) ---------- */
.offers {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.offer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.2rem;
}

.offer h3 {
  margin-bottom: 0.45rem;
}

.offer p {
  font-size: 0.92rem;
}

.offer p + p {
  margin-top: 0.6rem;
}

.offer .tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.16rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- signal rail note ---------- */
.rail {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.2rem;
  margin-top: 1.5rem;
}

.rail p {
  font-size: 0.92rem;
}

.rail p + p {
  margin-top: 0.6rem;
}

/* ---------- plain fact list ---------- */
.facts {
  list-style: none;
  margin-top: 1.25rem;
  max-width: var(--read);
}

/* Text must flow as one paragraph — a flex li would split <strong> off
   into its own column and rag the rest of the sentence beside it. */
.facts li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--signal);
}

.facts strong {
  color: var(--metal);
  font-weight: 600;
}

/* ---------- kickoff form ---------- */
.kickoff {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.kickoff label {
  display: grid;
  gap: 0.4rem;
}

.kickoff .q {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--metal);
}

.kickoff textarea {
  width: 100%;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--metal);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.6rem 0.7rem;
  min-height: 4.5rem;
  resize: vertical;
  overflow: auto;
}

.kickoff textarea.tall {
  min-height: 7rem;
}

.kickoff textarea:focus {
  border-color: var(--signal);
  outline: 2px solid rgba(0, 194, 168, 0.25);
  outline-offset: 1px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem 1rem;
}

.link-clear {
  appearance: none;
  background: none;
  border: 0;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 2.9rem;
  flex-basis: 100%;
  align-self: flex-start;
  text-align: left;
}
.link-clear:hover {
  color: var(--metal);
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
}

.kept {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1rem;
}

.kept pre {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- inline link inside body copy ---------- */
.inline {
  color: var(--signal-dim);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------- contact ---------- */
.mailto {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--metal);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- footer ---------- */
/* MGS / ESS / ASP live here and only here: one quiet line, not a directory. */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem 2.4rem;
  padding-bottom: max(2.4rem, env(safe-area-inset-bottom));
  margin-top: auto;
}

.foot .wrap > * + * {
  margin-top: 0.5rem;
}

.foot p,
.foot a {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: none;
}

.foot a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.foot a:hover {
  color: var(--metal);
  border-bottom-color: var(--steel);
}

.foot-line {
  color: var(--muted);
}

.foot-quiet {
  color: var(--muted);
}
