/* =========================================================
   JHYK homepage — scroll scenes, desktop first.
   Tokens first. Components use the named values below.
   ========================================================= */
:root {
  color-scheme: light;

  /* color */
  --bg: #fbfbfa;
  --bg-2: #f2f2f0;
  --ink: #0b0b0c;
  --ink-2: #515154;
  --ink-3: #86868b;
  --ink-faint: #d6d6da;
  --line: #e2e2df;
  --dark: #0b0b0c;
  --dark-2: #141416;
  --dark-3: #1c1c1f;
  --dark-4: #2a2a2e;
  --dark-line: rgba(255, 255, 255, 0.08);
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --on-dark-3: #6e6e73;
  --on-dark-dim: #2c2c2f;
  --accent: #2f5bff;
  --accent-light: #8ea6ff;
  --accent-soft: rgba(47, 91, 255, 0.2);
  --marker: #ffe45c;
  --warn: #ff9f0a;
  --warn-soft: rgba(255, 159, 10, 0.13);
  --ok: #30d158;
  --white: #ffffff;
  --glass: rgba(245, 245, 247, 0.92);
  --device: #111113;
  --device-edge: #2c2c30;

  /* type */
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-19: 19px;
  --fs-24: 24px;
  --fs-30: 30px;
  --fs-hero: clamp(36px, 8.4vw, 140px);
  --fs-statement: clamp(28px, 3.7vw, 58px);
  --fs-display: clamp(40px, 5.2vw, 84px);
  --fs-dom: clamp(30px, 3.2vw, 52px);
  --fs-lede: clamp(17px, 1.4vw, 21px);
  --fs-mail: clamp(22px, 2.4vw, 34px);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 780;
  --lh-tight: 1.05;
  --lh-title: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --ls-display: -0.035em;
  --ls-title: -0.025em;
  --ls-body: -0.01em;

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* shape */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --r-4: 22px;
  --r-5: 28px;
  --r-device: 54px;
  --r-screen: 44px;
  --r-pill: 999px;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 52px;
  --row-h: 58px;
  --panel-h: min(640px, calc(100vh - var(--nav-h) - 110px));
  --device-w: min(330px, 26vw, calc((100vh - var(--nav-h) - 80px) * 9 / 19.3));

  /* shadow */
  --sh-paper: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  --sh-toast: 0 16px 36px -14px rgba(0, 0, 0, 0.7);
  --sh-device: 0 70px 120px -50px rgba(11, 11, 12, 0.5);
  --sh-banner: 0 12px 28px -12px rgba(0, 0, 0, 0.3);
  --sh-card: 0 0 0 1px var(--line);

  /* motion */
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --t-1: 200ms;
  --t-2: 420ms;
  --t-3: 700ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-17);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  z-index: 100;
  left: var(--s-4);
  top: calc(-1 * var(--s-9));
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-1);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus { top: var(--s-4); }

@keyframes blink { 50% { opacity: 0; } }

/* A pinned scene: the section is tall, its stage sticks to the viewport while the section scrolls past. */
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  color: var(--ink);
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.nav.is-dark {
  background: color-mix(in srgb, var(--dark) 72%, transparent);
  color: var(--on-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-17);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo i {
  width: 0.42em;
  height: 0.9em;
  border-radius: 1px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: var(--fs-13);
}
.nav-links a {
  opacity: 0.8;
  text-decoration: none;
  transition: opacity var(--t-1);
}
.nav-links a:hover { opacity: 1; }

/* ---------- composer: initial consonants that complete into a sentence ---------- */
.cl {
  display: block;
  white-space: nowrap;
}
.cc {
  display: inline-block;
  color: var(--ink-faint);
  transition: color 260ms var(--ease);
}
.cc--ko { width: var(--cw, 1em); text-align: center; }
.cc--space { width: 0.28em; }
.cc--probe { width: auto; }
.cc.is-comp {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.1em;
}
.cc.is-done { color: var(--ink); }
.baseline-probe {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

/* ---------- hero ---------- */
.hero { height: 380vh; background: var(--bg); }
.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.hero-words {
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-align: center;
}
.hero-vis {
  display: block;
  will-change: transform;
}
.hero-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.8em;
  margin-left: 0.06em;
  vertical-align: -0.05em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
.i-block {
  position: absolute;
  z-index: 2;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 8vh, 88px);
  margin: 0;
  font-size: var(--fs-15);
  color: var(--ink-3);
  text-align: center;
}
.hero-cap--brand { opacity: 0; color: var(--ink-2); font-weight: var(--fw-medium); }
.cue {
  display: block;
  width: 1px;
  height: 32px;
  margin: var(--s-3) auto 0;
  background: linear-gradient(var(--ink-3), transparent);
  transform-origin: top;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- statement ---------- */
.statement { height: 240vh; background: var(--dark); color: var(--on-dark); }
.statement-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}
.statement-text {
  max-width: calc(1040px + var(--gutter) * 2);
  margin: 0;
  padding: 0 var(--gutter);
  font-size: var(--fs-statement);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-title);
}
.statement-text em { font-style: normal; }
.js .statement-text .w { color: var(--on-dark-dim); transition: color 320ms var(--ease); }
.js .statement-text .w.is-lit { color: var(--on-dark); }
.js .statement-text .w.is-key.is-lit { color: var(--accent-light); }

