:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  body { margin: 0; font: 14px/1.4 system-ui, -apple-system, sans-serif; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }

/* Layout: Swiss 12-column grid drawn on the page; oversized grotesk headlines, tiny mono labels, fixed corner chrome, one cobalt accent. Single deliberate look: paper sections, ink contact. */
:root {
  --paper: #f2f2ef;
  --paper-2: #e9e9e5;
  --ink: #0e0e10;
  --ink-2: #57575c;
  --ink-3: #8d8d92;
  --rule: rgb(14 14 16 / 0.08);
  --rule-strong: rgb(14 14 16 / 0.18);
  --accent: #2340ff;
  --night: #0e0e10;
  --night-text: #f2f2ef;
  --night-2: #8d8d92;
  --night-rule: rgb(242 242 239 / 0.1);

  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: max(24px, env(safe-area-inset-left, 0px)); --gutter-r: max(24px, env(safe-area-inset-right, 0px)); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label { font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; }

/* The visible grid */
.gridlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px;
}
.gridlines span { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
@media (max-width: 700px) {
  .gridlines { grid-template-columns: repeat(4, 1fr); column-gap: 12px; }
  .gridlines span:nth-child(n+5) { display: none; }
}

.grid {
  position: relative; z-index: 1;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px;
}
@media (max-width: 700px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; } }

/* Fixed chrome, blended so it reads on paper and on ink */
.chrome { position: fixed; z-index: 20; color: #fff; mix-blend-mode: difference; }
.chrome-top {
  top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  padding: 16px var(--gutter-r) 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
/* A very slight progressive blur under the top chrome: three stacked layers, strongest at the edge */
.top-blur { position: fixed; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top, 0px) + 88px); z-index: 19; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.top-blur.is-on { opacity: 1; }
.top-blur span { position: absolute; inset: 0; }
.top-blur span:nth-child(1) { -webkit-backdrop-filter: blur(0.5px); backdrop-filter: blur(0.5px); -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.top-blur span:nth-child(2) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(#000 20%, transparent 70%); mask-image: linear-gradient(#000 20%, transparent 70%); }
.top-blur span:nth-child(3) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(#000, transparent 40%); mask-image: linear-gradient(#000, transparent 40%); }
@media (prefers-reduced-transparency: reduce), print { .top-blur { display: none; } }
.chrome-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-transform: uppercase; }
.chrome-name small { display: block; font-weight: 400; text-transform: none; font-size: 12px; opacity: 0.7; }
.chrome-nav { display: flex; gap: clamp(16px, 4vw, 56px); }
.chrome-nav a { position: relative; }
.chrome-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.chrome-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 560px) { .chrome-nav .optional { display: none; } }
.chrome-bottom {
  bottom: env(safe-area-inset-bottom, 0px); left: 0; right: 0;
  padding: 0 var(--gutter-r) 14px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.chrome-bottom .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.clock { font-variant-numeric: tabular-nums; }

/* Hero */
.hero { min-height: min(100vh, 980px); padding-top: clamp(120px, 18vh, 200px); padding-bottom: 72px; align-content: end; row-gap: 40px; }
.hero-intro { grid-column: 7 / span 5; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.015em; margin: 0; max-width: 26em; }
.hero-intro em { font-style: normal; color: var(--accent); }
.hero h1 {
  grid-column: 1 / -1; margin: 0;
  font-weight: 500; font-size: clamp(56px, 12.4vw, 228px); line-height: 0.86; letter-spacing: -0.065em;
  margin-left: -0.05em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line span { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.7,.1,1) both; }
.hero h1 .line:nth-child(2) span { animation-delay: .08s; }
.hero h1 .indent { padding-left: 16.66%; }
.hero h1 .accent { color: var(--accent); }
@keyframes rise { from { transform: translateY(100%); } }
.hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--rule-strong); padding-top: 14px; row-gap: 20px; }
.hero-meta div { grid-column: span 3; }
.hero-meta div p { margin: 6px 0 0; font-size: 15px; letter-spacing: -0.01em; }
.hero-meta .label { color: var(--ink-3); }
@media (max-width: 700px) {
  .hero-intro { grid-column: 1 / -1; }
  .hero h1 .indent { padding-left: 0; }
  .hero-meta div { grid-column: span 2; }
}

/* Section heads */
section { position: relative; z-index: 1; }
.section-head { padding-top: clamp(96px, 14vw, 180px); row-gap: 8px; align-items: end; }
.section-head .label { grid-column: 1 / span 6; color: var(--ink-3); }
.section-head .label.right { grid-column: 7 / -1; text-align: right; }
.big {
  grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  font-weight: 500; font-size: clamp(52px, 10.4vw, 190px); line-height: 0.9; letter-spacing: -0.06em; margin-left: -0.04em;
}
.big sup { font-size: 0.42em; letter-spacing: -0.04em; line-height: 1; margin-top: 0.12em; }
.big sup .tick { color: var(--accent); }

/* Work */
.works { padding-top: 28px; row-gap: 20px; }
.work { grid-column: span 6; display: block; background: var(--ink); color: var(--night-text); padding: 14px; min-width: 0; }
@media (max-width: 860px) { .work { grid-column: 1 / -1; } }
.work-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #1a1a1d; }
.work-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; max-width: none;
  filter: grayscale(1) contrast(1.05); transform: scale(1.02);
  transition: filter .6s ease, transform .9s cubic-bezier(.2,.7,.1,1);
}
.work:hover .work-media img, .work:focus-visible .work-media img { filter: grayscale(0); transform: scale(1.06); }
.work-index { position: absolute; top: 10px; left: 12px; color: #fff; mix-blend-mode: difference; }
.work-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 18px; }
.work-title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.work-title small { display: block; margin-top: 8px; font-size: 14px; letter-spacing: -0.005em; color: var(--night-2); max-width: 26em; line-height: 1.35; }
.work-stack { text-align: right; color: var(--night-2); flex: none; }
.work-stack .arrow { display: inline-block; color: var(--night-text); margin-top: 10px; transition: transform .3s ease; }
.work:hover .work-stack .arrow { transform: translate(3px, -3px); }
.works-note { grid-column: 1 / -1; color: var(--ink-3); padding-top: 4px; }
.work.feature { grid-column: 1 / -1; }
.work.feature .work-media { aspect-ratio: 2 / 1; }
.work.feature .work-media img { object-position: center; }
.work.feature .work-title { font-size: clamp(28px, 3.4vw, 48px); }
.work-badge { position: absolute; top: 10px; right: 12px; color: #fff; mix-blend-mode: difference; }
@media (max-width: 700px) { .work.feature .work-media { aspect-ratio: 16 / 10; } .work.feature .work-media img { object-position: left center; } }

/* Numbers */
.numbers { padding-top: clamp(80px, 10vw, 140px); }
.numbers-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--rule-strong); }
.figure { grid-column: span 3; padding: 16px 0 0; }
.figure strong { display: block; font-weight: 400; font-size: clamp(44px, 5.4vw, 96px); letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure strong .accent { color: var(--accent); }
.figure span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14px; max-width: 18em; }
@media (max-width: 700px) { .figure { grid-column: span 2; padding-bottom: 24px; } }

