/* PROOF / 26 — Layout, colour and motion. Type and spacing live in system.css. */

:root {
  --paper: #e9e2d4;
  --paper-light: #f2ece0;
  --ink: #0d0d0b;
  --ink-soft: #1b1b18;
  --muted: #625b4f;
  --muted-dark: #a59d8d;
  --rule: rgba(13, 13, 11, .24);
  --rule-soft: rgba(13, 13, 11, .12);
  --rule-dark: rgba(233, 226, 212, .24);
  --red: #df3b22;
  --red-deep: #b92b17;
  --red-ink: #b92b17;
  --red-light: #ff7058;
  --live: #74d38c;
  --pad: var(--page-pad);
  --max: var(--shell-max);
  --header: var(--header-h);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.intro-open,
html.intro-open body { overflow: hidden; }
::selection { background: var(--red); color: var(--paper-light); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
li { list-style: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.shell {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.kicker { color: var(--muted); }
.kicker--red { color: var(--red); }
.kicker--light { color: var(--muted-dark); }
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.status::before {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.status--live { color: var(--live); }
.status--dev { color: var(--red); }
.status--muted { color: var(--muted-dark); }
.status--dark { color: var(--ink); }

/* Entrance */

.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-light);
  clip-path: inset(0 0 0 0);
  transition: clip-path .55s cubic-bezier(.76, 0, .24, 1);
}
html.intro-live .intro { display: block; }
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__frame {
  position: absolute;
  inset: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.intro__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-3);
  color: var(--muted-dark);
}
.intro__type {
  align-self: flex-start;
  padding: 4vh 0;
}
.intro__word { display: block; overflow: hidden; }
.intro__word + .intro__word { padding-left: .45em; color: var(--red); }
.intro__word span {
  display: block;
  transform: translateY(115%);
  animation: intro-rise .72s var(--ease) forwards;
}
.intro__word:nth-child(2) span { animation-delay: .08s; }
.intro__scan {
  position: absolute;
  top: 50%;
  right: var(--pad);
  left: var(--pad);
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-scan .7s .18s var(--ease-soft) forwards;
}
.intro__skip {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) + var(--space-3));
  z-index: 2;
  padding: var(--space-2) 0;
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.intro__skip:hover { color: var(--red); }
@keyframes intro-rise { to { transform: translateY(0); } }
@keyframes intro-scan { to { transform: scaleX(1); } }

/* Header */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: rgba(233, 226, 212, .97);
  color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.site-head.is-dark {
  border-color: var(--rule-dark);
  background: rgba(13, 13, 11, .97);
  color: var(--paper);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header);
}
.mark {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  text-decoration: none;
}
.mark span {
  color: var(--muted);
}
.site-head.is-dark .mark span { color: var(--muted-dark); }
.nav {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  margin-left: auto;
}
.nav a {
  padding: var(--space-2) 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-color: currentColor; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid currentColor;
  border-bottom: 1px solid currentColor !important;
  background: var(--ink);
  color: var(--paper);
}
.site-head.is-dark .nav__cta { background: var(--paper); color: var(--ink); }
.nav__cta:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.site-head.is-dark .nav__cta:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  list-style: none;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.mobile-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 0;
  min-width: 210px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--rule);
  background: var(--paper-light);
  color: var(--ink);
}
.mobile-menu nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule-soft); text-decoration: none; }
.mobile-menu nav a:last-child { border-bottom: 0; }

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding-top: var(--header);
  border-bottom: 1px solid var(--rule);
}
.hero > .shell {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero__rail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.hero__rail span:nth-child(2) { text-align: center; }
.hero__rail span:last-child { text-align: right; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 29vw);
  gap: var(--gutter);
  flex: 1;
  align-items: stretch;
  padding: var(--space-block-sm) 0 var(--space-6);
}
.hero__type {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.hero__name {
  max-width: 100%;
  overflow-wrap: normal;
}
.hero__name span { display: block; }
.hero__name span:last-child { padding-left: .46em; color: var(--red); }
.hero__statement {
  max-width: 680px;
  padding-top: var(--space-10);
}
.hero__promise {
  max-width: 17ch;
  text-wrap: balance;
}
.hero__promise em { color: var(--red); font-style: normal; }
.hero__intro {
  max-width: var(--measure-narrow);
  margin-top: var(--space-5);
  color: var(--muted);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 46px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.text-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--red); }
.hero__feature {
  position: relative;
  display: block;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  background: var(--ink-soft);
  color: var(--paper-light);
  text-decoration: none;
  clip-path: inset(0 0 0 0);
}
.js .hero__feature { clip-path: inset(0 0 100% 0); transition: clip-path .9s .45s var(--ease); }
.js.is-ready .hero__feature { clip-path: inset(0 0 0 0); }
.hero__feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(.92) contrast(1.04);
  transition: transform 1.1s var(--ease), filter .5s ease;
}
.hero__feature:hover img { transform: scale(1.035); filter: saturate(1.05) contrast(1.04); }
.hero__feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,11,.12), transparent 34%, rgba(13,13,11,.72));
  content: "";
  pointer-events: none;
}
.hero__feature-top {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.hero__feature-index {
  color: var(--paper-light);
}
.hero__feature-caption {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-4);
  align-items: end;
}
.hero__feature-caption strong {
  grid-column: 1 / -1;
}
.hero__feature-caption span:last-child { text-align: right; }
.hero__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0 var(--space-4);
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.hero__foot a { text-decoration: none; }
.hero__foot a:hover { color: var(--red); }
.hero__foot span:last-child { text-align: right; }

/* Work */

.work {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-section-lg) 0 var(--space-section);
}
.work__head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: var(--space-6);
  align-items: end;
}
.work__head .kicker { color: var(--muted-dark); }
.work__title {
  margin-top: var(--space-4);
}
.work__title span { color: var(--red); }
.work__note {
  justify-self: end;
  max-width: 30ch;
  padding-bottom: var(--space-1);
  color: var(--muted-dark);
}
.work__note strong { display: block; color: var(--paper);  }
.sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-section-sm) var(--gutter);
  margin-top: var(--space-section-sm);
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.project--lead { grid-column: span 7; }
.project--depth { grid-column: span 5; }
.project--third { grid-column: span 4; }
.project--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-component); align-items: end; }
.project__figure {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1d1d1a;
}
.project--depth .project__figure { aspect-ratio: 4 / 3; }
.project--third .project__figure { aspect-ratio: 4 / 3; }
.project--wide .project__figure { aspect-ratio: 4 / 5; }
.project__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.03);
  transition: transform .85s var(--ease), filter .35s ease;
}
.project:hover .project__figure img,
.project:focus-visible .project__figure img { transform: scale(1.035); filter: saturate(1.05) contrast(1.03); }
.project__info { display: flex; flex-direction: column; min-width: 0; }
.project__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--rule-dark);
  color: var(--muted-dark);
}
.project__top span:first-child { color: var(--paper); }
.project__name {
  margin-top: var(--space-4);
  transition: color .2s ease;
}
.project:hover .project__name,
.project:focus-visible .project__name { color: var(--red); }
.project__job {
  max-width: 34ch;
  margin-top: var(--space-2);
  color: var(--muted-dark);
}
.project__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--muted-dark);
}
.project__meta span:last-child { color: var(--paper); white-space: nowrap; }
.project__arrow { display: inline-block; transition: transform .25s var(--ease); }
.project:hover .project__arrow { transform: translate(3px, -3px); color: var(--red); }
.project--wide .project__info { padding-bottom: var(--space-1); }
.project--wide .project__name { margin-top: var(--space-4);  }
.project--wide .project__job { max-width: 26ch; margin-top: var(--space-4);  }
.project--wide .project__meta { margin-top: var(--space-8); }
.project--wide .project__figure { aspect-ratio: 4 / 3; min-height: 0; }
.project--wide .project__figure img { object-position: 35% center; }
.project--wide .status--dev { color: #ff7058; }

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: translateY(0); }
.js .project { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .project.is-in { opacity: 1; transform: translateY(0); }
.js .project:nth-child(2) { transition-delay: .06s; }
.js .project:nth-child(3) { transition-delay: .1s; }
.js .project:nth-child(4) { transition-delay: .14s; }
.js .project:nth-child(5) { transition-delay: .18s; }
.js .project:nth-child(6) { transition-delay: .22s; }

/* Aperture cursor */

.trace {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity .18s ease, width .22s var(--ease), height .22s var(--ease), margin .22s var(--ease);
}
.trace.is-on { opacity: 1; }
.trace.is-open { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.trace__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--red);
  border-style: solid;
}
.trace__corner:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.trace__corner:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.trace__corner:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.trace__corner:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.trace__label {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  color: var(--red);
  white-space: nowrap;
}
.trace.is-open .trace__label { top: calc(100% + 5px); }

