/* ============================================================
   FONT — GC Gudlak (local)
   ============================================================ */
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-Thin-BF695cd59bbba72.ttf") format("truetype");        font-weight: 100; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-ExtraLight-BF695cd59ba678a.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-Light-BF695cd59b5a172.ttf") format("truetype");      font-weight: 300; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-Regular-BF695cd59bb1a11.ttf") format("truetype");    font-weight: 400; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-Medium-BF695cd59b7df0f.ttf") format("truetype");     font-weight: 500; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-SemiBold-BF695cd59bc5211.ttf") format("truetype");   font-weight: 600; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-Bold-BF695cd59b3f47c.ttf") format("truetype");       font-weight: 700; font-display: swap; }
@font-face { font-family: "GC Gudlak"; src: url("assets/font/GCGudlakDemo-ExtraBold-BF695cd59b73d76.ttf") format("truetype");  font-weight: 800; font-display: swap; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --paper:  #FFFFFF;
  --ink:    #1F181B;
  --orange: #F24E1E;
  --purple: #7872AA;

  --stroke-w: 2px;
  --stroke:   var(--stroke-w) solid var(--ink);

  --pad:    80px;          /* outer canvas L/R padding */
  --gap:    20px;          /* inter-row + grid gutter */
  --gutter: 20px;          /* project grid gutter */
  --margin: 80px;          /* project grid outer margin (= canvas pad) */
  --stats-h: clamp(160px, 16vw, 240px);   /* explicit stats row height = photo size */

  --t-fast: 160ms;
  --t-med:  320ms;
  --t-slow: 500ms;
  --ease:   cubic-bezier(.2, .7, .2, 1);

  /* Centre-stroke widths (halved on mobile) */
  --sw:      2px;       /* default body stroke */
  --sw-mid:  1.4px;     /* mid-weight elements */
  --sw-thin: 1px;       /* small text */
}
@media (max-width: 860px) {
  :root { --pad: 20px; --gap: 10px; --gutter: 10px; --margin: 20px;
          --sw: 1px; --sw-mid: 0.7px; --sw-thin: 0.5px; }
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "GC Gudlak", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  -webkit-text-stroke: var(--sw) currentColor;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; -webkit-text-stroke: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
p  { margin: 0; }

.tag, .archive__tab, .footer__meta span, .card__title, .hero__bio-line { -webkit-text-stroke: var(--sw-mid) currentColor; }

/* ============================================================
   PAGE / CANVAS — 80px L/R padding, 40px top
   ============================================================ */
.page {
  padding: 40px var(--pad) 0;
}

/* ============================================================
   TOPBAR — hamburger+logo (touching) on the left, contact on the right
   ============================================================ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: clamp(64px, 6vw, 96px);
  position: sticky;
  top: 20px;
  z-index: 100;
}

.topbar__left {
  display: flex;
  border: var(--stroke);
  background: var(--paper);
  transition: width var(--t-med) var(--ease);
}
.topbar__menu {
  aspect-ratio: 1 / 1;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  background: var(--paper);
}
.topbar__logo {
  display: flex; align-items: center; justify-content: center;
  padding: 10px clamp(14px, 1.4vw, 22px);
  background: var(--ink);
  border-left: var(--stroke);
  height: 100%;
  overflow: hidden;
  transition: width var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}
.topbar__logo img {
  height: 100%;
  width: auto;
  display: block;
}
/* Full logo visible by default, LZ mark hidden */
.topbar__logo .topbar__logo-mark { display: none; }

/* --- Scrolled state: logo shrinks to square, swaps to LZ mark --- */
.topbar.is-scrolled .topbar__logo {
  aspect-ratio: 1 / 1;
  padding: 14px;
}
.topbar.is-scrolled .topbar__logo .topbar__logo-full { display: none; }
.topbar.is-scrolled .topbar__logo .topbar__logo-mark { display: block; }
.topbar.is-scrolled .topbar__contact {
  max-width: 0;
  opacity: 0;
  padding: 0;
  border-width: 0;
  pointer-events: none;
}

/* Hide topbar when a project panel is visible so it doesn't cover the X button */
.topbar {
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.topbar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}
.topbar__contact {
  border: var(--stroke);
  background: var(--paper);
  padding: 0 clamp(36px, 4vw, 72px);
  display: flex; align-items: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  max-width: 300px;
  opacity: 1;
  transition:
    background var(--t-fast) var(--ease),
    color      var(--t-fast) var(--ease),
    max-width  var(--t-slow) var(--ease),
    opacity    var(--t-slow) var(--ease),
    padding    var(--t-slow) var(--ease),
    border     var(--t-slow) var(--ease);
}
.topbar__contact:hover { background: var(--ink); color: var(--paper); }

/* Burger */
.burger { display: inline-flex; flex-direction: column; gap: 8px; width: 100%; }
.burger > span {
  display: block;
  height: var(--stroke-w);
  background: var(--ink);
  transition: transform var(--t-med) var(--ease);
}
#menuToggle:hover .burger > span { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* pull up by 2px so the topbar boxes' bottom strokes share their seam
     with the hero main's top stroke — single continuous line */
  margin-top: calc(-1 * var(--stroke-w));
  position: relative;
  z-index: 2;              /* keep arrow above the archive section */
}