/* ---------- domains ---------- */
.domains { height: 460vh; background: var(--dark); color: var(--on-dark); }
.domains-stage { display: flex; align-items: center; background: var(--dark); }
.domains-inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--nav-h) var(--gutter) 0;
}
.dom-list { flex: 0 0 min(400px, 34%); }
.dom-kicker {
  margin: 0 0 var(--s-6);
  font-size: var(--fs-15);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  color: var(--on-dark-3);
}
.dom-items {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.dom-item {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  font-size: var(--fs-dom);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: var(--ls-title);
  color: var(--on-dark-dim);
  transition: color var(--t-2) var(--ease);
}
.dom-item.is-active { color: var(--on-dark); }
.dom-bar {
  position: relative;
  flex: none;
  width: 3px;
  height: 1.05em;
  overflow: hidden;
  border-radius: 3px;
  background: var(--dark-4);
}
.dom-bar i {
  position: absolute;
  inset: 0;
  background: var(--on-dark);
  transform: scaleY(var(--k, 0));
  transform-origin: top;
}
.dom-descs { position: relative; min-height: 5.4em; margin-top: var(--s-7); }
.dom-desc {
  position: absolute;
  inset: 0 0 auto 0;
  margin: 0;
  font-size: var(--fs-lede);
  color: var(--on-dark-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.dom-desc.is-active { opacity: 1; transform: none; }

.dom-panel {
  position: relative;
  flex: 1 1 auto;
  height: var(--panel-h);
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-5);
  background: radial-gradient(120% 90% at 50% 0%, var(--dark-3), var(--dark-2) 70%);
}
.pane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.pane.is-active { opacity: 1; transform: none; }

/* typing */
.comp {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.14em;
}
[data-type-text].is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.16em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

/* pane: document */
.paper {
  position: relative;
  width: min(480px, 80%);
  padding: 30px 36px 40px;
  border-radius: var(--r-3);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--sh-paper);
  transform: rotate(-1.5deg);
}
.paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: var(--fs-12);
  color: var(--ink-3);
}
.paper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background-color var(--t-2) var(--ease);
}
.paper.is-reviewed .paper-dot { background: var(--ok); }
.paper-title {
  min-height: 1.35em;
  margin: 0 0 12px;
  font-size: var(--fs-30);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}
.paper-line {
  min-height: 1.95em;
  margin: 0;
  font-size: var(--fs-17);
  line-height: 1.95;
  color: var(--ink-2);
}
.mark-line {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: calc(var(--m, 1) * 100%) 42%;
}
.stamp {
  position: absolute;
  right: 24px;
  bottom: -20px;
  padding: 7px 14px;
  border: 2px solid var(--ok);
  border-radius: var(--r-2);
  background: var(--bg);
  color: var(--ok);
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  opacity: var(--st, 1);
  transform: rotate(-8deg) scale(calc(1.6 - var(--st, 1) * 0.6));
}

/* pane: chat */
.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-3);
  width: min(540px, 86%);
  height: 76%;
}
.bubble {
  max-width: 84%;
  padding: 15px 19px;
  border-radius: var(--r-4);
  font-size: var(--fs-17);
  line-height: 1.55;
  opacity: var(--o, 1);
  transform: translateY(calc((1 - var(--o, 1)) * 14px));
}
.bubble--me {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--accent);
  color: var(--white);
}
.bubble--ai {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}
.bubble--dots { display: flex; gap: 5px; padding: 17px 18px; }
.bubble--dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: dot 1.2s var(--ease) infinite;
}
.bubble--dots i:nth-child(2) { animation-delay: 0.15s; }
.bubble--dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-meta {
  align-self: flex-start;
  margin: 0;
  font-size: var(--fs-12);
  color: var(--on-dark-3);
  opacity: var(--o, 1);
}

