/* Ellery Build Co - homepage concept
   Palette taken from their own logo disc and crew shirts. */

:root {
  --lime:        #d5ef34;
  --lime-deep:   #b9d21c;
  --lime-ink:    #556d0c;
  --ink:         #14170d;
  --ink-2:       #1e2214;
  --ink-3:       #2c3120;
  --paper:       #f4f2e8;
  --paper-2:     #fbfaf4;
  --body:        #4e5142;
  --body-light:  #b9bcab;
  --line:        rgba(20, 23, 13, 0.14);
  --line-light:  rgba(244, 242, 232, 0.18);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap:      min(90%, 1100px);
  --wrap-wide: min(94vw, 1480px);
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --pad-y:     clamp(4.5rem, 9vw, 8.5rem);
  --nav-h:     84px;

  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.35vw + 0.94rem, 1.14rem);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 3px;
}

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--lime); color: var(--ink);
  padding: 0.85rem 1.4rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- section label (the one repeated device) ---------- */

.label {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime-ink);
  margin: 0 0 1.5rem;
}
.on-ink .label { color: var(--lime); }
.label::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--lime); border: 1px solid var(--lime); border-radius: 2px; }
.on-ink .label::before { border-color: transparent; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn__arrow { width: 18px; height: 10px; flex: none; }
.btn__arrow path { stroke: currentColor; stroke-width: 1.8; fill: none; }

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 242, 232, 0.55);
  color: var(--paper-2);
}
.btn--ghost:hover { background: rgba(244, 242, 232, 0.12); border-color: var(--paper-2); }

.btn--ink {
  background: var(--ink); border-color: var(--ink); color: var(--paper-2);
}
.btn--ink:hover { background: var(--ink-3); border-color: var(--ink-3); }

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

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(15, 17, 9, 0.82) 0%, rgba(15, 17, 9, 0.42) 55%, rgba(15, 17, 9, 0) 100%);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-solid {
  background: var(--ink);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.nav__inner {
  width: var(--wrap-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand__mark {
  width: auto; height: 46px; max-width: 46px; object-fit: contain;
}
.brand__type {
  font-family: var(--font-display);
  font-size: 1.16rem; line-height: 1.1; color: var(--paper-2);
  letter-spacing: 0.01em;
}
.brand__type span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--lime);
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; color: var(--paper-2);
  padding: 0.4rem 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { min-height: 46px; padding: 0.6rem 1.25rem; font-size: 0.92rem; }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-light);
  cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--paper-2);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--paper-2);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }

/* ---------- mobile drawer ---------- */

.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 1.5rem var(--gutter) 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.drawer__close {
  width: 48px; height: 48px; flex: none;
  background: transparent; border: 1px solid var(--line-light);
  color: var(--paper-2); cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.drawer__links {
  display: flex; flex-direction: column; gap: 0.35rem;
  margin-top: clamp(2rem, 8vh, 4rem);
}
.drawer__links a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  color: var(--paper-2); text-decoration: none;
  padding: 0.35rem 0;
}
.drawer__foot { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.drawer__foot a { color: var(--lime); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.drawer__foot p { color: var(--body-light); font-size: 0.92rem; margin: 0.5rem 0 0; }

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

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15, 17, 9, 0.9) 0%, rgba(15, 17, 9, 0.62) 32%, rgba(15, 17, 9, 0) 62%),
    linear-gradient(to top, rgba(15, 17, 9, 0.88) 0%, rgba(15, 17, 9, 0.18) 42%, rgba(15, 17, 9, 0) 70%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: var(--wrap-wide); margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: calc(var(--nav-h) + 2rem);
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--paper-2);
  font-size: clamp(2.55rem, 6.1vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 15ch;
  margin-bottom: 1.5rem;
}
.hero h1 b { font-weight: 400; color: var(--lime); }
.hero__sub {
  color: var(--paper-2);
  font-size: clamp(1.08rem, 1vw + 0.85rem, 1.32rem);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__licence {
  margin-top: 2.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--body-light); font-weight: 600;
  max-width: 52ch;
}

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

.sec { padding-block: var(--pad-y); }
.sec--paper  { background: var(--paper); }
.sec--paper2 { background: var(--paper-2); }
.sec--ink    { background: var(--ink); }
.sec--ink2   { background: var(--ink-2); }
.on-ink { color: var(--body-light); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--paper-2); }

