/* ============================================================
   غرفة الأدلة — THE EVIDENCE ROOM
   Design system & global styles
   ============================================================ */

:root {
  /* palette — derived from official artwork: warm charcoal, bone paper,
     evidence red, manila, case accents (green / red / steel) */
  --bg0: #0d0c0a;
  --bg1: #13110d;
  --bg2: #1a1712;
  --bg3: #211d16;
  --paper: #e7dcc3;
  --paper-2: #d8c9a6;
  --paper-3: #c9b88f;
  --ink: #201a11;
  --ink-2: #4a4132;
  --bone: #ece5d4;
  --muted: #a89d89;
  --faint: #766d5c;
  --red: #c22823;
  --red-bright: #e04a3a;
  --red-deep: #8c1a17;
  --red-dark: #4a0f0d;
  --gold: #c8a15a;
  --c404: #4d7a62;
  --c505: #c23a2b;
  --c606: #587a94;
  --line: rgba(231, 220, 195, 0.13);
  --line-2: rgba(231, 220, 195, 0.26);
  --shadow-1: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
  --font-display: "Alexandria", "Cairo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-type: "Special Elite", "Courier New", monospace;
  --header-h: 76px;
  --wrap: 1180px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html[dir="rtl"] { text-align: right; }
body {
  background: var(--bg0);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  background-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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
::selection { background: var(--red-deep); color: var(--bone); }
:focus-visible { outline: 2px dashed var(--red-bright); outline-offset: 3px; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 200;
  background: var(--red-deep); color: var(--bone); padding: .6rem 1.2rem;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: .6rem; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; font-weight: 800; }
.en { font-family: var(--font-type); letter-spacing: 0.14em; direction: ltr; unicode-bidi: isolate; }
.type { font-family: var(--font-type); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section--alt { background: var(--bg1); border-block: 1px solid var(--line); }

/* ---------- kicker / section heads ---------- */
.kicker {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--font-type); font-size: .78rem; letter-spacing: .22em;
  color: var(--red-bright); text-transform: uppercase; margin-bottom: 1.1rem;
}
.kicker .k-line { width: 44px; height: 1px; background: var(--red); flex: none; }
.kicker .k-ar { font-family: var(--font-body); font-size: .82rem; letter-spacing: 0; color: var(--muted); }
.sec-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.sec-head h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 900; }
.sec-head h2 em { font-style: normal; color: var(--red-bright); }
.sec-sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }
.ghost-num {
  position: absolute; top: 2rem; inset-inline-end: 2%;
  font-family: var(--font-type); font-size: clamp(5rem, 14vw, 11rem);
  color: transparent; -webkit-text-stroke: 1px rgba(231,220,195,.07);
  pointer-events: none; user-select: none; line-height: 1; direction: ltr;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.9rem; border-radius: 3px;
  background: var(--red-deep); color: var(--bone);
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 14px 28px -14px rgba(194,40,35,.6);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { background: var(--red); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; border: 1px solid var(--line-2); color: var(--bone);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--paper-2); background: rgba(231,220,195,.05); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper-3); box-shadow: 0 14px 28px -16px rgba(0,0,0,.8); }
.btn--paper:hover { background: #f2e8d2; }
.btn .ic { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- stamps & labels ---------- */
.stamp {
  display: inline-block; font-family: var(--font-type); text-transform: uppercase;
  letter-spacing: .14em; color: var(--red-bright); border: 2px solid currentColor;
  border-radius: 3px; padding: .3em .75em; transform: rotate(-3deg);
  font-size: .8rem; opacity: .92; direction: ltr;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 .4 .8 1 1 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3CfeComposite operator='in' in2='SourceGraphic'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: 130px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 .4 .8 1 1 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3CfeComposite operator='in' in2='SourceGraphic'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23r)'/%3E%3C/svg%3E");
  -webkit-mask-size: 130px;
}
.stamp--paper { color: var(--paper-2); }
.tag-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--muted); border: 1px solid var(--line);
  padding: .28rem .7rem; border-radius: 2px; background: rgba(231,220,195,.03);
}
.tag-chip b { color: var(--bone); font-weight: 500; }
.redacted { background: var(--ink-2); color: transparent; border-radius: 2px; user-select: none; padding-inline: .3em; }