/* pane: roster */
.roster {
  width: min(540px, 88%);
  padding: 24px 22px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-4);
  background: var(--dark-3);
}
.roster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 6px 12px;
  font-size: var(--fs-17);
}
.roster-head span { font-size: var(--fs-13); color: var(--on-dark-3); }
.roster-list {
  position: relative;
  height: calc(var(--row-h) * 5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rrow {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: var(--row-h);
  padding: 0 var(--s-3);
  border-radius: var(--r-2);
  transform: translateY(calc(var(--y, 0) * var(--row-h)));
  transition: background-color var(--t-2) var(--ease);
}
.ava {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dark-4);
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
}
.rname { flex: 0 0 72px; font-size: var(--fs-15); }
.rbar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--dark-4);
}
.rbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--on-dark-2);
  transform: scaleX(var(--f, 0.8));
  transform-origin: left;
}
.rstat { flex: 0 0 64px; font-size: var(--fs-12); color: var(--on-dark-3); text-align: right; }
.rrow.is-flag { background: var(--warn-soft); }
.rrow.is-flag .rbar i { background: var(--warn); }
.rrow.is-flag .rstat { color: var(--warn); }
.roster-note {
  margin: 12px 6px 0;
  font-size: var(--fs-13);
  color: var(--warn);
  opacity: var(--o, 1);
}

/* pane: operations */
.ops {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  width: min(580px, 90%);
}
.week {
  padding: 18px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-4);
  background: var(--dark-3);
}
.week-head {
  display: flex;
  margin-bottom: 10px;
  font-size: var(--fs-12);
  color: var(--on-dark-3);
}
.week-head span { flex: 1; text-align: center; }
.week-body { position: relative; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(3, 40px);
  gap: 6px;
}
.week-slots { position: absolute; inset: 0; }
.cell { border-radius: var(--r-1); background: var(--dark-2); }
.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: var(--c);
  grid-row: var(--r);
  border-radius: var(--r-1);
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  opacity: var(--o, 1);
  transform: scale(calc(0.7 + var(--o, 1) * 0.3));
}
.toasts { display: flex; flex-direction: column; gap: var(--s-2); }
.toast {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 18px;
  border-radius: var(--r-3);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--sh-toast);
  font-size: var(--fs-15);
  opacity: var(--o, 1);
  transform: translateX(calc((1 - var(--o, 1)) * 48px));
}
.toast::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.toast b { font-weight: var(--fw-bold); }
.toast span { margin-left: auto; font-size: var(--fs-12); color: var(--ink-3); }

/* ---------- app ---------- */
.app { height: 300vh; background: var(--bg-2); }
.app-stage { display: flex; align-items: center; background: var(--bg-2); }
.app-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--nav-h) var(--gutter) 0;
}
.app-copy {
  flex: 0 1 540px;
  opacity: var(--o, 1);
  transform: translateY(calc((1 - var(--o, 1)) * 30px));
}
.app-title {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-display);
}
.app-sub { margin: var(--s-5) 0 0; font-size: var(--fs-lede); color: var(--ink-2); }
.app-note { margin: var(--s-6) 0 0; font-size: var(--fs-14); color: var(--ink-3); opacity: var(--n, 1); }

.device-wrap { flex: none; perspective: 1400px; }
.device {
  width: var(--device-w);
  aspect-ratio: 9 / 19.3;
  padding: 11px;
  border-radius: var(--r-device);
  background: var(--device);
  box-shadow: var(--sh-device), inset 0 0 0 2px var(--device-edge);
  transform: translateY(var(--dy, 0px)) rotateX(var(--rx, 0deg)) scale(var(--sc, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow: hidden;
  padding: 14px 16px 10px;
  border-radius: var(--r-screen);
  background: var(--bg);
  color: var(--ink);
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: var(--r-pill);
  background: var(--device);
}
.sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 10px;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
}
.sb-icons { display: flex; gap: 4px; }
.sb-icons i { width: 14px; height: 9px; border-radius: 2px; background: var(--ink); }
.banner {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-4);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-banner);
  transform: translateY(calc((var(--b, 0) - 1) * 150%));
}
.banner-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-14);
  font-weight: var(--fw-heavy);
}
.banner-text { display: flex; flex-direction: column; font-size: var(--fs-13); line-height: 1.3; }
.banner-text small { font-size: var(--fs-11); color: var(--ink-3); }
.sc-head { padding: 6px 4px 0; }
.sc-head small { display: block; font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--ink-3); }
.sc-head strong { font-size: var(--fs-30); font-weight: var(--fw-heavy); letter-spacing: -0.03em; }
.sc-video {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--r-4);
  background: var(--dark);
  color: var(--on-dark);
}
.sc-video small { font-size: var(--fs-12); color: var(--on-dark-2); }
.sc-video b { margin-top: 2px; font-size: var(--fs-19); letter-spacing: -0.02em; }
.sc-prog {
  height: 5px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--dark-4);
}
.sc-prog i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
  transform: scaleX(var(--p, 0.62));
  transform-origin: left;
}
.sc-play {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
}
.sc-play::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 13px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--dark);
}
.sc-row { display: flex; gap: 10px; }
.sc-mini {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--r-3);
  background: var(--white);
  box-shadow: var(--sh-card);
}
.sc-mini small { display: block; font-size: var(--fs-12); color: var(--ink-3); }
.sc-mini b { font-size: 26px; font-weight: var(--fw-heavy); letter-spacing: -0.02em; }
.sc-list {
  padding: 12px 14px;
  border-radius: var(--r-3);
  background: var(--white);
  box-shadow: var(--sh-card);
}
.sc-list p { margin: 0 0 4px; font-size: var(--fs-12); font-weight: var(--fw-semibold); color: var(--ink-3); }
.sc-todo { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--fs-14); }
.sc-todo i {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
  transition: background-color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.sc-todo span { transition: color var(--t-1) var(--ease); }
.sc-todo.is-done i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--white); }
.sc-todo.is-done span { color: var(--ink-3); text-decoration: line-through; }
.sc-tabs { display: flex; justify-content: space-around; margin-top: auto; padding: 8px 0 2px; }
.sc-tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--ink-faint); }
.sc-tabs i.on { background: var(--accent); }

