/* ============================================================
   Honest University — Права студентов
   Paper / notebook aesthetic, inspired by editorial explainers
   ============================================================ */

:root {
  --paper: #faf9f5;
  --paper-2: #f5f4ed;
  --paper-3: #eeece2;
  --ink: #141413;
  --ink-2: #30302e;
  --muted: #5e5d59;
  --faint: #87867f;
  --line: rgba(20, 20, 19, 0.10);
  --line-2: rgba(20, 20, 19, 0.18);
  --grid: rgba(20, 20, 19, 0.055);
  --green: #6ff24a;         /* brand asterisk */
  --green-ink: #2f7d16;
  --green-wash: rgba(111, 242, 74, 0.38);
  --red: #c44e40;           /* flag red, used sparingly */
  --red-wash: rgba(196, 78, 64, 0.14);
  --blue-wash: rgba(120, 150, 230, 0.22);

  --serif: "Source Serif 4", "PT Serif", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 10px;
  --shadow: 0 1px 0 rgba(20, 20, 19, 0.04), 0 6px 24px -10px rgba(20, 20, 19, 0.18);
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(20,20,19,.35); transition: text-decoration-color .2s, background-color .2s; }
a:hover { text-decoration-color: var(--ink); }
p { margin: 0 0 0.9em; }
strong { font-weight: 600; }
::selection { background: var(--green-wash); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; font-family: var(--sans); font-size: 14px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- grid paper ---------- */
.gridpaper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--sans); font-size: 14.5px; letter-spacing: -0.01em; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink);
  transition: transform .15s, background-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: var(--paper-2); color: var(--ink-2); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper-3); }
.btn--green { background: var(--green); color: var(--ink); border-color: #4fd12a; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .btn--header { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; font-size: 17px;
  }
  .nav.is-open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
section { position: relative; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.kicker .num { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h2.section-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; margin-bottom: 22px; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }

/* hand-drawn highlighter */
.mark {
  background-image: linear-gradient(104deg, transparent 0.6%, var(--green-wash) 2.4%, var(--green-wash) 96%, transparent 99%);
  background-size: 100% 0.62em; background-repeat: no-repeat; background-position: 0 88%;
  padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.squiggle { display: block; width: 180px; height: 12px; margin-top: 10px; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; height: calc(100svh - 56px); min-height: 520px; max-height: 980px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__art { position: absolute; inset: 0; }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; }
.hero__art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(250,249,245,0) 0%, rgba(250,249,245,.4) 38%, rgba(250,249,245,.8) 66%, var(--paper) 94%),
    radial-gradient(120% 90% at 0% 100%, rgba(250,249,245,.92) 0%, rgba(250,249,245,.6) 38%, rgba(250,249,245,0) 62%); }
.hero__art .draw-in { clip-path: inset(0 100% 0 0); animation: draw 2.4s cubic-bezier(.65,.05,.3,1) .2s forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.hero__title { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 6vh, 72px); }
.hero h1 { font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance;
  text-shadow:
    0 0 2px var(--paper), 0 0 2px var(--paper), 0 0 2px var(--paper), 0 0 2px var(--paper),
    0 0 6px var(--paper), 0 0 6px var(--paper), 0 0 6px var(--paper), 0 0 6px var(--paper),
    0 0 16px var(--paper), 0 0 16px var(--paper), 0 0 16px var(--paper),
    0 0 34px var(--paper), 0 0 34px var(--paper);
  opacity: 0; transform: translateY(18px); animation: rise 1s cubic-bezier(.2,.7,.2,1) .9s forwards; }