/* corner ticks frame */
.corners { position: relative; }
.corners > i {
  position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-inline-start: 1px solid var(--red); border-block-start: 1px solid var(--red);
}
.corners > i:nth-child(1) { top: -1px; inset-inline-start: -1px; }
.corners > i:nth-child(2) { top: -1px; inset-inline-end: -1px; transform: scaleX(-1); }
.corners > i:nth-child(3) { bottom: -1px; inset-inline-start: -1px; transform: scaleY(-1); }
.corners > i:nth-child(4) { bottom: -1px; inset-inline-end: -1px; transform: scale(-1); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(13,12,10,.88); backdrop-filter: blur(12px); border-color: var(--line); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand .badge { width: 46px; height: 46px; color: var(--bone); flex: none; transition: transform .5s var(--ease); }
.brand:hover .badge { transform: rotate(-8deg); }
.brand-txt { line-height: 1.2; }
.brand-txt .ar { font-family: var(--font-display); font-weight: 900; font-size: 1.12rem; display: block; }
.brand-txt .en { font-size: .58rem; letter-spacing: .34em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.main-nav a {
  font-size: .95rem; color: var(--muted); position: relative; padding-block: .4rem;
  transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--bone); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { padding: .55rem 1.2rem; font-size: .9rem; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 130; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--bone);
  margin-inline: auto; position: relative; transition: transform .35s var(--ease), opacity .3s;
}
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: rgba(13,12,10,.97);
  display: flex; flex-direction: column; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--bone);
  display: flex; justify-content: space-between; align-items: center;
  transform: translateY(14px); opacity: 0; transition: .5s var(--ease);
}
body.menu-open .mobile-menu a { transform: none; opacity: 1; }
.mobile-menu a .en { font-size: .7rem; color: var(--faint); }
.mobile-menu .mm-foot { margin-top: 2rem; color: var(--muted); font-size: .85rem; }
.mobile-menu a.btn { font-size: 1.05rem; padding: .95rem 1.6rem; border: 1px solid rgba(0,0,0,.5); transform: none; opacity: 1; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.62) contrast(1.05); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, transparent 30%, rgba(13,12,10,.82) 88%),
    linear-gradient(to top, var(--bg0) 4%, transparent 45%),
    linear-gradient(to left, rgba(13,12,10,.9) 12%, rgba(13,12,10,.35) 55%, rgba(13,12,10,.55));
}
@keyframes kenburns { from { transform: scale(1.08) translateY(-1.5%); } to { transform: scale(1); } }
.hero-bg img { animation: kenburns 9s var(--ease) both; }
.hero-in { position: relative; z-index: 2; width: 100%; padding-block: 4rem 6rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; color: var(--paper-2);
  border: 1px solid var(--line-2); padding: .45rem 1rem; border-radius: 2px;
  background: rgba(13,12,10,.5); backdrop-filter: blur(4px); margin-bottom: 1.6rem;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(194,40,35,.22); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(194,40,35,.08); } }