/* ---------- closing ---------- */
.closing {
  padding: clamp(140px, 22vh, 240px) var(--gutter) clamp(100px, 16vh, 180px);
  background: var(--bg);
  text-align: center;
}
.closing-title {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-display);
}
.closing-vis { display: block; }
.closing-sub { margin: var(--s-5) 0 0; font-size: var(--fs-lede); color: var(--ink-3); }
.closing-mail {
  display: inline-block;
  margin-top: var(--s-8);
  font-size: var(--fs-mail);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}
.closing-mail:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: var(--fs-12);
  line-height: 1.8;
}
.footer-inner {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-7);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.footer-logo { color: var(--ink); font-size: var(--fs-15); font-weight: var(--fw-heavy); letter-spacing: -0.02em; }
.footer-links { display: flex; gap: var(--s-5); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-info { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); margin: var(--s-4) 0 0; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.footer-copy { margin: var(--s-1) 0 0; }

/* ---------- policy pages ---------- */
.doc { padding: calc(var(--nav-h) + var(--s-9)) var(--gutter) var(--s-9); }
.doc-body { max-width: 720px; margin: 0 auto; }
.doc-kicker { margin: 0 0 var(--s-3); font-size: var(--fs-15); font-weight: var(--fw-semibold); color: var(--ink-3); }
.doc-title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-display);
}
.doc-meta { margin: var(--s-4) 0 0; font-size: var(--fs-14); color: var(--ink-3); }
.doc-lede { margin: var(--s-6) 0 0; font-size: var(--fs-lede); color: var(--ink-2); }
.doc h2 { margin: var(--s-8) 0 var(--s-3); font-size: var(--fs-19); letter-spacing: -0.02em; }
.doc p,
.doc li { color: var(--ink-2); }
.doc p { margin: var(--s-3) 0 0; }
.doc ul { margin: var(--s-3) 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: var(--s-2); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc-mail {
  display: inline-block;
  margin-top: var(--s-5);
  font-size: var(--fs-mail);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.faq { margin: var(--s-5) 0 0; border-top: 1px solid var(--line); }
.faq details { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  color: var(--ink);
  font-weight: var(--fw-semibold);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); transition: transform var(--t-1) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }

/* ---------- narrow screens (desktop is the reference; this keeps phones usable) ---------- */
@media (max-width: 899px) {
  .nav-links { gap: 18px; }
  .domains-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--s-5);
    padding-top: calc(var(--nav-h) + var(--s-3));
  }
  .dom-list { flex: none; }
  .dom-kicker { margin-bottom: var(--s-3); }
  .dom-items { flex-direction: row; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
  .dom-item { font-size: 22px; }
  .dom-bar { display: none; }
  .dom-descs { min-height: 4.8em; margin-top: var(--s-3); }
  .dom-desc { font-size: var(--fs-15); }
  .dom-panel { --panel-h: 50vh; flex: none; }
  .paper { transform: scale(0.8) rotate(-1.5deg); }
  .roster,
  .ops { transform: scale(0.84); }
  .app-inner { flex-direction: column; justify-content: center; gap: var(--s-5); text-align: center; }
  .app-copy { flex: none; }
  .app-title { font-size: 34px; }
  .app-sub { font-size: var(--fs-15); }
  .app-note { margin-top: var(--s-3); font-size: var(--fs-13); }
  .device { --device-w: min(240px, 58vw); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
