@font-face {
  font-family: "HK Kontrast";
  src: url("assets/fonts/HKKontrast-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ K&E — tokens ============ */
:root {
  --paper: #FBFAF6;
  --paper-deep: #F2EFE8;
  --ink: #1C1916;
  --ink-soft: #4A443C;
  --hairline: rgba(28, 25, 22, 0.14);
  --brass: #A87C34;
  --brass-bright: #E3B25F;
  --seal: #A8342B;
  --tlj: #2E6B4F;
  --mmth: #5F7A1E;
  --salt: #B98C44;

  --font-display: "Gowun Batang", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --measure: 36em;
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1600px;
  /* Caps the content column on wide displays while section backgrounds stay
     full-bleed. The percentage resolves against the section's own width, so
     this is scrollbar-safe in a way 100vw is not. Below --maxw it collapses
     to --pad-x and nothing changes. */
  --gutter: max(var(--pad-x), (100% - var(--maxw)) / 2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 18em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { max-width: var(--measure); }

a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.eyebrow--light { color: var(--brass-bright); }

.badge {
  background: var(--brass);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: #8f691f; }
.btn--outline { border-color: rgba(28, 25, 22, 0.45); color: var(--ink); }
.btn--outline:hover { background: rgba(28, 25, 22, 0.05); }

.amp { color: var(--brass); }

/* ============ Hero (bold editorial statement) ============ */
/* The hero deliberately runs to a tighter margin than the rest of the page,
   so the statement reads near full-bleed. It therefore does NOT use
   --gutter, and its left edge sits inside the sections below it. */
.hero {
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1rem, 1.5vw, 2.5rem) 0;
  background: var(--paper);
  overflow: hidden;
}
.hero__top {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.55fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--hairline);
}
.hero__col--intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* The seal marks carry the K&E logo artwork — a stamped seal on a
   transparent ground. `contain` rather than `cover` so the stamp's rough
   outer edge is never cropped, and no radius/clip for the same reason. */
.hero__mark {
  display: block;
  width: 112px;
  height: 112px;
  text-decoration: none;
}
.hero__mark img,
.nav-mini__mark img,
.nav-overlay__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* The intro column is flex/space-between, so this paragraph's bottom sits on
   the row's bottom edge — level with the photo beside it. That only holds
   while the column stays shorter than the photo. At a fixed 21px the text
   kept its size as the column narrowed, wrapping onto more lines until the
   paragraph outgrew the photo and hung ~100px below it. Scaling the type
   with the viewport holds the line count roughly constant, so the two
   bottoms stay level across the three-column range. */
.hero__kicker {
  font-family: "Satoshi", var(--font-body), sans-serif;
  font-weight: 400;
  /* ~1% of the viewport, the proportion the reference sets it at. */
  font-size: clamp(12px, 1vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30em;
}
/* Slideshow frames stack on top of each other, so the figure itself has to
   carry the size: absolutely positioned children contribute no height. 3:2
   sets its natural height, which is usually what makes the row tall; when
   something else is taller — the nav column often is by a few pixels — the
   stretch wins over the ratio and the photo still reaches the bottom edge
   the paragraph beside it sits on. */
.hero__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
}
/* aspect-ratio on a grid item whose only content is absolutely-positioned
   images is unreliable on some iOS Safari versions — the row can collapse
   to zero height there even though it works everywhere this was tested.
   The padding-top trick sizes off simple block layout instead, which every
   browser gets right. 66.66% = 2/3, i.e. a 3:2 box. */
.hero__image::before {
  content: "";
  display: block;
  padding-top: 66.666%;
}
.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Kept well under the cycle interval so each frame gets a beat of its own
     rather than the photo living permanently mid-fade. */
  transition: opacity 0.55s ease;
}
.hero__image img.is-active { opacity: 1; }

/* Vertical nav, right-aligned, inside the hero grid */
.hero__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1em;
  height: 100%;
  border-left: 1px solid var(--hairline);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__nav a {
  display: block;
  overflow: hidden;
  height: 1.35em;
  font-family: "HK Kontrast", var(--font-display);
  font-weight: 700;
  /* Fluid, not a fixed 49px: four links at a fixed size keep their height as
     the viewport narrows, and this column then out-grows the photo beside it
     and drags it away from its 3:2 crop. */
  font-size: clamp(1.9rem, 3.1vw, 49px);
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
.hero__nav a:hover,
.hero__nav a:focus-visible,
.hero__nav a.active { color: var(--seal); }

.hero__navlink-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero__nav a:hover .hero__navlink-inner,
.hero__nav a:focus-visible .hero__navlink-inner {
  transform: translateY(-50%);
}
.hero__navlink-text {
  display: block;
  height: 1.35em;
  text-align: right;
  white-space: nowrap;
}

/* The big statement — the site's signature move: a huge, tight, black
   serif line with one emphasized phrase set in italic/brass. */
.hero__statement {
  font-family: "HK Kontrast", var(--font-display);
  font-weight: 700;
  /* Pushed up to near the reference's scale now that the hero runs to a
     tighter margin. "best restaurant brands." measures 10.65em, so at 8.9vw
     it lands just inside the hero's own content width and still holds one
     line. Raising this further re-wraps it. */
  font-size: clamp(3.2rem, 8.9vw, 11rem);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 24em;
  margin: clamp(1.6rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero__statement em {
  font-style: italic;
  color: var(--brass);
}

/* ============ Scroll zoom feature ============ */
.zoomfx__frame {
  --zp: 0;
  position: relative;
  width: 100%;
  height: clamp(24rem, 78vh, 46rem);
  overflow: hidden;
}
.zoomfx__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The plate sits right of centre in the source, so on narrow viewports —
     where cover crops hard horizontally — hold the focal point to the right
     rather than centring on the empty table. */
  object-position: 78% center;
  transform: scale(calc(1 + 0.14 * var(--zp)));
  will-change: transform;
}
/* ============ Portfolio ============ */
.brands { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }

.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.brands__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* Editorial stage: two staggered photo columns on the left, and a third
   column on the right that holds a statement pinned through the scroll.
   Thin vertical rules divide the three columns — drawn as background
   gradients so they run the full height of the section rather than
   stopping at each card. Reading order: bhc → Tous les Jours → SALT →
   Mammoth, with bhc leading wide across both left columns and Mammoth
   closing the left column at the bottom. */
.brands__stage {
  display: grid;
  grid-template-columns: 23% 43% 34%;
  row-gap: clamp(3rem, 7vw, 6.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  background-image:
    linear-gradient(var(--hairline), var(--hairline)),
    linear-gradient(var(--hairline), var(--hairline));
  background-size: 1px 100%, 1px 100%;
  background-position: 23% 0, 66% 0;
  background-repeat: no-repeat;
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Column assignments — explicit so the stagger is art-directed, not
   left to auto-flow. */
#bhc     { grid-column: 1 / 3; grid-row: 1; padding-right: var(--col-pad); }
#tlj     { grid-column: 2;     grid-row: 2; padding: 0 var(--col-pad); }
#salt    { grid-column: 2;     grid-row: 3; padding: 0 var(--col-pad); }
#mammoth { grid-column: 1;     grid-row: 3; padding-right: var(--col-pad); margin-top: clamp(2.5rem, 8vw, 7rem); }

.brands__stage { --col-pad: clamp(0.9rem, 1.5vw, 1.6rem); }

/* bhc leads with a wide photo that crosses the first rule, its caption
   dropping into the centre column beneath. */
.brand--lead {
  display: grid;
  grid-template-columns: 23fr 43fr;
}
.brand--lead .brand__media {
  grid-column: 1 / -1;
  width: 68%;
  aspect-ratio: 3 / 2;
}
.brand--lead .brand__body {
  grid-column: 2;
  padding-left: var(--col-pad);
}

/* Mammoth reads as a tall closing plate. */
.brand--mmth .brand__media { aspect-ratio: 4 / 5; }

/* The Tous les Jours photograph is a tall 1:2 portrait whose product sits in
   the lower half, over an empty backdrop. A landscape slot would throw away
   63% of it and centre on the blank space, so the slot itself goes portrait
   and the crop is anchored to the bottom. */
.brand--tlj  .brand__media { aspect-ratio: 3 / 4; }
.brand--tlj  .brand__media img { object-position: center bottom; }

/* The pinned statement holds the right column for the whole section. */
/* Rows are named explicitly: `1 / -1` would collapse to row 1 here, since
   an undeclared grid-template-rows leaves every row implicit. */
.brands__pin {
  grid-column: 3;
  grid-row: 1 / 4;
  padding-left: clamp(1.4rem, 3vw, 3rem);
}
.brands__statement {
  position: sticky;
  top: clamp(6rem, 34vh, 20rem);
  max-width: 14em;
  font-size: clamp(1.5rem, 2.7vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  transition: opacity 0.25s linear;
}

.brand__media {
  --zp: 0;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.brand__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + 0.14 * var(--zp)));
  will-change: transform;
}
.brand--mmth .brand__media img { object-position: center 30%; }
.brand--mmth .brand__media img.brand__logo-fill {
  object-fit: contain;
  object-position: center;
  padding: 12%;
  background: var(--paper);
}

.brand__body h3 {
  font-family: "Satoshi", var(--font-body), sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.brand__body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.brand__link:hover {
  color: var(--brass);
  border-color: currentColor;
}
.brand__link-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Below the three-column threshold the statement unpins and leads the
   section, and the photos fall into two plain columns. */
@media (max-width: 1040px) {
  .brands__stage {
    grid-template-columns: 1fr 1fr;
    background-position: 50% 0;
    background-size: 1px 100%, 0 0;
  }
  #bhc     { grid-column: 1 / -1; grid-row: 2; padding-right: 0; }
  #tlj     { grid-column: 1;      grid-row: 3; padding: 0 var(--col-pad) 0 0; }
  #salt    { grid-column: 2;      grid-row: 3; padding: 0 0 0 var(--col-pad); }
  #mammoth { grid-column: 1;      grid-row: 4; padding-right: var(--col-pad); margin-top: 0; }
  .brand--lead { grid-template-columns: 1fr 1fr; }
  .brand--lead .brand__media { width: 100%; }
  .brands__pin {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 0;
    padding-bottom: clamp(1rem, 3vw, 2rem);
  }
  .brands__statement { position: static; max-width: 20em; }
}

@media (max-width: 640px) {
  .brands__stage {
    grid-template-columns: 1fr;
    background-image: none;
    row-gap: 0;
  }
  #bhc, #tlj, #salt, #mammoth {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    padding: clamp(2rem, 8vw, 2.75rem) 0 0;
    border-top: 1px solid var(--hairline);
  }
  .brands__pin { grid-column: 1; grid-row: 1; }
  .brand--lead { display: flex; flex-direction: column; }
  .brand--lead .brand__media { width: 100%; }
  .brand--lead .brand__body { padding-left: 0; }
  /* Mammoth's storefront shot crops happily to landscape on a single column.
     Tous les Jours does not — its product sits in the lower half of a tall
     portrait, so it keeps a portrait slot at every width. */
  .brand--mmth .brand__media { aspect-ratio: 3 / 2; }
  .brand--tlj .brand__media { aspect-ratio: 4 / 5; }
}

/* ============ Momentum ============ */
.momentum {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.momentum .section-head h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  max-width: 14em;
}
.momentum__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(251, 250, 246, 0.18);
  border: 1px solid rgba(251, 250, 246, 0.18);
  border-radius: 4px;
  overflow: hidden;
}
.stat {
  background: var(--ink);
  padding: 1.8rem 1.5rem 2rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--brass-bright);
  display: block;
  margin-bottom: 0.6rem;
}
.stat p { font-size: 0.92rem; opacity: 0.82; }
.momentum__source {
  font-family: var(--font-mono);
  /* 0.72rem rendered at 11.5px — below the ~12px floor where small mono
     type stops being comfortably legible on phones. */
  font-size: 0.78rem;
  opacity: 0.5;
  margin-top: 1.2rem;
}

/* ============ Partners ============ */
.partners { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.partners__intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.partners__intro p:last-child { margin-top: 1.2rem; }

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pcard {
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--brass);
  border-radius: 4px;
  padding: 1.8rem 1.6rem 2rem;
}
.pcard h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.pcard p { font-size: 0.93rem; color: var(--ink-soft); }

/* ============ Contact ============ */
.contact {
  background: var(--paper-deep);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__copy p:not(.eyebrow) { margin-top: 1rem; }
.contact__mail {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact__form {
  display: grid;
  gap: 1.1rem;
}
.contact__form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(28, 25, 22, 0.25);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.contact__form textarea { resize: vertical; }
.contact__form .btn { justify-self: start; }
.contact__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  overflow: hidden;
}

.footer__cta-title {
  text-align: center;
  max-width: none;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.footer__contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.footer__contact-email {
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer__contact-location {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer__contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 250, 246, 0.35);
  border-radius: 50%;
}
.footer__contact-icon svg { width: 16px; height: 16px; }
.footer__contact-location-text { font-weight: 700; font-size: 0.95rem; }

.btn--pill-outline {
  border-radius: 999px;
  border-color: rgba(251, 250, 246, 0.5);
  color: var(--paper);
  background: transparent;
}
.btn--pill-outline:hover { background: rgba(251, 250, 246, 0.1); }

.footer__divider {
  border-top: 1px solid rgba(251, 250, 246, 0.18);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  flex-wrap: wrap;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(251, 250, 246, 0.18);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer__logo-mark {
  width: clamp(1.6rem, 2.6vw, 2rem);
  height: auto;
  display: block;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__meta {
  display: flex;
  gap: 0.4rem 2rem;
  flex-wrap: wrap;
}
.footer__meta p { font-size: 0.75rem; opacity: 0.55; max-width: none; }

/* ============ Reveals ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

.rt-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  text-indent: 0;
  /* The mask clips to a tight line-height:1 box, which cuts off descenders
     (g, y, p) on tall display type. Padding it out a little and pulling the
     next line back up with a matching negative margin keeps the descender
     visible without changing the visual line spacing. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.rt-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.rt-word.active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rt-word { transform: none; transition: none; }
  .btn, .hero__nav a, .hero__navlink-inner { transition: none; }
  .zoomfx__frame img, .brand__media img { transform: none; }
  /* The slideshow never advances here (the script opts out), so the first
     frame must stay painted rather than sitting at opacity 0. */
  .hero__image img { transition: none; }
  .hero__image img.is-active { opacity: 1; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .momentum__grid { grid-template-columns: 1fr 1fr; }
  .partners__grid { grid-template-columns: 1fr; }
  .hero__mark { margin-bottom: 1.5rem; }
  /* The inline link row doesn't fit well once the hero collapses to one
     column — hand navigation off to the fixed hamburger instead. Forcing
     it visible here happens later in the file, after the base .nav-mini
     rule, so it isn't lost to source-order at equal specificity. */
  .hero__nav { display: none; }
}

@media (max-width: 640px) {
  .momentum__grid { grid-template-columns: 1fr; }
  /* Below ~576px, 8.9vw drops under the 3.2rem floor and the clamp stops
     shrinking — each <br>-separated line then wraps a second time on its
     own. Scaling purely off vw here keeps "best restaurant brands." (the
     longer of the two lines) to one line down to small phone widths. */
  .hero__statement { font-size: 8vw; }
}

/* ============ Compact nav — appears once scrolled past the hero ============ */
.nav-mini {
  position: fixed;
  top: clamp(1.25rem, 3vh, 2rem);
  right: var(--gutter);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-mini.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* On phones the hero's inline nav links are hidden (see the 900px block
   above), so the hamburger has to stand in immediately rather than waiting
   to fade in past the hero. */
@media (max-width: 900px) {
  .nav-mini { opacity: 1; transform: none; pointer-events: auto; }
}
.nav-mini__mark {
  display: block;
  width: 48px;
  height: 48px;
  text-decoration: none;
}
.nav-mini__burger {
  width: 48px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(28, 25, 22, 0.1);
}
.nav-mini__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
/* The hero's own large logo is already on screen on phones, so the small
   mark next to the hamburger would just duplicate it — hide it there and
   let the hamburger stand alone. */
@media (max-width: 900px) {
  .nav-mini__mark { display: none; }
}

/* ============ Full-screen nav overlay ============ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--seal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav-overlay__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
/* The overlay ground is the same seal red as the logo's own field, so on
   this surface the mark reads as its white frame and glyph alone. */
.nav-overlay__mark {
  display: block;
  width: 52px;
  height: 52px;
  text-decoration: none;
}
.nav-overlay__close {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}
.nav-overlay__close svg { width: 100%; height: 100%; }
.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-top: clamp(1.5rem, 5vh, 3rem);
}
.nav-overlay__links a {
  font-family: "HK Kontrast", var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-overlay__links a:hover,
.nav-overlay__links a:focus-visible { color: #fff; }
.nav-overlay__email {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--ink);
  text-underline-offset: 4px;
}
@media (max-width: 640px) {
  .nav-overlay__links a { font-size: clamp(2rem, 10vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mini, .nav-overlay { transition: none; }
}

/* ============ About page ============ */
.about-title { margin-top: 0; }
.about-intro-row {
  grid-template-columns: 1.3fr 0.7fr;
  border-top: 1px solid var(--hairline);
  border-bottom: none;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.about-banner {
  display: flex;
  height: clamp(18rem, 46vh, 30rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.about-banner__half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-banner__half--a { background: var(--seal); }
.about-banner__half--b { background: var(--brass); }
.about-banner__half span {
  font-family: "HK Kontrast", var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 11rem);
  color: rgba(255, 255, 255, 0.92);
}

.about-story { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.about-story .section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.about-story .section-head h2 { max-width: none; }

.story-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--hairline);
}
.story-block:last-child { border-bottom: 1px solid var(--hairline); }
.story-block h3 { font-size: 1.15rem; font-weight: 700; }
.story-block p { max-width: 42em; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; }

.about-insights { padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(5rem, 10vw, 8rem); }
.about-insights .section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.about-insights .section-head h2 { max-width: none; }

.insight {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr 6rem;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.about-insights a.insight:last-child { border-bottom: 1px solid var(--hairline); }
.insight__date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--seal);
}
.insight__body { display: flex; flex-direction: column; gap: 0.4rem; }
.insight__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.insight__excerpt { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.insight__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  justify-self: end;
}

@media (max-width: 900px) {
  /* .about-intro-row is declared after the generic .hero__top collapse and
     matches at the same specificity, so it wins and the About hero would
     otherwise stay two-column on phones — squeezing the nav to ~108px. */
  .about-intro-row { grid-template-columns: 1fr; }
  .story-block { grid-template-columns: 1fr; }
  .insight { grid-template-columns: 1fr; gap: 0.75rem; }
  .insight__thumb { width: 100px; justify-self: start; order: -1; }
}

/* ============ Contact page ============ */
.contact-required {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--seal);
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}
.contact-row {
  grid-template-columns: 0.8fr 1.3fr 0.6fr;
  align-items: start;
}
.contact-page__form { gap: 0; }
.contact-page__form label {
  display: block;
  font-size: 0;
  margin-bottom: 1px;
}
.contact-page__form input,
.contact-page__form textarea {
  background: var(--paper-deep);
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 1rem 1.1rem;
}
.contact-page__form textarea { min-height: 9rem; }
.contact-page__form .btn { margin-top: 1.5rem; }
.contact-page__form .contact__note { margin-top: 0.7rem; }

.btn--pill-dark {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
}
.btn--pill-dark:hover { background: #000; }

@media (max-width: 900px) {
  .contact-row { grid-template-columns: 1fr; }
}