.hero h1 { font-size: clamp(3rem, 9.5vw, 6.4rem); font-weight: 900; line-height: 1.12; }
.hero .latin {
  display: block; font-family: var(--font-type); font-size: clamp(.8rem, 2vw, 1.05rem);
  letter-spacing: .52em; color: var(--muted); margin-top: .8rem; direction: ltr; text-align: left;
}
.hero-line {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--paper); font-weight: 500;
  margin-top: 1.6rem; max-width: 34ch;
}
.hero-line b { color: var(--red-bright); font-weight: 700; }
.hero-sub { color: var(--muted); max-width: 52ch; margin-top: .9rem; }
.hero .btn-row { margin-top: 2.4rem; }
.hero-stamp { position: absolute; top: 16%; inset-inline-end: 6%; z-index: 3; font-size: 1rem; transform: rotate(7deg); }
.hero-note {
  position: absolute; bottom: 12%; inset-inline-end: 7%; z-index: 3; max-width: 230px;
  background: var(--paper); color: var(--ink); padding: 1.1rem 1.2rem 1rem;
  font-size: .95rem; line-height: 1.7; font-weight: 500;
  transform: rotate(3deg); box-shadow: var(--shadow-1);
}
.hero-note::before {
  content: ""; position: absolute; top: -9px; inset-inline-start: 50%; width: 14px; height: 14px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red-dark));
  transform: translateX(50%);
  box-shadow: 0 3px 5px rgba(0,0,0,.5);
}
.hero-side {
  position: absolute; inset-inline-end: 1.2rem; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-type); font-size: .68rem;
  letter-spacing: .5em; color: var(--faint); direction: ltr; z-index: 2;
}
.scroll-cue {
  position: absolute; bottom: 1.6rem; inset-inline-start: 50%; transform: translateX(50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .75rem;
}
.scroll-cue .rope { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue .rope::after { content: ""; position: absolute; top: -40%; inset-inline: 0; height: 40%; background: var(--red); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { to { top: 110%; } }

/* line-mask reveal for hero title */
.mask-line { overflow: hidden; display: block; }
.mask-line > span { display: block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.mask-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }

/* ---------- meta strip ---------- */
.meta-strip { border-block: 1px solid var(--line); background: var(--bg1); }
.meta-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.meta-item {
  display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.2rem;
  border-inline-start: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}
.meta-item:first-child { border-inline-start: none; }
.meta-item .ic { width: 22px; height: 22px; color: var(--red-bright); flex: none; }
.meta-item b { color: var(--bone); font-weight: 500; display: block; font-size: .92rem; }

/* ---------- premise ---------- */
.premise-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.premise h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 900; line-height: 1.3; }
.premise h2 .you { color: var(--red-bright); }
.premise .en-line {
  font-family: var(--font-type); direction: ltr; text-align: left; color: var(--faint);
  letter-spacing: .18em; font-size: .82rem; margin-top: 1.6rem;
  border-inline-start: 2px solid var(--red); padding-inline-start: 1rem;
}
.premise p.lead { color: var(--muted); margin-top: 1.4rem; font-size: 1.08rem; }
.pillars { display: grid; gap: 1rem; }
.pillar {
  border: 1px solid var(--line); background: var(--bg2); padding: 1.4rem 1.5rem;
  position: relative; transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.pillar:hover { transform: translateX(-6px); border-color: var(--line-2); background: var(--bg3); }
.pillar .num { font-family: var(--font-type); color: var(--red-bright); font-size: .8rem; letter-spacing: .2em; }
.pillar h3 { font-size: 1.15rem; margin-block: .4rem .3rem; }
.pillar p { color: var(--muted); font-size: .92rem; line-height: 1.8; }

/* ---------- evidence scatter ---------- */
.scatter { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); align-items: start; }
.polaroid {
  background: var(--paper); padding: 10px 10px 14px; color: var(--ink);
  box-shadow: var(--shadow-1); position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.polaroid img { width: 100%; aspect-ratio: var(--ar, 4/3); object-fit: cover; filter: saturate(.85) contrast(1.04); }
.polaroid figcaption { font-family: var(--font-type); font-size: .72rem; letter-spacing: .06em; margin-top: .65rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: .5rem; direction: ltr; }
.polaroid::before {
  content: ""; position: absolute; top: -10px; inset-inline-start: 50%; transform: translateX(50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red-dark));
  box-shadow: 0 3px 6px rgba(0,0,0,.55); z-index: 2;
}
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.02) !important; z-index: 5; }
.polaroid .exh {
  position: absolute; bottom: -12px; inset-inline-end: 12px; background: var(--paper-3);
  font-family: var(--font-type); font-size: .62rem; letter-spacing: .12em; padding: .25rem .55rem;
  color: var(--ink); border: 1px solid var(--ink-2); direction: ltr;
}
.sc-a { grid-column: 1 / span 4; transform: rotate(-2.2deg); }
.sc-b { grid-column: 5 / span 4; transform: rotate(1.6deg); margin-top: 2.4rem; }
.sc-c { grid-column: 9 / span 4; transform: rotate(-1.4deg); margin-top: 1rem; }
.sc-d { grid-column: 2 / span 4; transform: rotate(1.8deg); margin-top: -1rem; }
.sc-e { grid-column: 7 / span 4; transform: rotate(-2deg); margin-top: 1.6rem; }
.scatter-note {
  grid-column: 1 / -1; text-align: center; color: var(--muted); margin-top: 2.2rem; font-size: 1.05rem;
}
.scatter-note b { color: var(--paper); }