/* About */

.about {
  padding: var(--space-section-lg) 0;
  border-bottom: 1px solid var(--rule);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-section-sm);
  align-items: start;
}
.about__title {
  margin-top: var(--space-5);
}
.about__title span { color: var(--red); }
.about__copy { max-width: 580px; padding-top: var(--space-7); }
.about__copy p { margin-top: var(--space-4); color: var(--muted);   text-wrap: pretty; }
.about__copy p:first-child { margin-top: 0; color: var(--ink);    }
.about__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-7);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.about__facts div { min-height: 72px; padding: var(--space-3); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about__facts dt { color: var(--muted);     }
.about__facts dd { margin-top: var(--space-2);   }
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.about__skills span {
  padding: var(--space-2);
  border: 1px solid var(--rule);
}

/* Contact */

.contact {
  padding: var(--space-section-lg) 0 var(--space-7);
  background: var(--ink);
  color: var(--paper);
}
.contact .kicker { color: var(--muted-dark); }
.contact__title {
  max-width: none;
  margin-top: var(--space-5);
}
.contact__title span { display: block; color: var(--red); }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-7);
  margin-top: var(--space-block);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-dark);
}
.contact__note { max-width: 30ch; color: var(--muted-dark);  }
.contact__note strong { display: block; margin-bottom: var(--space-1); color: var(--paper);  }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.contact__number {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dark);
}
.contact__number:hover { color: var(--red); border-color: var(--red); }
.contact__fine { margin-top: var(--space-8); color: var(--muted-dark);      }

/* Footer */

.site-foot { padding: var(--space-5) 0; background: var(--ink); color: var(--muted-dark); }
.site-foot__inner { display: flex; justify-content: space-between; gap: var(--space-5); border-top: 1px solid var(--rule-dark); padding-top: var(--space-3); }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { color: var(--red); }

/* Case pages */

.case-page main { padding-top: var(--header); }
.case-hero { padding: var(--space-section-sm) 0 0; }
.case-hero__top { display: flex; justify-content: space-between; gap: var(--space-5); align-items: center; }
.case-hero__top .kicker { color: var(--muted); }
.case-title {
  margin-top: var(--space-block-sm);
}
.case-page--autopro .case-title { color: var(--red); }
.case-deck {
  max-width: 760px;
  margin-top: var(--space-6);
  text-wrap: pretty;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-7) 0 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.case-meta div { padding: var(--space-3); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.case-meta dt { color: var(--muted);     }
.case-meta dd { margin-top: var(--space-2);  }
.case-meta a { text-decoration: none; border-bottom: 1px solid var(--red); }
.case-plate { margin-top: var(--space-block-sm); }
.case-plate img { width: 100%; max-height: 76svh; object-fit: cover; object-position: top; }
.case-plate figcaption { display: flex; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-2); color: var(--muted);      }
.case-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: var(--space-section-sm);
  justify-content: space-between;
  padding: var(--space-section) 0;
}
.case-toc { position: sticky; top: calc(var(--header) + var(--space-7)); align-self: start; }
.case-toc .label { color: var(--muted); }
.case-toc ol { margin-top: var(--space-4); }
.case-toc li + li { border-top: 1px solid var(--rule-soft); }
.case-toc a { display: block; padding: var(--space-2) 0; color: var(--muted);    text-decoration: none;  }
.case-toc a:hover, .case-toc a[aria-current] { color: var(--red); }
.case-toc .back { margin-top: var(--space-5); }
.case-toc .back a { color: var(--ink); border-bottom: 1px solid var(--red); }
.case-body { min-width: 0; }
.case-section { padding: 0 0 var(--space-block); }
.case-section + .case-section { padding-top: var(--space-block-sm); border-top: 1px solid var(--rule); }
.case-section h2 { margin-bottom: var(--space-5);       }
.case-section p { max-width: var(--measure); color: var(--ink-soft);   }
.case-section p + p { margin-top: var(--space-4); }
.case-section ul { margin-top: var(--space-4); border-top: 1px solid var(--rule-soft); }
.case-section li { padding: var(--space-2) 0; border-bottom: 1px solid var(--rule-soft); color: var(--muted);  }
.case-limit { padding: var(--space-5); border: 1px solid var(--ink); background: var(--paper-light); }
.case-limit h2 { margin-bottom: var(--space-3);  }
.case-limit p { color: var(--ink); }
.case-limit ul { margin-top: var(--space-5); }
.case-limit li { color: var(--ink-soft); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: var(--space-5); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.evidence-card { padding: var(--space-4); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.evidence-card p, .evidence-card li { margin-top: var(--space-2); color: var(--muted);   }
.evidence-card ul { margin-top: var(--space-2); border-top: 0; }
.evidence-card li { padding: var(--space-1) 0; border-bottom: 0; }
.evidence-card a { text-decoration: none; border-bottom: 1px solid var(--red); }
.case-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5); align-items: end; padding-top: var(--space-7); border-top: 1px solid var(--ink); }
.case-end p { max-width: 38ch; color: var(--muted);  }
.case-end nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.case-end a {    text-decoration: none;  border-bottom: 1px solid var(--red); }

/* More work */

.more-head { padding: var(--space-section) 0 0; }
.more-title { margin-top: var(--space-5);       }
.more-title span { color: var(--red); }
.more-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-7); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.more-intro p { max-width: var(--measure-wide); color: var(--muted);  }
.more-list { display: grid; gap: 0; padding: var(--space-section-sm) 0 var(--space-section); }
.more-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-section-sm); padding: var(--space-block) 0; border-top: 1px solid var(--rule); }
.more-item:last-child { border-bottom: 1px solid var(--rule); }
.more-item__figure { align-self: start; overflow: hidden; background: var(--ink); }
.more-item__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.more-item__figure figcaption { padding-top: var(--space-2); color: var(--muted);      }
.more-item__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; }
.more-item__job { margin-top: var(--space-2); color: var(--muted);  }
.more-item__notes { margin-top: var(--space-6); }
.more-item__notes div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-2) 0; border-top: 1px solid var(--rule-soft); }
.more-item__notes dt { color: var(--muted);     }
.more-item__notes dd { color: var(--ink-soft);   }
.more-item__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; margin-top: var(--space-6); }
.more-item__links a {    text-decoration: none;  border-bottom: 1px solid var(--red); }