.h-xl { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; }
.h-lg { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.12; }
.h-md { font-size: clamp(1.35rem, 1.6vw + 0.9rem, 1.85rem); line-height: 1.2; }

/* ---------- intro ---------- */

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.intro__stats {
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.intro__stat dt {
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime-ink);
  margin-bottom: 0.4rem;
}
.intro__stat dd {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.2vw + 0.85rem, 1.5rem);
  color: var(--ink); line-height: 1.25;
}

/* ---------- stages (signature moment) ---------- */

.stages__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.stages__head p { color: var(--body-light); max-width: 44ch; margin: 0; }
.stages__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
}
.stage { position: relative; }
.stage__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--ink-3);
}
.stage__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.8s var(--ease);
}
.stage:hover .stage__frame img { transform: scale(1.08); }
.stage__step {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--lime); color: var(--ink);
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.42rem 0.8rem;
}
.stage h3 {
  color: var(--paper-2);
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.4rem);
  margin: 1.1rem 0 0.4rem;
}
.stage p { font-size: 0.96rem; color: var(--body-light); margin: 0; max-width: 32ch; }

/* ---------- services ---------- */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.svc + .svc { margin-top: clamp(3rem, 6vw, 5.5rem); }
.svc__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: clamp(1.8rem, 4vw, 3.6rem); background: var(--paper-2); }
.svc--flip .svc__media { order: 2; }
.svc--flip .svc__body { order: 1; }
.svc__no {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime-ink);
  display: block; margin-bottom: 0.85rem;
}
.svc h3 { margin-bottom: 1rem; }
.svc__body p { font-size: 1.02rem; }
.svc__body .btn { margin-top: 0.6rem; }

/* ---------- crew band ---------- */

.crew { position: relative; background: var(--ink); }
.crew__media { position: relative; }
.crew__media img {
  width: 100%; height: clamp(320px, 62vh, 660px); object-fit: cover; object-position: 50% 32%;
}
.crew__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 9, 0.92) 0%, rgba(15, 17, 9, 0.25) 45%, rgba(15, 17, 9, 0) 72%);
}
.crew__copy {
  position: relative; z-index: 2;
  width: var(--wrap-wide); margin-inline: auto;
  margin-top: clamp(-9rem, -12vh, -5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.crew__copy h2 { max-width: 20ch; margin-bottom: 1.1rem; }
.crew__copy p { color: var(--body-light); max-width: 56ch; }

/* ---------- story ---------- */

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story__portrait { position: relative; }
.story__portrait img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.story__portrait::before {
  content: ""; position: absolute; left: -14px; top: -14px; bottom: 14px; width: 14px;
  background: var(--lime);
}
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.22; color: var(--paper-2);
  margin: 0 0 1.4rem; max-width: 20ch;
}
.quote__by {
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 2rem;
}
.story__grid p { color: var(--body-light); }

/* ---------- work mosaic ---------- */

.work__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.work__cats {
  display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.work__cats li {
  flex: none; list-style: none;
  border: 1px solid var(--line);
  padding: 0.5rem 1rem; font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--body); white-space: nowrap;
}
.work__cats { margin: 0; padding-left: 0; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
}
.tile { position: relative; overflow: hidden; background: var(--ink-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.05rem 0.9rem;
  background: linear-gradient(to top,
    rgba(15, 17, 9, 0.93) 0%,
    rgba(15, 17, 9, 0.93) 82%,
    rgba(15, 17, 9, 0) 100%);
  color: var(--paper-2); font-size: 0.92rem; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.tile--a { grid-column: span 4; aspect-ratio: 16 / 9; }
.tile--b { grid-column: span 2; aspect-ratio: 3 / 4; }
.tile--c { grid-column: span 2; aspect-ratio: 1 / 1; }
.tile--d { grid-column: span 2; aspect-ratio: 1 / 1; }
.tile--e { grid-column: span 2; aspect-ratio: 1 / 1; }
.tile--f { grid-column: span 3; aspect-ratio: 3 / 2; }
.tile--g { grid-column: span 3; aspect-ratio: 3 / 2; }

/* ---------- reviews ---------- */

.reviews__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
}
.review { border-top: 2px solid var(--lime); padding-top: 1.6rem; }
.review blockquote { margin: 0; }
.review p { font-size: 1rem; line-height: 1.72; }
.review__by {
  margin-top: 1.1rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime-ink);
}
.reviews__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.9rem; color: var(--body);
}

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