/* ---------- cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.6vw, 2rem); }
.case-card {
  border: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column;
  position: relative; transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.case-card::before {
  content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 2px;
  background: var(--accent, var(--red)); transform: scaleX(0); transition: transform .5s var(--ease);
}
.case-card:hover { transform: translateY(-8px); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.case-card:hover::before { transform: scaleX(1); }
.case-cover { position: relative; overflow: hidden; aspect-ratio: 3/3.6; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); filter: saturate(.9); }
.case-card:hover .case-cover img { transform: scale(1.05); }
.case-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,12,10,.9), transparent 55%); }
.case-no {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  background: rgba(13,12,10,.78); border: 1px solid var(--line-2); padding: .3rem .7rem;
  font-family: var(--font-type); font-size: .78rem; letter-spacing: .18em; color: var(--paper-2); direction: ltr;
}
.case-status {
  position: absolute; top: 14px; inset-inline-end: 12px; z-index: 2; font-size: .68rem;
}
.case-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.case-body h3 { font-size: 1.5rem; font-weight: 900; }
.case-body h3 small { display: block; font-family: var(--font-type); font-size: .68rem; letter-spacing: .3em; color: var(--accent, var(--red-bright)); margin-bottom: .35rem; font-weight: 400; direction: ltr; text-align: right; }
.case-teaser { color: var(--muted); font-size: .95rem; flex: 1; }
.case-hook { color: var(--paper); font-size: .9rem; border-inline-start: 2px solid var(--accent, var(--red)); padding-inline-start: .9rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.case-link {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
  color: var(--bone); font-family: var(--font-display); font-weight: 700; font-size: .98rem;
}
.case-link .ic { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.case-card:hover .case-link .ic { transform: translateX(-6px); }
.case-link .arr { color: var(--accent, var(--red-bright)); }
.cases-foot { text-align: center; margin-top: 3rem; color: var(--muted); }

/* ---------- steps / how it works ---------- */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.sticky-visual { position: sticky; top: calc(var(--header-h) + 2rem); }
.sticky-visual .polaroid { transform: rotate(-1.6deg); }
.sticky-visual .cap { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.steps { counter-reset: st; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.7rem 0;
  border-top: 1px solid var(--line); position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .st-no {
  font-family: var(--font-type); font-size: 1.5rem; color: var(--red-bright);
  direction: ltr; line-height: 1.4; min-width: 2.4ch;
}
.step h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .97rem; }
.step .st-tag { font-family: var(--font-type); font-size: .66rem; letter-spacing: .24em; color: var(--faint); direction: ltr; display: block; margin-bottom: .3rem; }

/* ---------- secrets ---------- */
.secrets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.secret {
  border: 1px solid var(--line); background: var(--bg2); padding: 1.6rem 1.4rem;
  position: relative; overflow: hidden; transition: transform .45s var(--ease), border-color .45s;
}
.secret:hover { transform: translateY(-6px); border-color: var(--line-2); }
.secret .s-no {
  font-family: var(--font-type); font-size: 3rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--red); direction: ltr; display: block; margin-bottom: 1rem;
}
.secret h3 { font-size: 1.05rem; line-height: 1.8; font-weight: 700; }
.secret p { color: var(--muted); font-size: .85rem; margin-top: .5rem; }