/* Responsive */

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 32vw); }
  .work__head { grid-template-columns: minmax(0, 1fr) minmax(200px, .55fr); }
  .project--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); padding-top: var(--space-6); }
  .hero { min-height: auto; }
  .hero__name span:last-child { padding-left: .3em; }
  .hero__feature { min-height: 0; aspect-ratio: 4 / 5; max-height: 66svh; }
  .hero__statement { padding-top: var(--space-7); }
  .hero__promise { max-width: 17ch;  }
  .hero__intro { max-width: 55ch; }
  .work__head { grid-template-columns: 1fr; gap: var(--space-5); }
  .work__note { justify-self: start; max-width: 48ch; }
  .project--lead, .project--depth { grid-column: span 6; }
  .project--third { grid-column: span 6; }
  .project--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project--wide .project__figure { min-height: 0; aspect-ratio: 4 / 5; }
  .about__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .about__copy { max-width: 680px; padding-top: 0; }
  .case-layout { grid-template-columns: 1fr; }
  .case-toc { position: static; display: none; }
  .case-body { max-width: 760px; }
  .more-item { grid-template-columns: 1fr; gap: var(--space-6); }
  .more-item__figure { max-width: 680px; }
  .more-intro { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero__rail { grid-template-columns: 1fr auto; }
  .hero__rail span:nth-child(2) { display: none; }
  .hero__rail span:last-child { text-align: right; }
  .hero__statement { padding-top: var(--space-6); }
  .hero__actions { gap: var(--space-3) var(--space-4); }
  .hero__foot { align-items: start; }
  .hero__foot span:last-child { max-width: 14ch; }
  .sheet { gap: var(--space-section-sm) var(--space-4); }
  .project--lead, .project--depth, .project--third, .project--wide { grid-column: 1 / -1; }
  .project__figure, .project--depth .project__figure, .project--third .project__figure { aspect-ratio: 4 / 3; }
  .project--wide { display: flex; flex-direction: column; gap: 0; }
  .project--wide .project__figure { aspect-ratio: 4 / 3; }
  .project__meta { margin-top: var(--space-4); }
  .contact__title { max-width: none;  }
  .contact__row { display: block; }
  .contact__actions { margin-top: var(--space-6); }
  .site-foot__inner { display: block; }
  .site-foot p + p { margin-top: var(--space-2); }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta div:nth-child(3) { grid-column: 1 / -1; }
  .case-plate figcaption { display: block; }
  .case-plate figcaption span + span { display: block; margin-top: var(--space-1); }
  .case-layout { padding-top: var(--space-8); }
  .evidence-grid { grid-template-columns: 1fr; }
  .case-end { display: block; }
  .case-end nav { margin-top: var(--space-5); }
  .more-item { padding: var(--space-7) 0; }
  .more-item__notes div { grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); }
  .intro__frame { inset: var(--space-4); }
  .intro__type {  padding-top: 12vh; }
  .intro__word + .intro__word { padding-left: .25em; }
  .intro__meta { display: block; }
  .intro__meta span + span { display: block; margin-top: var(--space-1); }
  .intro__skip { right: var(--space-4); bottom: var(--space-7); }
}

