/* ==========================================================================
   URBANPHORA — drafting-table stylesheet
   ========================================================================== */
/* Self-hosted fonts (Archivo variable: wght 100–900, wdth 62–125%; IBM Plex Mono) */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(assets/fonts/archivo-latin-standard-normal.woff2) format("woff2-variations"), url(assets/fonts/archivo-latin-standard-normal.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(assets/fonts/caveat-latin-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/caveat-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f5efe3;
  --paper-2: #efe7d8;
  --paper-3: #e6dccb;
  --graphite: #352f2c;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --ink: #231f20;
  --ink-2: #57524f;
  --ink-3: #939598;
  --rule: rgba(35, 31, 32, 0.14);
  --rule-strong: rgba(35, 31, 32, 0.32);
  --teal: #00a79d;
  --green: #4b8557;
  --coral: #e2725b;
  --ochre: #e8b44a;
  --grid: rgba(35, 31, 32, 0.055);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --maxw: 1440px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 55% 40% at 92% 6%, rgba(0, 167, 157, .07), transparent 70%),
    radial-gradient(ellipse 45% 35% at 4% 58%, rgba(232, 180, 74, .07), transparent 70%),
    radial-gradient(ellipse 50% 30% at 70% 96%, rgba(226, 114, 91, .05), transparent 70%),
    url(assets/paper.svg);
  background-size: auto, auto, auto, 640px 640px;
  background-attachment: fixed, fixed, fixed, scroll;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper) url(assets/paper.svg) 0 0 / 640px 640px;
  display: grid; grid-template-rows: 1fr auto; padding: var(--gutter);
  transition: clip-path 0.9s cubic-bezier(.77, 0, .18, 1);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__steps { list-style: none; margin: 0; padding: 0; align-self: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; line-height: 2; }
