/* UNRULED - landing styles. Monochrome by law: washed black → charcoal → gray → bone. */

@font-face {
  font-family: 'UN Display';
  src: url('/assets/fonts/display.woff2') format('woff2');
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: 'UN Mono';
  src: url('/assets/fonts/mono.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --black: #0A0A0A;
  --panel: #141414;
  --panel-2: #1A1A1A;
  --rule: #2A2A2A;
  --metadata: #9A9A9A;       /* contrast floor on --black */
  --bone: #E8E4DC;
  --offwhite: #F2EFE9;
  --display: 'UN Display', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  --mono: 'UN Mono', 'Consolas', 'Menlo', monospace;
  --bar-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: clip; }
/* grid items must never blow out their track (min-width:auto default) */
.list > *, .manifest__grid > *, .anchor > *, .terrain__editorial > * { min-width: 0; }
body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* film grain - static, no animation */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: .01em; }
.mono { font-family: var(--mono); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--offwhite); }
img, video { display: block; max-width: 100%; }
picture { display: contents; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -48px; left: 12px; z-index: 200; background: var(--bone); color: var(--black); padding: 8px 16px; font-family: var(--mono); font-size: 13px; transition: top .15s; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }

.wm { fill: currentColor; display: block; }

/* metadata text grammar */
.signal-bar__meta, .hero__sub, .hero__coords, .capture__hint, .capture__consent,
.manifesto__kicker, .manifest__sub, .manifest__cols, .manifest__hint,
.anchor__kicker, .terrain__sub, figcaption, .log__lines p, .log__follow,
.footer__links, .footer__line, .list__facts {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--metadata);
}