@media (hover: none), (pointer: coarse) {
  .trace { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .intro { display: none !important; }
  .js .hero__feature { clip-path: none; }
  .js .project, .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .intro, .trace, .skip-link, .hero__foot, .site-foot, .contact__actions { display: none !important; }
  body { background: #fff; color: #000;  }
  .hero, .work, .about, .contact { background: #fff; color: #000; padding: 0 0 24pt; }
  .work { border-top: 1pt solid #000; }
  .hero { min-height: 0; padding-top: 0; }
  .hero__grid { display: block; }
  .hero__feature { display: none; }
  .sheet { display: block; margin-top: 20pt; }
  .project { break-inside: avoid; margin-top: 18pt; color: #000; }
  .project__figure { display: none; }
  .project__name, .project__job, .project__meta { color: #000; }
  .work__title, .about__title, .contact__title { color: #000;  }
  .contact { padding-top: 24pt; }
  a[href^="http"]::after { content: " (" attr(href) ")";  }
  .case-plate img { max-height: none; }
  .case-toc { display: none; }
  .case-layout { display: block; padding: 20pt 0; }
  .case-section { break-inside: avoid; }
}

/* Compact contact band on case pages */

.case-contact {
  padding: var(--space-section) 0 var(--space-section-sm);
  background: var(--ink);
  color: var(--paper);
}
.case-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-dark);
}
.case-contact h2 {
  max-width: 18ch;
  text-wrap: balance;
}

/* A typographic detail block used when a second screenshot would repeat the first */

.case-note {
  margin-top: var(--space-6);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.case-note .label { padding: var(--space-2) 0; color: var(--muted); border-bottom: 1px solid var(--rule-soft); }
.case-note ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-note li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3) var(--space-4) 0;
  color: var(--ink-soft);
}
.case-note li + li { padding-left: var(--space-3); border-left: 1px solid var(--rule-soft); }
.case-note li span { color: var(--red);    }

@media (max-width: 680px) {
  .case-note ol { grid-template-columns: 1fr; }
  .case-note li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .case-contact__row { display: block; }
  .case-contact .btn { margin-top: var(--space-6); }
}

/* Overflow guards for narrow screens */

.more-item,
.more-item > *,
.more-item__top > * { min-width: 0; }
@media (max-width: 680px) {
  .more-item__top { display: block; }
  .more-item__top .status { margin-top: var(--space-2); }}

/* Mobile type fit: the widest line sets the scale, not the viewport alone */

@media (max-width: 900px) {
  .hero__feature img { object-position: center 45%; }
}

.skip-link { opacity: 0; }
.skip-link:focus { opacity: 1; }
@media (max-width: 680px) {
  .intro__word + .intro__word { padding-left: .22em; }
  .project__name {  overflow-wrap: normal; }
}

/* Anchor landings clear the fixed header */
#work,
#about,
#contact,
.case-section,
.more-item { scroll-margin-top: calc(var(--header) + var(--space-3)); }

/* Contrast correction: brand red stays for large marks; small red text uses the deeper tone. */
.kicker--red { color: var(--red-ink); }
.status--dev { color: var(--red-ink); }
.work .status--dev,
.contact .status--dev,
.case-contact .status--dev,
.project--wide .status--dev { color: var(--red-light); }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--red { background: var(--red-deep); border-color: var(--red-deep); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.nav__cta:hover,
.site-head.is-dark .nav__cta:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--paper); }
.text-link:hover { color: var(--red-ink); }
.intro__skip:hover { color: var(--red-light); }
.trace__label { color: var(--red-light); }
.case-toc a:hover,
.case-toc a[aria-current] { color: var(--red-ink); }
.case-note li span { color: var(--red-ink); }
.contact__number:hover { color: var(--red-light); border-color: var(--red-light); }
.site-foot a:hover { color: var(--red-light); }

@media print {
  .js .project,
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* The hero uses a distinct detail crop, not the full screenshot in the work card. */
.hero__feature img { object-position: center; }
@media (max-width: 900px) {
  .hero__feature img { object-position: center 45%; }
}

/* On narrow screens the feature caption falls below the first viewport; name it at the top. */
.hero__feature-name { display: none; }
@media (max-width: 900px) {
  .hero__feature-top { gap: var(--space-2); }
  .hero__feature-name {
    display: inline-block;
    margin-right: auto;
    padding: var(--space-1) var(--space-2);
    background: rgba(15, 15, 12, .84);
    color: var(--paper-light);
  }
}

/* If the reveal script never initialises, the content must not stay invisible. */
.js:not(.reveal-ready) .project,
.js:not(.reveal-ready) .reveal { opacity: 1; transform: none; }

/* Viewport-height fallbacks for older engines. */
.hero { min-height: auto; }
.case-plate img { max-height: 76vh; max-height: 76svh; }
@media (max-width: 900px) {
  .hero__feature { max-height: 66vh; max-height: 66svh; }
}

@media (max-width: 980px) {
  .mobile-menu summary { min-height: 44px; }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .hero__feature {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trace { display: none !important; }
}

.project:hover .project__arrow { color: var(--red-light); }
.hero__feature-caption span { color: rgba(242, 236, 224, .76); }

/* The intro mask needs its own line box; size/leading tokens live in system.css. */
.intro__word { line-height: var(--leading-intro); }

.more-intro .label { color: var(--muted); }
.more-intro__links { margin-top: var(--space-2); }
.status--quiet { color: var(--muted); }
.status--wrap { white-space: normal; }

/* Editorial accents and line offsets */
.display-accent { color: var(--red); }
.hero__name .display-accent { padding-left: .12em; }
.work__title span { display: block; margin-left: var(--offset-line); }
.work__title span { color: inherit; }
.contact__title span { display: block; margin-left: var(--offset-line); color: inherit; }
.more-title span { display: block; margin-left: var(--offset-line); color: inherit; }
.case-title .display-accent { color: var(--red); }
.intro__word + .intro__word { padding-left: .12em; }

/* Interactive portrait hero */

.hero__grid--portrait {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 46vw);
  align-items: stretch;
}
.hero__identity { max-width: 34ch; }
.hero__role { margin-top: var(--space-3); color: var(--muted); }
.hero__portrait {
  --portrait-fg: var(--paper-light);
  --portrait-bg: var(--ink);
  --portrait-accent: var(--red);
  position: relative;
  width: 100%;
  max-width: 720px;
  height: clamp(520px, 68svh, 760px);
  margin: 0 0 0 auto;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-light);
  cursor: crosshair;
  touch-action: pan-y;
}
.hero__portrait-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: none;
  opacity: 1;
  transition: opacity .5s ease;
}
.hero__portrait.is-live .hero__portrait-fallback { opacity: 0; }
.hero__portrait-canvas,
.hero__portrait-canvas > .portrait {
  position: absolute;
  inset: 0;
}
.hero__portrait-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__portrait-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4);
  color: var(--paper-light);
  pointer-events: none;
  text-shadow: 0 1px 10px var(--ink), 0 0 2px var(--ink);
}
.hero__portrait-top,
.hero__portrait-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: start;
}
.hero__portrait-bottom { align-items: end; }
.hero__portrait-hint { text-align: right; }
.hero__portrait-hint--touch { display: none; }
.hero__portrait::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(233, 226, 212, .18);
  content: "";
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  .hero__portrait-hint--pointer { display: none; }
  .hero__portrait-hint--touch { display: inline; }
}
@media (max-width: 900px) {
  .hero__grid--portrait { grid-template-columns: 1fr; }
  .hero__portrait {
    width: min(100%, 560px);
    max-width: none;
    height: clamp(440px, 60svh, 600px);
    margin-inline: auto;
  }
}
@media (max-width: 680px) {
  .hero__portrait {
    width: min(100%, 480px);
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

.intro__title {
  position: absolute;
  top: calc(50% - 2.5rem);
  left: var(--pad);
  right: var(--pad);
  color: var(--paper);
}

.hero__portrait:not(.is-live) .hero__portrait-hint { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero__portrait { cursor: default; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__portrait-hint { display: none !important; }
}

/* The 3D portrait is the hero artwork. */
.hero__grid--portrait { grid-template-columns: minmax(0, 1fr) minmax(360px, 54vw); }
.hero__portrait {
  width: min(54vw, 820px);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-left: auto;
}
@media (max-width: 900px) {
  .hero__grid--portrait { grid-template-columns: 1fr; }
  .hero__portrait {
    width: min(100%, 620px);
    height: auto;
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }
}
@media (max-width: 680px) {
  .hero__portrait {
    width: min(100%, 520px);
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* Let the portrait stage run to the viewport edge rather than reading as a card. */
.hero__portrait::after { display: none; }
@media (min-width: 901px) {
  .hero__grid--portrait { margin-right: calc((100vw - min(var(--max), calc(100vw - (var(--pad) * 2)))) / -2); }
}

/* The portrait's right-edge bleed must not create a horizontal scrollbar on classic-scrollbar Windows. */
body { overflow-x: clip; }

/* Full-bleed ASCII sculpture scene */
.hero {
  position: relative;
  min-height: clamp(820px, 92svh, 1120px);
}
.hero > .shell {
  position: relative;
  z-index: 2;
}
.hero__grid--portrait {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}
.hero__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  cursor: crosshair;
  pointer-events: none;
}
.hero__portrait-canvas,
.hero__portrait-canvas > .portrait,
.hero__portrait-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__portrait-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 1;
  transition: opacity .5s ease;
}
.hero__portrait.is-live .hero__portrait-fallback { opacity: 0; }
.hero__portrait-ui {
  position: absolute;
  inset: 0;
  padding: calc(var(--header) + var(--space-5)) var(--pad) var(--space-4);
  color: var(--muted);
  text-shadow: 0 1px 0 var(--paper), 0 0 12px var(--paper);
}
.hero__portrait::after { display: none; }
@media (max-width: 900px) {
  .hero { min-height: 1100px; }
  .hero__grid--portrait { max-width: 620px; }
  .hero__portrait-ui { padding-top: calc(var(--header) + var(--space-4)); }
}
@media (max-width: 680px) {
  .hero { min-height: 1040px; }
  .hero__portrait-top { display: none; }
  .hero__portrait-ui { padding: var(--space-4); }
}
@media (hover: none), (pointer: coarse) {
  .hero__portrait { cursor: default; }
}

/* Floating portrait metadata sits above the hero foot, out of the rail. */
.hero__portrait-top { display: none; }
.hero__portrait-ui { padding: 0; }
.hero__portrait-bottom {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--space-4) + 54px);
  left: calc(var(--pad) + 48vw);
  flex-wrap: wrap;
  row-gap: var(--space-2);
  align-items: end;
}
.hero__portrait-bottom span:nth-child(2) { margin-left: auto; }
.hero__portrait-bottom .hero__portrait-hint { flex-basis: 100%; text-align: right; }
@media (max-width: 900px) {
  .hero__portrait-bottom { left: var(--pad); bottom: calc(var(--space-4) + 54px); }
}
@media (max-width: 680px) {
  .hero__portrait-bottom { left: var(--pad); right: var(--pad); }
}

.hero__portrait {
  --portrait-fg: var(--ink);
  --portrait-bg: transparent;
  --portrait-accent: var(--red);
}

/* Keep the floating labels out of the glyph field; the artwork needs the space. */
.hero__portrait-ui { display: none; }
.hero__portrait-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: baseline;
  margin-top: var(--space-5);
  color: var(--muted);
}
.hero__portrait-meta-hint { margin-left: auto; }
.hero__portrait-meta-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero__portrait-meta-hint { display: none; }
  .hero__portrait-meta-touch { display: inline; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__portrait-meta-hint, .hero__portrait-meta-touch { display: none; }
}

/* Keep the page index strip legible where the glyph field reaches the hero base. */
.hero__foot { position: relative; z-index: 3; background: var(--paper); }
.spec-readout { color: var(--red); white-space: nowrap; }