/* ---------- Row: face + banners ---------- */
.hero__main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border: var(--stroke);
  background: var(--paper);
}
.hero__face {
  aspect-ratio: 1 / 1;           /* drives the row height */
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 2.6vw, 56px);
  background: var(--paper);
}
.hero__face img { width: 100%; height: 100%; object-fit: contain; }

.hero__banners {
  border-left: var(--stroke);
  background: var(--ink);
  /* Responsive padding/gap so the two fixed-ratio banners always fit
     beside the square face cell at every viewport width. */
  padding: clamp(10px, 2vw, 40px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4.2vw, 80px);
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.banner {
  position: relative;
  flex: 0 0 auto;                /* size from aspect-ratio, not flex distribution */
  min-width: 0;
  width: 75%;                    /* narrower than container — empty dark gutter on the opposite side */
  aspect-ratio: 620 / 143;       /* the SVG's native ratio → SVG fills with zero distortion */
}
.banner--orange {
  margin-left: 20px;
  margin-right: 0;
  align-self: flex-start;        /* anchor to LEFT of dark container */
}
.banner--purple {
  margin-left: 0;
  margin-right: 20px;
  align-self: flex-end;          /* anchor to RIGHT of dark container */
}

/* The inline SVG (graphics + text) fills the banner */
.banner__svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* Text is part of the SVG → scales perfectly with it, locked to the colored rect */
.banner__svg-text {
  font-family: "GC Gudlak", system-ui, sans-serif;
  font-weight: 800;
  stroke-linejoin: round;
}
.banner--orange .banner__svg-text { fill: var(--ink);   stroke: var(--ink);   stroke-width: 1.3; }
.banner--purple .banner__svg-text { fill: var(--paper); stroke: var(--paper); stroke-width: 1.1; }

/* ---------- Row: tags + bio (+ arrow hanging off corner) ---------- */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1.3fr;   /* target ratio ≈ 585:755 from the Figma */
  gap: var(--gap);
  margin-top: var(--gap);
  height: var(--stats-h);             /* explicit — drives the photo size below */
}

.hero__tags {
  border: var(--stroke);
  background: var(--ink);
  padding: clamp(10px, 1vw, 18px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1vw, 18px);
  min-width: 0; min-height: 0;        /* release intrinsic-content sizing */
}
.tag {
  display: flex; align-items: center; justify-content: flex-start;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 20px);
  padding: 8px 20px;          /* 20px L/R inside each tag */
  text-align: left;
  min-width: 0; min-height: 0;
}
.tag--orange { background: var(--orange); color: var(--ink); }
.tag--purple { background: var(--purple); color: var(--paper); }

.hero__bio-wrap {
  position: relative;
  min-width: 0; min-height: 0;
  height: 100%;
}
.hero__bio {
  height: 100%;
  border: var(--stroke);
  background: var(--paper);
  display: flex;
  align-items: stretch;
  overflow: hidden;                   /* photo cannot leak past the bio */
  min-width: 0;
}
.hero__bio-text {
  flex: 1;
  min-width: 0;
  padding: 20px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 20px;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.15;
}
.hero__bio-line:first-child { font-weight: 700; }