/* About */
.about-statement {
  grid-column: 1 / span 11; margin: 32px 0 0; font-weight: 400;
  font-size: clamp(28px, 3.9vw, 64px); line-height: 1.04; letter-spacing: -0.045em; text-wrap: pretty;
}
.about-statement .dim { color: var(--ink-3); }
.about-cols { padding-top: 56px; row-gap: 32px; }
.about-cols p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.about-cols .c1 { grid-column: 1 / span 3; }
.about-cols .c2 { grid-column: 7 / span 3; }
.about-cols .c3 { grid-column: 10 / span 3; }
.about-cols .label { color: var(--ink); }
@media (max-width: 700px) { .about-cols .c1, .about-cols .c2, .about-cols .c3 { grid-column: 1 / -1; } }
.skills { padding-top: 72px; }
.skill { grid-column: span 3; border-top: 1px solid var(--rule-strong); padding-top: 12px; }
.skill .label { color: var(--ink-3); }
.skill ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.03em; line-height: 1.3; }
@media (max-width: 700px) { .skill { grid-column: span 2; padding-bottom: 28px; } }

/* Experience */
.roles { list-style: none; margin: 0; padding-top: 32px; padding-bottom: 0; }
.role {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline;
  border-top: 1px solid var(--rule-strong); padding: 22px 0; position: relative; transition: color .3s;
}
.role:last-child { border-bottom: 1px solid var(--rule-strong); }
.role::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2,.7,.1,1); z-index: -1; }
.role:hover { color: var(--night-text); }
.role:hover::before { transform: scaleY(1); }
.role:hover .role-desc, .role:hover .label { color: var(--night-2); }
.role .label { grid-column: 1 / span 1; color: var(--ink-3); }
.role-company { grid-column: 2 / span 4; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.045em; line-height: 1; }
.role-title { grid-column: 6 / span 3; font-size: 15px; letter-spacing: -0.01em; }
.role-title .now { color: var(--accent); }
.role-desc { grid-column: 9 / span 4; color: var(--ink-2); font-size: 15px; transition: color .3s; }
@media (max-width: 700px) {
  .role { row-gap: 6px; }
  .role .label { grid-column: 1 / -1; }
  .role-company, .role-title, .role-desc { grid-column: 1 / -1; }
}