/* ============================================================
   Living wordmark hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header);
  overflow: clip;
  background: var(--paper);
}
.hero > .shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header));
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0 var(--space-6);
  color: var(--muted);
}
.hero__wordmark-stage {
  position: relative;
  width: calc(100% + var(--pad));
  margin: auto calc(var(--pad) * -1) 0 0;
  padding: var(--space-2) 0 var(--space-4);
}
.hero__wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Panchang", "Arial Black", system-ui, sans-serif;
  font-weight: 500;
  font-synthesis: none;
  text-transform: uppercase;
  transition: opacity .14s linear;
}
.hero__wordmark-line {
  display: block;
  white-space: nowrap;
  line-height: .8;
  letter-spacing: -.072em;
  font-weight: 500;
}
.hero__wordmark-line--first {
  font-size: clamp(4.6rem, 16.2vw, 15rem);
}
.hero__wordmark-line--second {
  align-self: flex-end;
  margin-top: .015em;
  color: var(--red);
  font-size: clamp(7rem, 25vw, 23rem);
  letter-spacing: -.08em;
}
.hero__wordmark-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__support {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-5) var(--space-8);
  align-items: end;
  max-width: 900px;
  padding: var(--space-7) 0 var(--space-6);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__promise {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.hero__promise em {
  color: var(--red);
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 500;
}
.hero__intro {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
}
.hero__support .hero__actions {
  grid-column: 2;
  margin-top: var(--space-1);
}
.hero__foot {
  margin-top: auto;
  background: var(--paper);
}
html.js .hero__wordmark,
html.js .hero__support,
html.js .hero__meta { opacity: 0; }
html.js .hero.is-static .hero__wordmark,
html.js .hero.is-static .hero__support,
html.js .hero.is-static .hero__meta { opacity: 1; }
html.js .hero.is-particle .hero__wordmark { opacity: 0; }
html.js .hero.is-particle .hero__support,
html.js .hero.is-particle .hero__meta {
  opacity: 0;
  transform: translateY(10px);
}
html.js .hero.is-assembled .hero__support,
html.js .hero.is-assembled .hero__meta { opacity: 1; transform: none; }
html.js .hero__meta { transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (max-width: 900px) {
  .hero__support {
    grid-template-columns: 1fr;
    max-width: 560px;
    padding-top: var(--space-6);
  }
  .hero__support .hero__actions { grid-column: 1; }
  .hero__wordmark-stage { margin-right: 0; width: 100%; }
}
@media (max-width: 680px) {
  .hero { min-height: auto; }
  .hero > .shell { min-height: calc(100svh - var(--header)); }
  .hero__meta { padding-top: var(--space-3); }
  .hero__wordmark-line--first { font-size: clamp(3rem, 16.7vw, 7.5rem); }
  .hero__wordmark-line--second { font-size: clamp(7rem, 43vw, 13rem); }
  .hero__wordmark-stage { padding: var(--space-3) 0 var(--space-5); }
  .hero__support { padding-top: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero.is-particle:not(.is-assembled) .hero__support,
  html.js .hero.is-particle:not(.is-assembled) .hero__meta { opacity: 1; transform: none; }
}

/* Paper intro: the same environment as the hero, not a separate loader skin. */
.intro { background: var(--paper); color: var(--ink); }
.intro__frame { border-color: var(--rule); }
.intro__meta { color: var(--muted); }
.intro__title { color: var(--ink); }
.intro__skip { color: var(--ink); border-bottom-color: var(--rule); }
.intro__skip:hover { color: var(--red); }
.spec-wordmark { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 5; background: var(--paper); border: 1px solid var(--rule); padding: var(--space-5); overflow: hidden; }
.spec-wordmark span { display: block; font-family: "Panchang", sans-serif; font-weight: 500; line-height: .74; letter-spacing: -.07em; text-transform: uppercase; }
.spec-wordmark span:first-child { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.spec-wordmark span:last-child { align-self: flex-end; color: var(--red); font-size: clamp(4.4rem, 8vw, 7.5rem); margin-top: .02em; }
.spec-wordmark span:last-child { margin-top: .04em; }

/* ============================================================
   Living wordmark + photographic ASCII
   ============================================================ */
.hero__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  grid-template-areas:
    "wordmark photo"
    "copy photo";
  column-gap: var(--gutter);
  row-gap: var(--space-5);
  align-items: start;
  flex: 1;
  padding-bottom: var(--space-4);
}
.hero__wordmark-col { grid-area: wordmark; min-width: 0; }
.hero__wordmark-stage {
  width: 100%;
  margin: 0;
  padding: 0 0 var(--space-4);
}
.hero__wordmark-line--first {
  font-size: clamp(4.2rem, 9.2vw, 8.5rem);
}
.hero__wordmark-line--second {
  font-size: clamp(6rem, 14vw, 12.5rem);
}
.hero__promise-wrap {
  max-width: 22ch;
  padding-top: var(--space-2);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__promise {
  max-width: 20ch;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.1vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variation-settings: normal;
  font-feature-settings: normal;
}
.hero__promise em {
  color: var(--red);
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-variation-settings: inherit;
  font-feature-settings: inherit;
}
.hero__copy {
  grid-area: copy;
  align-self: end;
  max-width: 560px;
}
.hero__support {
  display: block;
  max-width: none;
  padding: 0 0 var(--space-2);
}
.hero__support .hero__intro { max-width: 36ch; }
.hero__support .hero__actions { margin-top: var(--space-5); }
.hero__photo {
  grid-area: photo;
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  margin: 0;
  justify-self: end;
  background: transparent;
  cursor: crosshair;
  touch-action: pan-y;
}
.hero__photo-canvas,
.hero__photo-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__photo-fallback {
  object-fit: contain;
  opacity: 1;
  transition: opacity .4s ease;
}
.hero__photo.is-live .hero__photo-fallback { opacity: 0; }
html.js .hero__photo {
  animation: photo-emerge .95s .28s var(--ease) both;
}
@keyframes photo-emerge {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
html.js .hero__promise-wrap,
html.js .hero__support,
html.js .hero__meta { opacity: 0; }
html.js .hero.is-static .hero__promise-wrap,
html.js .hero.is-static .hero__support,
html.js .hero.is-static .hero__meta { opacity: 1; }
html.js .hero.is-particle .hero__promise-wrap,
html.js .hero.is-particle .hero__support,
html.js .hero.is-particle .hero__meta { opacity: 0; transform: translateY(10px); }
html.js .hero.is-assembled .hero__promise-wrap,
html.js .hero.is-assembled .hero__support,
html.js .hero.is-assembled .hero__meta { opacity: 1; transform: none; }
html.js .hero.is-particle .hero__wordmark { opacity: 0; }
html.js .hero.is-settled .hero__wordmark { opacity: 1; transition: opacity .28s linear; }
html.js .hero.is-settled .hero__wordmark-canvas { opacity: 0; transition: opacity .28s linear; }

@media (max-width: 900px) {
  .hero__columns {
    grid-template-columns: 1fr;
    grid-template-areas: "wordmark" "photo" "copy";
    row-gap: var(--space-6);
  }
  .hero__wordmark-line--first { font-size: clamp(4.2rem, 14vw, 8rem); }
  .hero__wordmark-line--second { font-size: clamp(7rem, 24vw, 12rem); }
  .hero__photo { width: min(100%, 560px); max-width: none; justify-self: center; }
  .hero__copy { max-width: 620px; }
}
@media (max-width: 680px) {
  .hero__wordmark-line--first { font-size: clamp(3rem, 16.7vw, 7.5rem); }
  .hero__wordmark-line--second { font-size: clamp(7rem, 43vw, 13rem); }
  .hero__photo { width: 100%; }
  .hero__promise { font-size: clamp(1.45rem, 5.5vw, 1.8rem); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero__photo { animation: none !important; opacity: 1; transform: none; }
  html.js .hero.is-particle .hero__promise-wrap,
  html.js .hero.is-particle .hero__support,
  html.js .hero.is-particle .hero__meta { opacity: 1; transform: none; }
  html.js .hero.is-particle .hero__wordmark { opacity: 1; }
}
html.js .hero.is-settled .hero__wordmark-canvas { opacity: 0 !important; visibility: hidden; }
.spec-accent-glyphs { margin-top: var(--space-4); color: var(--ink); font-size: clamp(2.4rem, 4vw, 4rem); line-height: .9; }
.spec-accent-glyphs .spec-readout { font-family: var(--font-body); font-size: var(--text-micro); font-style: normal; letter-spacing: 0; }

/* Recovered full-width wordmark, composed above the restored ASCII photograph. */
.hero__wordmark-stage {
  width: calc(100% + var(--pad));
  margin: 0 calc(var(--pad) * -1) 0 0;
  padding: var(--space-2) 0 var(--space-4);
}
.hero__wordmark-line--first { font-size: clamp(4.6rem, 16.2vw, 15rem); }
.hero__wordmark-line--second { font-size: clamp(7rem, 25vw, 23rem); }
.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: var(--gutter);
  align-items: start;
  flex: 1;
  padding: var(--space-5) 0 var(--space-4);
}
.hero__lower-copy {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  min-height: 100%;
}
.hero__promise-wrap { max-width: 22ch; padding-top: 0; }
.hero__promise {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.1vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variation-settings: normal;
  font-feature-settings: normal;
}
.hero__promise em {
  color: var(--red);
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 500;
}
.hero__support {
  margin-top: auto;
  padding-top: var(--space-8);
  max-width: 560px;
}
.hero__support .hero__intro { max-width: 36ch; }
.hero__support .hero__actions { margin-top: var(--space-5); }
.hero__photo { grid-area: auto; width: 100%; max-width: 560px; justify-self: end; }
@media (max-width: 900px) {
  .hero__lower { grid-template-columns: 1fr; }
  .hero__lower-copy { max-width: 620px; }
  .hero__photo { width: min(100%, 560px); max-width: none; justify-self: center; }
}
@media (max-width: 680px) {
  .hero__wordmark-line--first { font-size: clamp(3rem, 16.7vw, 7.5rem); }
  .hero__wordmark-line--second { font-size: clamp(5.75rem, 38.5vw, 12.5rem); }
  .hero__photo { width: 100%; }
  .hero__lower { padding-top: var(--space-3); }
  .hero__support { padding-top: var(--space-4); }
}

/* Restored composition: full-width identity above; photograph and copy share the lower field. */
.hero__lower-copy { min-height: 0; }
.hero__support { margin-top: var(--space-2); padding-top: 0; }
.hero__wordmark-line--second { margin-right: .75rem; }
@media (max-width: 900px) {
  .hero__lower { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .hero__photo { grid-row: 1; grid-column: 1; }
  .hero__lower-copy { grid-row: 2; grid-column: 1; }
  .hero__support { margin-top: var(--space-5); }
}
.spec-role-table { table-layout: fixed; }
.spec-role-table th, .spec-role-table td { overflow-wrap: anywhere; }

/* ============================================================
   Recovered hero: original 0343 wordmark + 1831 live ASCII portrait
   ============================================================ */

.hero {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding-top: var(--header);
  border-bottom: 1px solid var(--rule);
}
.hero > .shell { display: flex; flex-direction: column; flex: 1; }
.hero__rail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.hero__rail span:nth-child(2) { text-align: center; }
.hero__rail span:last-child { text-align: right; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 29vw);
  gap: clamp(20px, 3vw, 48px);
  flex: 1;
  align-items: stretch;
  padding: clamp(24px, 4vh, 54px) 0 26px;
}
.hero__type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hero__name {
  max-width: 100%;
  font-family: var(--font-accent);
  font-size: clamp(4.4rem, 11.3vw, 11.2rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .72;
  text-transform: uppercase;
  overflow-wrap: normal;
}
.hero__name span { display: block; }
.hero__name span:last-child { padding-left: .46em; color: var(--red); }
.hero__statement { max-width: 680px; padding-top: 40px; }
.hero__promise {
  max-width: 17ch;
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}
.hero__promise em {
  color: var(--red);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}
.hero__intro {
  max-width: 43ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}
.hero__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.hero__foot a { text-decoration: none; }
.hero__foot a:hover { color: var(--red); }
.hero__foot span:last-child { text-align: right; }

/* Live portrait, recovered from the 18:31 snapshot. */
.hero__portrait {
  --portrait-fg: var(--paper-light);
  --portrait-bg: var(--ink);
  --portrait-accent: var(--red);
  position: relative;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 420px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-light);
  cursor: crosshair;
  touch-action: pan-y;
}
.hero__portrait-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: none;
  opacity: 1;
  transition: opacity .5s ease;
}
.hero__portrait.is-live .hero__portrait-fallback { opacity: 0; }
.hero__portrait-canvas,
.hero__portrait-canvas > .portrait { position: absolute; inset: 0; }
.hero__portrait-canvas canvas { display: block; width: 100%; height: 100%; }
.hero__portrait-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: var(--paper-light);
  pointer-events: none;
  text-shadow: 0 1px 10px var(--ink), 0 0 2px var(--ink);
}
.hero__portrait-top,
.hero__portrait-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.hero__portrait-bottom { align-items: end; }
.hero__portrait-hint { text-align: right; }
.hero__portrait-hint--touch { display: none; }
.hero__portrait::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(233, 226, 212, .18);
  content: "";
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  .hero__portrait-hint--pointer { display: none; }
  .hero__portrait-hint--touch { display: inline; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .hero__name { font-size: clamp(4.4rem, 16vw, 9rem); }
  .hero__name span:last-child { padding-left: .3em; }
  .hero__portrait {
    width: min(100%, 620px);
    max-width: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }
  .hero__statement { padding-top: 32px; }
  .hero__promise { max-width: 17ch; font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
  .hero__intro { max-width: 55ch; }
}
@media (max-width: 680px) {
  .hero__name { font-size: clamp(4.15rem, 19vw, 7.3rem); }
  .hero__statement { padding-top: 24px; }
  .hero__promise { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__intro { font-size: 16px; }
  .hero__actions { gap: 14px 18px; }
  .hero__portrait { width: min(100%, 520px); height: auto; aspect-ratio: 4 / 5; }
  .hero__rail { grid-template-columns: 1fr auto; }
  .hero__rail span:nth-child(2) { display: none; }
  .hero__rail span:last-child { text-align: right; }
  .hero__foot { align-items: start; }
  .hero__foot span:last-child { max-width: 14ch; }
}
@media (max-width: 380px) {
  .hero__name { font-size: 3.9rem; }
  .hero__rail { font-size: 8px; }
  .hero__portrait { width: 100%; }
}
.hidden { display: none !important; }

/* Original mobile fit: the widest line sets the scale, not the viewport alone. */
@media (max-width: 680px) {
  .hero__name { font-size: clamp(3.15rem, 16.1vw, 6.8rem); }
}
@media (max-width: 380px) {
  .hero__name { font-size: 3.15rem; }
}

/* Clear the older floating-label rules; use the recovered in-frame labels. */
.hero__portrait-bottom {
  position: static;
  inset: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex-wrap: nowrap;
  row-gap: 0;
}
.hero__portrait-bottom span:nth-child(2) { margin-left: 0; }
.hero__portrait-bottom .hero__portrait-hint { flex-basis: auto; }
.hero__portrait::after { display: block; }
@media (max-width: 680px) {
  .hero__portrait-bottom { position: static; left: auto; right: auto; bottom: auto; }
}

/* ============================================================
   Immersive hero — full-bleed live ASCII field, compact identity
   ============================================================ */

.hero--immersive {
  position: relative;
  min-height: 100svh;
  padding-top: 0;
  overflow: clip;
  background: var(--ink);
  color: var(--paper-light);
  border-bottom: 1px solid var(--rule-dark);
}
.hero--immersive > .shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.hero--immersive .hero__rail {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: calc(var(--header) + 14px) 0 14px;
  color: rgba(242, 236, 224, .62);
  border-bottom: 1px solid rgba(242, 236, 224, .16);
}
.hero--immersive .hero__scene {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
}
.hero--immersive .hero__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  background: #0b0b09;
  cursor: crosshair;
  touch-action: pan-y;
}
.hero--immersive .hero__portrait::after { border: 0; }
.hero--immersive .hero__portrait-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
.hero--immersive .hero__portrait.is-live .hero__portrait-fallback { opacity: 0; }
.hero--immersive .hero__portrait-canvas,
.hero--immersive .hero__portrait-canvas > .portrait { position: absolute; inset: 0; }
.hero--immersive .hero__portrait-canvas canvas { display: block; width: 100%; height: 100%; }

.hero--immersive .hero__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 24px 0 26px;
  pointer-events: none;
}
.hero--immersive .hero__overlay::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 9, .92) 0%, rgba(11, 11, 9, .58) 29%, rgba(11, 11, 9, 0) 58%),
    linear-gradient(0deg, rgba(11, 11, 9, .9) 0%, rgba(11, 11, 9, .38) 30%, rgba(11, 11, 9, 0) 54%);
  content: "";
  pointer-events: none;
}
.hero--immersive .hero__identity {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 34ch;
  text-shadow: 0 2px 24px rgba(11, 11, 9, .9), 0 0 2px rgba(11, 11, 9, .9);
}
.hero--immersive .hero__name {
  display: flex;
  align-items: baseline;
  gap: .16em;
  max-width: none;
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 3.25vw, 3.4rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
  color: var(--paper-light);
  text-shadow: 0 2px 28px rgba(11, 11, 9, .95), 0 0 2px rgba(11, 11, 9, .95);
}
.hero--immersive .hero__name span { display: inline; }
.hero--immersive .hero__name span:last-child { padding: 0; color: var(--red-light); }
.hero--immersive .hero__role {
  margin-top: 10px;
  color: rgba(242, 236, 224, .58);
  font-size: 8px;
  letter-spacing: .12em;
}
.hero--immersive .hero__statement {
  position: relative;
  z-index: 1;
  max-width: 470px;
  padding: 0;
  text-shadow: 0 2px 26px rgba(11, 11, 9, .9), 0 0 2px rgba(11, 11, 9, .9);
}
.hero--immersive .hero__promise {
  max-width: 14ch;
  font-family: var(--font-body);
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
  color: var(--paper-light);
}
.hero--immersive .hero__promise em {
  color: var(--red-light);
  font-family: inherit;
  font-style: normal;
}
.hero--immersive .hero__intro {
  max-width: 38ch;
  margin-top: 16px;
  color: rgba(242, 236, 224, .64);
  font-size: 13px;
  line-height: 1.5;
}
.hero--immersive .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 20px;
  pointer-events: auto;
}
.hero--immersive .hero__actions .btn {
  min-height: 42px;
  border-color: var(--paper-light);
  background: var(--paper-light);
  color: var(--ink);
}
.hero--immersive .hero__actions .btn:hover {
  border-color: var(--red-light);
  background: var(--red-light);
  color: var(--ink);
}
.hero--immersive .hero__actions .text-link {
  color: var(--paper-light);
  border-color: rgba(242, 236, 224, .7);
}
.hero--immersive .hero__actions .text-link:hover { color: var(--red-light); border-color: var(--red-light); }

