/* KPSS Meydanı website. Colours and type are the app's Optik design (KPSSDesign/Palette.swift,
   Typography.swift; android/design Palette.kt): paper (Kâğıt) by day, chalkboard (Kara tahta) by dark,
   set in IBM Plex. Plex Mono appears only inside the app fragments ([data-ui]), as in the app, where it
   carries the printed parts of the answer sheet. */

@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* taste-skill-ignore: Plex Mono is the app's printed-form face, used only inside the [data-ui] fragment. */
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; } /* taste-skill-ignore */
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; } /* taste-skill-ignore */

:root {
  color-scheme: light dark;
  /* Optik tokens, light (Kâğıt) */
  --background: #F7F4EC;
  --surface: #FFFDF8;
  --raised: #F3EFE6;
  --ink: #2A2A2D;
  --on-ink: #F7F4EC;
  --text-2: #5C5A60;
  --label: #A23C55;
  --bubble: #C2677B;
  --rule: #EBB3BE;
  --highlight: #F5E663;
  --on-highlight: #17181B;
  --wash: rgba(245, 230, 99, 0.55);
  --correct: #157A5B;
  --wrong: #B53A14;
  /* The hero stage: the rose the answer sheet is printed in. */
  --stage: #A23C55;
  --on-stage: #F7F4EC;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; /* taste-skill-ignore: [data-ui] only */

  /* Five type steps */
  --t-display: clamp(2.6rem, 1rem + 4.4vw, 4.75rem);
  --t-title: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
  --t-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --gutter: clamp(16px, 3.2vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --radius: 6px; /* Metrics.cornerRadius */
  --box-radius: 4px; /* Metrics.boxRadius */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Optik tokens, dark (Kara tahta) */
    --background: #17181B;
    --surface: #1F2024;
    --raised: #26272C;
    --ink: #EDEBE6;
    --on-ink: #17181B;
    --text-2: #A8A6AE;
    --label: #E79AAB;
    --bubble: #E79AAB;
    --rule: #5A4650;
    --wash: rgba(245, 230, 99, 0.14);
    --correct: #4FBF93;
    --wrong: #F07A55;
    --stage: #E79AAB;
    --on-stage: #17181B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 var(--t-body) / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--label); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--highlight); color: var(--on-highlight); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 20; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons: one shape on the whole site, the app's ink fill. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.button:hover { background: color-mix(in srgb, var(--ink) 86%, var(--label)); }
.button:active { transform: scale(0.97); }
.button-small { min-height: 40px; padding: 0 16px; font-size: var(--t-small); }

/* ---------- Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: var(--background);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.wordmark .mark { width: 32px; height: 32px; border-radius: 7px; }
.bar-links { display: flex; gap: 28px; margin-left: auto; }
.bar-links a { text-decoration: none; color: var(--text-2); transition: color 160ms; }
.bar-links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .bar-links { display: none; }
  .bar .button-small { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding: clamp(40px, 7vw, 110px) var(--gutter) 0;
  min-height: calc(100svh - 68px);
  align-content: start;
}
.hero-copy { grid-column: 1 / 8; grid-row: 1; padding-top: clamp(8px, 2vw, 40px); }
.hero h1 { font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; max-width: 10em; }
.hero-lead { margin-top: 36px; font-size: var(--t-lead); max-width: 34ch; color: var(--ink); line-height: 1.5; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-note { font-size: var(--t-small); color: var(--text-2); }

.stage {
  grid-column: 8 / -1; grid-row: 1 / span 2;
  margin-right: calc(-1 * var(--gutter));
  margin-top: clamp(0px, 4vw, 60px);
  background: var(--stage);
  /* The answer sheet's cut corner, which tells the reader which way up it goes. */
  clip-path: polygon(88px 0, 100% 0, 100% 100%, 0 100%, 0 88px);
  padding: 56px clamp(24px, 4vw, 64px) 0 clamp(40px, 5vw, 80px);
  position: relative;
  display: flex; align-items: flex-start;
  min-height: 640px;
}
.timing { position: absolute; left: 14px; top: 140px; display: grid; gap: 22px; }
.timing i { display: block; width: 14px; height: 8px; background: var(--on-stage); opacity: 0.85; }

/* ---------- The app fragment: a duel round on the answer sheet ---------- */
[data-ui] { font-family: var(--sans); color: var(--ink); }
.sheet {
  width: min(100%, 460px);
  background: var(--background);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px 18px 22px;
  align-self: stretch;
}
.strip { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1.5px solid var(--rule); border-radius: var(--box-radius); }
.box { display: grid; gap: 1px; padding: 8px 12px 9px; transition: background-color 200ms; }
.box + .box { border-left: 1.5px solid var(--rule); }
.box-label { font: 600 11px/1.2 var(--mono); color: var(--label); letter-spacing: 0.04em; }
.box-value { font: 600 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.box.is-urgent { background: var(--highlight); color: var(--on-highlight); }
.box.is-urgent .box-label { color: var(--on-highlight); }
.tally { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 2px 12px; }
.tally-label { font: 600 11px/1.2 var(--mono); color: var(--label); letter-spacing: 0.04em; }
.tally-value { font: 500 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 16px 16px 10px; }
.card-label { font: 600 11px/1.2 var(--mono); color: var(--label); letter-spacing: 0.04em; }
.question { margin-top: 10px; font-weight: 500; font-size: 19px; line-height: 1.35; min-height: 2.7em; }
.options { list-style: none; margin: 10px 0 0; padding: 0; }
.options li + li { border-top: 1px solid var(--rule); } /* taste-skill-ignore: the answer sheet's printed rules, inside [data-ui] */
.option {
  display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 12px;
  width: 100%; min-height: 50px; padding: 6px 4px;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 16px; border-radius: var(--box-radius);
  transition: background-color 160ms;
}
.option:hover:not(:disabled) { background: var(--wash); }
.option:disabled { cursor: default; }
.bubble {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--bubble);
  font: 600 12px/1 var(--mono); color: var(--label);
  transition: background-color 200ms, color 200ms, border-color 200ms, transform 200ms var(--ease);
}
.option.is-marked .bubble { background: var(--ink); border-color: var(--ink); color: var(--on-ink); transform: scale(1.08); }
.option.is-marked { background: var(--wash); }
.option.is-correct .bubble { background: var(--correct); border-color: var(--correct); color: #fff; }
.option.is-wrong .bubble { background: var(--wrong); border-color: var(--wrong); color: #fff; }
.verdict { width: 20px; height: 20px; justify-self: center; }
.option.is-correct .verdict { background: var(--correct); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%2012.5l5%205L20%206.5%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%2012.5l5%205L20%206.5%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat; }
.option.is-wrong .verdict { background: var(--wrong); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%206l12%2012M18%206L6%2018%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%206l12%2012M18%206L6%2018%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat; }
.explain { margin-top: 14px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 16px; }
.explain-verdict { margin-top: 8px; font-weight: 600; }
.explain-verdict.is-correct { color: var(--correct); }
.explain-verdict.is-wrong { color: var(--wrong); }
.explain-text { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.ui-button {
  margin-top: 14px; width: 100%; min-height: 46px;
  background: var(--ink); color: var(--on-ink); border: 0; border-radius: 8px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform 160ms var(--ease);
}
.ui-button:active { transform: scale(0.98); }
.fallback-answer { margin: 8px 0 6px; font-size: 15px; }
.fallback-answer summary { cursor: pointer; color: var(--label); font-weight: 600; }
.fallback-answer p { margin-top: 6px; }
html.js .fallback-answer { display: none; }

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding-top: 28px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-lead { margin-top: 24px; font-size: 1.0625rem; }
  .stage {
    margin: 40px calc(-1 * var(--gutter)) 0;
    clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px);
    padding: 40px 16px 0 36px;
    min-height: 0;
  }
  .timing { left: 10px; top: 110px; gap: 18px; }
  .timing i { width: 12px; }
  .sheet { width: 100%; max-width: 460px; }
}

/* ---------- Sections ---------- */
.section-title { font-size: var(--t-title); line-height: 1.05; letter-spacing: -0.03em; }
main > section { margin-top: var(--gap); }
main > section.hero { margin-top: 0; }

/* Modes: one column of rows, statement on the left (5), the app on the right (7). */
.modes { padding: 0 var(--gutter); }
.modes .section-title { max-width: 14em; }
.mode {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center; margin-top: clamp(72px, 9vw, 140px);
}
.mode-copy { grid-column: 1 / 6; }
.mode h3 { font-size: var(--t-title); line-height: 1.05; letter-spacing: -0.03em; }
.mode-copy p { margin-top: 18px; font-size: var(--t-lead); max-width: 30ch; line-height: 1.45; }
.mode-copy .mode-facts { font-size: var(--t-body); color: var(--text-2); margin-top: 14px; max-width: 38ch; }
.shot {
  margin: 0; overflow: hidden; position: relative;
  background: var(--raised);
  border-radius: var(--radius);
}
/* The app screen fills its frame and scrolls inside it as the page scrolls (site.js sets --py). */
.shot picture { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--py, 0%); }
/* Each row frames its screen differently so the column never repeats itself. */
.shot-tall { grid-column: 8 / 12; aspect-ratio: 3 / 4.2; }
.shot-wide { grid-column: 7 / -1; aspect-ratio: 4 / 3; }
.shot-square { grid-column: 7 / 12; aspect-ratio: 1; }
.shot { display: flex; justify-content: center; align-items: flex-end; }
.shot picture { width: 78%; height: 92%; }
.shot-wide picture { width: 62%; height: 90%; }
.shot-square picture { width: 66%; height: 90%; }
.shot img { border-radius: var(--radius) var(--radius) 0 0; }
.mode-a .shot, .mode-d .shot, .mode-g .shot { background: var(--ink); }
.mode-b .shot, .mode-e .shot { background: var(--stage); }
.mode-c .shot, .mode-f .shot { background: var(--highlight); }
@media (max-width: 760px) {
  .mode { display: block; margin-top: 72px; }
  .mode-copy p { max-width: none; }
  .shot { margin-top: 28px; }
  .shot-tall { aspect-ratio: 4 / 5; }
  .shot-wide, .shot-square { aspect-ratio: 4 / 4.4; }
  .shot picture, .shot-wide picture, .shot-square picture { width: 76%; }
}

/* Steps: two fields meeting on one edge, one slider driving both. */
.steps {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  min-height: 88svh;
}
.steps-field { padding: clamp(40px, 5vw, 72px) var(--gutter); }
.steps-words { background: var(--raised); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.steps-clauses { display: grid; }
.clause {
  grid-area: 1 / 1;
  font-size: var(--t-title); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
  max-width: 13em;
  opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 0s 200ms;
}
.clause.is-current { opacity: 1; visibility: visible; transition: opacity 200ms; }
.steps-picture { background: var(--ink); display: flex; justify-content: center; align-items: flex-end; padding-bottom: 0; overflow: hidden; }
.steps-shots { margin: 0; width: min(100%, 360px); display: grid; }
.steps-shot { grid-area: 1 / 1; opacity: 0; transition: opacity 200ms; }
.steps-shot.is-current { opacity: 1; }
.steps-shot img { border-radius: var(--radius) var(--radius) 0 0; }
.steps-control { grid-column: 1 / -1; padding: 28px var(--gutter) 32px; background: var(--raised); }
.steps-names { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps-names li { color: var(--text-2); font-size: var(--t-body); }
.steps-names li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.steps-names li:nth-child(3) { text-align: center; transform: translateX(17%); }
.steps-names li:last-child { text-align: right; }
.steps-names li.is-current { color: var(--ink); font-weight: 600; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; --p: 0%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--p), var(--rule) var(--p)); } /* taste-skill-ignore: a hard stop, two flat fills (the passed part of the track) */
.range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--rule); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: var(--label); border: 4px solid var(--raised); transition: transform 160ms var(--ease); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--label); border: 4px solid var(--raised); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }

@media (max-width: 760px) {
  .steps { display: flex; flex-direction: column; min-height: 0; }
  .steps-picture { order: 1; height: 56svh; min-height: 380px; padding-top: 28px; align-items: flex-start; }
  .steps-shots { width: min(78%, 320px); }
  .steps-control { order: 2; padding: 20px var(--gutter) 8px; }
  .range::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .steps-words { order: 0; padding-bottom: 28px; gap: 20px; }
  .clause { font-size: clamp(1.75rem, 7vw, 2.75rem); }
}

/* FAQ: a sticky heading beside filled tiles. */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 0 var(--gutter); align-items: start; }
.faq-title { grid-column: 1 / 5; position: sticky; top: 96px; max-width: 6em; }
.faq-list { grid-column: 5 / -1; display: grid; gap: 8px; }
.faq-item { background: var(--raised); border-radius: var(--radius); transition: background-color 200ms; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 18px 24px;
  font-size: var(--t-lead); font-weight: 500; line-height: 1.3;
}
.faq-item:not([open]) > p { display: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { position: relative; padding-right: 64px; }
/* The plus sign: two 3 px bars; opening turns the upright one flat, a minus. */
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px;
  background: currentColor; transition: transform 200ms var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] { background: var(--highlight); color: var(--on-highlight); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p { padding: 0 24px 24px; max-width: 52ch; }
.faq-item a { color: inherit; }
.faq-item summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 760px) {
  .faq { display: block; }
  .faq-title { position: static; max-width: none; margin-bottom: 24px; }
  .faq-list { gap: 6px; }
  .faq-item summary { min-height: 64px; padding: 16px 20px; }
  .faq-item p { padding: 0 20px 20px; }
}