/* Testimonials */
.quote-wrap { padding-top: 40px; row-gap: 32px; }
.quote-count { grid-column: 1 / span 2; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.quote-stage { grid-column: 3 / -1; min-width: 0; }
.quote-text {
  margin: 0; font-weight: 400; font-size: clamp(24px, 3.2vw, 52px); line-height: 1.08; letter-spacing: -0.045em;
  text-wrap: pretty; min-height: 4.4em;
}
.quote-text::before { content: "“"; color: var(--accent); }
.quote-text::after { content: "”"; color: var(--accent); }
.quote-by { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--rule-strong); }
.quote-by strong { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.quote-by span.where { color: var(--ink-3); margin-left: 10px; }
.quote-nav { display: flex; gap: 8px; }
.quote-nav button {
  font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  padding: 10px 14px; background: transparent; color: var(--ink); border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.quote-nav button:hover { background: var(--ink); color: var(--paper); }
.quote-fade { transition: opacity .25s ease; }
.quote-fade.out { opacity: 0; }
@media (max-width: 700px) { .quote-count, .quote-stage { grid-column: 1 / -1; } .quote-text { min-height: 0; } }

/* Contact */
.contact { background: var(--night); color: var(--night-text); margin-top: clamp(96px, 14vw, 180px); padding-bottom: 72px; }
.contact .gridlines-local {
  position: absolute; inset: 0; pointer-events: none;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px;
}
.contact .gridlines-local span { border-left: 1px solid var(--night-rule); border-right: 1px solid var(--night-rule); }
@media (max-width: 700px) {
  .contact .gridlines-local { grid-template-columns: repeat(4, 1fr); column-gap: 12px; }
  .contact .gridlines-local span:nth-child(n+5) { display: none; }
}
.contact .section-head .label { color: var(--night-2); }
.contact h2 {
  grid-column: 1 / -1; margin: 0; font-weight: 500;
  font-size: clamp(64px, 15vw, 280px); line-height: 0.86; letter-spacing: -0.07em; margin-left: -0.05em;
}
.contact h2 .accent { color: var(--accent); }
.contact-body { padding-top: clamp(56px, 8vw, 120px); row-gap: 32px; align-items: end; }
.contact-pitch { grid-column: 1 / span 5; margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.015em; }
.contact-links { grid-column: 7 / -1; text-align: right; }
.contact-email {
  display: inline-block; font-size: clamp(22px, 3.4vw, 54px); letter-spacing: -0.045em; line-height: 1.05;
  overflow-wrap: anywhere; background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; text-align: right;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: right bottom; background-repeat: no-repeat;
  transition: background-size .4s ease;
}
.contact-email:hover { background-size: 100% 1px; background-position: left bottom; }
.copy-status { display: block; margin-top: 8px; color: var(--night-2); min-height: 1.4em; }
.socials { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; color: var(--night-2); }
.socials a:hover { color: var(--night-text); }
.colophon { padding-top: 96px; color: var(--night-2); row-gap: 8px; }
.colophon span:first-child { grid-column: 1 / span 6; }
.colophon span:last-child { grid-column: 7 / -1; text-align: right; }
@media (max-width: 700px) {
  .contact-pitch, .contact-links { grid-column: 1 / -1; text-align: left; }
  .contact-email { text-align: left; }
  .socials { justify-content: flex-start; }
  .colophon span:first-child, .colophon span:last-child { grid-column: 1 / -1; text-align: left; }
  .colophon { padding-bottom: 32px; }
}

/* Case studies */
.case-head { padding-top: clamp(120px, 18vh, 200px); row-gap: 8px; }
.case-head .label { grid-column: 1 / span 6; color: var(--ink-3); }
.case-head .label.right { grid-column: 7 / -1; text-align: right; }
.back { color: var(--ink); }
.back:hover { color: var(--accent); }
.case-title {
  grid-column: 1 / -1; margin: 24px 0 0 -0.05em; font-weight: 500;
  font-size: clamp(64px, 14vw, 260px); line-height: 0.86; letter-spacing: -0.07em;
}
.case-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.case-title .line span { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.7,.1,1) both; }
.case-title .accent { color: var(--accent); }
.case-meta { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--rule-strong); padding-top: 14px; margin-top: 40px; row-gap: 24px; }
.case-meta > div { grid-column: span 3; min-width: 0; }
.case-meta .label { color: var(--ink-3); }
.case-meta p { margin: 6px 0 0; font-size: 15px; letter-spacing: -0.01em; line-height: 1.4; }
.case-meta a { border-bottom: 1px solid currentColor; }
.case-meta a:hover { color: var(--accent); }
@media (max-width: 700px) { .case-meta > div { grid-column: span 2; } }

.case-hero { padding-top: 40px; }
.frame { grid-column: 1 / -1; background: var(--ink); padding: 14px; margin: 0; min-width: 0; }
.frame img { display: block; width: 100%; height: auto; max-width: 100%; }
.frame figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--night-2); padding-top: 12px; }
.frame.half { grid-column: span 6; }
@media (max-width: 860px) { .frame.half { grid-column: 1 / -1; } }

.case-section { padding-top: clamp(80px, 11vw, 150px); row-gap: 24px; }
.case-section > .label { grid-column: 1 / span 3; color: var(--ink-3); padding-top: 0.6em; }
.case-lede { grid-column: 4 / -1; margin: 0; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.045em; text-wrap: pretty; }
.case-lede .dim { color: var(--ink-3); }
.case-copy { grid-column: 4 / span 4; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.case-copy + .case-copy { grid-column: 9 / span 4; }
.scope { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: subgrid; }
.scope li { grid-column: span 3; border-top: 1px solid var(--rule-strong); padding: 12px 0 18px; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.03em; line-height: 1.2; }
.scope li .label { display: block; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 700px) {
  .case-section > .label, .case-lede, .case-copy, .case-copy + .case-copy, .scope { grid-column: 1 / -1; }
  .scope li { grid-column: span 2; }
}

.case-gallery { padding-top: 32px; row-gap: 20px; }
.case-quote { grid-column: 4 / -1; margin: 0; }
.case-quote blockquote { margin: 0; font-size: clamp(24px, 3vw, 46px); line-height: 1.08; letter-spacing: -0.045em; }
.case-quote blockquote::before { content: "“"; color: var(--accent); }
.case-quote blockquote::after { content: "”"; color: var(--accent); }
.case-quote figcaption { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--rule-strong); color: var(--ink-3); }
.case-quote figcaption strong { color: var(--ink); font-family: var(--font); font-weight: 500; text-transform: none; letter-spacing: -0.01em; font-size: 15px; margin-right: 10px; }
@media (max-width: 700px) { .case-quote { grid-column: 1 / -1; } }

