/* ==========================================================================
   clintjohnson.cloud — "Graphite"
   Neutral dark greys, terracotta signal, Scripture & Stone's gold reserved
   for the app itself. Space Grotesk over Chivo.

   Every colour below is a token. Changing the palette means editing this
   block and nothing else — see --nav-bg, --glow-core and the --contact-*
   group, which used to be literals scattered through the file.
   ========================================================================== */

:root {
  /* Ground and surfaces */
  --ground:        #141414;
  --surface:       #1e1e1e;
  --surface-2:     #1a1a1a;
  --surface-3:     #272727;
  --line:          #2b2b2b;
  --line-strong:   #3a3a3a;

  /* Type */
  --text:          #ededed;
  --text-muted:    #c2c2c2;
  --text-dim:      #9a9a9a;
  --placeholder:   #767676;

  /* Signal — terracotta, from Scripture & Stone's own palette (#c06030),
     lightened to clear AA as link text against these grounds. */
  --accent:        #cc6b38;
  --accent-deep:   #a85328;
  --on-accent:     #141414;
  --on-accent-dim: #4a2512;

  /* Contact block — the accent at roughly a third of its lightness, so the
     section still reads as arrival without a full field of saturation. */
  --contact-bg:    #5c2a15;
  --contact-text:  #f7efe9;
  --contact-dim:   #d9c3b4;
  --contact-faint: #c0a494;

  /* Scripture & Stone pocket — the app's own warm dark and gold, so its
     screenshots and its App Store button stay recognisably the product's. */
  --warm:          #1d1a16;
  --warm-line:     #2c2822;
  --warm-line-2:   #3b3630;
  --warm-text:     #ece7dc;
  --warm-dim:      #a49c8c;
  --amber:         #c9a14a;
  --amber-hover:   #d8b467;
  --on-amber:      #0f0e0c;

  /* Alsomitra pocket — the game's night sky, pulled darker and greyer than
     its own #061727 so a full-width panel doesn't glow; its cyan is kept
     for the App Store button, the way Scripture & Stone keeps its gold. */
  --night:         #111a22;
  --night-line:    #1f2b36;
  --night-line-2:  #2d3c4a;
  --night-text:    #e4ebf0;
  --night-dim:     #9aabb8;
  --cyan:          #86e6e0;
  --cyan-hover:    #a8f0eb;
  --on-cyan:       #06141c;

  /* Chrome */
  --nav-bg:        rgba(20, 20, 20, 0.88);
  --glow-core:     #242424;
  --shadow:        rgba(0, 0, 0, 0.6);
  --danger:        #d4573a;
  --danger-text:   #e8836b;

  --display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: Chivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --maxw: 1440px;
}

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

html {
  scroll-behavior: smooth;
  /* Sticky header shouldn't cover the heading you just jumped to. */
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto is load-bearing: every img carries width/height attributes
   (so the browser reserves space and the page doesn't jump while loading),
   and without this the attribute height wins over the CSS width and the
   image renders stretched. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; font-family: var(--display); font-weight: 600;
}
.skip-link:focus { left: 0; }

.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 52px; padding: 0 28px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--text); color: var(--on-accent); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--amber { background: var(--amber); color: var(--on-amber); min-height: 48px; font-size: 14.5px; }
.btn--amber:hover { background: var(--amber-hover); color: var(--on-amber); }
.btn--warm-ghost {
  border-color: var(--warm-line-2); color: var(--text);
  min-height: 48px; font-size: 14.5px; font-weight: 500;
}
.btn--warm-ghost:hover { border-color: var(--amber); color: var(--amber); }

