/* ═══════════════════════════════════════════════════════════════
   CANDIDATE FILE FC-2025 — "the dossier"
   a personnel file left on the reviewer's desk.
   manila · ink · rubber stamps — hand-coded, no frameworks
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* the desk */
  --desk:      #16271e;
  --desk-deep: #0c1812;

  /* the folder */
  --manila:    #d6b87e;
  --manila-2:  #c7a766;
  --manila-3:  #e4cd9c;
  --manila-ink:#6b5526;

  /* the papers */
  --paper:     #f8f4e6;
  --paper-2:   #f1ebd6;
  --paper-edge:#dcd3b6;

  /* inks & stamps */
  --ink:       #292419;
  --ink-soft:  #5b5440;
  --faint:     #93896b;
  --line:      #d8cfae;
  --red:       #a8332a;
  --blue:      #1e4d77;
  --green:     #2e6b46;
  --sticky:    #f9e27d;

  --type: "Courier Prime", "Courier New", monospace;
  --body: "Spectral", Georgia, serif;
  --hand: "Caveat", cursive;
  --stamp-f: "Oswald", "Arial Narrow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(70px + env(safe-area-inset-top, 0px));
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(ellipse at center, var(--desk) 0%, var(--desk-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
/* desk grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: var(--paper); }

a { color: inherit; }

/* ─────────────────────────── case bar ────────────────────────── */
#case-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  width: 100%; max-width: 100vw; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) 10px max(22px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  background: rgba(10, 18, 14, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(214,184,126,.25);
  font-family: var(--type); font-size: 11.5px; letter-spacing: .14em;
  color: #cdbf99;
}
#case-bar b { color: var(--manila-3); }
.cb-mid { color: #7d7355; font-size: 10.5px; }
.cb-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.cb-status { display: inline-flex; align-items: center; }
.cb-link { white-space: nowrap; }
.cb-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #5fbf7a;
  display: inline-block; margin-right: 6px;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(95,191,122,.45); }
  50%     { box-shadow: 0 0 0 6px rgba(95,191,122,0); }
}
.cb-link {
  color: var(--manila-3); text-decoration: none;
  border: 1px solid rgba(214,184,126,.4); border-radius: 3px;
  padding: 4px 10px; transition: background .2s, color .2s;
}
.cb-link:hover { background: var(--manila-3); color: #1c1408; }

/* ─────────────────────────── side tabs ───────────────────────── */
#tabs {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 190; display: flex; flex-direction: column; gap: 6px;
}
.ftab {
  writing-mode: vertical-rl;
  font-family: var(--type); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--manila-ink);
  background: linear-gradient(var(--manila-3), var(--manila));
  padding: 14px 7px; border-radius: 0 6px 6px 0;
  transform: rotate(180deg) translateX(-10px);
  box-shadow: -2px 2px 6px rgba(0,0,0,.35);
  transition: transform .22s ease, background .2s;
}
.ftab:hover, .ftab.active { transform: rotate(180deg) translateX(-2px); }
.ftab.active { background: linear-gradient(#fff6dd, var(--manila-3)); }
.ftab-red { background: linear-gradient(#d96a5d, #b84a3d); color: #fff1e8; }
.ftab-red:hover, .ftab-red.active { background: linear-gradient(#e87f72, #c95a4d); }

/* ═══════════════════════════ COVER ════════════════════════════ */
#cover {
  min-height: 100svh; position: relative; z-index: 1;
  display: grid; place-items: center;
  padding: 90px 20px 60px;
}
.folder-scene { perspective: 1800px; width: min(740px, 94vw); }

.folder { position: relative; aspect-ratio: 740 / 520; }

/* inside of the folder */
.folder-back {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--manila-2), #b3934f);
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 60px rgba(0,0,0,.12);
}
.inside-paper {
  position: absolute; inset: 5% 6% 7% 6%;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
  display: grid; place-content: center; text-align: center; gap: 14px;
  padding: 24px;
}
.inside-kicker { font-family: var(--type); font-size: 11.5px; letter-spacing: .26em; color: var(--red); }
.inside-title { font-family: var(--body); font-weight: 300; font-size: clamp(26px, 4.4vw, 42px); line-height: 1.15; }
.inside-arrow { font-size: 26px; color: var(--ink-soft); animation: drop 1.6s ease-in-out infinite; }
@keyframes drop { 0%,100% { transform: translateY(0); opacity:.35; } 50% { transform: translateY(8px); opacity:1; } }
.inside-clip {
  position: absolute; top: -14px; right: 64px; width: 22px; height: 64px;
  border: 4px solid #8d99a6; border-radius: 11px;
  border-bottom-color: transparent;
  opacity: .9;
}

/* front cover */
.folder-front {
  position: absolute; inset: 0; z-index: 2;
  display: block; width: 100%; text-align: left;
  border: none; cursor: pointer;
  background: linear-gradient(165deg, var(--manila-3) 0%, var(--manila) 55%, var(--manila-2) 100%);
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -40px 70px rgba(107,85,38,.18);
  transform-origin: left center;
  transition: transform 1.15s cubic-bezier(.34,.78,.24,.99), box-shadow 1.15s ease;
  backface-visibility: hidden;
  font-family: var(--type); color: var(--manila-ink);
}
.folder-front:focus-visible { outline: 3px dashed var(--red); outline-offset: 6px; }
.folder.open .folder-front {
  transform: rotateY(-138deg);
  box-shadow: -30px 30px 60px rgba(0,0,0,.35);
  pointer-events: none;
}
.folder.instant .folder-front { transition: none; }

/* gentle idle sway to invite the click */
@keyframes invite { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(-7deg); } }
.folder:not(.open) .folder-front { animation: invite 3.4s ease-in-out 1.2s infinite; }
.folder:not(.open):hover .folder-front { animation-play-state: paused; transform: rotateY(-10deg); }

.folder-tab {
  position: absolute; top: -30px; left: 36px;
  background: linear-gradient(var(--manila-3), var(--manila));
  border-radius: 8px 8px 0 0;
  padding: 6px 26px 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.cover-dept {
  position: absolute; top: 34px; left: 40px;
  font-size: 11px; letter-spacing: .24em; line-height: 1.8;
}
.cover-sticker {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%) rotate(-.6deg);
  width: min(420px, 72%);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  padding: 26px 30px 22px; text-align: center;
  display: grid; gap: 8px;
}
.cs-line { font-size: 11px; letter-spacing: .34em; color: var(--ink-soft); }
.cs-name {
  font-family: var(--body); font-weight: 600; color: var(--ink);
  font-size: clamp(34px, 6vw, 54px); line-height: 1.02; letter-spacing: .02em;
}
.cs-role { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--red); }
.cs-meta { font-size: 10.5px; letter-spacing: .2em; color: var(--faint); }

.cover-warn {
  position: absolute; bottom: 86px; left: 40px;
  font-size: 10.5px; letter-spacing: .16em; color: var(--manila-ink);
}
.cover-barcode {
  position: absolute; bottom: 30px; right: 40px;
  width: 150px; height: 36px;
  background:
    repeating-linear-gradient(90deg,
      #4a3a18 0 2px, transparent 2px 5px,
      #4a3a18 5px 9px, transparent 9px 11px,
      #4a3a18 11px 12px, transparent 12px 17px,
      #4a3a18 17px 20px, transparent 20px 23px);
  opacity: .75;
}
.cover-coffee {
  position: absolute; top: 26px; right: 120px;
  width: 92px; height: 92px; border-radius: 50%;
  border: 7px solid rgba(94,62,28,.18);
  filter: blur(.4px);
  transform: rotate(8deg) scaleX(1.05);
}
.cover-open-hint {
  position: absolute; bottom: 30px; left: 40px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: #7c2d20;
  animation: blink-soft 1.8s ease-in-out infinite;
}
.cover-open-hint em { font-weight: 400; font-style: italic; color: var(--manila-ink); letter-spacing: .06em; }
@keyframes blink-soft { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* the cover stamp */
.stamp-cover { top: 110px; right: 44px; --rot: 12deg; font-size: 21px; }

/* ═══════════════════════════ PAPERS ═══════════════════════════ */
#file { position: relative; z-index: 1; }

.paper-wrap { padding: 34px 20px; display: grid; place-items: center; }

.paper {
  position: relative;
  width: min(880px, 94vw);
  background:
    linear-gradient(rgba(91,84,64,.045) 1px, transparent 1px) 0 0 / 100% 34px,
    var(--paper);
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 2px 0 var(--paper-edge);
  padding: clamp(26px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(40px, 6vw, 70px);
  /* reveal */
  opacity: 0; transform: translateY(60px) rotate(var(--tilt, -1deg)) scale(.985);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1);
}
.paper.in { opacity: 1; transform: rotate(var(--tilt-rest, -.4deg)); }
.paper-tilt-r { --tilt: 1.4deg; --tilt-rest: .5deg; }
.paper-tilt-l { --tilt: -1.8deg; --tilt-rest: -.6deg; }
.paper:hover { transform: rotate(0) !important; transition-duration: .4s; }

/* punched holes */
.paper::before {
  content: ""; position: absolute; left: 18px; top: 90px; bottom: auto;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--desk); opacity: .14;
  box-shadow: 0 170px 0 rgba(22,39,30,.14), 0 340px 0 rgba(22,39,30,.14);
}

.p-head {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 3px double var(--ink-soft);
  padding-bottom: 14px; margin-bottom: 30px;
}
.p-form { font-family: var(--type); font-size: 11px; letter-spacing: .22em; color: var(--red); white-space: nowrap; }
.p-head h2 {
  font-family: var(--type); font-weight: 700;
  font-size: clamp(19px, 3.2vw, 27px); letter-spacing: .16em;
  flex: 1;
}
.p-page { font-family: var(--type); font-size: 11px; letter-spacing: .18em; color: var(--faint); white-space: nowrap; }

.p-intro { font-style: italic; font-weight: 300; font-size: 18.5px; color: var(--ink-soft); margin-bottom: 28px; }
.p-intro em { color: var(--red); font-weight: 400; }

/* ─────────── stamps ─────────── */
.stamp {
  position: absolute; z-index: 5;
  font-family: var(--stamp-f); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; line-height: 1.1;
  padding: 9px 20px; border: 3.5px solid currentColor; border-radius: 7px;
  transform: rotate(var(--rot, -6deg));
  pointer-events: none; text-align: center;
  /* worn ink */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.25'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.25'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp::after {
  content: ""; position: absolute; inset: 3px;
  border: 1.5px solid currentColor; border-radius: 4px;
}
.stamp-red  { color: var(--red);  font-size: 19px; }
.stamp-blue { color: var(--blue); font-size: 17px; }

/* slam on reveal */
.stamp-anim { opacity: 0; }
.paper.in .stamp-anim { animation: slam .5s cubic-bezier(.2,1.25,.4,1) .65s forwards; }
@keyframes slam {
  0%   { opacity: 0; transform: scale(2.7) rotate(var(--rot, -6deg)); }
  55%  { opacity: 1; transform: scale(.93) rotate(var(--rot, -6deg)); }
  75%  { transform: scale(1.06) rotate(var(--rot, -6deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot, -6deg)); }
}

/* ─────────── sticky notes ─────────── */
.sticky {
  position: absolute; z-index: 6;
  width: 188px; padding: 18px 16px 22px;
  background: linear-gradient(175deg, #fdeC95, var(--sticky) 60%, #ecd35e);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
  font-family: var(--hand); font-size: 19px; font-weight: 600; line-height: 1.25;
  color: #4f3d10; text-align: center;
  transform: rotate(var(--srot, 3deg));
  opacity: 0;
}
.sticky::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 74px; height: 20px; transform: translateX(-50%) rotate(-1deg);
  background: rgba(255,255,255,.45);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.paper.in .sticky { animation: pop .5s cubic-bezier(.2,1.4,.4,1) 1s forwards; }
@keyframes pop {
  0%  { opacity: 0; transform: scale(.4) rotate(calc(var(--srot, 3deg) - 14deg)); }
  70% { opacity: 1; transform: scale(1.06) rotate(var(--srot, 3deg)); }
  100%{ opacity: 1; transform: scale(1) rotate(var(--srot, 3deg)); }
}
.sticky-1 { right: -26px; top: -26px; --srot: 4deg; }
.sticky-2 { right: -20px; bottom: -24px; --srot: -3deg; }
.sticky-3 { right: -18px; top: 110px; --srot: 5deg; }

/* ═════════════ page 1 · summary ═════════════ */
.summary-grid {
  display: grid; grid-template-columns: 215px 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: start;
}

.photo-slot { position: relative; text-align: center; }
.paperclip {
  position: absolute; top: -18px; left: 26px; z-index: 3;
  width: 20px; height: 58px;
  border: 4px solid #93a0ad; border-radius: 10px;
  border-bottom-color: transparent;
  transform: rotate(8deg);
}
.photo {
  aspect-ratio: 3.4 / 4; display: grid; place-content: center; gap: 4px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 55%),
    var(--paper-2);
  border: 1px solid var(--paper-edge);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transform: rotate(-2deg);
  transition: transform .25s ease;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo:hover { transform: rotate(0) scale(1.02); }
.photo-initials {
  font-family: var(--body); font-weight: 600;
  font-size: 74px; color: var(--ink-soft); line-height: 1;
}
.photo-cap { font-family: var(--type); font-size: 10.5px; letter-spacing: .3em; color: var(--faint); text-transform: uppercase; }
.photo-note { margin-top: 12px; font-family: var(--type); font-size: 10px; letter-spacing: .12em; color: var(--faint); }
.fingerprint {
  margin: 16px auto 0; width: 58px; height: 72px; border-radius: 50% 50% 46% 46%;
  background: repeating-radial-gradient(ellipse at 50% 55%,
    rgba(30,77,119,.4) 0 1.2px, transparent 1.2px 4.4px);
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 78%);
  opacity: .8;
}

.form-fields { display: grid; gap: 0; }
.ff {
  display: grid; grid-template-columns: 168px 1fr; gap: 16px;
  padding: 11px 2px; border-bottom: 1px dotted var(--line);
  align-items: baseline;
}
.ff:last-child { border-bottom: none; }
.ff dt {
  font-family: var(--type); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.ff dd { font-size: 16.5px; }
.ff dd a { color: var(--blue); text-decoration-style: dotted; text-underline-offset: 3px; }
.ff dd a:hover { color: var(--red); }

.form-footnote {
  margin-top: 30px; padding: 16px 20px;
  border-left: 4px solid var(--blue);
  background: rgba(30,77,119,.05);
  font-size: 16px; color: var(--ink-soft);
}
.form-footnote b { color: var(--ink); }

/* ═════════════ page 2 · history ═════════════ */
.records { list-style: none; }
.record {
  display: grid; grid-template-columns: 108px 1fr auto;
  gap: 20px; padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .2s;
}
.record:hover { background: rgba(214,184,126,.12); }
.record:last-child { border-bottom: none; }
.rec-when { font-family: var(--type); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); padding-top: 5px; white-space: nowrap; }
.rec-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.rec-co { font-weight: 400; font-style: italic; color: var(--red); }
.rec-body p { font-size: 15.5px; color: var(--ink-soft); }
.rec-meta {
  margin-top: 8px;
  font-family: var(--type); font-size: 11px !important; letter-spacing: .08em;
  color: var(--faint) !important; text-transform: uppercase;
}
.rec-check {
  font-family: var(--type); font-size: 11.5px; font-weight: 700;
  color: var(--green); white-space: nowrap; padding-top: 7px;
  letter-spacing: .08em;
}
.grant-badge {
  display: inline-block; vertical-align: 3px; margin-left: 8px;
  font-family: var(--type); font-size: 9.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--green); border: 1.5px solid var(--green); border-radius: 3px;
  padding: 1.5px 7px;
}
.rec-grant { border-left: 4px solid var(--green); padding-left: 14px; margin-left: -18px; }

/* ═════════════ page 3 · skills ═════════════ */
.assess { width: 100%; border-collapse: collapse; }
.assess th {
  font-family: var(--type); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  text-align: left; padding: 10px 12px 12px 2px;
  border-bottom: 2px solid var(--ink-soft);
}
.assess td { padding: 15px 12px 15px 2px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.assess td:first-child { font-weight: 600; font-size: 17px; white-space: nowrap; }
.assess td:nth-child(2) { font-family: var(--type); font-size: 13px; color: var(--ink-soft); }
.th-rating { text-align: right !important; }
.assess td:last-child { text-align: right; }

.rating { display: inline-flex; gap: 5px; }
.rating i {
  width: 17px; height: 17px; display: inline-block;
  border: 1.6px solid var(--ink-soft); border-radius: 2px;
  background: transparent;
  transition: background .3s ease, border-color .3s;
}
/* fill according to score, staggered, when paper revealed */
.paper.in .rating[data-score="5"] i:nth-child(-n+5),
.paper.in .rating[data-score="4"] i:nth-child(-n+4),
.paper.in .rating[data-score="3"] i:nth-child(-n+3) {
  background: var(--blue); border-color: var(--blue);
}
.paper.in .rating i:nth-child(1) { transition-delay: .5s; }
.paper.in .rating i:nth-child(2) { transition-delay: .65s; }
.paper.in .rating i:nth-child(3) { transition-delay: .8s; }
.paper.in .rating i:nth-child(4) { transition-delay: .95s; }
.paper.in .rating i:nth-child(5) { transition-delay: 1.1s; }

.assess-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.as-box {
  font-family: var(--type); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--green); border: 1.5px dashed var(--green); border-radius: 4px;
  padding: 7px 14px;
}

/* ═════════════ page 4 · exhibits ═════════════ */
.evidence-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 18px;
}
.evidence {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  padding: 26px 20px 18px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: rotate(var(--erot, 0deg));
  transition: transform .22s ease, box-shadow .25s ease;
}
.evidence:nth-child(odd)  { --erot: -.8deg; }
.evidence:nth-child(even) { --erot: .9deg; }
.evidence:hover {
  transform: rotate(0) translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
  z-index: 3;
}
.ev-tape {
  position: absolute; top: -9px; left: 50%;
  width: 86px; height: 20px; transform: translateX(-50%) rotate(-1.6deg);
  background: rgba(231,219,182,.75);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.ev-tag {
  font-family: var(--type); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; color: var(--red); margin-bottom: 10px;
}
.evidence h3 { font-size: 22px; font-weight: 600; margin-bottom: 7px; }
.evidence p { font-size: 14px; color: var(--ink-soft); }
.evidence b { color: var(--ink); }
.ev-contents {
  margin-top: 12px;
  font-family: var(--type); font-size: 10.5px !important;
  letter-spacing: .06em; color: var(--faint) !important;
}
.ev-go {
  margin-top: auto; padding-top: 14px;
  font-family: var(--type); font-size: 12px; font-weight: 700;
  color: var(--blue);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .22s, transform .22s;
}
.evidence:hover .ev-go { opacity: 1; transform: none; }

.evidence-wide {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 18px; padding: 20px 24px;
  background: rgba(30,77,119,.06);
  border: 1.5px dashed var(--blue);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.evidence-wide:hover { background: rgba(30,77,119,.12); transform: translateY(-3px); }
.evidence-wide .ev-tag { color: var(--blue); margin: 0; }
.evidence-wide p { flex: 1; font-size: 15px; color: var(--ink-soft); min-width: 220px; }
.evidence-wide .ev-go { opacity: 1; transform: none; margin: 0; padding: 0; }

/* ═════════════ page 5 · growth ═════════════ */
.chart-frame {
  background:
    linear-gradient(rgba(30,77,119,.08) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, rgba(30,77,119,.08) 1px, transparent 1px) 0 0 / 20px 100%,
    linear-gradient(rgba(30,77,119,.16) 1px, transparent 1px) 0 0 / 100% 100px,
    linear-gradient(90deg, rgba(30,77,119,.16) 1px, transparent 1px) 0 0 / 100px 100%,
    #fbf8ec;
  border: 1px solid var(--paper-edge);
  padding: clamp(8px, 2vw, 20px);
  box-shadow: inset 0 0 30px rgba(91,84,64,.06);
}
#growth-chart { width: 100%; height: auto; display: block; }

#g-line {
  stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
}
.paper.in #g-line { animation: draw 1.7s cubic-bezier(.4,0,.2,1) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.g-points circle {
  fill: #fbf8ec; stroke: var(--blue); stroke-width: 3;
  opacity: 0; transform-origin: center; transform-box: fill-box;
}
.paper.in .g-points circle { animation: ppop .35s cubic-bezier(.2,1.4,.4,1) forwards; }
.paper.in .g-points circle:nth-child(1) { animation-delay: .55s; }
.paper.in .g-points circle:nth-child(2) { animation-delay: .9s; }
.paper.in .g-points circle:nth-child(3) { animation-delay: 1.25s; }
.paper.in .g-points circle:nth-child(4) { animation-delay: 1.6s; }
.paper.in .g-points circle:nth-child(5) { animation-delay: 1.95s; }
@keyframes ppop { 0% { opacity:0; transform: scale(.2);} 70% { opacity:1; transform: scale(1.35);} 100% { opacity:1; transform: scale(1);} }
.g-now { fill: var(--red) !important; stroke: var(--red) !important; }

.g-labels text {
  font-family: var(--type); font-size: 12px; fill: var(--ink-soft);
  text-anchor: middle;
}
.g-now-label { font-weight: 700; fill: var(--red) !important; }
figcaption {
  margin-top: 12px; font-family: var(--type); font-size: 11.5px;
  letter-spacing: .1em; color: var(--faint); text-align: center;
}

/* ═════════════ page 6 · notes ═════════════ */
.qa { display: grid; gap: 22px; }
.qa-item dt {
  font-family: var(--type); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  margin-bottom: 6px;
}
.qa-item dd { font-size: 18px; font-weight: 300; color: var(--ink); padding-left: 26px; }

.redacted {
  background: var(--ink); color: transparent; border-radius: 2px;
  padding: 0 6px; cursor: help; user-select: none;
  transition: background .35s ease, color .35s ease;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.redacted:hover { background: rgba(41,36,25,.07); color: var(--ink); }
.redact-hint { font-size: 12.5px; color: var(--faint); }

.note-quote {
  margin-top: 36px; padding: 26px 30px 22px;
  border-top: 3px double var(--ink-soft); border-bottom: 3px double var(--ink-soft);
  font-size: clamp(20px, 3vw, 26px); font-weight: 300; font-style: italic;
  text-align: center; line-height: 1.45;
}
.note-quote cite {
  display: block; margin-top: 12px;
  font-family: var(--hand); font-style: normal; font-size: 19px; color: var(--blue);
}

/* ═════════════ page 7 · verdict ═════════════ */
.paper-verdict { --tilt: 0deg; --tilt-rest: 0deg; }

.checklist { list-style: none; display: grid; gap: 13px; max-width: 540px; margin-bottom: 16px; }
.checklist li {
  display: flex; align-items: center; gap: 14px;
  font-size: 18px; font-weight: 300;
  opacity: 0; transform: translateX(-14px);
}
.checklist b { font-weight: 600; }
.paper.in .checklist li { animation: ckin .45s ease forwards; }
.paper.in .checklist li:nth-child(1) { animation-delay: .25s; }
.paper.in .checklist li:nth-child(2) { animation-delay: .45s; }
.paper.in .checklist li:nth-child(3) { animation-delay: .65s; }
.paper.in .checklist li:nth-child(4) { animation-delay: .85s; }
@keyframes ckin { to { opacity: 1; transform: none; } }
.ck {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--green); border-radius: 4px;
  color: var(--green); font-weight: 700; font-size: 19px;
  font-family: var(--hand);
}

.verdict-stage { display: grid; place-items: center; padding: 46px 0 30px; }
.stamp-verdict {
  position: static; display: inline-grid; gap: 2px;
  font-size: clamp(30px, 6vw, 52px); letter-spacing: .1em;
  padding: 18px 42px 22px;
  border-width: 5px;
}
.stamp-verdict::after { inset: 5px; border-width: 2px; }
.stamp-verdict small {
  font-size: clamp(12px, 2vw, 17px); letter-spacing: .34em; font-weight: 600;
}
.paper.in .stamp-verdict { animation-delay: 1.05s; }

.sign-row {
  display: flex; gap: 50px; flex-wrap: wrap; justify-content: center;
  margin: 26px 0 40px;
}
.sign { text-align: center; }
.sign-script {
  display: block; font-family: var(--hand); font-size: 30px; color: var(--blue);
  min-width: 200px; padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink-soft);
}
.sign-line {
  display: block; margin-top: 7px;
  font-family: var(--type); font-size: 9.5px; letter-spacing: .26em; color: var(--faint);
}

.verdict-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.act {
  font-family: var(--type); font-size: 14px; font-weight: 700;
  text-decoration: none; letter-spacing: .04em;
  border: 2px solid var(--ink); border-radius: 4px;
  padding: 13px 22px; color: var(--ink);
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.act:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.act-primary { background: var(--ink); color: var(--paper); }
.act-primary:hover { background: var(--red); border-color: var(--red); }
.verdict-meta {
  margin-top: 22px; text-align: center;
  font-family: var(--type); font-size: 11.5px; letter-spacing: .14em; color: var(--faint);
}

/* ─────────────────────────── footer ──────────────────────────── */
#case-end {
  position: relative; z-index: 1;
  text-align: center; padding: 30px 20px 70px; color: #b9ab84;
}
.ce-bar {
  display: block; width: 120px; height: 4px; margin: 0 auto 26px;
  background: repeating-linear-gradient(90deg, #b9ab84 0 14px, transparent 14px 22px);
  opacity: .5;
}
.ce-title { font-family: var(--stamp-f); font-size: 22px; letter-spacing: .5em; text-indent: .5em; color: var(--manila-3); }
.ce-sub { margin-top: 14px; font-size: 15px; font-style: italic; font-weight: 300; color: #9b8f6d; }
.ce-copy { margin-top: 18px; font-family: var(--type); font-size: 11px; letter-spacing: .18em; color: #6f6549; }

/* ─────────────────────────── responsive ──────────────────────── */
@media (max-width: 1180px) {
  #tabs {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-width: 100vw; box-sizing: border-box;
    transform: none;
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: 5px;
    overflow-x: hidden; overflow-y: hidden;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 18, 14, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(214,184,126,.28);
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
    contain: layout paint;
  }
  .ftab {
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: 6px;
    padding: 7px 11px;
    flex: 0 1 auto;
    white-space: nowrap;
    box-shadow: none;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .ftab:hover, .ftab.active { transform: none; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  #case-end { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 860px) {
  .cb-mid { display: none; }
  .sticky { width: 150px; font-size: 16px; }
  .sticky-1 { right: -8px; top: -34px; }
  .sticky-2 { right: -6px; bottom: -30px; }
  .sticky-3 { right: -6px; top: auto; bottom: -30px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .cb-left { display: none; }
  #case-bar { justify-content: flex-end; padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px; }
  .cb-right { gap: 10px; font-size: 10.5px; letter-spacing: .08em; }
  .inside-kicker { font-size: 9.5px; letter-spacing: .16em; }
  .summary-grid { grid-template-columns: 1fr; }
  .photo-slot { max-width: 215px; margin: 0 auto; }
  .ff { grid-template-columns: 1fr; gap: 2px; padding: 9px 2px; }
  .record { grid-template-columns: 1fr; gap: 6px; }
  .rec-check { order: -1; }
  .rec-grant { margin-left: 0; padding-left: 14px; }
  .assess thead { display: none; }
  .assess tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .assess td { padding: 0; border: none; white-space: normal; }
  .assess td:last-child { text-align: left; margin-top: 4px; }
  .sticky { display: none; }
  .p-head { flex-wrap: wrap; gap: 6px 12px; }
  .p-head h2 { flex: 1 1 100%; order: 2; font-size: 16px; letter-spacing: .1em; }
  .p-form { order: 1; }
  .p-page { order: 3; margin-left: auto; }
  .paper-wrap { padding: 24px 14px; }
  .paper { width: min(880px, 100%); padding: 24px 18px 36px; }
  .paper::before { display: none; }
  .cover-sticker { width: min(300px, 90%); padding: 18px 14px; }
  .cs-name { font-size: clamp(24px, 7.5vw, 38px); }
  .cover-coffee { right: 24px; top: 18px; width: 56px; height: 56px; }
  .stamp-cover { top: 72px; right: 18px; font-size: 14px; padding: 2px 6px; }
  .cover-dept { top: 18px; left: 18px; font-size: 8.5px; letter-spacing: .16em; line-height: 1.6; }
  .cover-warn { left: 18px; right: 18px; bottom: 64px; font-size: 8.5px; line-height: 1.45; }
  .cover-open-hint { left: 18px; right: 18px; bottom: 18px; font-size: 10px; }
  .cover-barcode { display: none; }
  .folder-tab { left: 20px; padding: 5px 16px 8px; font-size: 10px; }
  .folder { aspect-ratio: 360 / 430; }
  #cover { padding: 80px 14px 48px; }
  .clippings { grid-template-columns: 1fr; }
  .evidence-wide { flex-direction: column; }
  .evidence-wide p { min-width: 0; }
  .verdict-actions { flex-direction: column; }
  .act { text-align: center; }
  .ce-title { font-size: 18px; letter-spacing: .32em; text-indent: .32em; }
  .sign-row { gap: 28px; }
  .sign-script { font-size: 24px; min-width: 0; }
}
@media (max-width: 480px) {
  .cb-status { display: none; }
  #case-bar { padding: 9px 12px; gap: 10px; }
  .cb-right { width: auto; justify-content: flex-end; flex-shrink: 0; }
  .cb-skip-long { display: none; }
  .cb-link { font-size: 10px; padding: 3px 9px; letter-spacing: .06em; }
  #tabs { gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .ftab { padding: 6px 9px; font-size: 9.5px; letter-spacing: .08em; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ─────────────────────────── reduced motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .paper { opacity: 1; transform: none; }
  .stamp-anim, .sticky, .checklist li, .g-points circle { opacity: 1 !important; }
  #g-line { stroke-dashoffset: 0; }
  .folder:not(.open) .folder-front { animation: none; }
}

/* ───────────────────────── persona switch ────────────────────── */
#persona-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 300;
  font-family: var(--type); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 3px;
  padding: 8px 13px; transform: rotate(-2deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
#persona-switch:hover {
  transform: rotate(0) translateY(-2px);
  box-shadow: 4px 5px 0 rgba(0,0,0,.4);
  background: var(--sticky);
}
@media (max-width: 1180px) {
  #persona-switch {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    font-size: 10px; padding: 6px 10px;
  }
}
@media (max-width: 720px) {
  #persona-switch { font-size: 9.5px; padding: 5px 9px; }
}

/* ───────────────────────── press clippings (medium) ──────────── */
.clippings {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr));
  gap: 18px;
}
.clip {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--paper-edge);
  padding: 24px 18px 16px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: rotate(var(--crot, 0deg));
  transition: transform .22s ease, box-shadow .25s ease;
  animation: clip-in .5s ease both;
}
.clip:nth-child(odd)  { --crot: -.7deg; }
.clip:nth-child(even) { --crot: .8deg; }
.clip:hover {
  transform: rotate(0) translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0,0,0,.22); z-index: 3;
}
@keyframes clip-in { from { opacity: 0; transform: translateY(16px) rotate(var(--crot, 0deg)); } }

.clip-img {
  margin: -8px -4px 14px; overflow: hidden; aspect-ratio: 16/9;
  border: 1px solid var(--paper-edge); background: #e7dec7;
}
.clip-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(.28) saturate(.85) contrast(.95);
}
.clip-date {
  font-family: var(--type); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 8px;
}
.clip h3 { font-size: 17.5px; font-weight: 600; line-height: 1.3; margin-bottom: 7px; color: var(--ink); }
.clip > p { font-size: 13px; color: var(--ink-soft); }
.clip-go {
  margin-top: auto; padding-top: 14px;
  font-family: var(--type); font-size: 11.5px; font-weight: 700;
  color: var(--blue); opacity: 0; transform: translateX(-6px);
  transition: opacity .22s, transform .22s;
}
.clip:hover .clip-go { opacity: 1; transform: none; }

/* skeleton while the archive is retrieved */
.clip-skel { pointer-events: none; }
.skel-line {
  height: 11px; background: var(--line); margin: 9px 0; border-radius: 2px;
  animation: skel-pulse 1.2s ease-in-out infinite;
}
.skel-img { aspect-ratio: 16/9; background: var(--line); margin: -8px -4px 14px; animation: skel-pulse 1.2s ease-in-out infinite; }
.w35 { width: 35%; } .w60 { width: 60%; } .w80 { width: 80%; } .w95 { width: 95%; }
@keyframes skel-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }

.clip-empty {
  grid-column: 1 / -1; text-align: center;
  border: 1.5px dashed var(--red); padding: 30px 22px;
  font-family: var(--type); font-size: 13px; color: var(--ink-soft);
}
.clip-empty b { color: var(--red); letter-spacing: .12em; }
.clip-empty a { color: var(--blue); }

.clip-foot {
  margin-top: 26px; font-family: var(--type);
  font-size: 11.5px; letter-spacing: .1em; color: var(--faint);
}
.clip-foot a { color: var(--blue); }
.clip-foot a:hover { color: var(--red); }