.hero__photo {
  /* Explicit width AND height, both pulled from --stats-h → no aspect-ratio cycle */
  width: var(--stats-h);
  height: var(--stats-h);
  flex-shrink: 0;
  overflow: hidden;
  border-left: var(--stroke);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Down-arrow hanging off the bio's bottom-right corner */
.hero__arrow {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: calc(-1 * var(--stroke-w));   /* overlap strokes for a single seam */
  width: clamp(48px, 4vw, 64px);
  aspect-ratio: 1 / 1;
  border: var(--stroke);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease);
  z-index: 10;
}
.hero__arrow img {
  width: 44%;
  height: auto;
  transform: rotate(90deg);                 /* arrow.svg points right by default → rotate to point down */
  transition: transform var(--t-med) var(--ease), filter var(--t-fast) var(--ease);
}
.hero__arrow:hover, .hero__arrow.is-hovered { background: var(--ink); }
.hero__arrow:hover img, .hero__arrow.is-hovered img { filter: invert(1); transform: rotate(90deg) translateX(3px); }

/* ============================================================
   ARCHIVE — 12-col grid with margins/gutters
   ============================================================ */
.archive {
  /* 80px gap below the hero, then breathing room before the footer */
  padding: 80px 0 clamp(60px, 6vw, 96px);
  background: var(--paper);
  position: relative;
  z-index: 1;              /* below hero__arrow (z-index: 2) so hover works */
}
.archive__inner { max-width: 1600px; margin: 0 auto; }

.archive__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 540px;
  margin: 0 auto clamp(32px, 4vw, 64px);
  border: var(--stroke);
}
.archive__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 18px 24px;
  font-weight: 700;
  font-size: clamp(13px, 1vw, 17px);
  background: var(--paper);
  color: var(--ink);
  border-right: var(--stroke);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.archive__tab:last-child { border-right: 0; }
.archive__tab:hover { background: color-mix(in srgb, var(--orange) 18%, var(--paper)); }
.archive__tab.is-active { background: var(--orange); color: var(--ink); }

.archive__panel { display: none; }
.archive__panel.is-active { display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

/* ============================================================
   CARDS — alternating dark/light fills + hover state
   ============================================================ */
.card {
  border: var(--stroke);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.card.is-dark  { background: var(--ink);   color: var(--paper); }
.card.is-light { background: var(--paper); color: var(--ink); }

.card a {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 3vw, 56px);
  color: inherit;
}
.card img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.card a::after {
  content: attr(data-title);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12% 8%;
  text-align: center;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: inherit;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  pointer-events: none;
  -webkit-text-stroke: var(--sw) currentColor;
}
.card.is-dark:hover,  .card.is-dark.is-hover   { background: var(--purple); color: var(--paper); }
.card.is-light:hover, .card.is-light.is-hover  { background: var(--orange); color: var(--ink); }
.card:hover img,      .card.is-hover img       { opacity: 0; transform: scale(0.95); }
.card:hover a::after, .card.is-hover a::after  { opacity: 1; transform: translateY(0); }

.card--placeholder { display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0.6; }
.card--placeholder span { padding: 0 12px; }

/* ============================================================
   PROJECT ROW — inline expansion in the grid (hash-routed)
   ============================================================ */
.project-row {
  grid-column: 1 / -1;
  position: relative;            /* anchor for the absolute X button */
  border: var(--stroke);
  background: var(--paper);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height var(--t-med) var(--ease),
    opacity    var(--t-fast) var(--ease),
    margin     var(--t-med) var(--ease);
  margin-block: 0;
  pointer-events: none;
  display: none;                 /* remove from grid flow when closed */
}
.project-row.is-open {
  display: block;                /* back in flow */
  max-height: 95vh;
  opacity: 1;
  pointer-events: auto;
  margin-block: var(--gutter);
}
/* Panel background matches the icon's fill so transparent PNGs sit naturally */
.project-row--dark  { background: var(--ink); }
.project-row--light { background: var(--paper); }

/* X close button — a box in the top-left corner whose outline JOINS the
   panel's corner: dropping its top+left borders lets the panel's own border
   form those edges (no doubled-up box-within-a-box). */
.project-row__close {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  width: clamp(56px, 5vw, 80px);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 0;
  border-right: var(--stroke);
  border-bottom: var(--stroke);
  transition: background var(--t-fast) var(--ease);
}
.project-row__close img { width: 36%; transition: filter var(--t-fast) var(--ease); }
.project-row__close:hover { background: var(--orange); }

/* Stage: display image (left) + fixed-width info box stack (right) */
.project-row__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 300px);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 56px);
  min-height: clamp(380px, 48vw, 680px);
}