.textlink {
  display: inline-block; font-size: 14px; color: var(--accent);
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.textlink:hover { color: var(--text); border-bottom-color: var(--text); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.nav__name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav__menu {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav__menu a { font-size: 14px; color: var(--text-dim); }
.nav__menu a:hover { color: var(--accent); }

/* The CTA is a button, not a nav link, so it has to out-rank `.nav__menu a`
   above — which was otherwise painting dim green-grey text on the green slab
   (~1.4:1), and on hover turning it accent-on-accent, i.e. invisible.
   Resting state is dark ink on green; hover inverts to a near-white slab. */
.nav__menu .nav__cta {
  min-height: 40px; padding: 0 20px; font-size: 14px;
  color: var(--on-accent);
}
.nav__menu .nav__cta:hover {
  background: var(--text); color: var(--on-accent);
}
/* Tap-to-call lives in .nav__inner, not .nav__menu: the menu collapses behind
   the hamburger under 860px, which is exactly where a phone number matters
   most. margin-left:auto pushes it and the menu to the right as one group. */
.nav__phone {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--text); white-space: nowrap;
  padding: 9px 14px; border: 1px solid var(--line-strong);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__phone:hover { border-color: var(--accent); color: var(--accent); }
.nav__phone svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

.nav__toggle { display: none; }

/* ----------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 88px); }
.hero__glow {
  position: absolute; right: -140px; top: 40px;
  width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, var(--glow-core), var(--ground) 68%);
}
.hero__inner { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--accent); margin-bottom: 40px;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.9rem, 8.9vw, 8rem);
  line-height: 0.88; letter-spacing: -0.05em;
  max-width: 15ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px; margin-top: clamp(28px, 3.4vw, 46px); align-items: start;
}
.hero__lede { grid-column: span 5; }
.hero__lede p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.19rem); line-height: 1.6; color: var(--text-muted); }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.stats {
  grid-column: 8 / span 5;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
}
.stats > div { background: var(--surface-2); padding: 24px; }
.stats dt {
  font-family: var(--display); font-size: clamp(1.55rem, 2.4vw, 2.13rem);
  font-weight: 700; letter-spacing: -0.03em;
}
.stats dd { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }

/* ----------------------------------------------- tech strip (no autoplay) */

.techstrip {
  position: relative;
  background: var(--accent); color: var(--on-accent);
  margin-top: clamp(48px, 6vw, 84px);
}
.techstrip__scroller {
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.techstrip__scroller::-webkit-scrollbar { display: none; }
.techstrip__list {
  display: flex; align-items: center; gap: 34px;
  width: max-content; white-space: nowrap;
  margin: 0; padding: 0 var(--gutter); min-height: 56px; list-style: none;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.techstrip__list li[aria-hidden] { opacity: 0.55; }

.techstrip__btn {
  position: absolute; top: 0; bottom: 0; width: 64px;
  display: flex; align-items: center; border: 0; padding: 0 18px;
  color: var(--on-accent); cursor: pointer;
  transition: opacity 0.22s ease, color 0.18s ease;
}
.techstrip__btn:hover { color: var(--accent-deep); }
.techstrip__btn:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -4px; }
.techstrip__btn--prev {
  left: 0; justify-content: flex-start;
  background: linear-gradient(to right, var(--accent) 62%, transparent);
}
.techstrip__btn--next {
  right: 0; justify-content: flex-end;
  background: linear-gradient(to left, var(--accent) 62%, transparent);
}
/* At either end the button has nothing left to do: fade it out and
   take it out of the tab order rather than leaving a dead control. */
.techstrip__btn[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  /* Two 64px buttons would eat a third of a phone screen — swipe instead,
     with an edge fade to say there's more. */
  .techstrip__btn { display: none; }
  .techstrip__list { gap: 22px; min-height: 46px; font-size: 12.5px; }
  .techstrip::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 40px;
    pointer-events: none;
    background: linear-gradient(to left, var(--accent), transparent);
  }
}

/* -------------------------------------------------------------- sections */

.section { padding-top: clamp(56px, 6.4vw, 92px); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(28px, 3vw, 44px);
}
.section__head h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance;
}
/* A standalone note under a grid. .section__aside is capped at 36ch because
   it is built to sit beside an h2 — used on its own it renders as a skinny
   column, so these get their own full-width treatment. */
.callout {
  margin: 30px 0 0; padding: 18px 22px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap;
  font-size: 15px; line-height: 1.6; color: var(--text-muted);
}
.callout p { margin: 0; max-width: 76ch; }
.callout strong { color: var(--text); font-weight: 600; }
.callout .textlink { white-space: nowrap; }
@media (max-width: 640px) { .callout { padding: 16px 18px; } }

.section__aside { margin: 0; max-width: 36ch; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ------------------------------------------------- feature: Scripture & Stone */

.feature-app {
  background: var(--warm); border: 1px solid var(--warm-line);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.feature-app__body { grid-column: span 6; padding: clamp(28px, 3.9vw, 56px); }
.feature-app__id { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.feature-app__icon { width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0; }
.feature-app__kicker {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}
.feature-app__plat { font-size: 13.5px; color: var(--warm-dim); margin-top: 3px; }
.feature-app h3 {
  margin: 0 0 8px; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.13rem); line-height: 1; letter-spacing: -0.04em;
}
.feature-app__tagline {
  margin: 0 0 20px; font-family: var(--display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; color: var(--amber);
}
.feature-app__copy { margin: 0 0 22px; font-size: 16.5px; line-height: 1.65; color: var(--warm-text); }
.feature-app__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--warm-line); margin: 0 0 26px;
}
.feature-app__facts > div { background: var(--warm); padding: 14px 0; }
.feature-app__facts > div + div { padding-left: 18px; }
.feature-app__facts dt { font-family: var(--display); font-size: 22px; font-weight: 700; }
.feature-app__facts dd { margin: 0; font-size: 12.5px; color: var(--warm-dim); }
.feature-app__price { margin: 0 0 26px; font-size: 14px; line-height: 1.6; color: var(--warm-dim); }
.feature-app__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Staircase of three portrait shots. The heights are derived, not guessed:
   a 380px-wide iPad is 507px tall and a 168px phone is 365px, so the tallest
   stack ends at 615px inside a 660px frame. overflow:hidden is the belt to
   that braces — nothing here can ever bleed into the next section. */
.feature-app__shots {
  grid-column: span 6; position: relative;
  height: 660px; padding: 40px 44px 40px 0;
  overflow: hidden;
}
.feature-app__shots img { position: absolute; border: 1px solid var(--warm-line-2); }
.shot--pad { right: 44px; top: 40px; width: 380px; }
.shot--phone-a { right: 300px; top: 150px; width: 168px; box-shadow: 0 22px 50px var(--shadow); }
.shot--phone-b { right: 150px; top: 250px; width: 168px; box-shadow: 0 22px 50px var(--shadow); }

/* ------------------------------------------------------ feature: Alsomitra */

/* Same card as Scripture & Stone, recoloured to the game's night, with
   screenshots on the left so the two apps don't read as one repeated block.
   The game is landscape-only, so the shots overlap on a grid instead of the
   portrait staircase: no absolute positioning, no fixed height to derive. */
.feature-app + .feature-app { margin-top: 24px; }
.feature-app--night { background: var(--night); border-color: var(--night-line); }
.feature-app--night .feature-app__kicker,
.feature-app--night .feature-app__tagline { color: var(--cyan); }
.feature-app--night .feature-app__plat,
.feature-app--night .feature-app__facts dd,
.feature-app--night .feature-app__price { color: var(--night-dim); }
.feature-app--night .feature-app__copy { color: var(--night-text); }
.feature-app--night .feature-app__facts { background: var(--night-line); }
.feature-app--night .feature-app__facts > div { background: var(--night); }
.feature-app--night .feature-app__body { order: 2; }

.btn--cyan { background: var(--cyan); color: var(--on-cyan); min-height: 48px; font-size: 14.5px; }
.btn--cyan:hover { background: var(--cyan-hover); color: var(--on-cyan); }
.btn--night-ghost { border-color: var(--night-line-2); color: var(--text); font-weight: 500; }
.btn--night-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.feature-app__land {
  grid-column: span 6; order: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: clamp(28px, 3.9vw, 56px) 0 clamp(28px, 3.9vw, 56px) clamp(28px, 3.9vw, 56px);
}
.feature-app__land img {
  width: 100%; height: auto; border: 1px solid var(--night-line-2); border-radius: 10px;
}
.land--a { grid-column: 1 / span 10; grid-row: 1; }
.land--b {
  grid-column: 3 / span 10; grid-row: 2; margin-top: -9%;
  position: relative; box-shadow: 0 22px 50px var(--shadow);
}

/* --------------------------------------------------------- feature: split */

.feature {
  background: var(--surface);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 24px;
}
.feature--flip { align-items: center; }
.feature__body { grid-column: span 6; padding: clamp(28px, 3.4vw, 48px); }
.feature--flip .feature__body { grid-column: 7 / span 6; padding-left: 0; }
.feature__media { grid-column: span 6; padding: clamp(28px, 3.4vw, 48px); padding-left: 0; display: flex; align-items: center; }
.feature--flip .feature__media {
  grid-column: span 5; padding: clamp(28px, 3.4vw, 48px); padding-right: 0; justify-content: center;
}
.feature__media img { width: 100%; border: 1px solid var(--line-strong); }
.feature--flip .feature__media img { max-width: 420px; }
.feature h3 {
  margin: 0 0 16px; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 2.9vw, 2.63rem); line-height: 1.02; letter-spacing: -0.035em;
}
.feature p:not([class]) { margin: 0 0 20px; font-size: 16.5px; line-height: 1.65; color: var(--text-muted); }
.feature p.feature__note { margin: 0 0 26px; font-size: 15px; color: var(--text-dim); }
.feature__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.feature__actions .btn { min-height: 46px; padding: 0 22px; font-size: 14px; }

.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.taglist li {
  font-size: 12px; padding: 5px 12px;
  border: 1px solid var(--line-strong); color: var(--text-muted);
}
.taglist--solid li { background: var(--surface-3); border-color: transparent; font-size: 12.5px; padding: 6px 12px; }

/* ----------------------------------------------- AI-assisted engineering */

.ai-practice {
  position: relative; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px; padding: clamp(32px, 4.4vw, 64px);
}
.ai-practice::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent);
}
.ai-practice__intro { grid-column: span 6; padding-right: clamp(0px, 2vw, 28px); }
.ai-practice__intro h2 {
  margin: 0 0 26px; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 0.98;
  letter-spacing: -0.045em; text-wrap: balance;
}
.ai-practice__intro > p:not(.eyebrow) {
  margin: 0 0 18px; max-width: 61ch;
  font-size: 16px; line-height: 1.7; color: var(--text-muted);
}
.ai-practice__methods {
  grid-column: 8 / span 5; border-top: 1px solid var(--line-strong);
}
.ai-practice__methods > div {
  position: relative; display: grid; grid-template-columns: 38px 1fr;
  column-gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line-strong);
}
.ai-practice__methods span {
  grid-row: span 2; padding-top: 4px;
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--accent);
}
.ai-practice__methods h3 {
  margin: 0 0 7px; font-family: var(--display); font-size: 1.22rem;
  font-weight: 700; letter-spacing: -0.02em;
}
.ai-practice__methods p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.ai-practice__toolkit {
  grid-column: 1 / -1; margin: 22px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line-strong); color: var(--text-dim);
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; line-height: 1.8; text-transform: uppercase;
}