.hero--immersive .hero__foot {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  color: rgba(242, 236, 224, .58);
  border-top: 1px solid rgba(242, 236, 224, .16);
}
.hero--immersive .hero__foot a { color: var(--paper-light); text-align: right; }
.hero--immersive .hero__foot a:hover { color: var(--red-light); }
.hero__hint { color: rgba(242, 236, 224, .88); text-align: center; white-space: nowrap; }
.hero__hint--touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero__hint--pointer { display: none; }
  .hero__hint--touch { display: inline; }
}

@media (max-width: 900px) {
  .hero--immersive .hero__overlay { padding: 20px 0 24px; }
  .hero--immersive .hero__name { font-size: clamp(2rem, 5.6vw, 2.8rem); }
  .hero--immersive .hero__statement { max-width: 430px; }
  .hero--immersive .hero__promise { font-size: clamp(2rem, 5.4vw, 2.6rem); }
}
@media (max-width: 680px) {
  .hero--immersive .hero__rail { grid-template-columns: 1fr auto; padding-top: calc(var(--header) + 10px); }
  .hero--immersive .hero__rail span:nth-child(2) { display: none; }
  .hero--immersive .hero__overlay {
    padding: 22px 0 22px;
    background: linear-gradient(0deg, rgba(11,11,9,.9) 0%, rgba(11,11,9,.55) 42%, rgba(11,11,9,.04) 78%);
  }
  .hero--immersive .hero__overlay::before { display: none; }
  .hero--immersive .hero__name { font-size: clamp(2.2rem, 9.4vw, 2.8rem); }
  .hero--immersive .hero__role { font-size: 7px; }
  .hero--immersive .hero__statement { max-width: 100%; }
  .hero--immersive .hero__promise { font-size: clamp(2rem, 8vw, 2.4rem); max-width: 13ch; }
  .hero--immersive .hero__intro { max-width: 36ch; font-size: 12px; }
  .hero--immersive .hero__actions { gap: 12px 16px; margin-top: 16px; }
  .hero--immersive .hero__actions .btn { min-height: 40px; }
  .hero--immersive .hero__foot { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; }
  .hero--immersive .hero__foot .hero__hint { display: none; }
  .hero--immersive .hero__foot a { font-size: 8px; }
}
@media (max-width: 380px) {
  .hero--immersive .hero__name { font-size: 2.1rem; }
  .hero--immersive .hero__intro { font-size: 11px; }
}