/* ============ S1 · SIGNAL BAR ============ */
.signal-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  color: var(--bone);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.signal-bar.is-solid { background: rgba(10,10,10,.92); border-bottom-color: var(--rule); backdrop-filter: blur(6px); }
.signal-bar__mark { color: var(--bone); }
.signal-bar__mark .wm { height: 18px; width: auto; }
.signal-bar__meta { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.signal-bar__nav { display: flex; align-items: center; gap: 24px; }
.signal-bar__list { font-size: 12px; letter-spacing: .18em; text-decoration: none; color: var(--bone); border: 1px solid var(--rule); padding: 7px 14px; }
.signal-bar__list:hover { border-color: var(--metadata); }
.locale-toggle { font-size: 12px; letter-spacing: .18em; }
.locale-toggle a { text-decoration: none; color: var(--metadata); }
.locale-toggle a:hover { color: var(--bone); }
.locale-toggle .active { color: var(--bone); }
.locale-toggle .sep { color: var(--metadata); padding: 0 4px; }
@media (max-width: 900px) { .signal-bar__meta { display: none; } }

/* ============ crosshairs ============ */
.crosshair { position: absolute; width: 15px; height: 15px; opacity: .5; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: var(--metadata); }
.crosshair::before { left: 7px; top: 0; width: 1px; height: 15px; }
.crosshair::after { top: 7px; left: 0; height: 1px; width: 15px; }
.crosshair--tl { top: calc(var(--bar-h) + 16px); left: 16px; }
.crosshair--tr { top: calc(var(--bar-h) + 16px); right: 16px; }
.crosshair--bl { bottom: 16px; left: 16px; }
.crosshair--br { bottom: 16px; right: 16px; }

/* ============ S2 · HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 38%; filter: grayscale(1); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.08) 30%, rgba(10,10,10,.18) 52%, rgba(10,10,10,.88) 100%);
}
.hero__lockup {
  position: relative; z-index: 2;
  margin: auto 0;
  padding: calc(var(--bar-h) + 24px) 5vw 0;
  text-align: center;
}
.wm--hero { width: min(90vw, 980px); height: auto; margin: 0 auto; color: var(--offwhite); }
.hero__tag { font-size: clamp(15px, 2.6vw, 26px); letter-spacing: .42em; margin-top: 22px; color: var(--bone); font-weight: 700; }
.hero__sub { margin-top: 12px; color: var(--bone); text-wrap: balance; }
.hero__coords { color: var(--bone); }
.hero__coords { position: absolute; z-index: 2; left: 20px; bottom: 18px; writing-mode: initial; }
.hero__locale { position: absolute; z-index: 2; right: 20px; bottom: 18px; font-size: 12px; letter-spacing: .14em; }
.hero__locale a { color: var(--metadata); text-decoration: none; }
.hero__locale a:hover { color: var(--bone); }

.hero__capture { position: relative; z-index: 2; width: min(92vw, 460px); margin: 28px auto 64px; }
/* desktop: form sits on the left rail like a spec entry, not centered template-style */
@media (min-width: 901px) {
  .hero__capture { margin-left: 5vw; margin-right: auto; }
  .hero__capture .capture__hint, .hero__capture .capture__consent, .hero__capture .capture__error { text-align: left; }
}
@media (max-width: 700px) {
  .hero__coords { display: none; }
  .hero__sub { line-height: 2; padding: 0 6vw; }
  .hero__tag { letter-spacing: .32em; }
  .hero__capture { margin-bottom: 16px; }
  .hero__locale { position: static; text-align: center; margin: 0 0 18px; }
}
.capture__hint { margin-bottom: 10px; text-align: center; }
.capture-form { display: flex; border: 1px solid var(--bone); background: rgba(10,10,10,.78); }
.capture-form__input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; color: var(--bone);
  font-size: 16px; letter-spacing: .08em;
  padding: 15px 16px;
}
.capture-form__input::placeholder { color: var(--metadata); }
.capture-form__input:focus { outline: none; background: rgba(20,20,20,.85); }
.capture-form__btn {
  background: var(--bone); color: var(--black);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 0 18px; white-space: nowrap;
}
.capture-form__btn:hover { background: var(--offwhite); }
.capture__consent { margin-top: 10px; font-size: 12px; letter-spacing: 0; text-transform: none; text-align: center; max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.capture__consent a { color: var(--metadata); }
.capture__error { margin-top: 10px; text-align: center; color: var(--bone); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============ S3 · MANIFESTO ============ */
.manifesto {
  position: relative;
  min-height: 120svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--black);
}
.manifesto__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1); transition: opacity 1.2s; }
.manifesto__bg.is-on { opacity: .15; }
.manifesto__ghost {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 38vw; color: var(--bone); opacity: .035;
  user-select: none; overflow: hidden; white-space: nowrap;
}
.manifesto__lines { position: relative; z-index: 2; text-align: left; padding: 0 6vw; max-width: 1100px; }
.manifesto__kicker { margin-bottom: 40px; }
.manifesto__line { font-size: clamp(34px, 7vw, 92px); color: var(--bone); margin-top: 28px; }
.manifesto__line:nth-child(3) { color: var(--metadata); }
.manifesto__line:nth-child(4) { font-size: clamp(22px, 4.2vw, 54px); color: var(--metadata); }

/* reveal - content is visible by default; animation is enhancement only (requires JS) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .manifesto__bg { display: none; }
}

/* ============ S4 · DROP MANIFEST ============ */
.manifest { padding: 120px 5vw 100px; border-top: 1px solid var(--rule); }
.manifest__head { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; margin-bottom: 56px; }
.manifest__title { font-size: clamp(64px, 11vw, 150px); color: var(--bone); }
.manifest__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.manifest__cols, .manifest__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr) 64px;
  gap: 16px; align-items: baseline;
}
.manifest__cols { padding: 0 12px 12px; font-size: 12px; }
.manifest__row > span:nth-child(3) { white-space: nowrap; }
.manifest__row {
  border-top: 1px solid var(--rule);
  padding: 22px 12px;
  cursor: pointer;
  transition: background .2s;
}
.manifest__row:last-of-type { border-bottom: 1px solid var(--rule); }
.manifest__row:hover, .manifest__row:focus-visible { background: var(--panel); }
.manifest__row.is-active { background: var(--panel); }
.manifest__row.is-active h3::after { content: ' ←'; color: var(--metadata); font-family: var(--mono); font-size: .55em; vertical-align: middle; }
.manifest__row h3 { font-size: clamp(18px, 2vw, 26px); color: var(--bone); white-space: nowrap; }
.manifest__row .mono { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--metadata); }
.manifest__hint { margin-top: 16px; padding: 0 12px; font-size: 12px; }
.manifest__sheet { background: var(--panel); border: 1px solid var(--rule); position: sticky; top: calc(var(--bar-h) + 24px); }
.manifest__sheet img { width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; filter: grayscale(1); }
@media (max-width: 900px) {
  .manifest { padding: 88px 5vw 72px; }
  .manifest__grid { grid-template-columns: 1fr; }
  .manifest__cols { display: none; }
  /* two-line row: Nº + name + price / spec + status */
  .manifest__row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: "no name price" "spec spec status";
    row-gap: 8px;
  }
  .manifest__row > span:nth-child(1) { grid-area: no; }
  .manifest__row h3 { grid-area: name; white-space: normal; }
  .manifest__row > span:nth-child(3) { grid-area: spec; white-space: normal; }
  .manifest__row .row-price { grid-area: price; justify-self: end; }
  .manifest__row .row-status { grid-area: status; justify-self: end; }
  .manifest__sheet { position: static; order: 2; }
}

