/* ============================================================
   THE QUIET GAME — QuietGame.ca
   A literary espionage series. Dark, deliberate, in shadow.
   ============================================================ */

:root {
  /* Ink — the dark the whole site lives in */
  --ink:        #0a0c10;
  --ink-2:      #0e1219;
  --ink-3:      #12171f;
  --panel:      #0f141c;

  /* Paper — warm off-white, the light in the dark */
  --paper:      #ece7da;
  --paper-dim:  #bcb5a4;
  --paper-faint:#948e7e;
  --paper-ghost:#57544b;

  /* Brass — the single accent. Restrained, aged. */
  --brass:      #c9a25f;
  --brass-soft: #b48a4d;
  --brass-dim:  #7c6538;

  /* Cold signal — the surveillance undertone, used sparingly */
  --signal:     #6f8ba0;

  --rule:       rgba(201, 162, 95, 0.22);
  --rule-soft:  rgba(236, 231, 218, 0.08);

  --serif: "Cormorant Garamond", Georgia, serif;
  --body:  "EB Garamond", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 680px;
  --wide: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.26rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Atmosphere: grain + vignette ---------- */

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

body::after {    /* vignette */
  content: "";
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* keep real content above the atmosphere layers */
header.site, main, section, .hero, .bookhead, footer.site { position: relative; z-index: 2; }

a { color: var(--brass); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--paper); }

::selection { background: rgba(201,162,95,0.28); color: var(--paper); }

.wrap   { max-width: var(--wide);   margin: 0 auto; padding: 0 1.6rem; }
.narrow { max-width: var(--measure); margin: 0 auto; padding: 0 1.6rem; }

/* ---------- Reusable: mono micro-labels ---------- */

.mono {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.mono.dim { color: var(--paper-dim); }

/* ---------- Reusable: melody waveform ---------- */

.wave {
  display: block; margin: 0 auto; width: 260px; height: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.wave path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
}
.wave.faint path { stroke: var(--paper-faint); opacity: 0.6; }
.wave.wide { width: min(420px, 70vw); }

/* animated draw of the melody in the hero */
.wave.animate path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 3.4s ease forwards 0.6s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Reusable: asterism divider ---------- */

.asterism {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  margin: 3rem auto; color: var(--brass);
}
.asterism::before, .asterism::after {
  content: ""; height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--rule));
}
.asterism::after { background: linear-gradient(90deg, var(--rule), transparent); }
.asterism .mark { font-size: 0.85rem; letter-spacing: 0.4em; opacity: 0.8; }

hr.rule {
  width: 60px; height: 1px; border: none;
  background: var(--brass); opacity: 0.6;
  margin: 2.4rem auto;
}

/* ============================================================
   NAV
   ============================================================ */

header.site {
  border-bottom: 1px solid var(--rule);
  background: rgba(10, 12, 16, 0.82);
  position: sticky; top: 0; z-index: 20;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 0%;
  background: linear-gradient(90deg, var(--brass-dim), var(--brass));
  z-index: 21;
}

.nav {
  max-width: var(--wide); margin: 0 auto; padding: 1.15rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.2rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--paper);
  transition: color 0.25s;
}
.brand:hover { color: var(--brass); }
.brand svg { width: 15px; height: 20px; opacity: 0.9; flex: none; }

.nav ul { list-style: none; display: flex; gap: 1.9rem; flex-wrap: wrap; }
.nav li a {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase;
  color: var(--paper-dim); padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav li a:hover, .nav li a.here {
  color: var(--brass); border-bottom-color: var(--rule);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 8.5rem 1.6rem 6rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% -5%, rgba(201,162,95,0.10), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}

.hero .glass {   /* hourglass mark */
  width: 34px; height: 46px; margin: 0 auto 2.4rem;
  opacity: 0.9;
}
.hero .glass path { stroke: var(--brass); stroke-width: 1.2; fill: none; stroke-linejoin: round; }

.hero .kicker { display: block; margin-bottom: 1.8rem; }

.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.4rem);
  letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.06;
  text-shadow: 0 0 60px rgba(201,162,95,0.10);
}

.hero .byline {
  margin-top: 1.6rem; font-style: italic;
  color: var(--paper-dim); font-size: 1.15rem; letter-spacing: 0.03em;
}