/* Layer the copy over the full scene and keep the bottom rail dark. */
.hero--immersive .hero__overlay {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: auto;
}
.hero--immersive .hero__foot {
  background: transparent;
  color: rgba(242, 236, 224, .58);
}

/* Compact identity breathing room and mobile legibility scrim. */
.hero--immersive .hero__name { gap: .26em; }
@media (max-width: 680px) {
  .hero--immersive .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(11, 11, 9, .96) 0%,
        rgba(11, 11, 9, .78) 12%,
        rgba(11, 11, 9, .30) 27%,
        rgba(11, 11, 9, 0) 42%,
        rgba(11, 11, 9, .10) 56%,
        rgba(11, 11, 9, .74) 72%,
        rgba(11, 11, 9, .96) 86%,
        #0b0b09 100%);
  }
}

@media (max-width: 680px) {
  .hero--immersive .hero__overlay {
    background:
      linear-gradient(180deg,
        #0b0b09 0%,
        rgba(11, 11, 9, .98) 17%,
        rgba(11, 11, 9, .82) 25%,
        rgba(11, 11, 9, .24) 38%,
        rgba(11, 11, 9, 0) 50%,
        rgba(11, 11, 9, .34) 60%,
        rgba(11, 11, 9, .92) 72%,
        #0b0b09 85%,
        #0b0b09 100%);
  }
}

@media (max-width: 680px) {
  .hero--immersive .hero__foot { grid-template-columns: 1fr auto; }
  .hero--immersive .hero__foot > span:first-child { display: none; }
  .hero--immersive .hero__foot .hero__hint { display: inline; text-align: left; }
  .hero--immersive .hero__foot .hero__hint--pointer { display: none; }
  .hero--immersive .hero__foot .hero__hint--touch { display: inline; }
}

@media (min-width: 681px) and (max-width: 980px) {
  .hero--immersive .hero__overlay::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 9, .96) 0%, rgba(11, 11, 9, .78) 16%, rgba(11, 11, 9, .22) 31%, rgba(11, 11, 9, 0) 44%),
      linear-gradient(90deg, rgba(11, 11, 9, .9) 0%, rgba(11, 11, 9, .52) 30%, rgba(11, 11, 9, 0) 62%),
      linear-gradient(0deg, rgba(11, 11, 9, .94) 0%, rgba(11, 11, 9, .54) 24%, rgba(11, 11, 9, 0) 52%);
  }
}

/* No-JS header matches the dark immersive scene when the page has one. */
html.no-js body:has(.hero--immersive) .site-head {
  background: rgba(13, 13, 11, .97);
  color: var(--paper);
  border-color: var(--rule-dark);
}
html.no-js body:has(.hero--immersive) .site-head .mark span { color: var(--muted-dark); }

/* ============================================================
   ASCII typography hero — the wordmark is the artwork
   ============================================================ */

.hero--ascii {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0;
  overflow: clip;
  background: #0b0b09;
  color: var(--paper-light);
  border-bottom: 1px solid var(--rule-dark);
}
.hero--ascii > .shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.hero--ascii .hero__rail {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: calc(var(--header) + 14px) 0 14px;
  color: rgba(242, 236, 224, .58);
  border-bottom: 1px solid rgba(242, 236, 224, .16);
}
.hero--ascii .hero__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: center;
  min-height: clamp(340px, 48vh, 600px);
  padding: 1.5vh 0;
}
.hero--ascii .hero__name {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(4.6rem, 14.5vw, 14rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.075em;
  text-transform: uppercase;
  color: var(--paper-light);
  text-shadow: none;
  transition: opacity .18s linear;
}
.hero--ascii .hero__name span { display: block; }
.hero--ascii .hero__name span:last-child {
  padding-left: .46em;
  color: var(--red-light);
}
.hero--ascii .hero__ascii-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s linear;
}
.hero--ascii.is-ascii-ready .hero__ascii-canvas { opacity: 1; }
.hero--ascii.is-ascii-ready .hero__name { opacity: 0; }