/* ============ S5 · ANCHOR ============ */
.anchor { display: grid; grid-template-columns: 11fr 9fr; border-top: 1px solid var(--rule); }
.anchor__media { position: relative; }
.anchor__media img {
  position: sticky; top: var(--bar-h);
  height: calc(100vh - var(--bar-h)); width: 100%;
  object-fit: cover; object-position: 50% 42%;
  filter: grayscale(1);
}
.anchor__specs { padding: 110px 5vw 90px 56px; max-width: 640px; }
.anchor__kicker { margin-bottom: 48px; }
.spec-table { border-top: 1px solid var(--rule); }
.spec-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.spec-row dt { font-size: 12px; letter-spacing: .18em; color: var(--metadata); text-transform: uppercase; padding-top: 3px; }
.spec-row dd { font-size: 15px; line-height: 1.65; color: var(--bone); }
.spec-row dd.mono { font-size: 12.5px; letter-spacing: .12em; }
.anchor__macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.macro { border: 1px solid var(--rule); background: var(--panel); }
.macro > div, .macro { overflow: hidden; }
.macro img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.macro--deboss { transform: scale(2.1); transform-origin: 50% 53%; }
.macro--embroidery { transform: scale(4.4); transform-origin: 50% 24%; }
.macro--label { transform: scale(5); transform-origin: 57% 55%; }
.macro figcaption { position: relative; z-index: 2; background: var(--panel); padding: 10px 12px; font-size: 12px; border-top: 1px solid var(--rule); }
.anchor__signoff { font-size: clamp(30px, 3.4vw, 48px); color: var(--bone); margin-top: 72px; }
.anchor__next { display: inline-block; margin-top: 28px; font-size: 12px; letter-spacing: .18em; color: var(--metadata); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.anchor__next:hover { color: var(--bone); border-color: var(--metadata); }
@media (max-width: 900px) {
  .anchor { grid-template-columns: 1fr; }
  .anchor__media img { position: static; height: 72vw; min-height: 380px; }
  .anchor__specs { padding: 64px 5vw 72px; }
}

/* ============ S6 · TERRAIN ============ */
.terrain__film { position: relative; min-height: 92svh; overflow: hidden; border-top: 1px solid var(--rule); }
.terrain__poster, .terrain__poster img, .terrain__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.terrain__poster img { filter: grayscale(1); }
.terrain__video { opacity: 0; transition: opacity .8s; }
.terrain__video.is-on { opacity: 1; }
.terrain__film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.35), transparent 35%, rgba(10,10,10,.6) 100%); }
.terrain__title { position: absolute; z-index: 2; left: 5vw; bottom: 12vh; font-size: clamp(56px, 10vw, 140px); color: var(--offwhite); }
.terrain__sub { position: absolute; z-index: 2; left: 5vw; bottom: 6vh; }
.terrain__editorial {
  background: var(--bone); color: var(--black);
  display: grid; grid-template-columns: 7fr 5fr; gap: 5vw;
  padding: 110px 5vw;
  align-items: start;
}
.terrain__ed img { width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; filter: grayscale(1); }
.terrain__ed--b { margin-top: 14vh; }
.terrain__editorial figcaption { color: #5A5751; margin-top: 12px; }
@media (max-width: 900px) {
  .terrain__editorial { grid-template-columns: 1fr; padding: 72px 5vw; }
  .terrain__ed--b { margin-top: 0; }
}

/* ============ S7 · THE LIST ============ */
.list { display: grid; grid-template-columns: 5fr 6fr; border-top: 1px solid var(--rule); }
.list__media { position: relative; }
.list__media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1); }
.list__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.list__video.is-on { opacity: 1; }
.list__caption { position: absolute; left: 5vw; bottom: 16px; z-index: 2; color: var(--bone); text-shadow: 0 1px 8px rgba(10,10,10,.8); }
.list__body { padding: 110px 6vw 90px; position: relative; }
.list__title { font-size: clamp(56px, 7vw, 110px); color: var(--bone); }
.list__facts { margin-top: 48px; border-top: 1px solid var(--rule); max-width: 520px; }
.list__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.list__facts dt { color: var(--metadata); }
.list__facts dd { color: var(--bone); letter-spacing: .14em; }
.list__capture { margin-top: 48px; max-width: 520px; }
.list__ghost { margin-top: 80px; font-size: clamp(28px, 3.6vw, 54px); color: var(--bone); opacity: .12; }