.hero .wave { margin-top: 3rem; }

.hero .tag {
  max-width: 620px; margin: 3rem auto 0;
  font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-style: italic; color: var(--paper); line-height: 1.5;
}

.hero .scroll-cue {
  margin-top: 3.6rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.28em;
  font-weight: 500; text-transform: uppercase; color: var(--paper-dim);
}

/* ============================================================
   SECTIONS
   ============================================================ */

section { padding: 5.5rem 0; }
section.alt {
  background:
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-head .mono { display: block; margin-bottom: 1rem; }

h2.sec {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.06em; color: var(--paper);
  text-align: center; line-height: 1.2;
}

.prose p { margin-bottom: 1.5rem; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--paper); font-style: italic; }
.lead { font-size: 1.4rem; color: var(--paper); }

/* Pull quote */
.pull {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.05rem); line-height: 1.45;
  text-align: center; color: var(--paper);
  max-width: 700px; margin: 0 auto;
  position: relative;
}
.pull .attr {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.2em; font-weight: 500; text-transform: uppercase;
  color: var(--paper-faint);
}

/* ============================================================
   THE BOOKS — shelf
   ============================================================ */

.shelf {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 3rem 2.4rem; margin-top: 1rem;
}

.jacket-link { display: block; }

.jacket {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--rule);
  background:
    linear-gradient(155deg, #171d27 0%, #0c0f15 78%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
/* spine highlight */
.jacket::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 10px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--rule), transparent);
}
/* faint corner filing mark */
.jacket::after {
  content: attr(data-file);
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.18em;
  color: var(--paper-ghost);
}
.jacket-link:hover .jacket {
  border-color: var(--brass);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.9);
}

.jacket .num {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; font-weight: 500;
  text-transform: uppercase; color: var(--paper-faint);
}
.jacket .title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.7rem; line-height: 1.2; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--paper);
}
.jacket .glyph { color: var(--brass); font-size: 0.8rem; opacity: 0.7; }
.jacket .author {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; font-weight: 500;
  text-transform: uppercase; color: var(--brass-soft);
}
.jacket.soon { opacity: 0.62; }
.jacket.soon .title { color: var(--paper-dim); }

.shelf .blurb {
  margin-top: 1.3rem; font-size: 1.2rem; line-height: 1.6;
  color: var(--paper-dim); text-align: center; font-style: italic;
}

/* ============================================================
   BOOK PAGES
   ============================================================ */

.bookhead {
  padding: 6rem 1.6rem 2rem; text-align: center;
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(201,162,95,0.07), transparent 70%);
}
.bookhead .mono { display: block; margin-bottom: 1.4rem; }
.bookhead h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.12;
}
.bookhead .series-line {
  margin-top: 1.2rem; font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.22em; font-weight: 500;
  text-transform: uppercase; color: var(--paper-faint);
}