/* ---------- bundle ---------- */
.bundle {
  border: 1px solid var(--line-2); background:
    linear-gradient(rgba(13,12,10,.92), rgba(13,12,10,.94)), var(--bundle-img, none) center/cover;
  padding: clamp(2.5rem, 6vw, 4.5rem); position: relative;
}
.bundle-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.bundle h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 900; }
.bundle h2 em { font-style: normal; color: var(--red-bright); }
.bundle .pts { margin-top: 1.6rem; display: grid; gap: .8rem; }
.bundle .pts li { display: flex; gap: .8rem; align-items: baseline; color: var(--muted); }
.bundle .pts li::before { content: "—"; color: var(--red-bright); }
.bundle .pts li b { color: var(--bone); font-weight: 500; }
.bundle-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; align-items: end; }
.bundle-art img { border: 1px solid var(--line-2); box-shadow: var(--shadow-1); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.bundle-art img:nth-child(1) { transform: rotate(2deg) translateY(8px); }
.bundle-art img:nth-child(2) { transform: scale(1.06); z-index: 2; position: relative; }
.bundle-art img:nth-child(3) { transform: rotate(-2deg) translateY(8px); }
.bundle .offer-note { margin-top: 1.4rem; color: var(--gold); font-size: .92rem; }

/* ---------- faq ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.3rem .2rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  list-style: none; transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-bright); }
.faq summary .pm { font-family: var(--font-type); color: var(--red-bright); font-size: 1.2rem; transition: transform .35s var(--ease); direction: ltr; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 .2rem 1.4rem; color: var(--muted); max-width: 65ch; }

/* ---------- final cta ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta .bg { position: absolute; inset: 0; }
.final-cta .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.3) saturate(.7); }
.final-cta .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg0), rgba(13,12,10,.55) 50%, var(--bg0)); }
.final-cta .wrap { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; }
.final-cta h2 em { font-style: normal; color: var(--red-bright); }
.final-cta p { color: var(--muted); margin-top: 1rem; }
.final-cta .btn-row { justify-content: center; margin-top: 2.4rem; }

/* ---------- thread divider ---------- */
.thread-div { height: 56px; overflow: hidden; opacity: .8; }
.thread-div svg { width: 100%; height: 100%; }

/* ---------- case detail ---------- */
.case-hero { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 3.5rem; position: relative; overflow: hidden; }
.case-hero .tint { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.case-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; position: relative; }
.case-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
.case-hero .latin-name { font-family: var(--font-type); letter-spacing: .4em; color: var(--accent, var(--red-bright)); direction: ltr; text-align: right; font-size: .85rem; display: block; margin-top: .6rem; }
.case-hero .dek { color: var(--muted); margin-top: 1.2rem; font-size: 1.1rem; max-width: 52ch; }
.case-hero .hook { margin-top: 1.4rem; color: var(--paper); font-size: 1.15rem; font-weight: 500; border-inline-start: 2px solid var(--accent); padding-inline-start: 1rem; }
.case-hero .chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.case-file-img { position: relative; }
.case-file-img .polaroid { transform: rotate(1.8deg); }
.doc-frame {
  background: var(--paper); color: var(--ink); padding: 2rem 1.8rem; position: relative;
  box-shadow: var(--shadow-1);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(32,26,17,.07) 27px 28px);
}
.doc-frame h3 { font-size: 1.2rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.doc-frame h3 .en { font-size: .62rem; color: var(--ink-2); }
.doc-frame ul { display: grid; gap: .55rem; }
.doc-frame li { display: flex; gap: .7rem; align-items: baseline; font-size: .95rem; }
.doc-frame li::before { content: "▪"; color: var(--red-deep); }
.doc-frame .doc-foot { margin-top: 1.4rem; font-size: .78rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 1rem; }
.suspects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.suspect { border: 1px solid var(--line); background: var(--bg2); padding: 1.2rem; text-align: center; transition: transform .4s var(--ease), border-color .4s; }
.suspect:hover { transform: translateY(-5px); border-color: var(--line-2); }
.suspect .s-num { font-family: var(--font-type); color: var(--accent, var(--red-bright)); direction: ltr; font-size: .8rem; letter-spacing: .2em; }
.suspect h4 { margin-top: .4rem; font-size: 1.05rem; }
.suspect .role { color: var(--muted); font-size: .82rem; }
.suspect p { color: var(--muted); font-size: .8rem; margin-top: .6rem; line-height: 1.8; }
.timeline { border-inline-start: 1px solid var(--line-2); padding-inline-start: 1.6rem; display: grid; gap: 1.1rem; max-width: 560px; }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; inset-inline-start: calc(-1.6rem - 5px); top: .55rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--red));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.tl-item .t { font-family: var(--font-type); color: var(--accent, var(--red-bright)); direction: ltr; display: inline-block; font-size: .85rem; }
.tl-item p { color: var(--muted); font-size: .95rem; }
.case-buy {
  border: 1px solid var(--line-2); background: var(--bg2); padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.case-buy h3 { font-size: 1.5rem; }
.case-buy p { color: var(--muted); margin-top: .5rem; max-width: 55ch; }

/* ---------- archive / articles ---------- */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.arch-card { border: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; transition: transform .45s var(--ease), border-color .45s; }
.arch-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.arch-card .img { overflow: hidden; aspect-ratio: 16/10; }
.arch-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1s var(--ease); }
.arch-card:hover img { transform: scale(1.05); }
.arch-card .bd { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.arch-card .tag { font-family: var(--font-type); font-size: .66rem; letter-spacing: .26em; color: var(--red-bright); direction: ltr; text-align: right; }
.arch-card h3 { font-size: 1.15rem; line-height: 1.7; flex: 1; }
.arch-card .more { color: var(--muted); font-size: .85rem; }
.article { max-width: 780px; margin-inline: auto; }
.article .a-hero { aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); margin-bottom: 2.5rem; }
.article .a-hero img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 900; line-height: 1.5; }
.article .dek { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
.article .a-meta { display: flex; gap: 1rem; align-items: center; margin-top: 1.4rem; color: var(--faint); font-size: .8rem; }
.article .body { margin-top: 2.5rem; }
.article .body h2 { font-size: 1.45rem; margin: 2.6rem 0 1rem; color: var(--paper); }
.article .body h2 .st-no { font-family: var(--font-type); color: var(--red-bright); direction: ltr; display: inline-block; margin-inline-end: .6rem; }
.article .body p { color: var(--muted); margin-bottom: 1.1rem; }
.article .body p b, .article .body p strong { color: var(--bone); }
.article .body blockquote {
  border-inline-start: 3px solid var(--red); background: var(--bg2); padding: 1.4rem 1.6rem;
  margin: 1.8rem 0; color: var(--paper); font-size: 1.1rem; font-weight: 500;
}
.article .body ul { margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.article .body ul li { color: var(--muted); padding-inline-start: 1.2rem; position: relative; }
.article .body ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 8px; height: 1px; background: var(--red); }
.article .body figure { margin: 2rem 0; }
.article .body figure img { border: 1px solid var(--line); width: 100%; }
.article .body figcaption { color: var(--faint); font-size: .8rem; margin-top: .6rem; font-family: var(--font-type); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.channel { border: 1px solid var(--line); background: var(--bg2); padding: 1.6rem; display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1rem; transition: border-color .4s, transform .4s var(--ease); }
.channel:hover { border-color: var(--line-2); transform: translateX(-4px); }
.channel .ic { width: 26px; height: 26px; color: var(--red-bright); flex: none; margin-top: .2rem; }
.channel h3 { font-size: 1.05rem; }
.channel p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.channel .val { font-family: var(--font-type); direction: ltr; text-align: right; color: var(--paper-2); display: block; margin-top: .4rem; font-size: .95rem; }
.wa-form { border: 1px solid var(--line-2); background: var(--bg2); padding: 2rem; }
.wa-form label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.wa-form input, .wa-form textarea, .wa-form select {
  width: 100%; background: var(--bg0); border: 1px solid var(--line); color: var(--bone);
  padding: .8rem 1rem; font-family: var(--font-body); font-size: .95rem; border-radius: 2px;
  margin-bottom: 1.2rem; transition: border-color .3s;
}
.wa-form input:focus, .wa-form textarea:focus, .wa-form select:focus { outline: none; border-color: var(--red); }
.wa-form textarea { min-height: 120px; resize: vertical; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + 4.5rem); padding-bottom: 3rem; position: relative; overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: 0; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.34) saturate(.75); }
.page-hero .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg0), rgba(13,12,10,.4) 60%, rgba(13,12,10,.8)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); font-weight: 900; }
.page-hero .dek { color: var(--muted); max-width: 60ch; margin-top: 1rem; font-size: 1.08rem; }