/* ------------------------------------------------------------ card grids */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card { background: var(--surface); display: flex; flex-direction: column; }
.card__media { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.card__body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.card__kicker {
  margin: 0 0 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.card h3, .card h4 {
  margin: 0 0 10px; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.63rem); letter-spacing: -0.025em;
}
.card p:not([class]) { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text-muted); flex-grow: 1; }
.card .textlink { align-self: flex-start; }

/* Gated apps: no screenshot, a spec table and an honest lock badge
   instead of a demo button that dead-ends at a password prompt. */
.card--private { border-top: 3px solid var(--accent); padding: 32px; }
.card--private .card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.card--private .card__stack {
  margin: 0;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
/* Badges carry the price, so they read in the brand orange rather than the
   dim grey they used to. A tint behind them drops --accent under 4.5:1 at
   12px, so the outlined variant stays transparent (4.55:1 on a card) and the
   price variant inverts to dark-on-accent (5.02:1). */
.lock {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--accent);
  border: 1px solid var(--accent); padding: 4px 10px;
}
.lock--price {
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  border-color: var(--accent);
}
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; font-size: 13.5px;
}
.spec > div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--text-dim); }
.spec dd { margin: 0; text-align: right; }
.card--private .textlink { margin-top: 20px; border-bottom: 0; }
.card--private .textlink:hover { border-bottom: 0; }
.card__media--short { height: 172px; }