.hero--ascii .hero__support {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 18px 0 18px;
  border-top: 1px solid rgba(242, 236, 224, .16);
}
.hero--ascii .hero__support-copy { max-width: 600px; }
.hero--ascii .hero__role {
  color: rgba(242, 236, 224, .52);
  font-size: 8px;
  letter-spacing: .12em;
}
.hero--ascii .hero__promise {
  max-width: 18ch;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--paper-light);
}
.hero--ascii .hero__promise em {
  color: var(--red-light);
  font-family: inherit;
  font-style: normal;
}
.hero--ascii .hero__intro {
  max-width: 48ch;
  margin-top: 10px;
  color: rgba(242, 236, 224, .58);
  font-size: 12px;
  line-height: 1.45;
}
.hero--ascii .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-bottom: 2px;
}
.hero--ascii .hero__actions .btn {
  min-height: 40px;
  border-color: var(--paper-light);
  background: var(--paper-light);
  color: var(--ink);
}
.hero--ascii .hero__actions .btn:hover {
  border-color: var(--red-light);
  background: var(--red-light);
  color: var(--ink);
}
.hero--ascii .hero__actions .text-link {
  color: var(--paper-light);
  border-color: rgba(242, 236, 224, .62);
}
.hero--ascii .hero__actions .text-link:hover {
  color: var(--red-light);
  border-color: var(--red-light);
}
.hero--ascii .hero__foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  color: rgba(242, 236, 224, .54);
  border-top: 1px solid rgba(242, 236, 224, .16);
}
.hero--ascii .hero__foot a { color: var(--paper-light); text-align: right; }
.hero--ascii .hero__foot a:hover { color: var(--red-light); }
.hero__hint { color: rgba(242, 236, 224, .84); text-align: center; white-space: nowrap; }
.hero__hint--touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero__hint--pointer { display: none; }
  .hero__hint--touch { display: inline; }
}

@media (max-width: 900px) {
  .hero--ascii .hero__stage { min-height: clamp(280px, 38vh, 430px); }
  .hero--ascii .hero__name { font-size: clamp(4.4rem, 16vw, 9rem); }
  .hero--ascii .hero__name span:last-child { padding-left: .3em; }
  .hero--ascii .hero__support { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
  .hero--ascii .hero__intro { max-width: 38ch; }
}
@media (max-width: 680px) {
  .hero--ascii .hero__rail { grid-template-columns: 1fr auto; padding-top: calc(var(--header) + 10px); }
  .hero--ascii .hero__rail span:nth-child(2) { display: none; }
  .hero--ascii .hero__stage { min-height: clamp(230px, 34vh, 330px); padding: 2vh 0; }
  .hero--ascii .hero__name { font-size: clamp(3rem, 16.7vw, 7.5rem); }
  .hero--ascii .hero__name span:last-child { padding-left: .3em; font-size: clamp(7rem, 43vw, 13rem); }
  .hero--ascii .hero__support { grid-template-columns: 1fr; gap: 16px; padding: 14px 0; }
  .hero--ascii .hero__promise { font-size: clamp(1.65rem, 6.4vw, 2rem); }
  .hero--ascii .hero__intro { font-size: 11px; max-width: 36ch; }
  .hero--ascii .hero__actions { gap: 10px 16px; }
  .hero--ascii .hero__actions .btn { min-height: 38px; }
  .hero--ascii .hero__foot { grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; }
  .hero--ascii .hero__foot > span:first-child { display: none; }
  .hero--ascii .hero__foot .hero__hint { display: inline; text-align: left; }
  .hero--ascii .hero__foot .hero__hint--pointer { display: none; }
  .hero--ascii .hero__foot .hero__hint--touch { display: inline; }
}
@media (max-width: 380px) {
  .hero--ascii .hero__name { font-size: 2.9rem; }
  .hero--ascii .hero__name span:last-child { font-size: 6.6rem; }
  .hero--ascii .hero__intro { font-size: 10px; }
}

.hero--ascii .hero__stage { touch-action: pan-y; }

.hero--ascii .hero__name span:last-child {
  font-size: clamp(7rem, 25vw, 23rem);
  padding-left: .46em;
}
@media (max-width: 900px) {
  .hero--ascii .hero__name span:last-child { font-size: clamp(7rem, 24vw, 12rem); padding-left: .3em; }
}
@media (max-width: 680px) {
  .hero--ascii .hero__name span:last-child { font-size: clamp(7rem, 43vw, 13rem); padding-left: .3em; }
}
@media (max-width: 380px) {
  .hero--ascii .hero__name span:last-child { font-size: 6.6rem; }
}

/* The approved wordmark uses the same display size for both lines. */
.hero--ascii .hero__name span:last-child { font-size: inherit; }
.hero--ascii .hero__foot { background: transparent; }

/* Final hierarchy: the name owns the viewport; supporting copy steps back. */
.hero--ascii .hero__name { font-size: clamp(4.6rem, 16.2vw, 15rem); }
@media (max-width: 680px) {
  .hero--ascii .hero__name { font-size: clamp(3rem, 16.7vw, 7.5rem); }
  .hero--ascii .hero__name span:last-child { font-size: clamp(7rem, 43vw, 13rem); }
  .hero--ascii .hero__intro { display: none; }
  .hero--ascii .hero__promise { font-size: clamp(1.5rem, 5.8vw, 1.9rem); }
}
@media (max-width: 680px) {
  .hero--ascii .hero__name { line-height: .9; }
}
@media (max-width: 680px) {
  .hero--ascii .hero__name span:last-child {
    font-size: clamp(6rem, 32vw, 9rem);
    padding-left: .08em;
  }
}
@media (max-width: 680px) {
  .hero--ascii .hero__promise { display: none; }
  .hero--ascii .hero__support { gap: 14px; }
}
html.no-js body:has(.hero--ascii) .site-head {
  background: rgba(13, 13, 11, .97);
  color: var(--paper);
  border-color: var(--rule-dark);
}
html.no-js body:has(.hero--ascii) .site-head .mark span { color: var(--muted-dark); }
html.no-js .hero--ascii .hero__hint { display: none; }
@media (max-width: 680px) {
  .hero--ascii .hero__name span:last-child {
    font-size: clamp(6rem, 43vw, 13rem);
    padding-left: 0;
  }
}

/* Production cleanup: no interface instructions. */
.hero--ascii .hero__rail { grid-template-columns: 1fr auto; }
.hero--ascii .hero__foot {
  display: flex;
  justify-content: flex-start;
  grid-template-columns: none;
}
.hero--ascii .hero__foot span:last-child { text-align: left; }
@media (max-width: 680px) {
  .hero--ascii .hero__foot > span:first-child { display: block; }
  .hero--ascii .hero__foot { display: flex; justify-content: flex-start; }
}

/* Static atmospheric texture; moves a little with the pointer via CSS. */
.hero--ascii .hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 62% 32%, rgba(96, 80, 58, .06), transparent 48%),
    url("assets/textures/grain.png");
  background-size: auto, 220px 220px;
  background-repeat: no-repeat, repeat;
  opacity: .9;
  transform: translate3d(var(--atmo-x, 0px), var(--atmo-y, 0px), 0) scale(1.02);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.hero--ascii .hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(0,0,0,.42) 100%);
}
.hero--ascii > .shell { z-index: 2; }
.hero--ascii .hero__atmosphere { will-change: transform; }