/* All images stacked in ONE grid cell → the box sizes to the TALLEST image,
   so toggling slides never changes its height. */
.project-row__viewport {
  display: grid;
  place-items: center;
  min-width: 0;
}
.project-row__img {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: clamp(380px, 74vh, 820px);
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.project-row__img.is-current { opacity: 1; }

/* Right column — stacked info boxes (vertically centred), fixed width */
.project-row__info {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
  min-width: 0;
  width: 100%;
}
.project-row__icon {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
}
.project-row__icon[hidden] { display: none; }
.project-row__box {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border: var(--stroke);
  padding: clamp(14px, 1.5vw, 22px) clamp(16px, 1.6vw, 26px);
  font-weight: 800;
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.12;
  text-align: center;
  -webkit-text-stroke: var(--sw-thin) currentColor;     /* lighter stroke for the smaller box text */
}
.project-row__tools { font-weight: 700; }

/* Shirt image box — shown between title and tools for certain Pressure Point slides */
.project-row__shirt { padding: 0; overflow: hidden; }
.project-row__shirt[hidden] { display: none; }
.project-row__shirt img { display: block; width: 100%; height: auto; object-fit: contain; }

/* Video viewport — for projects that use an mp4 instead of stills */
.project-row__video {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: clamp(300px, 58vh, 660px);
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}

.project-row__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
}
/* needed because `display: grid` above would otherwise override the `hidden` attribute */
.project-row__nav[hidden] { display: none; }
.project-row__arrow {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: clamp(12px, 1.3vw, 18px);
  transition: background var(--t-fast) var(--ease);
}
.project-row__arrow img {
  width: clamp(22px, 1.8vw, 32px);
  transition: transform var(--t-med) var(--ease);
}
.project-row__arrow[data-dir="prev"] img { transform: rotate(180deg); }  /* arrow.svg points right */
.project-row__arrow:hover { background: var(--orange); }
.project-row__arrow[disabled] { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: clamp(48px, 6vw, 100px) 0;
}
.contact__heading {
  font-size: clamp(36px, 5vw, 80px);
  line-height: 0.95;
  margin: 0 0 clamp(28px, 3.5vw, 56px);
  -webkit-text-stroke: var(--sw) currentColor;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.contact__row {
  display: flex;
  flex-direction: column;
}
.contact__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}
.contact__label {
  font-size: clamp(11px, 0.8vw, 13px);
  -webkit-text-stroke: var(--sw-mid) currentColor;
  letter-spacing: 0.06em;
}
.contact__req {
  color: var(--orange);
}
.contact__input {
  font-family: "GC Gudlak", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 0.95vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  -webkit-text-stroke: var(--sw-mid) currentColor;
  color: var(--ink);
  background: var(--paper);
  border: var(--stroke);
  padding: clamp(14px, 1.4vw, 20px);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.contact__input:focus {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.contact__input::placeholder {
  color: rgba(31, 24, 27, 0.25);
  -webkit-text-stroke: var(--sw-thin) rgba(31, 24, 27, 0.25);
}
.contact__input.is-invalid {
  border-color: var(--orange);
}
.contact__textarea {
  resize: vertical;
  min-height: clamp(120px, 14vw, 200px);
  line-height: 1.3;
}

/* Inquiry type chips */
.contact__field--inquiry {
  gap: 0;
}
.contact__field--inquiry .contact__options {
  margin-top: 16px;
}
.contact__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact__chip {
  position: relative;
  cursor: pointer;
}
.contact__chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.contact__chip span {
  display: block;
  border: var(--stroke);
  padding: clamp(10px, 1vw, 14px) clamp(16px, 1.6vw, 24px);
  font-size: clamp(11px, 0.8vw, 13px);
  -webkit-text-stroke: var(--sw-mid) currentColor;
  letter-spacing: 0.04em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.contact__chip:hover span {
  background: var(--ink);
  color: var(--paper);
  -webkit-text-stroke-color: var(--paper);
}
.contact__chip input:checked + span {
  background: var(--orange);
  color: var(--paper);
  border-color: var(--orange);
  -webkit-text-stroke-color: var(--paper);
}
.contact__chip input:focus-visible + span {
  box-shadow: 0 0 0 2px var(--orange);
}
.contact__field--inquiry.is-invalid .contact__options {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Submit button */
.contact__row--submit {
  align-items: flex-start;
  margin-top: clamp(8px, 1vw, 16px);
}
.contact__submit {
  font-size: clamp(13px, 0.95vw, 16px);
  -webkit-text-stroke: var(--sw-mid) currentColor;
  border: var(--stroke);
  background: var(--ink);
  color: var(--paper);
  -webkit-text-stroke-color: var(--paper);
  padding: clamp(16px, 1.6vw, 24px) clamp(36px, 4vw, 72px);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.contact__submit:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.contact__submit:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ============================================================
   FOOTER — edge-to-edge, outside the padded canvas
   ============================================================ */
.footer {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  border-top: var(--stroke);
  margin-top: 0;
}
.footer__cell {
  display: flex; align-items: center;
  padding: clamp(28px, 3vw, 56px);
  border-right: var(--stroke);
  text-align: left;
}
.footer__cell:last-child { border-right: 0; }
.footer__cta  { font-size: clamp(28px, 3.6vw, 56px); line-height: 0.95; }
.footer__mail { font-size: clamp(18px, 2.2vw, 36px); justify-content: center; text-align: center; transition: background var(--t-fast) var(--ease); }
.footer__mail:hover { background: var(--orange); }
.footer__meta {
  flex-direction: column; gap: 12px; align-items: flex-end; text-align: right;
  font-size: 12px;
  justify-content: space-between;
}

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  transform: translateY(-100%);
  transition: transform var(--t-med) var(--ease);
  display: flex; flex-direction: column;
  padding: 40px var(--pad) 0;
}
.menu.is-open { transform: translateY(0); }
.menu__bar {
  display: flex; align-items: stretch;
  height: clamp(64px, 6vw, 96px);
  border-bottom: 2px solid var(--paper);
  flex-shrink: 0;
}
.menu__cell { display: flex; align-items: center; justify-content: center; }
/* Close X — mirrors .topbar__menu exactly */
.menu__cell--close {
  aspect-ratio: 1 / 1; height: 100%;
  padding: 10px;
  background: var(--ink);
  border: 0;
}
.menu__cell--close img { width: 36%; height: auto; filter: brightness(0) invert(1); }
/* Logo — mirrors .topbar__logo exactly */
.menu__cell--logo {
  padding: 10px clamp(14px, 1.4vw, 22px);
  background: var(--ink);
  border-left: 2px solid var(--paper);
}
.menu__cell--logo img { height: 100%; width: auto; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 6vw, 80px); gap: clamp(8px, 1.4vw, 16px); }
.menu__nav a {
  position: relative;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.95;
  -webkit-text-stroke: var(--sw) currentColor;
  padding-left: clamp(80px, 8vw, 140px);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-med) var(--ease), -webkit-text-stroke var(--t-fast) var(--ease);
}
.menu__nav a::before { content: attr(data-num); position: absolute; left: 0; top: 0.1em; font-size: 0.28em; -webkit-text-stroke: var(--sw-thin) currentColor; letter-spacing: 0.06em; }
.menu__nav a:hover { color: var(--orange); padding-left: clamp(110px, 10vw, 180px); }
.menu__foot { display: flex; justify-content: space-between; padding: clamp(16px, 2vw, 28px) clamp(24px, 6vw, 80px); border-top: 2px solid var(--paper); font-size: 12px; -webkit-text-stroke: var(--sw-thin) currentColor; }
body.is-menu-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE — MOBILE REFLOW
   ============================================================ */
@media (max-width: 860px) {
  body { font-size: 12px; }

  /* Topbar: drop contact, full-width bar with 20px padding around logo */
  .topbar { height: 80px; }
  .topbar__left { flex: 1; transition: flex var(--t-slow) var(--ease), background var(--t-slow) var(--ease); }
  .topbar__contact { display: none; }
  .topbar__logo { padding: 20px; flex: 1; }
  .topbar__logo img { height: 100%; width: auto; }
  /* Scrolled: left section shrinks to fit hamburger + square LZ logo */
  .topbar.is-scrolled .topbar__left { flex: 0 0 auto; background: var(--ink); height: 56px; }
  .topbar.is-scrolled .topbar__menu { width: 56px; height: 56px; padding: 8px; }
  .topbar.is-scrolled .topbar__logo { flex: 0 0 auto; width: 56px; height: 56px; padding: 10px; }

  /* Menu bar matches mobile topbar */
  .menu__bar { height: 80px; }
  .menu__cell--logo { padding: 20px; }
  .menu__cell--close { padding: 20px; }

  /* Hero main: stack face above banners */
  .hero__main {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .hero__face { aspect-ratio: 1 / 1; }
  .hero__face img { padding: 14px; }
  .hero__banners {
    border-left: 0;
    border-top: var(--stroke);
    padding: 14px;
    gap: 14px;
    overflow: hidden;
  }
  /* On mobile, banners go full-width */
  .banner { width: 100%; align-self: stretch; }
  .banner--orange, .banner--purple { margin-left: 0; margin-right: 0; }
  .banner--orange .banner__svg-text { stroke-width: 0.65; }
  .banner--purple .banner__svg-text { stroke-width: 0.55; }

  /* Hero stats: stack BIO above TAGS on mobile (visual reorder only) */
  .hero__stats {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
  }
  .hero__bio-wrap { order: 1; }
  .hero__tags     { order: 2; }
  .hero__tags {
    padding: 10px;
    gap: 10px;
    aspect-ratio: 2 / 1;       /* keep tag block proportionate on phones */
  }
  .hero__bio {
    grid-template-columns: 1.4fr 1fr;
  }
  .hero__bio-text {
    padding: 16px;
    font-size: 13px;
    gap: 10px;
  }
  .hero__photo { aspect-ratio: 1 / 1; }
  .hero__arrow { display: none; }

  /* Archive */
  .archive { padding-top: 48px; padding-bottom: 48px; }
  .archive__tabs {
    grid-template-columns: 1fr;
    max-width: none;
    border-left: 0; border-right: 0;
    margin-left: calc(var(--margin) * -1);
    margin-right: calc(var(--margin) * -1);
  }
  .archive__tab { border-right: 0; border-bottom: var(--stroke); }
  .archive__tab:last-child { border-bottom: 0; }
  .archive__tab.is-active { order: 2; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }

  /* Hide Synexus Gate on mobile */
  .card:has([data-slug="synexus-gate"]) { display: none; }

  /* Mobile 2-col checkerboard: swap carlo & chloe so the
     D-L / L-D pattern holds when synexus is removed.
     Desktop HTML: …carlo(D) chloe(L)…
     Mobile visual: …chloe(L) carlo(D)… */
  .card:has([data-slug="awayday"])         { order: 1; }
  .card:has([data-slug="pirlos"])          { order: 2; }
  .card:has([data-slug="chloe-parche"])    { order: 3; }
  .card:has([data-slug="carlo-rovelli"])   { order: 4; }
  .card:has([data-slug="sour-apple"])      { order: 5; }
  .card:has([data-slug="gamble-aware"])    { order: 6; }
  .card:has([data-slug="this-and-that"])   { order: 7; }
  .card:has([data-slug="pressure-point"])  { order: 8; }
  .card--placeholder                      { order: 9; }

  /* Contact form */
  .contact { padding: 40px 0; }
  .contact__heading { margin-bottom: 20px; }
  .contact__row--half { grid-template-columns: 1fr; }
  .contact__options { gap: 8px; }
  .contact__chip span { padding: 10px 14px; }
  .contact__submit { width: 100%; text-align: center; }

  /* Footer */
  .footer { grid-template-columns: 1fr; }
  .footer__cell { border-right: 0; border-bottom: var(--stroke); justify-content: center; text-align: center; }
  .footer__cell:last-child { border-bottom: 0; }
  .footer__cta, .footer__mail { text-align: center; }
  .footer__cta { justify-content: center; }
  .footer__meta { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }

  /* Project row — stack the image above the info boxes */
  .project-row__close  { width: 50px; }
  .project-row__stage  {
    grid-template-columns: 1fr;
    padding: 14px;
    padding-top: 58px;            /* clear the absolute X button */
    gap: 14px;
    min-height: 0;
  }
  .project-row__img    { max-height: 52vh; }
  .project-row__box    { font-size: 13px; padding: 12px 14px; }
  /* Hide project icons/logos and shirt boxes on mobile — desktop only */
  .project-row__icon   { display: none !important; }
  .project-row__shirt  { display: none !important; }
  /* info stack ~330px wide on mobile, centred */
  .project-row__info   { width: min(330px, 100%); margin-inline: auto; }
}

/* ============================================================
   MOTION PREFS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