.arch { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) auto minmax(0, 4fr) auto minmax(0, 5fr); align-items: stretch; gap: 0; margin-top: 8px; }
.arch-col { display: grid; gap: 12px; min-width: 0; }
.node { border: 1px solid var(--ink); background: var(--paper); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.node.dark { background: var(--ink); color: var(--night-text); }
.node.dark .label, .node.dark p { color: var(--night-2); }
.node .label { color: var(--ink-3); }
.node strong { font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.035em; line-height: 1.1; }
.node p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.node.accent-edge { border-color: var(--accent); }
.arrow-col { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 10px; color: var(--ink-3); gap: 6px; text-align: center; }
.arrow-col .glyph { font-size: 22px; color: var(--ink); line-height: 1; }
@media (max-width: 860px) {
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arrow-col { flex-direction: row; padding: 10px 0; }
  .arrow-col .glyph { transform: rotate(90deg); }
}
.code { grid-column: 4 / -1; margin: 0; background: var(--ink); color: var(--night-text); padding: 20px 22px; overflow-x: auto; font: 13px/1.6 var(--mono); min-width: 0; }
.code .k { color: var(--night-2); }
.code .v { color: #8fa0ff; }
@media (max-width: 700px) { .code { grid-column: 1 / -1; } }
.decisions { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; counter-reset: decision; }
.decisions li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 8px 32px; border-top: 1px solid var(--rule-strong); padding: 18px 0 22px; }
.decisions li:last-child { border-bottom: 1px solid var(--rule-strong); }
.decisions h3 { margin: 0; font-weight: 400; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.04em; line-height: 1.1; }
.decisions p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.decisions code { font: 13px var(--mono); background: var(--paper-2); padding: 1px 5px; }
@media (max-width: 700px) { .decisions { grid-column: 1 / -1; } .decisions li { grid-template-columns: minmax(0, 1fr); } }

.next-case { padding-top: clamp(96px, 14vw, 180px); }
.next-link { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: stretch; row-gap: 28px; border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.next-text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.next-text .label { color: var(--ink-3); }
.next-name { margin-top: auto; font-size: clamp(44px, 6vw, 100px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.92; text-wrap: balance; transition: color .3s; }
.next-sum { font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); max-width: 24em; }
.next-cta { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding-bottom: 5px; border-bottom: 1px solid currentColor; font: 500 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.next-cta .arrow { display: inline-block; transition: transform .4s cubic-bezier(.2,.7,.1,1); }
.next-thumb { grid-column: 6 / -1; background: var(--ink); padding: 12px; overflow: hidden; min-width: 0; }
.next-thumb img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; filter: grayscale(1); transform: scale(1.01); transition: filter .6s ease, transform .9s cubic-bezier(.2,.7,.1,1); }
.next-link:hover .next-name, .next-link:focus-visible .next-name { color: var(--accent); }
.next-link:hover .next-cta .arrow, .next-link:focus-visible .next-cta .arrow { transform: translateX(6px); }
.next-link:hover .next-thumb img, .next-link:focus-visible .next-thumb img { filter: grayscale(0); transform: scale(1.05); }
@media (max-width: 860px) {
  .next-text, .next-thumb { grid-column: 1 / -1; }
  .next-name { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-title .line span { animation: none; }
  .next-name, .next-cta .arrow, .next-thumb img { transition: none; }
  html { scroll-behavior: auto; }
  .hero h1 .line span, .chrome-bottom .dot { animation: none; }
  .work-media img, .role::before, .quote-fade, .chrome-nav a::after, .contact-email { transition: none; }
}

/* Page transitions */
@view-transition { navigation: auto; }
.gridlines { view-transition-name: gridlines; }
.chrome-top { view-transition-name: chrome-top; }
.chrome-bottom { view-transition-name: chrome-bottom; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2,.7,.1,1); }
::view-transition-group(gridlines), ::view-transition-group(chrome-top), ::view-transition-group(chrome-bottom) { animation: none; }
::view-transition-group(chrome-top), ::view-transition-group(chrome-bottom) { mix-blend-mode: difference; }
::view-transition-old(gridlines), ::view-transition-old(chrome-top), ::view-transition-old(chrome-bottom) { display: none; }
::view-transition-new(gridlines), ::view-transition-new(chrome-top), ::view-transition-new(chrome-bottom) { animation: none; }
::view-transition-old(root) { animation: page-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: page-in .5s cubic-bezier(.2,.7,.1,1) .1s both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
::view-transition-old(media-balti), ::view-transition-new(media-balti),
::view-transition-old(media-fractional-coordinator), ::view-transition-new(media-fractional-coordinator),
::view-transition-old(media-advend), ::view-transition-new(media-advend),
::view-transition-old(media-rderly-pos), ::view-transition-new(media-rderly-pos),
::view-transition-old(media-naked-css), ::view-transition-new(media-naked-css) { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Max width: content stops scaling at 1920px; full-bleed backgrounds still span the viewport */
.grid, .gridlines, .contact .gridlines-local, .chrome-top, .chrome-bottom { max-width: 1920px; margin-left: auto; margin-right: auto; }

/* Phone grid: these use 12-column positions above; the 4-column phone grid needs full-width spans */
@media (max-width: 700px) {
  .section-head .label, .section-head .label.right,
  .case-head .label, .case-head .label.right { grid-column: 1 / -1; text-align: left; }
  .about-statement { grid-column: 1 / -1; }
}

/* Linked architecture */
.node { transition: opacity .3s ease, border-color .3s ease, box-shadow .3s ease; }
.node-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.node-links > span { color: var(--ink-3); margin-right: 2px; }
.node.dark .node-links > span { color: var(--night-2); }
.node-links a { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border: 1px solid currentColor; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.node.dark .node-links a { color: var(--night-text); }
.node-links a:hover, .node-links a:focus-visible, .node-links a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.arch.is-tracing .node { opacity: 0.25; }
.arch.is-tracing .node.is-lit { opacity: 1; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.arch-hint { grid-column: 1 / span 8; margin: 18px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }

/* Code colours */
.code .c { color: var(--night-2); font-style: italic; }
.code .s, .code .n { color: #8fa0ff; }
.code .kw { color: #fff; font-weight: 600; }
@media (max-width: 700px) { .arch-hint { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Notes */
.notes-all { border-bottom: 1px solid currentColor; transition: color .2s; }
.notes-all:hover { color: var(--accent); }
.notes-index { padding-top: 28px; }
.note-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.note-list li { border-top: 1px solid var(--rule-strong); }
.note-list li:last-child { border-bottom: 1px solid var(--rule-strong); }
.note-list a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 10px; align-items: baseline; padding: 22px 0 26px; transition: color .3s; }
.note-num { grid-column: 1 / span 1; color: var(--accent); }
.note-item-title { grid-column: 2 / span 5; font-weight: 500; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -0.05em; text-wrap: balance; transition: color .3s; }
.note-item-sum { grid-column: 7 / span 4; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.note-item-meta { grid-column: 11 / span 2; text-align: right; color: var(--ink-3); }
.note-list a:hover .note-item-title, .note-list a:focus-visible .note-item-title { color: var(--accent); }
@media (max-width: 1000px) {
  .note-item-title { grid-column: 2 / -1; }
  .note-item-sum { grid-column: 2 / span 8; }
  .note-item-meta { grid-column: 10 / -1; }
}
@media (max-width: 700px) {
  .note-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .note-num { grid-column: 1; grid-row: 1; }
  .note-item-meta { grid-column: 2; grid-row: 1; }
  .note-item-title, .note-item-sum { grid-column: 1 / -1; }
}

.note-title { grid-column: 1 / span 10; margin: 32px 0 0; font-weight: 500; font-size: clamp(42px, 6.6vw, 116px); line-height: 0.94; letter-spacing: -0.06em; text-wrap: balance; }
.note-title .accent { color: var(--accent); }
.note-dek { grid-column: 1 / span 8; margin: 24px 0 0; color: var(--ink-2); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.32; letter-spacing: -0.025em; text-wrap: pretty; }
.note-body { padding-top: clamp(56px, 8vw, 110px); }
.prose { grid-column: 4 / span 7; min-width: 0; color: var(--ink-2); font-size: 18px; line-height: 1.65; letter-spacing: -0.005em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose h2 { margin: 2.2em 0 0.7em; color: var(--ink); font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.045em; text-wrap: balance; }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 0.7em; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.prose code { font: 0.82em var(--mono); background: var(--paper-2); padding: 1px 5px; }
.prose pre code { font: inherit; background: none; padding: 0; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.snippet { margin: 1.8em 0 2em; min-width: 0; }
.snippet figcaption { margin-bottom: 8px; color: var(--ink-3); text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.snippet .code { margin: 0; font-size: 13px; }
.next-note .next-text { grid-column: 1 / span 9; }
@media (max-width: 1000px) { .prose { grid-column: 2 / span 10; } .note-title, .note-dek { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .prose { grid-column: 1 / -1; font-size: 17px; }
  .snippet .code { font-size: 11.5px; padding: 16px; }
  .next-note .next-text { grid-column: 1 / -1; }
}

/* Story */
.story-overview { padding-top: clamp(64px, 8vw, 110px); }
.story-index { padding-top: 40px; row-gap: 12px; }
.story-index > .label { grid-column: 1 / span 3; color: var(--ink-3); padding-top: 14px; }
.story-index ol { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--chapters, 8), minmax(0, 1fr)); gap: 0 12px; }
.story-index a { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule-strong); padding: 12px 0 4px; font-size: 15px; letter-spacing: -0.02em; line-height: 1.2; transition: color .2s, border-color .2s; }
.story-index a .label { color: var(--ink-3); transition: color .2s; }
.story-index li:first-child a, .story-index li:last-child a { border-top-color: var(--ink); }
.story-index a:hover, .story-index a:focus-visible { color: var(--accent); border-top-color: var(--accent); }
.story-index a:hover .label, .story-index a:focus-visible .label { color: var(--accent); }

.story-chapter { padding-top: clamp(88px, 11vw, 160px); row-gap: 28px; align-items: start; scroll-margin-top: 40px; }
.story-mark { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 88px; padding-top: 0.9em; }
.story-mark .label:first-child { color: var(--accent); }
.story-mark .label + .label { color: var(--ink-3); }
.story-body { grid-column: 4 / span 7; min-width: 0; }
.story-title { margin: 0 0 22px; color: var(--ink); font-weight: 500; font-size: clamp(32px, 3.8vw, 60px); line-height: 1; letter-spacing: -0.055em; text-wrap: balance; }
.story-body > p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.story-body code { font: 0.82em var(--mono); background: var(--paper-2); padding: 1px 5px; }
.story-body pre code { font: inherit; background: none; padding: 0; }
.story-body > .story-trade { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: baseline; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-strong); color: var(--ink); font-size: 16px; line-height: 1.5; }
.story-trade .label { color: var(--accent); }
.story-body > .story-links { margin: 18px 0 0; font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.story-links a { border-bottom: 1px solid currentColor; transition: color .2s; }
.story-links a:hover, .story-links a:focus-visible { color: var(--accent); }
.story-code { margin-top: 18px; }
.story-code summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.story-code summary::-webkit-details-marker { display: none; }
.story-code-toggle { color: var(--ink); border-bottom: 1px solid currentColor; transition: color .2s; }
.story-code summary:hover .story-code-toggle, .story-code summary:focus-visible .story-code-toggle { color: var(--accent); }
.story-code-toggle::before { content: "+ "; }
.story-code[open] .story-code-toggle::before { content: "− "; }
.story-code-path { color: var(--ink-3); text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.story-code-note { margin: 14px 0 12px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.story-code .code { margin: 0; font-size: 12.5px; }
.story-figures { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 20px; margin-top: 12px; }

.story-goals { list-style: none; margin: 26px 0 0; padding: 0; }
.story-goals li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: baseline; border-top: 1px solid var(--rule-strong); padding: 14px 0 16px; color: var(--ink); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -0.025em; }
.story-goals li:last-child { border-bottom: 1px solid var(--rule-strong); }
.story-goals .label { color: var(--accent); }
.story-goals-met li div { display: flex; flex-direction: column; gap: 6px; }
.story-goals-met strong { font-weight: 500; }
.story-goals-met li div span { color: var(--ink-2); font-size: 16px; line-height: 1.5; letter-spacing: -0.005em; }
.story-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 30px 0 8px; }
.story-stats div { border-top: 1px solid var(--ink); padding-top: 12px; }
.story-stats strong { display: block; font-weight: 400; font-size: clamp(44px, 5vw, 84px); line-height: 1; letter-spacing: -0.06em; color: var(--ink); }
.story-stats span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.story-sub { margin: 40px 0 0; color: var(--ink-3); font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.story-tradeoffs { list-style: none; margin: 12px 0 0; padding: 0; }
.story-tradeoffs li { position: relative; padding: 0 0 0 22px; margin-bottom: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.story-tradeoffs li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.story-body > .story-closing { margin-top: 32px; color: var(--ink); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; letter-spacing: -0.03em; }
.story-chapter .arch { margin-top: 12px; }
.story-chapter .arch-hint { margin-top: 0; }

@media (max-width: 1100px) { .story-index ol { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; } }
@media (max-width: 1000px) { .story-body { grid-column: 4 / -1; } }
@media (max-width: 700px) {
  .story-index > .label, .story-index ol, .story-mark, .story-body { grid-column: 1 / -1; }
  .story-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-mark { position: static; flex-direction: row; gap: 10px; padding-top: 0; }
  .story-body > p { font-size: 17px; }
  .story-body > .story-trade, .story-goals li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-code .code { font-size: 11.5px; padding: 16px; }
}

/* Pitch */
.pitch { padding-top: clamp(96px, 12vw, 170px); scroll-margin-top: 40px; }
.pitch-card { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 28px; background: var(--ink); color: var(--night-text); padding: clamp(28px, 4vw, 56px); }
.pitch-kicker { grid-column: 1 / span 3; color: #8fa0ff; padding-top: 0.8em; }
.pitch-title { grid-column: 4 / -1; margin: 0; font-weight: 500; font-size: clamp(40px, 5.4vw, 92px); line-height: 0.95; letter-spacing: -0.06em; text-wrap: balance; }
.pitch-title .dim { color: var(--night-2); }
.pitch-copy { grid-column: 4 / span 6; margin: 0; color: var(--night-2); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.pitch-steps { grid-column: 4 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pitch-steps li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--night-rule); padding-top: 14px; }
.pitch-steps .label { color: #8fa0ff; }
.pitch-steps strong { font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.03em; line-height: 1.15; }
.pitch-steps li > span:last-child { color: var(--night-2); font-size: 14px; line-height: 1.5; }
.pitch-actions { grid-column: 4 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.pitch-primary { display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: #fff; padding: 18px 24px; font: 500 13px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; transition: background .2s; }
.pitch-primary .arrow { transition: transform .4s cubic-bezier(.2,.7,.1,1); }
.pitch-primary:hover, .pitch-primary:focus-visible { background: #3a55ff; }
.pitch-primary:hover .arrow, .pitch-primary:focus-visible .arrow { transform: translateX(6px); }
.pitch-secondary { padding-bottom: 4px; border-bottom: 1px solid currentColor; font: 500 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; transition: color .2s; }
.pitch-secondary:hover, .pitch-secondary:focus-visible { color: #8fa0ff; }
.pitch-fine { grid-column: 4 / -1; margin: 0; color: var(--night-2); }
@media (max-width: 1000px) { .pitch-copy { grid-column: 4 / -1; } }
@media (max-width: 700px) {
  .pitch-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 28px; row-gap: 22px; }
  .pitch-card > * { grid-column: 1 / -1; }
  .pitch-steps { grid-template-columns: minmax(0, 1fr); }
  .pitch-primary { width: 100%; justify-content: space-between; }
}

/* Responsive images: <picture> lays out as if the <img> were a direct child */
picture { display: contents; }

/* Command menu */
.cmdk-trigger { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 1px solid currentColor; padding: 2px 6px; margin: -3px 0; cursor: pointer; }
.cmdk-trigger-touch { display: none; }
@media (hover: none) { .cmdk-trigger-keys { display: none; } .cmdk-trigger-touch { display: inline; } }
.cmdk {
  --cmdk-line: rgb(242 242 239 / 0.08);
  width: min(980px, calc(100vw - 32px)); height: min(620px, calc(100vh - 96px)); max-width: none; max-height: none; margin: max(48px, 9vh) auto auto; padding: 0;
  border: 0; background: var(--ink); color: var(--night-text); overflow: hidden;
  box-shadow: 0 40px 120px rgb(14 14 16 / 0.45);
}
.cmdk::backdrop { background: rgb(242 242 239 / 0.55); backdrop-filter: blur(6px) grayscale(1); }
.cmdk[open] { animation: cmdk-reveal .42s cubic-bezier(.2,.7,.1,1); }
.cmdk[open]::backdrop { animation: cmdk-fade .3s ease; }
@keyframes cmdk-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes cmdk-fade { from { opacity: 0; } }
.cmdk-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; height: 100%;
  background-image: repeating-linear-gradient(90deg, var(--cmdk-line) 0 1px, transparent 1px calc(100% / 12));
}
.cmdk-dim { color: var(--night-2); }
.cmdk-bar { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px 0; color: var(--night-text); }
.cmdk-count { color: #8fa0ff; font-variant-numeric: tabular-nums; }
.cmdk-field { display: flex; align-items: baseline; gap: 14px; padding: 18px 24px 16px; border-bottom: 1px solid var(--night-rule); cursor: text; }
.cmdk-prompt { flex: none; color: var(--accent); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.06em; }
.cmdk-input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; padding: 0; color: var(--night-text); caret-color: var(--accent); outline: none; font: 500 clamp(34px, 4vw, 52px)/1 var(--font); letter-spacing: -0.055em; }
.cmdk-input::placeholder { color: rgb(242 242 239 / 0.22); }
.cmdk-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--night-rule); }
.cmdk.is-searching .cmdk-try { display: none; }
.cmdk-chip { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--night-text); background: none; border: 1px solid var(--night-rule); padding: 5px 9px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.cmdk-chip:hover, .cmdk-chip:focus-visible { border-color: var(--accent); background: var(--accent); color: #fff; outline: none; }
.cmdk-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 0; }
.cmdk-list { position: relative; list-style: none; margin: 0; padding: 6px 0 14px; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--night-rule) transparent; }
.cmdk-group { padding: 16px 24px 6px; color: var(--night-2); }
.cmdk-item {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 18px; align-items: baseline; gap: 12px;
  padding: 10px 24px; cursor: pointer; font-size: 17px; letter-spacing: -0.02em; color: rgb(242 242 239 / 0.86);
  animation: cmdk-row .38s cubic-bezier(.2,.7,.1,1) both; animation-delay: calc(var(--row, 0) * 18ms);
}
@keyframes cmdk-row { from { opacity: 0; transform: translateY(6px); } }
.cmdk-num { color: var(--night-2); font-variant-numeric: tabular-nums; }
.cmdk-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-title mark { background: none; color: inherit; box-shadow: inset 0 -2px 0 var(--accent); }
.cmdk-hint { color: var(--night-2); text-align: right; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-go { color: #fff; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .25s cubic-bezier(.2,.7,.1,1); }
.cmdk-item[aria-selected="true"] { background: var(--accent); color: #fff; }
.cmdk-item[aria-selected="true"] .cmdk-num, .cmdk-item[aria-selected="true"] .cmdk-hint { color: rgb(255 255 255 / 0.75); }
.cmdk-item[aria-selected="true"] .cmdk-title mark { box-shadow: inset 0 -2px 0 #fff; }
.cmdk-item[aria-selected="true"] .cmdk-go { opacity: 1; transform: none; }
.cmdk-empty { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; }
.cmdk-empty strong { font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.045em; line-height: 1.05; }
.cmdk-empty span { color: var(--night-2); font-size: 15px; }

.cmdk-preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 24px; border-left: 1px solid var(--night-rule); overflow: hidden; }
.cmdk-preview:empty { display: none; }
.cmdk-preview > * { flex-shrink: 0; }
.cmdk-preview > .cmdk-preview-media, .cmdk-preview > .cmdk-preview-glyph { flex: 0 1 auto; min-height: 96px; max-height: 230px; aspect-ratio: auto; height: 46%; }
.cmdk-preview-media { background: #1a1a1d; overflow: hidden; margin-bottom: 8px; }
.cmdk-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; animation: cmdk-image .5s cubic-bezier(.2,.7,.1,1) both; }
@keyframes cmdk-image { from { opacity: 0; transform: scale(1.04); filter: grayscale(1); } }
.cmdk-preview-glyph { display: flex; align-items: flex-end; aspect-ratio: 16 / 10; margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--night-rule); color: var(--accent); font-weight: 500; font-size: clamp(64px, 8vw, 120px); line-height: 0.85; letter-spacing: -0.07em; animation: cmdk-image .45s cubic-bezier(.2,.7,.1,1) both; }
.cmdk-preview-kicker { color: #8fa0ff; }
.cmdk-preview-title { font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.cmdk-preview-text { margin: 0; color: var(--night-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmdk-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cmdk-preview-tags .label { border: 1px solid var(--night-rule); padding: 3px 7px; color: var(--night-text); }

.cmdk-foot { display: flex; align-items: center; gap: 20px; padding: 12px 24px; border-top: 1px solid var(--night-rule); color: var(--night-2); }
.cmdk-foot kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 4px; padding: 0 5px; border: 1px solid var(--night-rule); color: var(--night-text); font: inherit; }
.cmdk-foot-end { margin-left: auto; }
@media (max-width: 820px) {
  .cmdk-main { grid-template-columns: minmax(0, 1fr); }
  .cmdk-preview { display: none; }
}
@media (hover: none) { .cmdk-foot { display: none; } }
@media (max-width: 560px) {
  .cmdk { width: calc(100vw - 16px); height: calc(100dvh - 72px); margin-top: 64px; }
  .cmdk-bar, .cmdk-field, .cmdk-try, .cmdk-group, .cmdk-item, .cmdk-empty { padding-left: 16px; padding-right: 16px; }
  .cmdk-prompt, .cmdk-input { font-size: 30px; }
  .cmdk-item { grid-template-columns: 26px minmax(0, 1fr) 16px; }
  .cmdk-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cmdk[open], .cmdk[open]::backdrop, .cmdk-item, .cmdk-preview-media img, .cmdk-preview-glyph { animation: none; }
}

/* Keyboard hint and reading progress */
.key-hint { opacity: 0.7; }
@media (max-width: 1000px), (hover: none) { .key-hint { display: none; } }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.story-of { color: var(--ink-3); }
.story-index a.is-current { color: var(--accent); border-top-color: var(--accent); }
.story-index a.is-current .label { color: var(--accent); }
@media print { .read-progress, .cmdk { display: none !important; } }

/* CV */
.cv-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.cv-actions .pitch-primary { border: 0; cursor: pointer; }
.cv-actions .pitch-secondary { color: var(--ink); }
.cv-actions .pitch-secondary:hover { color: var(--accent); }
.cv-sheet { padding-top: clamp(48px, 6vw, 80px); row-gap: 0; }
.cv-top { grid-column: 1 / -1; padding-bottom: 28px; }
.cv-name { margin: 0; font-weight: 500; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.94; letter-spacing: -0.06em; }
.cv-name .accent { color: var(--accent); }
.cv-role { margin: 14px 0 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; color: var(--ink-2); }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-size: 12px; }
.cv-contact a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); transition: color .2s, border-color .2s; }
.cv-contact a:hover { color: var(--accent); border-color: currentColor; }
.cv-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--rule-strong); padding: 22px 0 26px; }
.cv-row > h2 { grid-column: 1 / span 3; margin: 0; padding-top: 0.35em; color: var(--ink-3); font-weight: 500; }
.cv-body { grid-column: 4 / -1; margin: 0; padding: 0; min-width: 0; }
.cv-lede { margin: 0; max-width: 46em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); }
.cv-list { list-style: none; display: grid; gap: 18px; }
.cv-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cv-item-head strong { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.cv-item-head strong a { border-bottom: 1px solid var(--rule-strong); }
.cv-item-head strong a:hover { color: var(--accent); border-color: currentColor; }
.cv-item-head > span { color: var(--ink-2); font-size: 15px; }
.cv-when { color: var(--accent) !important; }
.cv-item p { margin: 6px 0 0; max-width: 62ch; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cv-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.cv-skills dt { color: var(--ink-3); }
.cv-skills dd { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.cv-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cv-facts strong { display: block; font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -0.05em; }
.cv-facts span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.cv-notes { list-style: none; display: grid; gap: 8px; }
.cv-notes a { font-size: 16px; border-bottom: 1px solid var(--rule-strong); transition: color .2s, border-color .2s; }
.cv-notes a:hover { color: var(--accent); border-color: currentColor; }
@media (max-width: 700px) {
  .cv-row > h2, .cv-body { grid-column: 1 / -1; }
  .cv-row { row-gap: 12px; }
  .cv-skills, .cv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-actions .pitch-primary { width: auto; }
}

@media print {
  @page { size: A4; margin: 12mm 14mm; }
  html, body { background: #fff !important; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
  .gridlines, .chrome, .contact, .cv-head, .read-progress, .cmdk { display: none !important; }
  .grid { max-width: none; padding: 0; column-gap: 12px; }
  .cv-sheet { display: block; padding-top: 0; }
  .cv-row { display: grid !important; grid-template-columns: 96px minmax(0, 1fr) !important; column-gap: 16px; row-gap: 0 !important; }
  .cv-row > h2 { grid-column: 1 !important; }
  .cv-row > .cv-body { grid-column: 2 !important; }
  .cv-skills { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cv-facts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; }
  .cv-top { padding-bottom: 10px; }
  .cv-name { font-size: 30pt; }
  .cv-role { margin-top: 4px; font-size: 13pt; }
  .cv-contact { margin-top: 8px; font-size: 8.5pt; gap: 2px 14px; }
  .cv-contact a, .cv-notes a, .cv-item-head strong a { border: 0; color: #000; }
  .cv-row { padding: 8px 0 9px; break-inside: avoid; }
  .cv-row > h2 { font-size: 7.5pt; }
  .cv-lede { font-size: 10pt; line-height: 1.4; }
  .cv-list { gap: 6px; }
  .cv-item-head strong { font-size: 10.5pt; }
  .cv-item-head > span, .cv-item p, .cv-skills dd, .cv-notes a { font-size: 9pt; }
  .cv-item p { margin-top: 2px; line-height: 1.38; }
  .cv-skills { gap: 6px 20px; }
  .cv-skills dt { font-size: 7.5pt; }
  .cv-skills dd { margin-top: 2px; }
  .cv-facts strong { font-size: 18pt; }
  .cv-facts span { font-size: 8pt; margin-top: 2px; }
  .cv-notes { gap: 2px; }
  * { animation: none !important; transition: none !important; }
}
.cv-where { color: var(--ink-3) !important; font-size: 14px !important; }
.cv-item-head .cv-when { margin-left: auto; }
.cv-points { margin: 8px 0 0; padding: 0; list-style: none; max-width: 70ch; }
.cv-points li { position: relative; padding-left: 18px; margin-bottom: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cv-points li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.cv-facts strong { white-space: nowrap; }
@media (max-width: 700px) { .cv-item-head .cv-when { margin-left: 0; width: 100%; } }
@media print {
  .cv-row.cv-row-writing, .cv-row.cv-row-highlights { display: none !important; }
  .cv-points { list-style: disc outside; padding-left: 13px; }
  .cv-points li { padding-left: 0 !important; }
  .cv-points li::before { content: none; }
  .cv-points li::marker { color: #2340ff; }
  .cv-where { font-size: 8.5pt !important; }
  .cv-points { margin-top: 3px; }
  .cv-points li { font-size: 9pt; line-height: 1.36; margin-bottom: 1px; padding-left: 12px; }
  .cv-item-head .cv-when { font-size: 7.5pt; }
}
.role-when { display: block; margin-top: 6px; color: var(--ink-3); }
.role:hover .role-when { color: var(--night-2); }
.cmdk-bar { grid-row: 1; }
.cmdk-field { grid-row: 2; }
.cmdk-try { grid-row: 3; }
.cmdk-main { grid-row: 4; }
.cmdk-foot { grid-row: 5; }