/* dossier meta strip */
.dossier {
  max-width: var(--measure); margin: 2.5rem auto 0; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.dossier .cell .k {
  display: block; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase; color: var(--paper-faint);
  margin-bottom: 0.45rem;
}
.dossier .cell .v {
  font-family: var(--serif); font-size: 1.15rem; color: var(--paper); font-style: italic;
}

.backcover { padding-top: 3.5rem; padding-bottom: 5rem; }
.backcover .first { font-size: 1.38rem; color: var(--paper); }

/* ============================================================
   EXCERPT
   ============================================================ */

.excerpt { padding-bottom: 5.5rem; }
.excerpt .chap { text-align: center; margin-bottom: 3rem; }
.excerpt .chap .mono { display: block; margin-bottom: 1rem; }
.excerpt .chap h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.excerpt .prose > p:first-of-type::first-letter {
  font-family: var(--serif); float: left;
  font-size: 4.4rem; line-height: 0.82; font-weight: 600;
  padding: 0.35rem 0.7rem 0 0; color: var(--brass);
}
.excerpt .divider {
  text-align: center; color: var(--brass); margin: 2.4rem 0;
  font-size: 0.85rem; letter-spacing: 0.4em;
}
.excerpt .ends {
  margin-top: 4rem; text-align: center;
}
.excerpt .ends .mono { display: block; margin-bottom: 1.6rem; color: var(--paper-faint); }

/* ============================================================
   AUTHOR — in the shadows
   ============================================================ */

/* Author portrait rendered as a redacted personnel-file photo */
.dossier-photo {
  width: 206px; height: 252px; margin: 0 auto 1.3rem;
  position: relative;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #161c25 0%, #090c11 88%);
  overflow: hidden;
  box-shadow: 0 30px 60px -42px rgba(0,0,0,0.95), inset 0 0 70px rgba(0,0,0,0.45);
}
.dossier-photo::before {          /* file reference, top-left */
  content: attr(data-file);
  position: absolute; top: 0.75rem; left: 0.8rem; z-index: 3;
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.18em; font-weight: 500;
  text-transform: uppercase; color: var(--paper-ghost);
}
.dossier-photo::after {           /* corner registration tick */
  content: ""; position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  width: 9px; height: 9px;
  border-top: 1px solid var(--rule); border-right: 1px solid var(--rule);
}
.dossier-photo .silhouette {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: #212836; opacity: 0.82; filter: blur(0.7px);
}
.dossier-photo .bar {             /* redaction bar across the eyes */
  position: absolute; left: 9%; right: 9%; top: 30%;
  height: 32px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #0c0f14, #030405);
  border-top: 1px solid rgba(236,231,218,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.75);
}
.dossier-photo .bar span {
  font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.3em; font-weight: 500;
  text-transform: uppercase; color: rgba(236,231,218,0.34);
  padding-left: 0.3em;
}
.photo-caption {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.08rem; color: var(--paper-faint); margin-bottom: 2.6rem;
}

/* Author portrait — Option B: a cream confidential document on the dark page */
.paper-file {
  width: min(366px, 92vw); margin: 0 auto;
  position: relative;
  padding: 1.25rem 1.35rem 1.4rem;
  color: #17140e;
  background: linear-gradient(180deg, #efe9db 0%, #e3dcc8 100%);
  border-radius: 2px;
  transform: rotate(-1.6deg);
  box-shadow: 0 36px 70px -34px rgba(0,0,0,0.92), 0 2px 0 rgba(0,0,0,0.25);
}
.paper-file::after {                 /* aged-paper inner shadow */
  content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  box-shadow: inset 0 0 44px rgba(120,98,54,0.16);
}
.paper-file .pf-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; font-weight: 600;
  text-transform: uppercase; color: #2a251b;
}
.paper-file .pf-head .cls { color: #8a2b1e; }
.paper-file .pf-rule { height: 2px; background: #17140e; opacity: 0.85; margin: 0.55rem 0 1rem; }
.paper-file .pf-body { display: flex; gap: 1rem; }
.paper-file .pf-photo {
  width: 152px; height: 188px; flex: none; position: relative; overflow: hidden;
  border: 1px solid #17140e; background: #d8d0bb;
}
.paper-file .pf-photo .silhouette { position: absolute; inset: 0; width: 100%; height: 100%; fill: #736a52; opacity: 0.9; }
.paper-file .pf-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; display: block;
}
.paper-file .pf-photo .bar {
  position: absolute; left: 8%; right: 8%; top: 29%; height: 20px;
  background: #111; box-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.paper-file .pf-fields { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; padding-top: 0.15rem; }
.paper-file .pf-k {
  display: block; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.14em; font-weight: 600;
  text-transform: uppercase; color: #5a5340; margin-bottom: 0.32rem;
}
.paper-file .pf-bar { display: block; height: 13px; background: #111; border-radius: 1px; }
.paper-file .pf-bar.short { width: 58%; }
.paper-file .pf-v { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; color: #17140e; }
.paper-file .pf-rd {          /* inline surname redaction */
  display: inline-block; vertical-align: middle; position: relative; top: -1px;
  width: 72px; height: 0.82em; margin-left: 0.28em;
  background: #111; border-radius: 1px; box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.paper-file .pf-stamp {
  position: absolute; right: -10px; bottom: 12px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; font-weight: 700;
  text-transform: uppercase; color: #8a2b1e;
  border: 2px solid #8a2b1e; border-radius: 3px; padding: 0.12rem 0.5rem;
  transform: rotate(-9deg); opacity: 0.7;
}
.paper-caption {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.08rem; color: var(--paper-faint); margin-top: 1.8rem;
}

/* Enlarge the personnel file ~50% on tablet/desktop (phones keep the compact size above) */
@media (min-width: 481px) {
  .paper-file { width: min(549px, 94vw); padding: 1.9rem 2rem 2.1rem; }
  .paper-file .pf-head { font-size: 0.9rem; }
  .paper-file .pf-rule { height: 3px; margin: 0.8rem 0 1.5rem; }
  .paper-file .pf-body { gap: 1.5rem; }
  .paper-file .pf-photo { width: 228px; height: 282px; }
  .paper-file .pf-fields { gap: 1.05rem; padding-top: 0.22rem; }
  .paper-file .pf-k { font-size: 0.78rem; margin-bottom: 0.48rem; }
  .paper-file .pf-bar { height: 20px; }
  .paper-file .pf-v { font-size: 0.99rem; }
  .paper-file .pf-rd { width: 108px; }
  .paper-file .pf-stamp { font-size: 1.17rem; right: -14px; bottom: 18px; padding: 0.18rem 0.75rem; border-width: 3px; }
  .paper-caption { font-size: 1.6rem; margin-top: 2.7rem; }
}

/* Reusable inline redaction (dark marker) — for tasteful accent use */
.redact {
  color: transparent;
  -webkit-user-select: none; user-select: none;
  background: linear-gradient(180deg, #0c0f14, #030405);
  box-shadow: inset 0 1px 0 rgba(236,231,218,0.06), 0 1px 3px rgba(0,0,0,0.6);
  padding: 0 0.2em; border-radius: 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

.btn {
  display: inline-block;
  padding: 0.9rem 2.3rem;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  background: var(--brass); color: var(--ink);
  box-shadow: 0 0 30px -8px rgba(201,162,95,0.5);
}
.btn.ghost { border-color: var(--rule); color: var(--paper-dim); }
.btn.ghost:hover { border-color: var(--paper-dim); background: transparent; color: var(--paper); box-shadow: none; }

.center { text-align: center; }
.mt { margin-top: 2.4rem; }
.pt-sm { padding-top: 2.5rem; }

/* An emphatic single-line beat */
.beat {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--brass); text-align: center;
  letter-spacing: 0.02em; margin: 2.2rem 0 0;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-block { text-align: center; }
.contact-block .email {
  font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: 0.02em; margin: 1.4rem 0;
}
.contact-block .email a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 3.5rem 1.6rem 3rem; text-align: center;
  background: var(--ink-2);
}
footer.site .fbrand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 1rem;
}
footer.site .fbrand svg { width: 12px; height: 16px; opacity: 0.8; }
footer.site .fmeta {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; font-weight: 500;
  text-transform: uppercase; color: var(--paper-faint); line-height: 2;
}
footer.site .fmeta a { color: var(--paper-faint); }
footer.site .fmeta a:hover { color: var(--brass); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave.animate path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 680px) {
  body { font-size: 1.16rem; }
  /* Keep the nav on a single row so it does not steal vertical space */
  .nav { flex-wrap: nowrap; justify-content: space-between; padding: 1rem 1.15rem; gap: 0.6rem; }
  .brand { font-size: 0.95rem; letter-spacing: 0.14em; gap: 0.5rem; white-space: nowrap; }
  .brand svg { width: 13px; height: 18px; }
  .nav ul { gap: 0.95rem; flex-wrap: nowrap; }
  .nav li a { font-size: 0.62rem; letter-spacing: 0.1em; white-space: nowrap; padding-bottom: 0; border-bottom: 0; }
  .hero { padding: 5.5rem 1.4rem 4rem; }
  section { padding: 4rem 0; }
  .dossier { text-align: center; }
}

/* Smallest phones: collapse the wordmark to just the hourglass so the row still fits */
@media (max-width: 540px) {
  .nav { padding: 0.85rem 0.95rem; gap: 0.4rem; }
  .brand { font-size: 0; gap: 0; }
  .brand svg { width: 20px; height: 26px; }
  .nav ul { gap: 0.7rem; }
  .nav li a { font-size: 0.62rem; letter-spacing: 0.06em; }
}

/* Keep the personnel-file photo from crowding its fields on small phones */
@media (max-width: 384px) {
  .paper-file { padding: 1.1rem 1.1rem 1.3rem; }
  .paper-file .pf-photo { width: 126px; height: 158px; }
  .paper-file .pf-rd { width: 58px; }
}