/* ------------------------------------------------------------ experience */

.career { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.career__intro { grid-column: span 4; }
.career__intro h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 0.96; letter-spacing: -0.04em;
}
.career__intro p { margin: 24px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.career__list { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.role { background: var(--ground); padding: 28px 0 28px 32px; border-left: 3px solid var(--line-strong); }
.role--current { border-left-color: var(--accent); }
.role__when {
  margin: 0 0 8px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}
.role h3 {
  margin: 0 0 4px; font-family: var(--display); font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.role__org { margin: 0 0 12px; font-size: 15px; color: var(--accent); }
.role p:not([class]) { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); max-width: 58ch; }

/* --------------------------------------------------------------- contact */

.contact {
  background: var(--contact-bg); color: var(--contact-text);
  padding: clamp(32px, 4.4vw, 64px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px; align-items: start;
}
.contact__pitch { grid-column: span 6; }
.contact h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.88rem); line-height: 0.94; letter-spacing: -0.045em;
}
.contact__pitch p { margin: 22px 0 0; font-size: 17px; line-height: 1.6; max-width: 44ch; color: var(--contact-dim); }
/* Now nested inside the pitch column; align-items:flex-start keeps each
   underline the width of its own text instead of the whole column. */
.contact__details {
  margin-top: 30px; display: flex; flex-direction: column;
  gap: 14px; align-items: flex-start;
}
.contact__details a {
  font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.31rem); font-weight: 600;
  border-bottom: 2px solid var(--contact-text); padding-bottom: 12px; word-break: break-word;
}
.contact__details a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact__place {
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--contact-faint); padding-top: 4px;
}
.contact__resume { font-size: 14.5px; line-height: 1.55; color: var(--contact-dim); padding-top: 8px; }


