/* nVision — Variant B: "Blueprint Atelier".
   Paper & ink, the film as a framed exhibit that breaks out at the reveal. */
:root {
  --paper: #efe6d8;
  --paper-warm: #e7dbc8;
  --ink: #131b26;
  --ink-soft: #3c4656;
  --brass: #a5824b;
  --gold: #c99011;
  --line: rgba(19, 27, 38, 0.22);
  --dash: 1px dashed rgba(19, 27, 38, 0.35);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Heebo", sans-serif;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(19,27,38,0.035) 31px 32px),
    var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Frank Ruhl Libre", serif; }

/* header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  block-size: 58px; padding-inline: clamp(16px, 3.5vw, 44px);
  background: rgba(239, 230, 216, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line);
}
.brand { font-weight: 900; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brass); font-weight: 500; }
.serial {
  margin-inline-start: auto; font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--ink-soft); border: 1px solid var(--line); padding: 4px 12px;
  border-radius: 3px; background: rgba(255,255,255,0.35);
}
.cta-mini {
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 700; font-size: 0.85rem; padding: 9px 18px; border-radius: 3px;
  transition: background 0.25s;
}
.cta-mini:hover { background: var(--gold); color: var(--ink); }

/* hero */
.hero {
  min-block-size: 92vh;
  padding: calc(58px + 9vh) clamp(20px, 6vw, 90px) 0;
  display: flex; flex-direction: column;
}
.hero-kicker {
  font-size: 0.85rem; letter-spacing: 0.14em; color: var(--brass);
  font-weight: 700; margin-block-end: 3vh;
}
.hero h1 {
  font-size: clamp(4rem, 13vw, 11rem); line-height: 0.98; font-weight: 900;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.hero-annot {
  margin-block-start: 5vh; margin-inline-start: clamp(0px, 24vw, 420px);
  max-inline-size: 480px; border-inline-start: 3px solid var(--gold);
  padding-inline-start: 22px;
}
.hero-annot p { color: var(--ink-soft); font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 12px; margin-block-start: 22px; flex-wrap: wrap; }
.btn {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 3px; border: none; cursor: pointer;
  font-family: "Heebo", sans-serif; transition: all 0.25s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.hero-rule {
  margin-block: auto 0; padding-block: 18px;
  display: flex; justify-content: space-between;
  border-block-start: var(--dash);
  font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ink-soft);
}

/* journey: sticky frame + specs */
.journey {
  display: grid; grid-template-columns: minmax(380px, 46%) 1fr;
  gap: clamp(24px, 4vw, 70px);
  padding-inline: clamp(20px, 5vw, 80px);
  align-items: start;
}
.film-col { position: sticky; top: 0; block-size: 100vh; display: grid; place-items: center; }
.film-frame {
  position: relative; inline-size: 100%;
  aspect-ratio: 16 / 10.2;
  background: var(--ink);
  border: 10px solid var(--brass);
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(19, 27, 38, 0.35), inset 0 0 0 2px rgba(0,0,0,0.5);
  transition: all 0.7s var(--ease);
  overflow: hidden;
}
.film-frame video { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.screw {
  position: absolute; inline-size: 9px; block-size: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e7cf9b, #7a5c2e);
  z-index: 3;
}
.screw::after { content: ""; position: absolute; inset-inline: 1.5px; inset-block-start: 50%;
  block-size: 1.5px; background: rgba(19,27,38,0.7); transform: rotate(38deg); }
.sc-tl { inset-block-start: 6px; inset-inline-start: 6px; }
.sc-tr { inset-block-start: 6px; inset-inline-end: 6px; }
.sc-bl { inset-block-end: 6px; inset-inline-start: 6px; }
.sc-br { inset-block-end: 6px; inset-inline-end: 6px; }
.plaque {
  position: absolute; inset-block-end: 10px; inset-inline-start: 50%;
  translate: 50% 0; display: flex; gap: 12px; align-items: baseline;
  background: linear-gradient(180deg, #d8bd80, #a5824b);
  color: var(--ink); font-size: 0.78rem; font-weight: 700;
  padding: 5px 16px; border-radius: 3px; letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  white-space: nowrap;
}
/* frame breaks out at the reveal */
body.reveal-mode .film-col { z-index: 50; }
body.reveal-mode .film-frame {
  position: fixed; inset: 0; inline-size: 100vw; block-size: 100vh;
  aspect-ratio: auto; border-width: 0; border-radius: 0; box-shadow: none;
}
body.reveal-mode .plaque { opacity: 0; }

.spec-col { padding-block: 16vh 30vh; }
.spec {
  min-block-size: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  border-block-end: var(--dash);
  padding-block: 8vh;
}
.spec header { display: flex; align-items: baseline; gap: 14px; margin-block-end: 6px; }
.fig { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--brass);
  border: 1px solid var(--brass); padding: 3px 10px; border-radius: 3px; }
.spec h2 { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.05em; }
.spec h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.15;
  margin-block-end: 14px; }
.spec p { color: var(--ink-soft); max-inline-size: 52ch; }
.spec-rows { margin-block-start: 22px; border-block-start: 1px solid var(--line); }
.spec-rows div { display: grid; grid-template-columns: 90px 1fr; gap: 14px;
  padding-block: 9px; border-block-end: 1px solid var(--line); }
.spec-rows dt { font-size: 0.8rem; font-weight: 700; color: var(--brass); letter-spacing: 0.08em; }
.spec-rows dd { font-size: 0.92rem; color: var(--ink); }

/* reveal zone */
.reveal-zone {
  position: relative; min-block-size: 190vh;
  display: flex; align-items: center; justify-content: center;
}
.reveal-copy {
  position: sticky; top: 0; block-size: 100vh; z-index: 60;
  display: grid; place-content: center; text-align: center;
  opacity: 0; transition: opacity 0.8s var(--ease);
  pointer-events: none;
}
body.reveal-mode .reveal-copy { opacity: 1; }
.reveal-copy h2 {
  font-size: clamp(3.4rem, 10vw, 8rem); font-weight: 900; line-height: 1.02;
  color: var(--paper); text-shadow: 0 4px 44px rgba(11, 17, 26, 0.95);
}
.reveal-copy em { font-style: normal; color: #f0b429; }
.reveal-copy p { color: rgba(239, 230, 216, 0.85); margin-block-start: 16px; font-size: 1.1rem;
  text-shadow: 0 2px 18px rgba(11, 17, 26, 0.9); }

/* why */
.why { position: relative; z-index: 70; background: var(--ink); color: var(--paper); }
.wrap { inline-size: min(var(--max), calc(100% - clamp(32px, 8vw, 120px))); margin-inline: auto; }
.why .wrap { padding-block: clamp(70px, 10vw, 130px); }
.kicker { color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  margin-block-end: 10px; }
.why h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.25; margin-block-end: 44px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px;
  background: rgba(239, 230, 216, 0.2); border: 1px solid rgba(239, 230, 216, 0.2); }
.why-grid article { background: var(--ink); padding: 28px 24px; position: relative; }
.w-num { position: absolute; inset-block-start: 18px; inset-inline-end: 20px;
  font-family: "Frank Ruhl Libre", serif; font-size: 2.4rem; font-weight: 900;
  color: rgba(240, 180, 41, 0.22); }
.why-grid h3 { color: #f0b429; font-size: 1.12rem; margin-block-end: 8px; }
.why-grid p { color: rgba(239, 230, 216, 0.75); font-weight: 300; font-size: 0.94rem; }

/* contact */
.contact { position: relative; z-index: 70; background: var(--paper-warm);
  border-block-start: 1px solid var(--line); }
.contact .wrap { padding-block: clamp(70px, 10vw, 120px); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-block-end: 12px; }
.contact-intro p { color: var(--ink-soft); }
#contactForm .field { margin-block-end: 16px; }
#contactForm label { display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--brass); margin-block-end: 5px; letter-spacing: 0.04em; }
#contactForm input, #contactForm textarea {
  inline-size: 100%; background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line); border-block-end: 2px solid var(--ink);
  border-radius: 3px 3px 0 0; color: var(--ink);
  padding: 11px 14px; font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
}
#contactForm input:focus, #contactForm textarea:focus {
  outline: none; border-block-end-color: var(--gold); background: #fff; }
#contactForm input[aria-invalid="true"] { border-block-end-color: #a33322; }
.err { display: block; color: #a33322; font-size: 0.78rem; min-block-size: 1em;
  margin-block-start: 3px; }
.form-status { color: #2e6b5c; margin-block-start: 12px; font-size: 0.9rem; font-weight: 500; }

.site-footer { position: relative; z-index: 70; background: var(--ink);
  color: rgba(239,230,216,0.7); padding-block: 24px; font-size: 0.85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; }
.foot-tag { color: var(--gold); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-frame, .reveal-copy { transition: none; }
}

@media (max-width: 900px) {
  .serial { display: none; }
  .journey { grid-template-columns: 1fr; }
  .film-col { position: sticky; top: 58px; block-size: auto; z-index: 20;
    padding-block: 10px; background: var(--paper); }
  .film-frame { border-width: 6px; }
  .spec { min-block-size: 65vh; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-annot { margin-inline-start: 0; }
}
