:root {
  --paper: #f5f2ea;
  --paper-2: #ece7dc;
  --card: #fffdf8;
  --ink: #15171c;
  --ink-2: #2b2e36;
  --muted: #5b5f6b;
  --faint: #8a8d97;
  --line: #d9d3c5;
  --grid: rgba(21, 23, 28, 0.055);
  --blue: #2f5bff;
  --coral: #ff5b35;
  --yellow: #ffe45c;
  --green: #3fae6a;
  --night: #111319;
  --night-2: #1a1d26;
  --night-line: #2c303c;
  --night-ink: #eef0f6;
  --night-muted: #a1a6b5;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --sans: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1rem, 4cqi, 2.5rem);
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --sticker-ink: #15171c;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #121419;
  --paper-2: #1b1e26;
  --card: #1a1d25;
  --ink: #f1ede3;
  --ink-2: #d6d2c8;
  --muted: #a3a7b3;
  --faint: #767b88;
  --line: #2e323d;
  --grid: rgba(241, 237, 227, 0.05);
  --blue: #4166ff;
  --night: #0b0c10;
  --night-2: #161921;
  color-scheme: dark;
}
/* Yellow and pastel surfaces keep dark ink in both themes. */
[data-theme="dark"] :is(.logo-mark, .hero-stats div, .product-art, .facts li, .insight, .kind, .clipping, .impact-featured .impact-icon,
  .step:nth-child(-n+4) .step-icon, .tool-group:nth-child(-n+4) .tool-icon) {
  --ink: var(--sticker-ink);
  --ink-2: #2b2e36;
  --muted: #5b5f6b;
  color: var(--ink);
}
[data-theme="dark"] .hero-stats div:nth-child(2) { color: #fff; }
[data-theme="dark"] :is(.metric strong, .step:nth-child(5) .step-icon, .tool-group:nth-child(5) .tool-icon, .edu-icon) {
  background: var(--yellow);
  color: var(--sticker-ink);
}
[data-theme="dark"] .clipping:hover { box-shadow: 8px 8px 0 #f1ede3; }
[data-theme="dark"] .case-side {
  background: radial-gradient(circle at 1px 1px, rgba(241, 237, 227, 0.08) 1px, transparent 0) 0 0 / 14px 14px, var(--paper);
}
[data-theme="dark"] .impact { border-block: 1.5px solid var(--line); }
[data-theme="dark"] .site-head::before { background: rgba(18, 20, 25, 0.86); }

*, *::before, *::after { box-sizing: border-box; }
/* Breakpoints are container queries on body: on tablet/desktop body is the fixed canvas, so zoom never changes the layout.
   Phones get no container, so only the base (mobile) styles apply and the fixed mobile menu stays tied to the viewport. */
html:not([data-device="mobile"]) body { container: page / inline-size; }
html[data-viewport="scaled"], html[data-viewport="scaled"] body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1200px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - var(--pad) * 2); margin-inline: auto; }
main, .site-foot { position: relative; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; }
.btn-line-light { background: transparent; color: var(--night-ink); border-color: var(--night-ink); }
.btn-line-light:hover { box-shadow: 3px 3px 0 var(--yellow); }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 242, 234, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.menu-open .site-head::before, [data-theme="dark"] body.menu-open .site-head::before { background: var(--paper); }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  text-decoration: none;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.logo-mark-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 0.75rem; box-shadow: none; }
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
}
.logo-text small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.site-nav { display: none; }
.head-cta { display: none; }
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -0.4rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--sticker-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.theme-btn .icon { width: 21px; height: 21px; }
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }

.site-nav.open {
  position: fixed;
  inset: 68px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--pad) 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.site-nav.open a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav .nav-contact { color: var(--blue); }

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(1.5rem, 5cqi, 4rem);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.pulse {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
h1 {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.95rem, 5.8cqi, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 mark {
  padding: 0 0.06em;
  background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 94%, transparent 94%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-intro {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6cqi, 1.12rem);
}
.status-role { display: none; }
.open-to {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1.2rem;
  font-size: 0.86rem;
}
.open-to-label { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-weight: 600; }
.open-to-cities { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.open-to-label .icon { color: var(--coral); }
.city {
  padding: 0.2rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.1rem;
}
.hero-stats div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  transition: transform 0.2s ease;
}
.hero-stats div:nth-child(2) {
  background: var(--blue);
  color: #fff;
  transform: rotate(2deg);
}
.hero-stats div:hover, .hero-stats div:nth-child(2):hover { transform: rotate(0deg) translateY(-2px); }
.hero-stats dd {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stats dt {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.15;
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 0 0 0.5rem;
}
.window {
  position: relative;
  z-index: 1;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.window-bar span {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.window-bar span:nth-child(1) { background: var(--coral); }
.window-bar span:nth-child(2) { background: var(--yellow); }
.window-bar span:nth-child(3) { background: var(--green); }
.window-bar p {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-body { padding: 1rem; }
.slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.slot-head strong { font-family: var(--display); font-size: 1.05rem; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.slot {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-align: center;
}
.slot-free { background: var(--card); }
.slot-booked {
  background: repeating-linear-gradient(-45deg, var(--paper-2), var(--paper-2) 4px, var(--card) 4px, var(--card) 8px);
  color: var(--faint);
  border-color: var(--line);
}
.slot-picked { background: var(--blue); color: #fff; }
.checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.checkout b {
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.terminal {
  position: relative;
  z-index: 2;
  margin: -1.25rem 0.75rem 0 1.25rem;
  padding: 0 0.9rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--night);
  color: var(--night-ink);
  box-shadow: 6px 6px 0 var(--coral);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.55;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 -0.9rem 0.6rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.66rem;
}
.term-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt { color: var(--yellow); }
.term-out {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: #7ee2a2;
}
.term-out .icon { width: 0.95em; height: 0.95em; }
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: -0.18em;
  background: var(--night-ink);
  animation: blink 1s steps(1) infinite;
}

/* Press */
.press { padding-top: clamp(2.5rem, 6cqi, 4rem); }
.clipping {
  position: relative;
  display: grid;
  grid-template-areas:
    "badge"
    "masthead"
    "meta"
    "headline"
    "note"
    "cta";
  gap: 0.35rem;
  padding: 1.4rem 1.2rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(21, 23, 28, 0.035) 23px 24px),
    #fbf7ec;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-0.6deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clipping::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 22px;
  background: rgba(255, 228, 92, 0.85);
  border: 1px solid rgba(21, 23, 28, 0.25);
  transform: translateX(-50%) rotate(-3deg);
}
.clipping:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.clip-badge {
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.clip-masthead {
  grid-area: masthead;
  padding-bottom: 0.45rem;
  border-bottom: 3px double var(--ink);
  font-family: "Old English Text MT", "UnifrakturMaguntia", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 4.4cqi, 2.1rem);
  line-height: 1.1;
}
.clip-meta {
  grid-area: meta;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.clip-headline {
  grid-area: headline;
  margin-top: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 4.6cqi, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.clip-note { grid-area: note; color: var(--ink-2); }
.clip-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  margin-top: 0.6rem;
  color: var(--blue);
  font-weight: 600;
}
.clipping:hover .clip-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
.section { padding-top: clamp(4rem, 9cqi, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 4cqi, 2.6rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#experience .section-head { max-width: none; }
.exp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
}
.exp-head h2 { flex: 1 1 18rem; min-width: 0; }
.exp-total {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.8rem 0.25rem 0.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--sticker-ink);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transform: rotate(-1.5deg);
}
.exp-total strong {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--sticker-ink);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .exp-total { border-color: var(--sticker-ink); }
.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  padding: 0.1rem 0.4rem;
  border: 1.5px solid currentColor;
  border-radius: 7px;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5cqi, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-head > p:last-child:not(.eyebrow) {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Products */
.bento {
  display: grid;
  gap: 1.25rem;
}
.product {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.product-art {
  position: relative;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(21, 23, 28, 0.13) 1px, transparent 0) 0 0 / 14px 14px,
    var(--tone);
}
.product-art svg { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1.25rem;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.product-tag .icon { color: var(--ink); width: 1.2em; height: 1.2em; }
.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.product h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4cqi, 2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.metric {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.metric strong {
  padding: 0.05rem 0.45rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.metric span { color: var(--muted); font-size: 0.82rem; }
.product-line { color: var(--ink-2); }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}
.facts li {
  padding: 0.2rem 0.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--tone);
  font-size: 0.8rem;
  font-weight: 500;
}
.product-foot {
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1.5px dashed var(--line);
}
.stack-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.74rem;
}
.platforms { color: var(--muted); font-size: 0.82rem; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  justify-self: start;
  margin-top: 0.35rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.product-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Impact */
.impact {
  margin-top: clamp(4rem, 9cqi, 7rem);
  padding: clamp(3.5rem, 8cqi, 6rem) 0;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(47, 91, 255, 0.22), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, rgba(255, 91, 53, 0.14), transparent 60%),
    var(--night);
  color: var(--night-ink);
}
.impact .section-head > p:last-child:not(.eyebrow) { color: var(--night-muted); }
.impact .eyebrow { color: var(--yellow); }
.impact-grid { display: grid; gap: 1rem; }
.impact-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.15rem;
  border: 1.5px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(26, 29, 38, 0.85);
}
.impact-featured {
  border-color: #3a3f4e;
  background:
    linear-gradient(180deg, rgba(255, 228, 92, 0.06), transparent 40%),
    rgba(26, 29, 38, 0.92);
}
.impact-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.impact-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #262a35;
  color: var(--yellow);
}
.impact-featured .impact-icon { background: var(--yellow); color: var(--ink); }
.impact-icon .icon { width: 21px; height: 21px; }
.impact-head h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.impact-featured .impact-head h3 { font-size: clamp(1.45rem, 3cqi, 1.85rem); }
.impact-head p { color: var(--night-muted); font-family: var(--mono); font-size: 0.7rem; }
.impact-body { display: grid; gap: 1.1rem; }
.impact-visual {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-content: start;
}
.metric-tile {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.metric-tile dd {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 4cqi, 1.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.metric-tile dt { color: var(--night-muted); font-size: 0.78rem; line-height: 1.35; }
.bar-group + .bar-group { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px dashed var(--night-line); }
.bar-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; margin-bottom: 0.7rem; }
.bar-head strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.02em; }
.bar-head span { color: var(--night-muted); font-size: 0.8rem; }
.bar-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 3.8rem;
  align-items: center;
  gap: 0.7rem;
}
.bar-row + .bar-row { margin-top: 0.5rem; }
.bar-key { color: var(--night-muted); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.bar-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #262a35;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  transform-origin: left;
}
.bar-before { background: #5d6273; }
.bar-after { background: linear-gradient(90deg, var(--yellow), #fff3a3); }
.bar-val { font-family: var(--mono); font-size: 0.84rem; text-align: right; }

.bar-group + .rings { padding-top: 1.1rem; border-top: 1px dashed var(--night-line); }
.rings {
  display: grid;
  gap: 0.9rem;
}
.ring {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
}
.ring-dial { position: relative; flex: none; width: 76px; height: 76px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #262a35; stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round; }
.ring:nth-child(2) .ring-fill { stroke: #7f9cff; }
.ring-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
}
.ring figcaption { display: grid; gap: 0.1rem; }
.ring figcaption strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.ring figcaption span { color: var(--night-muted); font-size: 0.78rem; line-height: 1.35; }

.trend { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 7px; }
.trend .icon { width: 1rem; height: 1rem; }
.trend-up { background: rgba(126, 226, 162, 0.16); color: #7ee2a2; }
.trend-down { background: rgba(255, 91, 53, 0.16); color: #ff8d72; }

/* Pipeline */
.pipeline {
  position: relative;
  display: grid;
  gap: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
  padding-bottom: 1.6rem;
}
.step::before {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 0;
  left: 27px;
  border-left: 2px dashed var(--ink);
}
.step:last-child::before { display: none; }
.step:last-child { padding-bottom: 0; }
.step-icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.step:nth-child(1) .step-icon { background: #dfe6ff; }
.step:nth-child(2) .step-icon { background: #ffe1d6; }
.step:nth-child(3) .step-icon { background: var(--yellow); }
.step:nth-child(4) .step-icon { background: #dcf3d2; }
.step:nth-child(5) .step-icon { background: var(--ink); color: var(--yellow); }
.step-icon .icon { width: 24px; height: 24px; }
.step-no { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; }
.step h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.step p:last-child { margin-top: 0.2rem; color: var(--muted); font-size: 0.94rem; }

/* Cases */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 calc(var(--pad) * -1) 1.2rem;
  padding: 0.2rem var(--pad) 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab span { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] span { color: var(--yellow); }
.case {
  display: grid;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case + .case { margin-top: 1.25rem; }
.js .case + .case { margin-top: 0; }
.case[hidden] { display: none; }
.case-main { padding: clamp(1.2rem, 3cqi, 2rem); }
.case-kicker {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case h3 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4cqi, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.case-lead { margin-top: 0.75rem; color: var(--muted); }
.case-cols { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.case h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case-cols p { color: var(--ink-2); font-size: 0.96rem; }
.case-side {
  padding: clamp(1.2rem, 3cqi, 2rem);
  border-top: 2px solid var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(21, 23, 28, 0.1) 1px, transparent 0) 0 0 / 14px 14px,
    var(--paper);
}
.insight {
  position: relative;
  margin-top: 0.4rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  font-size: 0.94rem;
  font-weight: 500;
  transform: rotate(-0.6deg);
}
.case-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1rem; }
.case-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.case-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Experience */
.timeline { position: relative; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  border-left: 2px solid var(--ink);
}
.job {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0 0 1.25rem 2.1rem;
}
.job:last-child { padding-bottom: 0; }
.job::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
}
.job-current::before { background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 91, 53, 0.22); }
.job-when {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
}
.job-card {
  padding: 1rem 1.1rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.job-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.job h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.job-role { margin-top: 0.15rem; font-weight: 500; font-size: 0.92rem; }
.job-role span { color: var(--muted); font-weight: 400; }
.kind {
  flex: none;
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kind-product { background: #dfe6ff; }
.kind-founder { background: var(--yellow); }
.kind-growth { background: #ffe1d6; }
.job ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  list-style: none;
}
.job ul li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--ink-2);
  font-size: 0.94rem;
}
.job ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

/* Toolbox */
.toolbox { display: grid; gap: 1rem; }
.tool-group {
  padding: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
}
.tool-group h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tool-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
}
.tool-group:nth-child(2) .tool-icon { background: #dfe6ff; }
.tool-group:nth-child(3) .tool-icon { background: #ffe1d6; }
.tool-group:nth-child(4) .tool-icon { background: #dcf3d2; }
.tool-group:nth-child(5) .tool-icon { background: var(--ink); color: var(--yellow); }
.tool-group ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; list-style: none; }
.tool-group li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
}
.edu { display: grid; gap: 0.75rem; margin-top: 1.25rem; list-style: none; }
.edu li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--ink);
  border-radius: 14px;
}
.edu-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--yellow);
}
.edu-icon .icon { width: 20px; height: 20px; }
.edu strong, .edu span { display: block; }
.edu strong { font-size: 0.95rem; }
.edu span { color: var(--muted); font-size: 0.84rem; }

/* Contact */
.contact {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 5cqi, 3.25rem);
  border: 2px solid var(--ink);
  border-radius: 26px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(47, 91, 255, 0.35), transparent 65%),
    radial-gradient(420px 240px at 0% 100%, rgba(255, 91, 53, 0.22), transparent 65%),
    var(--night);
  color: var(--night-ink);
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 2px var(--ink);
}
.eyebrow-light { color: var(--yellow); }
.contact h2 { font-size: clamp(2rem, 5.6cqi, 3.6rem); }
.contact-copy > p:not(.eyebrow) { max-width: 30rem; margin-top: 0.9rem; color: var(--night-muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.contact .btn-primary { border-color: var(--night-ink); }
.contact .btn-primary:hover { box-shadow: 3px 3px 0 var(--yellow); }
.copy-done { display: none; align-items: center; gap: 0.5rem; }
.copy-idle { display: inline-flex; align-items: center; gap: 0.5rem; }
[data-copy].copied .copy-idle { display: none; }
[data-copy].copied .copy-done { display: inline-flex; }
.btn-group { display: inline-flex; }
.btn-group .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group .btn-icon { width: 46px; padding: 0; margin-left: -2px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group .btn-icon .icon { width: 19px; height: 19px; }
.btn-group .btn-icon.copied { background: var(--green); }
.btn-group { border-radius: 12px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-group:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--yellow); }
.btn-group .btn:hover { transform: none; box-shadow: none; filter: brightness(1.12); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-list { display: grid; gap: 0.6rem; list-style: none; }
.contact-list a, .contact-list p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--night-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-list a:hover { border-color: var(--yellow); background: rgba(255, 228, 92, 0.06); }
.contact-list .icon { width: 20px; height: 20px; color: var(--yellow); }
.contact-list a > .icon:last-child { color: var(--night-muted); }
.contact-list span { min-width: 0; overflow-wrap: anywhere; font-size: 0.94rem; }
.contact-list small {
  display: block;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(3rem, 7cqi, 5rem);
  padding: 1.5rem 0 2rem;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-foot p { display: flex; align-items: center; gap: 0.6rem; }
.site-foot a { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; text-decoration: none; color: var(--ink); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .pipeline.reveal { opacity: 1; transform: none; }
.js .pipeline .step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--step-delay, 0s) + var(--i) * 0.22s);
}
.js .pipeline.in .step { opacity: 1; transform: none; }
.term-line { animation: line-in 0.35s ease both; animation-delay: calc(var(--i) * 0.45s + 0.5s); }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } }
.js .reveal.in .bar-fill { animation: grow 1s cubic-bezier(.2,.7,.2,1) both 0.2s; }
@keyframes grow { from { transform: scaleX(0); } }
.js .reveal.in .ring-fill { animation: ring 1.2s cubic-bezier(.2,.7,.2,1) both 0.2s; }
@keyframes ring { from { stroke-dashoffset: var(--ring); } }

/* Tablet */
@container page (min-width: 640px) {
  .status-role { display: inline; }
  .open-to { flex-direction: row; align-items: center; }
  .open-to-label { margin-right: 0.15rem; }
  .hero-visual { padding: 0 2.5rem 1rem 0; }
  .hero-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem 0.75rem; margin: 0 0 -0.85rem; }
  .hero-stats div { gap: 0.6rem; padding: 0.35rem 1rem 0.35rem 0.35rem; transform: rotate(-3deg); }
  .hero-stats div:nth-child(2) { transform: rotate(2.5deg) translateY(4px); }
  .hero-stats dd { min-width: 2.75rem; height: 2.75rem; padding: 0 0.4rem; font-size: 1.2rem; }
  .hero-stats dt { max-width: 7.5rem; font-size: 0.8rem; }
  .terminal { margin: -2rem -1.5rem 0 3rem; font-size: 0.76rem; }
  .slot { min-height: 54px; font-size: 0.72rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .impact-featured { grid-column: 1 / -1; padding: 1.4rem; }
  .impact-card:not(.impact-featured):last-child:nth-child(odd) { grid-column: 1 / -1; }
  .impact-featured .impact-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .rings { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .case-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .toolbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clipping {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "badge headline"
      "masthead headline"
      "meta note"
      ". cta";
    column-gap: 2.25rem;
    align-items: start;
    padding: 1.8rem 1.8rem 1.6rem;
  }
  .clip-headline, .clip-note, .clip-cta { padding-left: 2.25rem; margin-left: -2.25rem; border-left: 1.5px solid var(--ink); }
  .clip-headline { margin-top: 0; padding-top: 0.2rem; }
  .clip-note { padding-top: 0.5rem; }
  .clip-cta { margin-top: 0; padding-top: 0.75rem; }
  .job { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; padding-left: 2.4rem; }
  .job-when { padding-top: 1.1rem; }
  .job::before { top: 1.25rem; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .step { grid-template-columns: 1fr; grid-template-rows: none; padding: 1.2rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
  .step::before { display: none; }
  .step-icon { grid-row: auto; margin-bottom: 0.9rem; }
  .step:last-child { padding-bottom: 1.2rem; }
}

/* Desktop */
@container page (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
  }
  .site-nav a {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a[aria-current="true"] { background: var(--ink); color: var(--paper); }
  .site-nav .nav-contact { display: none; }
  .head-cta { display: inline-flex; margin-left: 0.75rem; }
  .menu-btn { display: none; }
  .logo { margin-right: auto; }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3.5rem;
    min-height: 640px;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-visual { padding: 0 1.5rem 1rem 0; }
  .terminal { margin: -2.5rem -2rem 0 4rem; }

  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .product-wide { grid-column: span 7; }
  .product-narrow { grid-column: span 5; }
  .product-wide { flex-direction: row; }
  .product-wide .product-art {
    flex: 0 0 48%;
    display: grid;
    place-items: center;
    border-bottom: 0;
    border-right: 2px solid var(--ink);
    padding: 1.5rem 1rem;
  }
  .product-narrow .product-art { padding: 1.25rem 1.5rem 0.75rem; }
  .product-body { padding: 1.4rem 1.4rem 1.5rem; }

  .impact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .impact-card, .impact-card:not(.impact-featured):last-child:nth-child(odd) { grid-column: span 2; }
  .impact-featured { grid-column: span 3; }
  .impact-featured .impact-body { grid-template-columns: 1fr; }
  .impact-featured .metrics { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .pipeline::before {
    content: "";
    position: absolute;
    top: calc(1.2rem + 28px);
    left: 2rem;
    right: 2rem;
    border-top: 2px dashed var(--ink);
    transform-origin: left center;
  }
  .step { position: relative; }
  .js .pipeline::before { transform: scaleX(0); transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .js .pipeline.in::before { transform: none; }
  .pipeline { --step-delay: 0.75s; }

  .case { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); }
  .case-side { border-top: 0; border-left: 2px solid var(--ink); }
  .case-cols { grid-template-columns: 1fr; }

  .timeline::before { left: calc(11rem + 7px); }
  .job { grid-template-columns: 11rem minmax(0, 1fr); gap: 2.25rem; padding-left: 0; }
  .job::before { left: 11rem; }
  .job-when { text-align: right; padding-right: 1.5rem; }
  .job-card { margin-left: 0.5rem; }

  .toolbox { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tool-group { grid-column: span 2; }
  .tool-group:nth-child(4), .tool-group:nth-child(5) { grid-column: span 3; }

  .contact { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 3rem; }
}

@container page (min-width: 1280px) {
  .case-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
