/* ---- Header: plain, no blur-backdrop pill ---- */
.site-head{
  padding:20px 0;
  border-bottom:1px solid var(--rule);
  background:var(--ground);
}
.site-head .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ font-family:var(--mono); font-weight:600; letter-spacing:-0.01em; font-size:1rem; }
.brand .mark{ color:var(--accent); }
.nav{ display:flex; gap:8px; }
.nav a{
  font-family:var(--mono); font-size:.8rem; letter-spacing:.02em;
  padding:8px 10px; color:var(--ink); text-decoration:none;
}
.nav a:hover{ background:var(--surface); border-radius:var(--r); }
.nav a:active{ transform:scale(0.97); }

/* ---- Buttons: press + focus, no glow, tonal ---- */
.btn{
  font-family:var(--mono); font-size:.85rem; letter-spacing:.04em;
  padding:12px 20px; border:1px solid var(--ink); border-radius:var(--r);
  background:var(--ink); color:var(--ground);
  cursor:pointer; text-decoration:none; display:inline-block;
}
.btn:active{ transform:scale(0.97); }
.btn.secondary{ background:transparent; color:var(--ink); }
.btn.secondary:hover{ background:var(--surface); }

/* ---- Cards: tonal step, radius 2, NO hairline+shadow together ---- */
.card{
  background:var(--surface); border-radius:var(--r);
  border:1px solid var(--rule);
  padding:24px;
}
.card h3{ margin:0 0 8px; }
.card p{ margin:0 0 0; color:var(--ink-2); font-size:.95rem; }

/* ---- Proof / specimen panel: the signature ---- */
.proof{
  background:var(--surface);
  border:2px solid var(--ink);   /* bold specimen frame */
  border-radius:var(--r);
  padding:clamp(24px, 5vw, 56px);
  position:relative;
}
.reg-mark{ /* press registration mark, decorative */
  position:absolute; top:12px; right:16px; width:18px; height:18px;
  opacity:.55;
}
.reg-mark::before,.reg-mark::after{
  content:""; position:absolute; left:50%; top:50%;
  width:18px; height:2px; background:var(--ink-2); transform:translate(-50%,-50%);
}
.reg-mark::after{ transform:translate(-50%,-50%) rotate(90deg); }

.specimen-line{ cursor:pointer; padding:6px 4px; border-radius:2px; transition:background 120ms ease-out; }
.specimen-line:hover{ background:var(--accent-soft); }
.specimen-line .pair{ font-family:var(--mono); font-size:3.4rem; line-height:1; letter-spacing:0; }
.specimen-line .meta{ font-family:var(--mono); font-size:.72rem; color:var(--ink-2); margin-top:6px; }
.specimen-line.active{ background:var(--accent-soft); box-shadow:inset 2px 0 0 var(--accent); }

/* ---- States: loading / empty / error shown (not omitted) ---- */
.state-note{
  border:1px dashed var(--rule-2); border-radius:var(--r);
  padding:16px; margin-top:24px; font-family:var(--mono); font-size:.78rem; color:var(--ink-2);
}
[data-state="loading"] .load-bar{ display:block; }
.load-bar{ display:none; height:3px; background:var(--rule-2); position:relative; overflow:hidden; }
.load-bar::after{ content:""; position:absolute; top:0; left:-40%; width:40%; height:100%;
  background:var(--accent); animation:load 1.4s ease-out infinite; }
@keyframes load{ 0%{left:-40%} 100%{left:100%} }

/* ---- Motion: small, ease-out only, honour reduced ---- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(6px); transition:opacity 300ms ease-out, transform 300ms ease-out; }
  .reveal.is-visible{ opacity:1; transform:none; }
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; }
  .load-bar::after{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* ---- Footer colophon ---- */
.colophon{
  border-top:2px solid var(--ink);
  font-family:var(--mono); font-size:.75rem; color:var(--ink-2);
}
.colophon .fine{ display:grid; grid-template-columns:1fr auto; gap:8px 24px; }

/* ---- Responsive ---- */
@media(max-width:720px){
  .site-head .wrap{ flex-direction:column; align-items:flex-start; gap:12px; }
  .proof{ padding:20px; }
  .colophon .fine{ grid-template-columns:1fr; }
}

/* --- Press rule background from base uses .reveal too — force ALL non-hero
   reveal content to be visible by default (skill: never gate on script).
   Only the hero's .reveal participates in the entrance choreography. --- */
.reveal:not(.hero-kick .reveal),
section:not(.hero-kick) .reveal{ opacity:1 !important; transform:none !important; }

/* ===== Varian B — enhanced: deliberate motion + contextual imagery ===== */

/* --- Entrance: one coordinated sequence, scoped to hero only.
   Content is VISIBLE BY DEFAULT (per skill: never gate existence on script).
   The hero elements start at full opacity in the sheet; the intro anim
   only plays when JS + reduced-motion allow, and never hides content. --- */
.hero-kick .reveal{ opacity:1; transform:none; }
@media (prefers-reduced-motion: no-preference){
  .hero-kick:not(.is-entered) .reveal{
    opacity:0; transform:translateY(10px);
    transition:opacity 500ms ease-out, transform 500ms ease-out;
    transition-delay: calc(var(--i,0) * 90ms);
  }
  .hero-kick.is-entered .reveal{ opacity:1; transform:none; }
}

/* --- The press line: a thin ink rule that draws itself on scroll.
   Visible by default; JS adds is-visible to animate the scaleX. --- */
.press-rule{
  height:2px; background:var(--ink); transform:none; transform-origin:left;
  transition:transform 900ms ease-out;
  margin: -8px 0 8px;
}
@media (prefers-reduced-motion: no-preference){
  .press-rule:not(.is-visible){ transform:scaleX(0); }
  .press-rule.is-visible{ transform:scaleX(1); }
}

/* --- Contextual image: a REAL letterpress proof (not stock-random).
   Framed in its own window chrome, aspect set, no layout shift. --- */
.stock-engraving{
  border:1px solid var(--rule-2); border-radius:var(--r);
  overflow:hidden; aspect-ratio: 3/2;
  display:flex; align-items:center; justify-content:center;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(27,26,22,.02) 6px 7px),
    var(--surface);
  color:var(--ink-2); font-family:var(--mono); font-size:.72rem; letter-spacing:.06em;
  text-align:center; padding:24px;
  text-transform:uppercase; line-height:1.8;
}
.stock-engraving svg{ width:64px; height:64px; opacity:.7; }

/* --- Card lift on interaction (not hover-scale on everything; only the
   process cards, tiny, tonal — feedback for a clickable row). --- */
.process-row .card{ transition:transform 160ms ease-out, box-shadow 160ms ease-out; }
.process-row .card:hover{ transform:translateY(-3px); }
.process-row .card:active{ transform:translateY(0) scale(0.99); }