/* ---------- 404 ---------- */
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem 1.5rem; }
.err .code { font-family: var(--font-type); font-size: clamp(5rem, 18vw, 10rem); color: transparent; -webkit-text-stroke: 1px var(--red); line-height: 1; direction: ltr; }
.err h1 { font-size: 1.6rem; margin-top: 1rem; }
.err p { color: var(--muted); margin-top: .8rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg1); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 40ch; }
.footer-col h4 { font-size: .95rem; color: var(--paper-2); margin-bottom: 1.1rem; font-family: var(--font-type); letter-spacing: .18em; }
.footer-col a { display: block; color: var(--muted); padding: .32rem 0; font-size: .92rem; transition: color .3s, transform .3s var(--ease); }
.footer-col a:hover { color: var(--red-bright); transform: translateX(-4px); }
.footer-note { color: var(--muted); font-size: .85rem; display: flex; gap: .6rem; align-items: center; margin-top: .5rem; }
.footer-note .ic { width: 16px; height: 16px; color: var(--red-bright); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .8rem; }
.footer-bottom .en { font-size: .68rem; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cases-grid, .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .secrets-grid { grid-template-columns: repeat(2, 1fr); }
  .suspects { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .sticky-visual { position: static; order: 2; }
  .premise-grid, .bundle-grid, .contact-grid, .case-hero-grid { grid-template-columns: 1fr; }
  .hero-note { display: none; }
  .meta-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .meta-item:nth-child(3) { border-inline-start: none; }
}
@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 720px) {
  .cases-grid, .arch-grid, .secrets-grid { grid-template-columns: 1fr; }
  .scatter { grid-template-columns: repeat(2, 1fr); }
  .sc-a, .sc-b, .sc-c, .sc-d, .sc-e { grid-column: auto; margin-top: 0; }
  .sc-b, .sc-d { margin-top: 1.6rem; }
  .case-buy { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-side { display: none; }
  .hero-stamp { top: 12%; inset-inline-end: 4%; font-size: .8rem; }
  .meta-strip .wrap { grid-template-columns: 1fr; }
  .meta-item { border-inline-start: none; border-top: 1px solid var(--line); }
  .meta-item:first-child { border-top: none; }
  .bundle-art { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 2.6rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .mask-line > span { transform: none; animation: none; }
  .hero-bg img { animation: none; }
}