.contact { background: var(--lime); color: var(--ink); }
.contact h2 { max-width: 18ch; margin-bottom: 1.2rem; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.contact p { color: var(--ink); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.contact__list dt, .contact__k {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(20, 23, 13, 0.66);
  margin-bottom: 0.25rem;
}
.contact__v {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw + 0.9rem, 1.8rem);
  color: var(--ink); text-decoration: none; line-height: 1.25;
  display: inline-flex; align-items: center; min-height: 46px;
}
a.contact__v { border-bottom: 2px solid rgba(20, 23, 13, 0.28); }
a.contact__v:hover { border-bottom-color: var(--ink); }
.contact .btn { margin-top: 2rem; }

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

.foot { background: var(--ink); color: var(--body-light); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.foot h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.foot ul li { display: flex; align-items: center; min-height: 44px; }
.foot ul li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { color: var(--body-light); text-decoration: none; }
.foot a:hover { color: var(--paper-2); }
.foot__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between;
  font-size: 0.86rem;
}
.foot__licence { color: var(--lime); font-weight: 700; letter-spacing: 0.08em; }

/* ---------- 404 ---------- */

.err {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink);
  padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 4rem;
}
.err__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem); line-height: 0.9;
  color: var(--lime); margin-bottom: 1rem;
}
.err h1 { color: var(--paper-2); margin-bottom: 1.2rem; }
.err p { color: var(--body-light); max-width: 50ch; margin-bottom: 2rem; }

/* ---------- motion ---------- */

html.js .reveal { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .stages__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --nav-h: 72px; }
  .hero {
    height: auto; min-height: 100svh;
    padding-top: calc(var(--nav-h) + 1.5rem);
    align-items: flex-end;
  }
  .hero__inner { padding-top: clamp(6rem, 22vh, 12rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
  .hero h1 { max-width: 18ch; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__media { order: 0; }
  .svc--flip .svc__body { order: 0; }
  .svc__media { aspect-ratio: 16 / 10; }
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .crew__copy { margin-top: clamp(-6rem, -9vh, -3.5rem); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--a { grid-column: span 2; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 1; }
  .tile--f, .tile--g { grid-column: span 2; aspect-ratio: 16 / 10; }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .stages__track { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__stats { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { flex-direction: column; align-items: stretch; }
}


/* Typeset wordmark replacing the deleted logo image, so it inherits colour and
   stays sharp at any size. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.brand__wordmark{
  display:inline-flex;flex-direction:column;line-height:1;color:currentColor;
  font-family:var(--display,"Newsreader",Georgia,serif);font-weight:500;font-size:1.7rem;letter-spacing:-.015em;
}
.brand__wordmark i{
  font-style:normal;font-family:var(--sans,"Hanken Grotesk",Arial,sans-serif);font-weight:600;
  font-size:.3em;letter-spacing:.34em;text-transform:uppercase;margin-top:.55em;padding-left:.1em;
}
@media (max-width:720px){ .brand__wordmark{font-size:1.5rem} }


/* Concept banner in normal flow; the hero below subtracts --banner-h so the
   first fold still ends at the viewport bottom (rule 339). */
:root{ --banner-h: 34px; }
.concept-banner{
  min-height:var(--banner-h); display:flex; align-items:center; justify-content:center;
  padding:.35rem 1rem; text-align:center; background:#2A2118; color:#E8E0D4;
  font-family:var(--sans,"Hanken Grotesk",Arial,sans-serif);
  font-size:.625rem; letter-spacing:.1em; text-transform:uppercase; line-height:1.25;
}
@media (max-width:640px){ :root{ --banner-h:44px } .concept-banner{font-size:.5625rem;letter-spacing:.05em} }

/* The banner sits above the hero in flow, so the hero subtracts it and the nav
   drops below it. Without this the first fold overshoots by exactly the banner
   height at every width (rule 339). */
.hero { height: calc(100vh - var(--banner-h)); height: calc(100svh - var(--banner-h)); }
.nav { inset: var(--banner-h) 0 auto 0; }

/* On phones the hero content also ran 154px past the fold. Tighten the rhythm
   rather than letting the hero grow (rule 337). */
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__inner { padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 1.75rem; }
}

/* A 860px block resets the hero to `height:auto; min-height:100svh`, which is
   what put the tablet fold 34px past the viewport. Restate the derived height
   after it so the banner is subtracted at every width. */
@media (max-width: 860px) {
  .hero { height: calc(100svh - var(--banner-h)); min-height: 0; }
}