.capture__success .success__title { font-size: clamp(30px, 3.4vw, 44px); color: var(--bone); }
.capture__success .success__sub { margin-top: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--metadata); }
.success__profile { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 18px; }
.success__optional { font-size: 12px; letter-spacing: .18em; color: var(--metadata); text-transform: uppercase; }
.success__row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 12px; letter-spacing: .14em; color: var(--metadata); text-transform: uppercase; }
/* options as plain spec text, never chip UI */
.success__opts { display: flex; flex-wrap: wrap; gap: 4px 0; }
.success__opts button { padding: 2px 0; font-size: 12px; letter-spacing: .14em; color: var(--metadata); }
.success__opts button + button::before { content: '/'; color: var(--rule); padding: 0 10px; }
.success__opts button:hover { color: var(--bone); }
.success__opts button.sel { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.success__skip { margin-top: 16px; font-size: 12px; letter-spacing: .18em; color: var(--metadata); border-bottom: 1px solid var(--rule); }
.success__follow { margin-top: 28px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--metadata); }
@media (max-width: 900px) {
  .list { grid-template-columns: 1fr; }
  .list__media { min-height: 70vw; }
  .list__body { padding: 64px 5vw 72px; }
}

/* ============ S8 · LOG ============ */
.log { position: relative; border-top: 1px solid var(--rule); padding: 56px 5vw; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.log__lines p { margin: 6px 0; }
.log__follow { text-decoration: none; color: var(--bone); border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.log__follow:hover { border-color: var(--metadata); }
.log .crosshair--tl { top: 16px; }
.log .crosshair--br { bottom: 16px; }

/* ============ S9 · FOOTER ============ */
.footer { position: relative; border-top: 1px solid var(--rule); padding: 56px 5vw 0; overflow: hidden; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--bone); }
.footer__line { margin-top: 18px; }
.footer__ghost { margin-top: 48px; height: 17vw; overflow: hidden; color: var(--bone); opacity: .05; }
.footer__ghost .wm { width: 104vw; margin-left: -2vw; height: auto; }

/* ============ STICKY BAR ============ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10,10,10,.95);
  border-top: 1px solid var(--rule);
  min-height: 48px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar__cta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone); padding: 15px 24px; width: 100%; text-align: center; }
.sticky-bar__expand { width: min(100%, 520px); padding: 8px 12px; }
.sticky-bar__form { border: 1px solid var(--rule); background: transparent; display: flex; }
.sticky-bar__form .capture-form__input { padding: 10px 14px; font-size: 16px; }
.sticky-bar__form .capture-form__btn { padding: 0 16px; }
.sticky-bar__consent { margin-top: 6px; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--metadata); text-align: center; }
.sticky-bar__consent a { color: var(--metadata); }
.sticky-bar__state { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--metadata); padding: 15px 0; }
@media (prefers-reduced-motion: reduce) { .sticky-bar { transition: none; } }