/* -------------------------------------------------------- contact form */

/* A dark panel inset on the acid-green slab: form controls need a calm,
   low-chroma surface, and the inversion reads as deliberate rather than
   as a lighter green box lost against its background. */
.contact__form {
  grid-column: 8 / span 5;
  background: var(--ground); color: var(--text);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.contact__form h3 {
  margin: 0 0 2px; font-family: var(--display);
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea {
  font-family: var(--body); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 0;
  padding: 12px 14px; width: 100%; min-height: 48px;
  transition: border-color 0.16s ease;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }

/* Off-screen rather than display:none — a hidden input is not submitted by
   some bots, which defeats the point of the trap. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.contact__submit { width: 100%; margin-top: 4px; }
.contact__submit[disabled] { opacity: 0.6; cursor: default; }
.contact__status { margin: 0; font-size: 14px; line-height: 1.5; }
.contact__status:empty { display: none; }
.contact__status.is-ok { color: var(--accent); }
.contact__status.is-error { color: var(--danger-text); }

/* ---------------------------------------------------------------- footer */

.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 34px var(--gutter) 44px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-dim);
}


/* Glyph icons, not characters. The up-right arrow (U+2197) and eight-spoked
   asterisk (U+2733) are codepoints Unicode marks as emoji; Space Grotesk and
   Chivo are Latin-only, so iOS found no glyph and fell back to Apple Color
   Emoji — coloured boxes beside every external link and a green asterisk
   between every tech-strip item. Vectors inherit currentColor and depend on
   no font at all. */