.hero h1 em { font-style: italic; color: var(--ink-2); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__art .draw-in, .hero h1 { animation: none; clip-path: none; opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero { height: auto; min-height: 0; }
  .hero__art { position: relative; aspect-ratio: 4 / 3; }
  .hero__art::after { background: linear-gradient(180deg, rgba(250,249,245,0) 55%, var(--paper) 100%); }
  .hero h1 { max-width: none; }
  .hero__title { position: relative; padding-top: 8px; }
}

.intro { border-bottom: 1px solid var(--line); }
.intro__inner { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.hero__standfirst { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); }
.hero__standfirst strong { font-weight: 600; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.partners { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 32px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.partners span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.partners img { height: 19px; width: auto; }
.partners img.chu { height: 17px; }

/* ---------- scrollytelling ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.story__figure { position: sticky; top: 88px; height: 72vh; max-height: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.story__figure .fig { position: absolute; left: 50%; top: 50%; width: min(84%, 78vh); aspect-ratio: 1; transform: translate(-50%, -50%); }
.story__figure .fig img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.story__figure .fig { overflow: visible; }
.story__figure .figure-frame { position: absolute; inset: -1px; border: 1.5px solid var(--ink); border-radius: 3px; filter: url(#rough); pointer-events: none; }
.story__figure .hl { position: absolute; border: 2.5px solid var(--red); border-radius: 50%; filter: url(#rough); opacity: 0; transform: scale(.8) rotate(-6deg); transition: opacity .6s, transform .6s; pointer-events: none; }
.story__figure .hl--a { left: 2%; top: 18%; width: 96%; height: 56%; border-color: var(--green-ink); }
.story__figure .hl--b { left: 56%; top: 52%; width: 22%; height: 18%; }
.story[data-step="1"] .hl--a, .story[data-step="2"] .hl--b { opacity: .9; transform: scale(1) rotate(-6deg); }
.story__label { position: absolute; left: 0; top: -26px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink); }
.story__steps { padding: 0 clamp(20px, 4vw, 64px); }
.story__intro { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.step { min-height: 90vh; display: flex; align-items: center; }
.step:last-child { min-height: 80vh; }
.card {
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); max-width: 440px;
  opacity: .35; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.step.is-active .card { opacity: 1; transform: none; }
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .foot { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 12px; }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__figure { top: 56px; height: 52vh; max-height: none; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; z-index: 1; }
  .story__steps { position: relative; z-index: 2; }
  .story__intro { min-height: 0; padding: 48px 0 24px; background: var(--paper); margin: 0 calc(-1 * clamp(20px,4vw,64px)); padding-left: clamp(20px,4vw,64px); padding-right: clamp(20px,4vw,64px); }
  .step { min-height: 70vh; }
  .card { opacity: 1; transform: none; }
}

/* ---------- documents ---------- */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.doc {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 250px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 20px; text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s;
}
a.doc:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--shadow); background: #fff; }
.doc__icon { width: 44px; height: 54px; color: var(--ink); }
.doc__title { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.doc__note { font-family: var(--sans); font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: auto; }
.doc__note b { color: var(--ink); font-weight: 600; }
.doc__go { position: absolute; top: 18px; right: 18px; font-family: var(--sans); font-size: 12px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.doc__go svg { width: 14px; height: 14px; }
.doc--local { background: transparent; border-style: dashed; }
@media (max-width: 1000px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .docs { grid-template-columns: 1fr; } .doc { min-height: 0; } }

/* ---------- FAQ / chapter ---------- */
.chapter { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.chapter__aside { position: sticky; top: 88px; }
.chapter__aside .section-title { font-size: clamp(32px, 4vw, 48px); }
.chapter__aside .lede { font-size: 17.5px; }
.chapter__aside .art { margin-top: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.chapter__aside .art img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.chapter__aside .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 980px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter__aside { position: static; }
  .chapter__aside .art { max-width: 420px; }
}

.faq-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px;
  font-family: var(--sans); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--green-wash); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.search input::placeholder { color: var(--faint); }
.linkbtn { font-family: var(--sans); font-size: 13.5px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.linkbtn:hover { color: var(--ink); }
.faq-count { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.faq-empty { display: none; font-family: var(--sans); font-size: 15px; color: var(--muted); padding: 24px 0; }

.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 12px; align-items: baseline;
  padding: 20px 4px; font-family: var(--sans); font-size: 17.5px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35;
  transition: background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: linear-gradient(90deg, var(--paper-2), transparent); }
.faq .qn { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); }
.faq .pm { width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; align-self: center; transition: transform .3s, background-color .2s; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] .pm { background: var(--green); border-color: #4fd12a; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 44px 26px 4px; max-width: 760px; color: var(--ink-2); }
.faq .answer ul { padding-left: 1.1em; margin: 0 0 0.9em; }
.faq .answer li { margin-bottom: .4em; }
.faq .answer a { text-decoration-color: var(--green-ink); text-decoration-thickness: 1.5px; }
.faq .answer a:hover { background: var(--green-wash); }
.faq details.is-hidden { display: none; }
.faq mark { background: var(--green-wash); color: inherit; padding: 0 1px; border-radius: 2px; }
@media (max-width: 600px) {
  .faq summary { grid-template-columns: minmax(0, 1fr) 26px; font-size: 16.5px; padding: 18px 0; }
  .faq .answer { padding: 0 0 22px 0; }
}

.ref {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 9px;
}
.ref::before { content: "§"; color: var(--muted); }

/* offences list inside first question */
.offences { display: grid; gap: 10px; margin: 4px 0 18px; }
.offence { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 14px 16px; }
.offence strong { display: block; font-family: var(--sans); font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.offence p { margin: 0 0 8px; font-size: 16px; }
.offence .ref { margin: 4px 0 0; }

/* ---------- figures / charts ---------- */
.figure {
  margin: 0 0 40px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
}
.figure__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.figure__title { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: -0.005em; }
.figure__src { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.figure__body { padding: 8px 20px 20px; }
.figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.figure svg text { font-family: var(--sans); fill: var(--ink); }
.figure svg .muted { fill: var(--muted); }
.rough { filter: url(#rough); }
.draw-path { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.6s cubic-bezier(.6,.1,.3,1); }
.in-view .draw-path { stroke-dashoffset: 0; }
.pop { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.in-view .pop { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .draw-path { transition: none; stroke-dashoffset: 0; } .pop { opacity: 1; transform: none; transition: none; } }

/* disciplinary ladder */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; padding-top: 12px; }
.rung { position: relative; border: 1.5px solid transparent; border-radius: 6px; padding: 14px 14px 12px; background: var(--paper); }
.rung::before, .attempt::before { content: ""; position: absolute; inset: -1.5px; border: 1.5px solid var(--ink); border-radius: inherit; filter: url(#rough); pointer-events: none; }
.rung { min-height: 0; display: flex; align-items: center; }
.rung:nth-child(2) { background: var(--paper-2); }
.rung:nth-child(3) { background: var(--red-wash); }
.rung__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rung__name { font-size: 22px; letter-spacing: -0.01em; line-height: 1.1; overflow-wrap: anywhere; }
.rung__hint { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.ladder-note { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ladder-note span { display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--ink); }
@media (max-width: 640px) {
  .ladder { grid-template-columns: 1fr; gap: 8px; }
  .rung { padding: 12px 14px; justify-content: flex-start; }
  .rung__name { font-size: 19px; }
}

/* deadlines timeline */
.deadlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.deadline { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line-2); }
.deadline:first-child { border-top: 0; }
.deadline__bar { height: 16px; border-radius: 3px; border: 1.5px solid var(--ink); background: repeating-linear-gradient(-55deg, var(--ink) 0 1.2px, transparent 1.2px 5px), var(--green-wash); filter: url(#rough); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.6,.1,.3,1); }
.in-view .deadline__bar { transform: scaleX(1); }
.deadline__val { font-family: var(--sans); font-weight: 700; font-size: 15px; white-space: nowrap; }
.deadline__val small { font-weight: 400; color: var(--muted); font-size: 12.5px; display: block; }
.deadline__txt { font-size: 15.5px; color: var(--ink-2); line-height: 1.4; }
.deadline__track { display: grid; gap: 6px; }
@media (max-width: 560px) { .deadline { grid-template-columns: 1fr; gap: 8px; } .deadline__val small { display: inline; margin-left: 6px; } }
@media (prefers-reduced-motion: reduce) { .deadline__bar { transform: none; transition: none; } }

/* retake attempts */
.attempts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.attempt { position: relative; border: 1.5px solid transparent; border-radius: 8px; padding: 16px; background: var(--paper); min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.attempt:nth-child(2) { background: var(--paper-2); }
.attempt:nth-child(3) { background: var(--blue-wash); }
.attempt__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.attempt__h { font-size: 22px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.people { display: flex; gap: 2px; height: 24px; margin-left: -3px; }
.people svg { width: 24px; height: 24px; }
.attempt__t { font-family: var(--sans); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.attempts-foot { margin-top: 14px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) { .attempts { grid-template-columns: 1fr; } .attempt { min-height: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); margin-top: 6px; }
.stat { padding: 18px 16px 4px 0; border-right: 1px dashed var(--line-2); }
.stat + .stat { padding-left: 16px; }
.stat:last-child { border-right: 0; }
.stat__v { font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.stat__v small { font-size: 0.42em; letter-spacing: 0; color: var(--muted); font-family: var(--sans); margin-left: 4px; }
.stat__l { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; padding-left: 0 !important; border-bottom: 1px dashed var(--line-2); padding-bottom: 14px; }
  .stat:nth-child(odd) { border-right: 1px dashed var(--line-2); padding-right: 12px; }
  .stat:nth-child(even) { padding-left: 14px !important; }
}

/* ---------- complaint ---------- */
.complaint { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.complaint__art { display: grid; gap: 16px; order: 2; }
.complaint__art img {
  mix-blend-mode: multiply; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper);
}
.steps3 { list-style: none; margin: 30px 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps3 li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line-2); }
.steps3 li:last-child { border-bottom: 1px solid var(--line-2); }
.steps3 .n { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border: 1.5px solid var(--ink); border-radius: 50%; filter: url(#rough); background: var(--paper); }
.steps3 li:first-child .n { background: var(--green); }
.steps3 b { display: block; font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.steps3 span { color: var(--ink-2); }
@media (max-width: 900px) { .complaint { grid-template-columns: 1fr; } .complaint__art { max-width: 460px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 14px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.foot-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.foot-logos img { height: 20px; width: auto; }
.foot-logos img.chu { height: 18px; }
.foot-bottom { grid-column: 1 / -1; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal, .no-js .pop { opacity: 1; transform: none; }
.no-js .draw-path { stroke-dashoffset: 0; }
.no-js .deadline__bar { transform: none; }
.no-js .card { opacity: 1; transform: none; }

/* ---------- newsletter page ---------- */
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 56px); }
.nl__art { position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.nl__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 82% 40%; mix-blend-mode: multiply; }
.nl__text { padding: clamp(40px, 6vw, 88px) clamp(20px, 4.5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.nl h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 24px; text-wrap: balance; }
.nl__body p { color: var(--ink-2); }
.nl form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.nl input[type=email] { flex: 1 1 240px; font: 16px var(--sans); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.nl input[type=email]:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--green-wash); }
.nl button { cursor: pointer; font-size: 15px; padding: 12px 22px; }
.nl .form-note { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 12px; min-height: 1.4em; }
@media (max-width: 900px) { .nl { grid-template-columns: 1fr; } .nl__art { aspect-ratio: 3/2; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 56px); display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.nf h1 { font-size: clamp(90px, 18vw, 200px); line-height: .9; letter-spacing: -0.05em; }
.nf p { font-size: 19px; color: var(--ink-2); margin: 18px 0 26px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.partners a, .foot-logos a { display: inline-flex; transition: opacity .2s; }
.partners a:hover, .foot-logos a:hover { opacity: .7; }