.loader__steps li { opacity: .18; transition: opacity .2s; }
.loader__steps li.on { opacity: 1; }
.loader__steps li.on::after { content: "  ✓"; color: var(--teal); }
.loader__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.loader__pct { font-family: var(--sans); font-stretch: 62%; font-weight: 700; font-size: clamp(72px, 16vw, 220px); line-height: .8; letter-spacing: -0.02em; }
.loader__mark { width: 64px; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; position: relative; padding: 4px 0; }
.nav__links a span { color: var(--ink-3); margin-right: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 10px 16px; text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--teal); border-color: var(--teal); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }
@media (max-width: 900px) { .nav__links { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__kicker { color: var(--ink-2); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.hero__kicker i { width: 8px; height: 8px; background: var(--teal); display: inline-block; border-radius: 1px; }
.hero h1 {
  margin: 0; font-weight: 700; font-stretch: 62%;
  font-size: clamp(54px, 8.2vw, 128px); line-height: .86; letter-spacing: -0.015em; text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.meta { border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.meta { margin: 0; }
.meta div { display: grid; grid-template-columns: 110px 1fr; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.meta dt { color: var(--ink-3); text-transform: uppercase; }
.meta dt::after { content: " :"; }
.meta dd { margin: 0; text-transform: uppercase; }
@media (max-width: 860px) { .hero__top { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Map / viewport
   -------------------------------------------------------------------------- */
.viewport { position: relative; margin-top: clamp(28px, 4vw, 48px); border: 1px solid rgba(74, 69, 66, .55); background: transparent; }
.viewport__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(74, 69, 66, .35); padding: 8px 12px;
}
.viewport__bar .hint { color: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.map { --mt: 0px; position: relative; overflow: hidden; touch-action: pan-y; padding-top: var(--mt); }
.map svg { width: 100%; height: auto; user-select: none; -webkit-user-select: none; position: relative; }
/* paper tooth over everything — washes and pencil both sit "in" the paper */
.map::after, .zone__plate::after { content: ""; position: absolute; inset: 0; background: url(assets/paper.svg) 0 0 / 640px 640px; mix-blend-mode: multiply; opacity: .35; pointer-events: none; z-index: 2; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.map.is-hover { cursor: crosshair; }
.map__guides { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.map.is-hover .map__guides { opacity: 1; }
.map__guides::before, .map__guides::after { content: ""; position: absolute; background: rgba(74, 69, 66, .16); }
.map__guides::before { left: 0; right: 0; height: 1px; top: var(--gy, 50%); }
.map__guides::after { top: 0; bottom: 0; width: 1px; left: var(--gx, 50%); }
.map__corner { position: absolute; font-family: var(--hand); font-size: 17px; color: var(--ink-2); pointer-events: none; z-index: 3; }
.map__corner.tl { top: 8px; left: 10px; } .map__corner.tr { top: 8px; right: 10px; }
.map__corner.bl { bottom: 8px; left: 10px; } .map__corner.br { bottom: 8px; right: 10px; }

/* zone callouts — hand-lettered paper tags */
.callout {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; text-decoration: none; z-index: 3;
}
.callout__tag {
  background: var(--paper) url(assets/paper.svg) 0 0 / 640px 640px; color: var(--ink);
  border: 1.2px solid var(--graphite); border-radius: 3px 6px 4px 7px / 6px 3px 7px 4px;
  padding: 1px 12px 3px; white-space: nowrap; font-family: var(--hand); font-size: 22px; font-weight: 600; line-height: 1.15;
  transform: rotate(var(--tilt, -2deg)); box-shadow: 2px 3px 0 rgba(74, 69, 66, .12);
  transition: background-color .3s, transform .3s, color .3s;
}
.callout__tag b { font-weight: 700; color: var(--teal); margin-right: 6px; }
.callout__stem { width: 1px; height: 24px; background: var(--graphite); opacity: .7; }
.callout__dot { width: 8px; height: 8px; border: 1.2px solid var(--graphite); background: transparent; border-radius: 50%; margin-top: -1px; position: relative; }
.callout__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 167, 157, .35), transparent 70%); animation: ping 2.8s infinite; opacity: 0; }
.callout:hover .callout__tag, .callout:focus-visible .callout__tag, .callout.on .callout__tag { background-color: #fff8ea; transform: rotate(0deg) translateY(-3px); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 700px) {
  .callout__tag { font-size: 17px; padding: 0 8px 2px; }
  .callout__tag span { display: none; }
  .callout__tag b { margin: 0; }
  .callout__stem { height: 14px; }
  .map { --mt: 34px; }
  .map__corner.tl, .map__corner.tr { display: none; }
}

/* svg layers — pencil */
.ink .fi { stroke: none; fill-opacity: .8; }
.ink .ln, .ink .l { fill: none; stroke: var(--graphite); stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.ink .lt { fill: none; stroke: var(--graphite); stroke-linecap: round; }
.ink .hatch { fill: none; stroke: var(--graphite); stroke-width: .55; stroke-linecap: round; stroke-linejoin: round; }
.ink .dash { stroke-dasharray: 5 5; }
.ink .txt { font-family: var(--hand); font-size: 14px; font-weight: 600; fill: var(--graphite); }
/* watercolour sits under the paper tooth and multiplies over the pencil */
.paint { mix-blend-mode: multiply; }
.brush { fill: rgba(0, 167, 157, .08); stroke: var(--graphite); stroke-width: .8; stroke-dasharray: 2 3; pointer-events: none; transition: opacity .2s, r .2s; }
.water-ripple { animation: ripple 3.5s linear infinite; }
@keyframes ripple { to { stroke-dashoffset: -32; } }
.bird { animation: fly 38s linear infinite; }
.bird path { animation: flap .6s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes fly { from { transform: translate(-120px, 0); } to { transform: translate(1700px, -60px); } }
@keyframes flap { to { transform: scaleY(.45); } }

/* plotter draw-in */
.plot [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plot 1s cubic-bezier(.5, .1, .3, 1) forwards; animation-delay: var(--d, 0s); }
.plot .fi { animation: fadein .9s both; animation-delay: calc(var(--d, 0s) + .5s); }
.plot path:not([pathLength]):not(.fi), .plot text { animation: fadein .8s 1.4s both; }
@keyframes plot { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .plot [pathLength], .plot path, .plot text { animation: none; stroke-dashoffset: 0; }
  .bird, .water-ripple, .callout__dot::after { animation: none; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; margin-top: clamp(48px, 7vw, 96px); background: var(--ink); color: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee__track span { font-stretch: 62%; font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 5vw, 64px); line-height: 1; padding: 14px 0; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--teal); padding: 0 .4em; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --------------------------------------------------------------------------
   Statement (scroll-lit words)
   -------------------------------------------------------------------------- */
.statement { padding: clamp(72px, 12vw, 160px) 0; }
.statement__label { display: flex; justify-content: space-between; color: var(--ink-3); margin-bottom: 28px; }
.statement p {
  margin: 0; max-width: 22ch; font-weight: 600; font-stretch: 75%;
  font-size: clamp(34px, 5.6vw, 84px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em;
}
.statement p .w { color: rgba(35, 31, 32, .16); transition: color .35s; }
.statement p .w.lit { color: var(--ink); }
.statement p .w.hl.lit { color: var(--teal); }
@media (min-width: 900px) { .statement p { max-width: 24ch; margin-left: 16%; } }

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */
.shead { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 20px; }
.shead h2 { margin: 0; font-weight: 700; font-stretch: 62%; text-transform: uppercase; font-size: clamp(44px, 6.6vw, 100px); line-height: .88; }
.shead p { margin: 0; color: var(--ink-2); max-width: 46ch; justify-self: end; }
.shead .mono { color: var(--ink-3); display: block; margin-bottom: 14px; }
@media (max-width: 760px) { .shead { grid-template-columns: 1fr; } .shead p { justify-self: start; } }

/* --------------------------------------------------------------------------
   Zones
   -------------------------------------------------------------------------- */
.zones { padding-bottom: clamp(72px, 10vw, 140px); }
.zone {
  display: grid; grid-template-columns: 120px 1fr 1.15fr; gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule-strong); align-items: center; scroll-margin-top: 80px;
}
.zone__num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; align-self: start; }
.zone__num b { display: block; font-family: var(--sans); font-stretch: 62%; font-weight: 700; font-size: 64px; line-height: .9; letter-spacing: 0; }
.zone__num span { color: var(--teal); }
.zone h3 { margin: 0 0 14px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 46px); line-height: .95; }
.zone p { margin: 0 0 18px; color: var(--ink-2); max-width: 44ch; }
.zone ul { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.zone li { padding: 7px 0; border-top: 1px dashed var(--rule-strong); display: flex; gap: 12px; }
.zone li::before { content: attr(data-k); color: var(--ink-3); min-width: 44px; }
.zone__plate { position: relative; border: 1px solid rgba(74, 69, 66, .5); background: transparent; aspect-ratio: 4 / 3; overflow: hidden; }
.zone__plate svg { position: absolute; inset: 8% 6%; width: 88%; height: 84%; }
.zone__plate .paint { opacity: 0; transition: opacity 1.2s ease; }
.zone:hover .zone__plate .paint, .zone.in-view .zone__plate .paint, .zone:focus-within .zone__plate .paint { opacity: 1; }
.zone__plate .cap { position: absolute; left: 12px; bottom: 6px; font-family: var(--hand); font-size: 18px; color: var(--ink-2); z-index: 3; }
.zone__plate .cap2 { position: absolute; right: 12px; top: 6px; font-family: var(--hand); font-size: 18px; color: var(--ink-2); z-index: 3; }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks { display: none; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid var(--ink); }
.ticks::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.ticks::after { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }
@media (max-width: 900px) {
  .zone { grid-template-columns: 1fr; }
  .zone__num { display: flex; align-items: baseline; gap: 12px; }
  .zone__num b { font-size: 48px; }
}

/* --------------------------------------------------------------------------
   Plates (artwork)
   -------------------------------------------------------------------------- */
.plates { padding-bottom: clamp(72px, 10vw, 140px); }
.plates__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-top: clamp(28px, 4vw, 48px); }
.plate { grid-column: span 4; margin: 0; }
.plate:nth-child(1) { grid-column: span 7; } .plate:nth-child(2) { grid-column: span 5; }
.plate:nth-child(6) { grid-column: span 4; }
.plate__frame { position: relative; border: 1px solid rgba(74, 69, 66, .5); aspect-ratio: 4 / 5; overflow: hidden; background:
  radial-gradient(ellipse 60% 45% at 35% 40%, rgba(0, 167, 157, .14), transparent 70%),
  radial-gradient(ellipse 50% 40% at 70% 70%, rgba(232, 180, 74, .16), transparent 70%),
  radial-gradient(ellipse 40% 30% at 65% 25%, rgba(226, 114, 91, .1), transparent 70%),
  url(assets/paper.svg) 0 0 / 640px 640px; }
.plate:nth-child(2n) .plate__frame { background-position: 60% 20%, 20% 60%, 30% 80%, 0 0; }
.plate:nth-child(1) .plate__frame { aspect-ratio: 7 / 5; }
.plate:nth-child(2) .plate__frame { aspect-ratio: 49 / 50; }
.plate__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: grayscale(1) contrast(1.05); }
.plate:hover .plate__frame img { transform: scale(1.03); filter: none; }
.plate__empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--ink-2); padding: 16px; }
.plate__empty { font-family: var(--hand) !important; font-size: 22px !important; letter-spacing: 0 !important; text-transform: none !important; }
.plate__empty b { font-family: var(--hand); font-weight: 700; font-size: 64px; line-height: .9; color: var(--ink); }
.plate figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.plate figcaption span:last-child { color: var(--ink-3); }
@media (max-width: 760px) { .plate, .plate:nth-child(n) { grid-column: span 12; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { position: relative; background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; }
.contact__contours { position: absolute; inset: 0; background: var(--teal); opacity: .22;
  -webkit-mask: url(assets/contours-header.svg) center / cover no-repeat; mask: url(assets/contours-header.svg) center / cover no-repeat; pointer-events: none; }
.contact .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact h2 { margin: 0; font-weight: 700; font-stretch: 62%; text-transform: uppercase; font-size: clamp(56px, 8vw, 128px); line-height: .86; }
.contact h2 em { font-style: normal; color: var(--teal); }
.contact__lede { color: rgba(244, 241, 234, .7); max-width: 38ch; margin: 24px 0 0; }
.contact .mono { color: rgba(244, 241, 234, .5); }
.form { display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 241, 234, .55); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(244, 241, 234, .35);
  padding: 8px 0 10px; font-size: 20px; color: var(--paper); border-radius: 0; outline: none; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 96px; font-size: 18px; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--teal); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 241, 234, .28); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  border: 1px solid rgba(244, 241, 234, .35); padding: 7px 12px; cursor: pointer; color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: all .2s;
}
.chips label:hover { border-color: var(--paper); }
.chips input:checked + label { background: var(--teal); border-color: var(--teal); }
.chips input:focus-visible + label { outline: 2px solid var(--ochre); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form .btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.form .btn[disabled] { opacity: .5; cursor: wait; }
.form__status { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; min-height: 1.5em; color: rgba(244, 241, 234, .7); }
.form__status.ok { color: var(--teal); } .form__status.err { color: var(--coral); }
.form.sent .field, .form.sent .form__row .btn { opacity: .35; pointer-events: none; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot { position: relative; padding: 56px 0 28px; overflow: hidden; }
.foot__contours { height: clamp(120px, 18vw, 260px); background: var(--green); opacity: .35;
  -webkit-mask: url(assets/contours-footer.svg) center bottom / cover no-repeat; mask: url(assets/contours-footer.svg) center bottom / cover no-repeat; margin-top: -24px; }
.foot__grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.foot__grid h4 { margin: 0 0 12px; font-weight: 500; color: var(--ink-3); font-size: 11px; }
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot__grid a { text-decoration: none; } .foot__grid a:hover { color: var(--teal); }
.foot__mark { width: 84px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); margin-top: 32px; padding-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Pointer readout + reveal
   -------------------------------------------------------------------------- */
.readout { position: fixed; left: 14px; bottom: 12px; z-index: 60; pointer-events: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-2); background: var(--paper) url(assets/paper.svg) 0 0 / 640px 640px; border: 1px solid rgba(74, 69, 66, .4); padding: 5px 8px; display: none; }
@media (pointer: fine) and (min-width: 900px) { .readout { display: block; } }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }


/* ==========================================================================
   Responsive — phones, tablets, touch
   ========================================================================== */
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; cursor: pointer; padding: 0; }
.nav__menu i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.nav__menu i:first-of-type { top: 17px; }
.nav__menu i:last-of-type { top: 25px; }
.nav__menu[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu { border-top: 1px solid var(--rule); max-height: calc(100vh - 64px); overflow-y: auto; }
.menu ul { list-style: none; margin: 0 auto; max-width: var(--maxw); padding-block: 4px 20px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.menu a { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-weight: 700; font-stretch: 62%; text-transform: uppercase; font-size: clamp(30px, 8vw, 44px); line-height: 1; }
.menu a b { font-family: var(--hand); font-size: 22px; font-weight: 600; color: var(--teal); min-width: 30px; }
.menu a:hover, .menu a:focus-visible { color: var(--teal); }
@media (max-width: 900px) { .nav__menu { display: inline-block; } }
@media (min-width: 901px) { .menu { display: none !important; } }
@media (max-width: 360px) { .nav__cta { display: none; } }

/* map: the city sits on a stage that can be larger than the frame */
.map__stage { position: relative; }
@media (max-width: 700px) {
  .map__stage { width: 128%; margin-left: -14%; }
  .map { --mt: 38px; }
  .viewport__bar { gap: 10px; }
  .viewport__bar .hint { font-size: 10px; flex: 1 1 100%; }
}

/* tablets */
@media (min-width: 901px) and (max-width: 1180px) {
  .zone { grid-template-columns: 1fr 1fr; }
  .zone__num { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
  .zone__num b { font-size: 52px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .plate, .plate:nth-child(n) { grid-column: span 6; }
  .plate:nth-child(n) .plate__frame { aspect-ratio: 4 / 3; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .hero h1 { font-size: clamp(64px, 10.5vw, 112px); }
  .statement p { max-width: 20ch; }
}

/* touch */
@media (pointer: coarse) {
  .chips label { padding: 11px 14px; }
  .seg button { padding: 10px 14px; }
  .btn { padding: 12px 16px; }
}
@media (hover: none) {
  .plate__frame img { filter: none; }
}