/* Get the app */
.get { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: end; }
.get-title { grid-column: 1 / 8; font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.035em; }
.stores { grid-column: 8 / -1; display: grid; gap: 8px; }
.store { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; }
.store-name { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.02em; }
.store-device { grid-row: 2; font-size: var(--t-small); opacity: 0.8; }
.store-state { grid-row: 1 / span 2; align-self: center; background: var(--highlight); color: var(--on-highlight); border-radius: var(--box-radius); padding: 6px 12px; font-weight: 600; font-size: var(--t-small); }
@media (max-width: 900px) {
  .get { display: block; }
  .get-title { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .stores { margin-top: 32px; }
}

/* ---------- Footer: a board of tiles ---------- */
.board {
  margin-top: var(--gap);
  padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
}
.tile { background: var(--raised); border-radius: var(--radius); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-statement { grid-column: 1 / 6; }
.tile-lead { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; max-width: 24ch; }
.tile-fine { font-size: var(--t-small); color: var(--text-2); max-width: 46ch; }
.tile-nav { grid-column: span 3; justify-content: flex-start; gap: 14px; }
.tile-nav:last-of-type { grid-column: span 4; }
.tile-title { font-size: var(--t-small); font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.tile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tile-nav a { text-decoration: none; }
.tile-nav a:hover { text-decoration: underline; }
.tile-word { grid-column: 1 / 9; min-height: 300px; background: var(--ink); color: var(--on-ink); justify-content: center; align-items: center; overflow: hidden; }
.tile-word span { font-size: clamp(2.5rem, 8.6vw, 9rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.tile-accent { grid-column: 9 / -1; min-height: 300px; background: var(--label); color: var(--background); text-decoration: none; transition: background-color 200ms; }
.tile-accent:hover { background: color-mix(in srgb, var(--label) 88%, var(--ink)); }
.tile-invite { font-size: var(--t-lead); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; max-width: 10em; }
.tile-accent .arrow { align-self: flex-end; transition: transform 200ms var(--ease); }
.tile-accent:hover .arrow { transform: translate(4px, -4px); }
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { min-height: 0; padding: 20px; }
  .tile-word { grid-column: 1 / -1; grid-row: 1; min-height: 160px; }
  .tile-word span { font-size: 13vw; }
  .tile-accent { grid-column: 1 / -1; grid-row: 2; min-height: 160px; }
  .tile-nav, .tile-nav:last-of-type { grid-column: span 1; }
  .tile-statement { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.legal {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: clamp(32px, 6vw, 88px) var(--gutter) 0; align-items: start;
}
.legal-nav { grid-column: 1 / 4; position: sticky; top: 96px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: var(--radius); text-decoration: none; color: var(--text-2); }
.legal-nav a:hover { color: var(--ink); background: var(--raised); }
.legal-nav a[aria-current="page"] { background: var(--raised); color: var(--ink); font-weight: 600; }
.legal-text { grid-column: 4 / 11; max-width: 68ch; }
.legal-text h1 { font-size: var(--t-title); line-height: 1.08; letter-spacing: -0.03em; }
.legal-meta { margin-top: 14px; color: var(--text-2); font-size: var(--t-small); }
.legal-text h2 { font-size: var(--t-lead); margin-top: 2.2em; letter-spacing: -0.015em; line-height: 1.25; }
.legal-text h3 { font-size: var(--t-body); margin-top: 1.8em; }
.legal-text p, .legal-text ul { margin-top: 0.9em; }
.legal-text > p:first-of-type:not(.legal-meta) { margin-top: 32px; }
.legal-text ul { padding-left: 1.2em; }
.legal-text li + li { margin-top: 0.45em; }
.legal-text li::marker { color: var(--label); }
.legal-text a { color: var(--label); }
@media (max-width: 900px) {
  .legal { display: block; padding-top: 24px; }
  .legal-nav { position: static; margin-bottom: 32px; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { white-space: nowrap; background: var(--raised); }
}

/* ---------- Motion (site.js adds html.js; nothing is hidden without script) ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--delay, 0ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }
/* Pictures never go transparent: they open upward from a clipped edge instead. */
html.js .shot.reveal { opacity: 1; clip-path: inset(22% 0 0 0 round var(--radius)); transform: translateY(40px); transition: clip-path 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--delay, 0ms); }
html.js .shot.reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; }
html.js .stage[data-shutter] { clip-path: polygon(88px 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); }
html.js .stage[data-shutter] .sheet { transform: translateY(56px) scale(0.98); opacity: 0; }
html.js .stage.is-open { clip-path: polygon(88px 0, 100% 0, 100% 100%, 0 100%, 0 88px); transition: clip-path 1100ms var(--ease); }
html.js .stage.is-open .sheet { transform: none; opacity: 1; transition: transform 1100ms var(--ease) 120ms, opacity 600ms 200ms; }
@media (max-width: 900px) {
  html.js .stage[data-shutter] { clip-path: polygon(72px 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); }
  html.js .stage.is-open { clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
  html.js .reveal, html.js .shot.reveal { opacity: 1; transform: none; clip-path: none; }
  html.js .stage[data-shutter], html.js .stage.is-open { clip-path: polygon(88px 0, 100% 0, 100% 100%, 0 100%, 0 88px); }
  html.js .stage[data-shutter] .sheet { transform: none; opacity: 1; }
  .shot img { object-position: 50% 0% !important; }
}