.ico-ext {
  width: 0.72em; height: 0.72em; flex-shrink: 0;
  display: inline-block; vertical-align: -0.02em;
}
.techstrip__list .sep {
  width: 5px; height: 5px; flex-shrink: 0;
  background: currentColor; transform: rotate(45deg);
}

/* ------------------------------------------------------- scroll reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================ responsive */

@media (max-width: 1180px) {
  /* Same derivation at a smaller scale: 320px iPad = 427px tall,
     148px phone = 321px, deepest stack ends at 526px in a 580px frame. */
  .feature-app__shots { height: 580px; }
  .shot--pad { right: 44px; top: 36px; width: 320px; }
  .shot--phone-a { right: 250px; top: 130px; width: 148px; }
  .shot--phone-b { right: 120px; top: 205px; width: 148px; }
}

@media (max-width: 1020px) {
  .hero__lede { grid-column: span 12; }
  .stats { grid-column: span 12; margin-top: 8px; }

  .feature-app { grid-template-columns: 1fr; }
  .feature-app__body { grid-column: auto; }
  .feature-app__shots {
    grid-column: auto; height: auto; padding: 0 clamp(28px, 3.9vw, 56px) clamp(28px, 3.9vw, 56px);
    display: flex; gap: 16px; align-items: flex-start; overflow: hidden;
  }
  .feature-app__shots img { position: static; width: auto; }
  .shot--pad { max-width: 46%; }
  .shot--phone-a, .shot--phone-b { max-width: 25%; box-shadow: none; }
  .feature-app--night .feature-app__body { order: 0; }
  .feature-app__land { grid-column: auto; padding: 0 clamp(28px, 3.9vw, 56px) clamp(28px, 3.9vw, 56px); }

  .feature,.feature--flip { grid-template-columns: 1fr; }
  .feature__body, .feature--flip .feature__body { grid-column: auto; padding: clamp(28px, 3.4vw, 48px); }
  .feature__media, .feature--flip .feature__media {
    grid-column: auto; padding: 0 clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px);
    justify-content: flex-start;
  }
  .feature--flip .feature__media { order: -1; padding-top: clamp(28px, 3.4vw, 48px); }
  .feature--flip .feature__media img { max-width: 100%; }

  .ai-practice { grid-template-columns: 1fr; gap: 30px; }
  .ai-practice__intro, .ai-practice__methods { grid-column: auto; padding-right: 0; }
  .ai-practice__toolkit { grid-column: auto; }

  .career { grid-template-columns: 1fr; gap: 32px; }
  .career__intro, .career__list { grid-column: auto; }

  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact__pitch, .contact__form { grid-column: auto; }
}

@media (max-width: 860px) {
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__menu a { display: block; padding: 16px 0; font-size: 16px; }
  .nav__menu .nav__cta {
    /* .nav__menu a sets display:block and a dim link colour above, both of
       which would strip this back to a plain link on a green slab. Restore
       the button at higher specificity — colour included, or the label sits
       at about 1.4:1 against its own background. */
    display: flex; align-items: center; justify-content: center;
    margin-top: 16px; width: 100%; min-height: 52px;
    padding: 0 20px; font-size: 15px;
    color: var(--on-accent);
  }
  .nav__menu .nav__cta:hover { color: var(--on-accent); background: var(--text); }
  .nav__menu li:has(.nav__cta) { border-top: 0; }
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; flex-shrink: 0;
    background: transparent; border: 1px solid var(--line-strong);
    color: var(--text); cursor: pointer;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section__aside { max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  /* At this width CJ mark + name + number + hamburger overflows, and the
     number earns the space more than the wordmark does. */
  .nav__name { display: none; }
  .nav__phone { padding: 8px 11px; font-size: 13px; gap: 6px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 18px; }
  .feature-app__shots { flex-direction: row; gap: 10px; }
  .shot--pad { display: none; }
  .shot--phone-a, .shot--phone-b { max-width: calc(50% - 5px); }
  .footer { flex-direction: column; gap: 6px; }
}
