/* ==========================================================================
   STUDIOQ — HOME
   One day, read from top to bottom: a white morning page, an evening that
   opens like a window, a night for loveus, and the ring rising at dawn.
   Quiet type, one coral tail, and everything measured on the visitor's device.
   company.html adds company.css. 404.html adds its own short style block.
   ========================================================================== */

@font-face {
  font-family: "Pretendard SQ";
  src: url("/fonts/pretendard-sq.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "loveus Title";
  src: url("/fonts/loveus-title.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --warm: 0;
  --hair: 1px;
  --q: #ff5b3a;
  --rose: #e8819f;

  --f-sans: "Pretendard SQ", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --f-serif: ui-serif, "New York", "loveus Title", Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1120px;
  --narrow: 720px;
  --bar-h: 52px;
  --bar-top: calc(env(safe-area-inset-top, 0px) + 10px);
  /* What a phone's browser bars cover at the bottom of a pinned stage. */
  --under: calc(100vh - 100vh);

  /* Springs, sampled from a damped oscillator. Stiffness and damping are chosen by hand. */
  --spring: linear(0, 0.03, 0.103, 0.201, 0.309, 0.418, 0.521, 0.614, 0.697, 0.767, 0.826, 0.874, 0.912, 0.942, 0.964, 0.981, 0.993, 1.001, 1.006, 1.009, 1.011, 1.011, 1.011, 1.01, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1.003, 1.002, 1);
  --spring-bounce: linear(0, 0.053, 0.18, 0.343, 0.514, 0.672, 0.807, 0.913, 0.99, 1.042, 1.071, 1.082, 1.082, 1.074, 1.061, 1.047, 1.033, 1.021, 1.011, 1.003, 0.998, 0.995, 0.993, 0.993, 0.993, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999, 1, 1);
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);

  color-scheme: light dark;

  --bg: #fff;
  --bg-2: #f5f5f7;
  --bg-3: #e8e8ed;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: var(--fg-2); /* a footnote stands back by its size; any lighter and it stops being readable */
  --line: rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-rim: rgba(0, 0, 0, 0.07);
  --page-bg: var(--bg);
}

@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --bg: color-mix(in oklab, #fff, #ece4d6 calc(var(--warm) * 100%));
    --bg-2: color-mix(in oklab, #f5f5f7, #e4dccd calc(var(--warm) * 100%));
    --bg-3: color-mix(in oklab, #e8e8ed, #d9d0bf calc(var(--warm) * 100%));
    --fg: color-mix(in oklab, #1d1d1f, #2e2a26 calc(var(--warm) * 100%));
    --fg-2: color-mix(in oklab, #6e6e73, #675f57 calc(var(--warm) * 100%));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-2: #1c1c1e;
    --bg-3: #2c2c2e;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --fg-3: #86868b;
    --line: rgba(255, 255, 255, 0.16);
    --glass: rgba(40, 40, 42, 0.6);
    --glass-edge: rgba(255, 255, 255, 0.16);
    --glass-rim: rgba(0, 0, 0, 0.4);
  }
}

[data-tone="dark"] {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #1c1c1e;
  --bg-3: #2c2c2e;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(40, 40, 42, 0.6);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --glass-rim: rgba(0, 0, 0, 0.4);
}

@supports (height: 100lvh) {
  :root { --under: calc(100lvh - 100svh); }
}

/* ---------- language ---------- */
html[data-lang="ko"] .en { display: none !important; }
html[data-lang="en"] .ko { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-top) + var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  hanging-punctuation: first last;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
img, svg, canvas { display: block; }
sup { font-size: 0.62em; line-height: 0; vertical-align: 0.5em; margin-left: 0.1em; }
sup a { color: var(--fg-2); }

::selection { background: var(--q); color: #fff; }

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

.nc { text-transform: none; }
.nb { white-space: nowrap; }
/* A sentence and a clause. studio.js splits paragraphs into these. */
.s, .c { display: inline-block; max-width: 100%; vertical-align: top; text-wrap: balance; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.4s var(--spring);
}
.skip:focus { transform: none; }

.probe { position: fixed; left: 0; top: 0; width: 0; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }
.probe--small { height: 100vh; height: 100svh; }

/* ---------- type ---------- */
.eyebrow {
  margin-bottom: 14px;
  color: var(--fg-2);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: clamp(32px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lead {
  color: var(--fg-2);
  font-size: clamp(17px, 1.65vw, 21px);
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.foot {
  color: var(--fg-3);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

.head { max-width: var(--narrow); margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.head .lead { margin-top: 18px; }

.sec { padding: clamp(96px, 15vh, 200px) var(--gutter); }

/* ---------- pressable things ---------- */
[data-press] { transition: transform 0.5s var(--spring-bounce), opacity 0.2s; }
[data-press].is-down { transform: scale(0.96); transition: transform 0.08s linear; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.016em;
  white-space: nowrap;
}
.btn--light { background: #f5f5f7; color: #1d1d1f; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.016em;
}
.link__go {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.4s var(--spring);
}
@media (hover: hover) {
  .link:hover .link__go { transform: translateX(3px) rotate(45deg); }
}

/* The transparent label an iPhone taps. Added by studio.js on iPhones only. */
.tap {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  -webkit-user-select: none;
  user-select: none;
}
.tap input { position: absolute; visibility: hidden; pointer-events: none; }
.no-tap .tap { display: none; }

/* ---------- capsule bar ---------- */
.bar {
  position: fixed;
  top: var(--bar-top);
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: var(--bar-h);
  max-width: calc(100vw - 20px);
  padding: 0 7px 0 15px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--fg);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    inset 0 0 0 var(--hair) var(--glass-edge),
    0 0 0 var(--hair) var(--glass-rim),
    0 12px 36px -12px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  transition: background-color 0.45s, color 0.45s, box-shadow 0.45s, opacity 0.8s var(--ease), translate 0.8s var(--spring);
}
.js:not(.is-ready):not(.sq-fallback) .bar { opacity: 0; translate: 0 -10px; }

.bar__brand { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; }
.bar__name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }

.q { width: 24px; height: 24px; overflow: visible; }
.q__ticks { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.q__tick { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; opacity: 0.26; transition: opacity 0.4s; }
.q__tick.is-on { opacity: 1; }
.q__tail { fill: none; stroke: var(--q); stroke-width: 3.4; stroke-linecap: round; }

.bar__nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.bar__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.012em;
  opacity: 0.74;
  transition: opacity 0.25s, background-color 0.25s;
}
.bar__nav a.is-here { opacity: 1; }
@media (hover: hover) {
  .bar__nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
}

.bar__end { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.bar__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
  transition: background-color 0.45s, color 0.45s, transform 0.5s var(--spring-bounce);
}

.seg { position: relative; display: inline-flex; padding: 2px; border-radius: 999px; background: color-mix(in srgb, currentColor 9%, transparent); }
.seg::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.5s var(--spring-bounce), background-color 0.45s;
}
html[data-lang="en"] .seg::before { transform: translateX(100%); }
.seg button {
  position: relative;
  width: 34px;
  height: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.seg button[aria-pressed="true"] { opacity: 1; }

.bar__menu { position: relative; display: none; width: 38px; height: 38px; border-radius: 50%; }
.bar__menu i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.5s var(--spring), top 0.5s var(--spring);
}
.bar__menu i:nth-of-type(1) { top: 15px; }
.bar__menu i:nth-of-type(2) { top: 22px; }
.bar__menu[aria-expanded="true"] i:nth-of-type(1) { top: 18.5px; transform: rotate(45deg); }
.bar__menu[aria-expanded="true"] i:nth-of-type(2) { top: 18.5px; transform: rotate(-45deg); }

/* Drawn small, touched at 44px: each control reaches past its own edges. */
.bar__nav a { --hit: -4px 0; }
.bar__cta { --hit: -3px 0; }
.bar__menu { --hit: -3px; }
.seg button:first-child { --hit: -7px 0 -7px -10px; }
.seg button:last-child { --hit: -7px -10px -7px 0; }
.bar__nav a::after, .bar__cta::after, .bar__menu::after, .seg button::after { content: ""; position: absolute; inset: var(--hit); }
.bar__cta .tap, .bar__menu .tap, .seg button .tap { inset: var(--hit); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-content: center;
  padding: var(--gutter);
  background: var(--glass);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.sheet.is-open { opacity: 1; }
.sheet__nav { display: grid; gap: 6px; }
.sheet__nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.7s var(--spring);
}
.sheet.is-open .sheet__nav a { opacity: 1; transform: none; }
.sheet.is-open .sheet__nav a:nth-child(2) { transition-delay: 0.04s; }
.sheet.is-open .sheet__nav a:nth-child(3) { transition-delay: 0.08s; }
.sheet.is-open .sheet__nav a:nth-child(4) { transition-delay: 0.12s; }
.sheet.is-open .sheet__nav a:nth-child(5) { transition-delay: 0.16s; }

/* ---------- scenes ---------- */
.stage { position: relative; }
.stage__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

.live .pin { position: relative; }
.live .pin > .stage,
.live .pin .stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; overflow: clip; }

/* ---------- open ---------- */
.live .open { height: 500vh; height: 500lvh; }
.open .stage { min-height: 100vh; min-height: 100svh; }

.open__center {
  position: absolute;
  left: 50%;
  top: var(--cy, 46%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(calc(100vw - 2 * var(--gutter)), calc(var(--r, 320px) * 1.72));
  text-align: center;
  transform: translate(-50%, -50%);
}
.live .open__center > * { grid-area: 1 / 1; }
.beat {
  font-size: clamp(34px, min(5.8vw, 8.2svh), 72px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.032em;
}
.live .beat { will-change: opacity, transform; }
.live .beat:not(.beat--first) { opacity: 0; visibility: hidden; }
.open__hello {
  margin-bottom: clamp(8px, 1.4vh, 16px);
  color: var(--fg-2);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.014em;
}
.open__title { font: inherit; letter-spacing: inherit; }
.open__title .ln { display: block; overflow: hidden; padding: 0.04em 0.06em 0.1em; margin: -0.04em 0 -0.1em; }
.open__title .ln > span { display: inline-block; transition: transform 1.3s var(--spring); }
.open__title .ln + .ln > span { transition-delay: 0.07s; }
.js:not(.is-ready):not(.sq-fallback) .open__title .ln > span { transform: translate3d(0, 112%, 0); }
.open__hello, .open__note { transition: opacity 1.2s var(--ease) 0.25s; }
.js:not(.is-ready):not(.sq-fallback) .open__hello,
.js:not(.is-ready):not(.sq-fallback) .open__note { opacity: 0; }

.open__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--under) + env(safe-area-inset-bottom, 0px) + clamp(18px, 3.4vh, 34px));
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.open__chev { width: 16px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: sq-breathe 2.6s ease-in-out infinite; }
@keyframes sq-breathe { 50% { transform: translateY(3px); opacity: 0.5; } }

/* Reduced motion or no script: the same words, simply in reading order. */
html:not(.live) .open .stage { padding: calc(var(--bar-top) + var(--bar-h) + clamp(32px, 8vh, 96px)) var(--gutter) clamp(64px, 10vh, 120px); }
html:not(.live) .open .stage__canvas { height: 100svh; opacity: 0.3; }
html:not(.live) .open__center { position: relative; left: auto; top: auto; width: auto; min-height: calc(92svh - var(--bar-top) - var(--bar-h)); gap: clamp(28px, 5vh, 56px); align-content: center; transform: none; }
html:not(.live) .open__note { position: static; margin-top: 48px; }

/* ---------- the turn ---------- */
.ask { display: grid; align-content: center; min-height: 86vh; min-height: 86svh; padding: 0 var(--gutter); text-align: center; }
.ask__a { color: var(--fg-2); font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.024em; }
.ask__b { margin-top: 6px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.024em; }

/* ---------- corner ---------- */
.live .corner { height: 400vh; height: 400lvh; }
.corner__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--bar-top) + var(--bar-h) + clamp(16px, 4.6vh, 56px));
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 0 var(--gutter);
  text-align: center;
}
.live .corner__copy > * { grid-area: 1 / 1; }
.corner__beat { max-width: 640px; }
.live .corner__beat { will-change: opacity, transform; }
.live .corner__beat:not(:first-child) { opacity: 0; visibility: hidden; }
.corner__beat.lead { color: var(--fg); font-size: clamp(20px, 2.5vw, 30px); font-weight: 600; line-height: 1.38; letter-spacing: -0.024em; }
.corner__beat--punch { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }

.corner__legend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--under) + env(safe-area-inset-bottom, 0px) + clamp(20px, 4vh, 36px));
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
}
.corner__legend li { display: inline-flex; align-items: center; gap: 8px; }
.corner__legend i { width: 18px; height: 2.5px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 48%, var(--bg)); } /* the plain curve's colour on the canvas */
.corner__legend .is-ours i { background: var(--q); }

html:not(.live) .corner { padding: clamp(96px, 15vh, 200px) var(--gutter) 0; }
html:not(.live) .corner .stage__canvas,
html:not(.live) .corner__legend { display: none; }
html:not(.live) .corner__copy { position: static; gap: 18px; padding: 0; }

/* ---------- squircles: studio.js writes the clip path; this is the fallback ---------- */
.sq { border-radius: var(--sq-r, 28px); }

/* ---------- line breaks ---------- */
.lines__toy { max-width: 980px; margin: 0 auto; }
.lines__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lines__card { --sq-r: 28px; padding: 22px clamp(18px, 3vw, 32px) 30px; background: var(--bg-2); }
.lines__card figcaption { margin-bottom: 18px; color: var(--fg-2); font-size: 14px; font-weight: 600; }
.lines__box { height: clamp(152px, 17vw, 176px); }
.lines__text {
  width: var(--w, 100%);
  color: var(--fg);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.024em;
}
.lines__text--raw { word-break: normal; overflow-wrap: anywhere; text-wrap: wrap; }
html[data-lang="ko"] .lines__text--raw { word-break: break-all; }
.lines__text--ours { word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }

.slider { display: grid; justify-items: center; gap: 12px; margin-top: 26px; color: var(--fg-2); font-size: 14px; font-weight: 500; }
.slider input {
  width: min(320px, 100%);
  height: 32px;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: grab;
  touch-action: pan-y;
}
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--bg-3); }
.slider input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--bg-3); }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.2);
}
.slider input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- touch ---------- */
.touch { padding-top: 0; }
.touch__card {
  --sq-r: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 980px;
  margin: 0 auto 16px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--bg-2);
}

.pad {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 var(--hair) var(--line), 0 18px 40px -22px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.7s var(--spring-bounce), box-shadow 0.4s;
}
.pad.is-down { transform: scale(0.93); box-shadow: 0 0 0 var(--hair) var(--line), 0 6px 14px -8px rgba(0, 0, 0, 0.3); transition: transform 0.06s linear, box-shadow 0.06s linear; }
.pad__ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.pad__ring i {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1.5px solid var(--q);
  opacity: 0;
  animation: sq-ripple 0.9s var(--ease) forwards;
}
@keyframes sq-ripple {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(26); }
}
.pad__label { font-size: 19px; font-weight: 600; letter-spacing: -0.018em; }

.touch__read { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.touch__read b { font-size: clamp(56px, 7.4vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.touch__read small { color: var(--fg-2); font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
.touch__cap { min-height: 2.9em; margin-top: 10px; color: var(--fg-2); font-size: 15px; font-weight: 500; line-height: 1.45; text-wrap: balance; }

.scale { position: relative; height: 6px; margin: 16px 0 34px; border-radius: 3px; background: var(--bg-3); }
.scale__you { position: absolute; left: 0; top: 0; bottom: 0; width: 0; min-width: 0; border-radius: 3px; background: var(--q); transition: width 0.6s var(--spring); }
.scale__end { position: absolute; right: 0; top: 13px; color: var(--fg-3); font-size: 12px; font-weight: 500; }

.sw { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: var(--hair) solid var(--line); cursor: pointer; }
.sw__copy { display: grid; gap: 2px; }
.sw__title { font-size: 16px; font-weight: 600; letter-spacing: -0.014em; }
.sw__sub { min-height: 1.45em; color: var(--fg-2); font-size: 13px; line-height: 1.45; text-wrap: balance; }
.sw input { position: absolute; right: 0; top: 18px; z-index: 1; width: 51px; height: 31px; margin: 0; opacity: 0; cursor: pointer; }
.sw__track { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--bg-3); transition: background-color 0.3s var(--ease); }
.sw__track b {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s var(--spring-bounce);
}
.sw input:checked + .sw__track { background: #34c759; }
.sw input:checked + .sw__track b { transform: translateX(20px); }
.sw input:focus-visible + .sw__track { outline: 2px solid var(--q); outline-offset: 2px; }

.touch .foot { max-width: 980px; margin: 0 auto; text-align: center; }

/* ---------- phone ---------- */
.phone {
  --sq-r: calc(var(--pw, 300px) * 0.158);
  position: relative;
  width: var(--pw, 300px);
  padding: calc(var(--pw, 300px) * 0.02);
  background: linear-gradient(145deg, #4a4a4e 0%, #1c1c1e 22%, #0a0a0b 60%, #2e2e31 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 2.5px rgba(0, 0, 0, 0.7);
}
.phone__screen {
  --sq-r: calc(var(--pw, 300px) * 0.138);
  position: relative;
  aspect-ratio: 780 / 1695;
  overflow: hidden;
  background: #fff;
}
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__island {
  position: absolute;
  left: 50%;
  top: calc(var(--pw, 300px) * 0.026);
  width: calc(var(--pw, 300px) * 0.292);
  height: calc(var(--pw, 300px) * 0.086);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone__status {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--pw, 300px) * 0.138);
  padding: 0 calc(var(--pw, 300px) * 0.076) 0 calc(var(--pw, 300px) * 0.108);
  color: var(--status, #000);
  font-size: calc(var(--pw, 300px) * 0.042);
  font-weight: 600;
}
.phone__status svg { width: calc(var(--pw, 300px) * 0.19); height: auto; fill: currentColor; }

/* ---------- night ---------- */
.live .night { height: 480vh; height: 480lvh; }
.night { background: #000; }
.live .night { background: var(--page-bg, transparent); }
.live .night .stage { background: var(--page-bg, #000); }

.night__panel {
  --ix: 0px;
  --iy: 0px;
  --ir: 0px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  clip-path: inset(var(--iy) var(--ix) var(--iy) var(--ix) round var(--ir));
}
.live .night__panel { will-change: clip-path; }
.night__sky { position: absolute; inset: 0; }
.night__sky--dusk { background: linear-gradient(180deg, #466ea6 0%, #8ea4c4 34%, #efc3a6 68%, #fbd9a8 100%); }
.night__sky--late { background: linear-gradient(180deg, #0e1433 0%, #2c2356 46%, #8a3f6f 78%, #d9786d 100%); opacity: 0; }
.night__sky--deep { background: linear-gradient(180deg, #000 0%, #05060f 52%, #000 100%); opacity: 0; }
.night__sun {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 90vmax;
  height: 90vmax;
  margin: -45vmax 0 0 -45vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 214, 0.95) 0%, rgba(255, 214, 170, 0.5) 22%, rgba(255, 190, 150, 0) 60%);
  will-change: transform, opacity;
}
.night__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.night__fade { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 22%; background: linear-gradient(0deg, #000, rgba(0, 0, 0, 0)); opacity: 0; pointer-events: none; }

.night__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--bar-top) + var(--bar-h) + clamp(10px, 3.4vh, 40px));
  z-index: 3;
  display: grid;
  justify-items: center;
  padding: 0 var(--gutter);
  text-align: center;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.18);
}
.night__clock {
  font-size: clamp(44px, min(7vw, 10svh), 88px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.024em;
  font-variant-numeric: tabular-nums;
}
.night__copy .h2 { margin-top: clamp(6px, 1.4vh, 16px); font-size: clamp(28px, min(4.6vw, 6.4svh), 56px); }
.night__copy .lead { max-width: 620px; margin-top: clamp(8px, 1.6vh, 16px); color: rgba(255, 255, 255, 0.72); font-size: clamp(15px, min(1.5vw, 2.1svh), 19px); }

.night__phone { --pw: clamp(214px, min(25vw, 40svh), 340px); position: absolute; left: 50%; top: 100%; z-index: 2; transform: translate3d(-50%, 0, 0); will-change: transform; }
.phone__dark { opacity: 0; }

.night__now {
  margin: 0;
  padding: clamp(40px, 9vh, 96px) var(--gutter) 0;
  background: #000;
  color: #a1a1a6;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.014em;
  text-align: center;
  text-wrap: balance;
}

html:not(.live) .night__panel { position: relative; padding-bottom: 48px; }
html:not(.live) .night__sky--dusk, html:not(.live) .night__sun, html:not(.live) .night__stars { display: none; }
html:not(.live) .night__sky--deep { opacity: 1; }
html:not(.live) .night__copy { position: relative; top: auto; padding-top: 96px; }
html:not(.live) .night__clock { display: none; }
html:not(.live) .night__phone { position: relative; left: auto; top: auto; display: grid; justify-items: center; margin-top: 40px; transform: none; }
html:not(.live) .phone__dark { opacity: 1; }
html:not(.live) .phone__status { --status: #fff; }

/* ---------- loveus ---------- */
.loveus { position: relative; background: #000; color: var(--fg); }
.loveus__intro { padding: clamp(88px, 16vh, 180px) var(--gutter) clamp(56px, 10vh, 120px); text-align: center; }
.loveus__kick { color: var(--fg-2); font-size: clamp(19px, 2.1vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.loveus__mark {
  margin-top: 10px;
  color: #fff;
  font-family: var(--f-serif);
  font-size: clamp(84px, 16vw, 200px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.042em;
}
.loveus__tag { margin-top: 10px; color: var(--rose); font-family: "loveus Title", var(--f-sans); font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
html[data-lang="en"] .loveus__tag { font-family: var(--f-serif); }
.loveus__lead { max-width: 520px; margin: 16px auto 0; }

.live .lv { height: 420vh; height: 420lvh; }
.lv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: var(--bar-h) var(--gutter) 0;
}
.lv__phone { --pw: clamp(236px, min(28vw, 39svh), 360px); position: relative; justify-self: end; }
.lv__phone::before {
  content: "";
  position: absolute;
  inset: -16% -30%;
  background: radial-gradient(closest-side, rgba(232, 129, 159, 0.24), transparent);
  pointer-events: none;
}
.lv__phone .phone { transform: perspective(1500px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 0.9s var(--spring); }
.lv__phone .phone__screen img { opacity: 0; transition: opacity 0.5s var(--ease); }
.lv__phone .phone__screen img.is-on { opacity: 1; }

.lv__copy { position: relative; display: grid; align-items: center; }
.live .lv__copy > * { grid-area: 1 / 1; }
.lv__title { margin-bottom: 16px; }
.lv__title .ko { font-family: "loveus Title", var(--f-sans); font-weight: 600; letter-spacing: -0.016em; }
.live .lv__ch { opacity: 0; visibility: hidden; transform: translate3d(0, 22px, 0); transition: opacity 0.55s var(--ease), transform 0.9s var(--spring), visibility 0s linear 0.55s; }
.live .lv__ch.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.55s var(--ease), transform 0.9s var(--spring), visibility 0s; }
html:not(.live) .lv__ch { padding: 28px 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(24px, 6vh, 64px) var(--gutter) 0;
}
.tile { --sq-r: 32px; display: flex; flex-direction: column; min-height: clamp(210px, 22vw, 260px); padding: 26px 26px 28px; background: var(--bg-2); }
.tile--wide { grid-column: span 2; }
.tile:last-child { grid-column: span 3; }
.tile__k { color: var(--fg-2); font-size: 14px; font-weight: 600; }
.tile__big { margin-top: auto; font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; }
.tile__big--s { font-size: clamp(22px, 2.1vw, 26px); line-height: 1.24; letter-spacing: -0.024em; }
.tile__text { margin-top: 10px; color: var(--fg-2); font-size: 15px; line-height: 1.5; text-wrap: balance; }
.tile__text a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: var(--hair); }

.loveus__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding: clamp(40px, 7vh, 72px) var(--gutter) 0; }
.store { position: relative; display: block; }
.store img { width: 150px; height: auto; }
html[data-lang="ko"] .store { display: block; }
.loveus__foot { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 0; text-align: center; }
.tile--link { position: relative; }

/* ---------- qommon sense ---------- */
.qs {
  /* The app's dark colors, from its Palette.swift. */
  --qs-surface: #191c30;
  --qs-line: #2c2f45;
  --qs-ink: #f5f5fa;
  --qs-ink-2: #a9a8ba;
  --qs-brand: #a3a0ff;
  --qs-know: #3ddc84;
  --qs-learn: #ff8a73;
  --f-round: ui-rounded, var(--f-sans);

  /* The app's 3:4 card, as large as fits on one screen with its buttons. */
  --cw: max(264px, min(100vw - 2 * var(--gutter), 372px, (100vh - 276px) * 0.75));
  --ch: calc(var(--cw) / 0.75);

  position: relative;
  overflow: hidden;
  background: #000;
  color: var(--fg);
}
@supports (height: 100svh) {
  .qs { --cw: max(264px, min(100vw - 2 * var(--gutter), 372px, (100svh - 276px) * 0.75)); }
}
.qs__icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.qi {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#qi-spark path { fill: currentColor; stroke: none; }

.qs__intro { padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(24px, 4vh, 48px); text-align: center; }
.qs__kick { color: var(--fg-2); font-size: clamp(19px, 2.1vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.qs__mark { margin-top: 10px; color: #fff; font-family: var(--f-round); font-size: clamp(38px, 12.4vw, 132px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; white-space: nowrap; }
.qs__tag { margin-top: 12px; color: var(--qs-brand); font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.024em; }
.qs__lead { max-width: 540px; margin: 16px auto 0; }

.qs__stage { position: relative; z-index: 1; width: var(--cw); margin: 0 auto; }
.qs__top { display: flex; align-items: center; justify-content: flex-end; gap: 13px; height: 72px; }
.qs__say {
  position: relative;
  max-width: calc(100% - 69px);
  padding: 9px 14px;
  border-radius: 16px;
  background: var(--qs-surface);
  box-shadow: inset 0 0 0 1px var(--qs-line);
  color: var(--qs-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
  opacity: 0;
  transform: translate3d(6px, 0, 0) scale(0.96);
  transform-origin: 100% 50%;
  transition: opacity 0.25s, transform 0.5s var(--spring-bounce);
}
.qs__say.is-on { opacity: 1; transform: none; }
.qs__say::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: var(--qs-surface);
  box-shadow: inset -1px 1px 0 var(--qs-line);
  transform: rotate(45deg);
}

/* Q, drawn with the same proportions as the app's QCharacter. */
.qq { flex: none; width: 56px; height: 56px; overflow: visible; transition: transform 0.35s var(--spring-bounce); }
.qq__all { transform-origin: 50px 100px; }
.live .qq__all { animation: qq-breathe 1.8s ease-in-out infinite alternate; }
.qs.is-far .qq__all { animation-play-state: paused; }
@keyframes qq-breathe { to { transform: scaleY(1.025); } }
.qq__lid { transition: transform 0.08s ease-out; }
.qq.is-blink .qq__lid { transform: scaleY(0.1); transition: transform 0.06s ease-in; }
.qq__pupil { transition: transform 0.22s var(--ease); }
.qq__joy, .qq__grin, .qq__spark { display: none; }
.qq[data-mood="happy"] .qq__eyes, .qq[data-mood="cheer"] .qq__eyes,
.qq[data-mood="happy"] .qq__smile, .qq[data-mood="cheer"] .qq__smile { display: none; }
.qq[data-mood="happy"] .qq__joy, .qq[data-mood="cheer"] .qq__joy,
.qq[data-mood="happy"] .qq__grin, .qq[data-mood="cheer"] .qq__grin,
.qq[data-mood="cheer"] .qq__spark { display: inline; }
.qq[data-mood="encourage"] { transform: rotate(4deg); }
.qq[data-mood="encourage"] .qq__lid { transform: scaleY(0.76); }
.live .qq.is-hop { animation: qq-hop 0.48s var(--ease); }
@keyframes qq-hop { 33% { transform: translate3d(0, -12%, 0); } }

/* The answer drops in over the deck, as it does in the app. */
.qs__toast {
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px 7px 15px;
  background: var(--qs-surface);
  box-shadow: inset 0 0 0 2px rgba(61, 220, 132, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -14px, 0);
  transition: opacity 0.2s, transform 0.3s var(--spring), visibility 0s linear 0.2s;
}
.qs__toast.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.qs__toast-ok { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-bottom: 4px; border-radius: 50%; background: var(--qs-know); color: #04210f; font-size: 14px; }
.qs__toast-ok .qi { stroke-width: 3.4; }
.qs__toast-a { flex: 1; min-width: 0; margin-bottom: 4px; }
.qs__toast-a small { display: block; color: var(--qs-ink-2); font-size: 12px; font-weight: 700; }
.qs__toast-a b { display: block; overflow: hidden; color: var(--qs-ink); font-family: var(--f-round); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.qs__deck {
  position: relative;
  width: var(--cw);
  height: var(--ch);
  font-size: calc(var(--cw) / 35); /* 1em is one app point times ten, so sizes read like the app's */
  touch-action: pan-y;
  cursor: grab;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.qs__deck.is-held { cursor: grabbing; }
.qs__deck:focus-visible { border-radius: 2.4em; outline: 2px solid var(--qs-brand); outline-offset: 6px; }

/* The nails at the edges of the window, behind the card. */
.qs__nail {
  position: absolute;
  top: calc(var(--ch) * -0.12);
  width: calc(var(--ch) * 0.24);
  height: calc(var(--ch) * 1.24);
  opacity: 0.46;
  pointer-events: none;
}
.qs__nail svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.qs__nail--know { left: calc(50% - 50vw); color: var(--qs-know); transform-origin: 0 50%; }
.qs__nail--learn { right: calc(50% - 50vw); color: var(--qs-learn); transform-origin: 100% 50%; }
.live .qs:not(.is-touched) .qs__nail svg { animation: qs-breathe 1.4s ease-in-out infinite alternate; }
.qs.is-far .qs__nail svg { animation-play-state: paused; }
@keyframes qs-breathe { from { opacity: 0.55; } }

.qc { position: absolute; inset: 0; color: var(--qs-ink); }
.qc[data-group="science"] { --g: 79 209 197; }
.qc[data-group="culture"] { --g: 244 114 182; }
.qc[data-group="deep"] { --g: 167 139 250; }
.qc--end { --g: 163 160 255; cursor: auto; }
.qc__flip { position: absolute; inset: 0; }
.qc__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2.4em;
  background: linear-gradient(to bottom, rgb(var(--g) / 0.22), rgb(var(--g) / 0.06) 27.5%, transparent 55%), var(--qs-surface);
}
.qc__face--back { visibility: hidden; }
.qc.is-blank .qc__head, .qc.is-blank .qc__clue, .qc.is-blank .qc__mark { visibility: hidden; }

.sq-line { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--qs-line); stroke-width: 2; pointer-events: none; }
.qc[data-rare="epic"] .sq-line { stroke: #c084fc; stroke-width: 5; }

.qc__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.8em; }
.qc__chip, .qc__rare { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 0.84em; border-radius: 99em; font-size: 1.2em; font-weight: 600; line-height: 1.34; letter-spacing: -0.006em; }
.qc__chip { background: var(--qs-surface); box-shadow: inset 0 0 0 1px rgb(var(--g) / 0.4); }
.qc__chip .qi { color: rgb(var(--g)); font-size: 1.1em; }
.qc__rare { background: #c084fc; color: #2a0845; font-weight: 800; }
.qc__mark { position: absolute; right: -5.6em; bottom: -4em; width: 26em; height: 26em; color: rgb(var(--g) / 0.07); stroke-width: 2.4; transform: rotate(-14deg); }
.qc__clue { position: relative; margin: auto 0; font-size: 2.2em; font-weight: 600; line-height: 1.38; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }

.qc__face--back { gap: 1.4em; }
.qc__ans { margin-top: auto; }
.qc__label { color: rgb(var(--g)); font-size: 1.2em; font-weight: 700; }
.qc__answer { margin-top: 0.15em; font-size: 3.4em; font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; word-break: keep-all; }
.qc__orig { margin-top: 0.3em; color: var(--qs-ink-2); font-size: 1.7em; line-height: 1.3; }
.qc__tmi { display: flex; gap: 0.6em; padding: 0.82em; border-radius: 0.94em; background: rgb(var(--g) / 0.1); font-size: 1.6em; line-height: 1.42; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.qc__tmi .qi { margin-top: 0.14em; color: rgb(var(--g)); font-size: 1.1em; }
.qc__src { position: relative; z-index: 3; margin-top: auto; color: var(--qs-ink-2); font-size: 1.2em; }
.qc__src a { text-decoration: underline; text-decoration-thickness: var(--hair); text-underline-offset: 2px; }
.qc__next { color: var(--qs-ink-2); font-size: 1.2em; text-align: center; }

.qc--end .qc__face { align-items: center; justify-content: center; gap: 1.2em; text-align: center; }
.qc__done { font-size: 2.8em; font-weight: 800; line-height: 1.24; letter-spacing: -0.03em; }
.qc__tally { font-size: 1.7em; font-weight: 600; line-height: 1.4; letter-spacing: -0.016em; word-break: keep-all; text-wrap: balance; }
.qc__promise { color: var(--qs-ink-2); font-size: 1.4em; line-height: 1.45; word-break: keep-all; text-wrap: balance; }
.qc--end .qb { width: auto; min-width: 62%; margin-top: 1.2em; }

.qc__stamps { position: absolute; left: 0; right: 0; top: 7em; z-index: 3; display: flex; justify-content: space-between; padding: 0 2.2em; pointer-events: none; }
.qc__stamp {
  padding: 0.2em 0.5em;
  border: 0.143em solid currentColor;
  border-radius: 0.43em;
  background: rgba(25, 28, 48, 0.92);
  font-family: var(--f-round);
  font-size: 2.8em;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  transition: transform 0.3s var(--spring-bounce);
}
.qc__stamp--learn { color: var(--qs-learn); transform: rotate(-14deg) scale(var(--s, 1)); }
.qc__stamp--know { color: var(--qs-know); transform: rotate(14deg) scale(var(--s, 1)); }
.qc__stamp.is-past { --s: 1.1; }

.qs__hints { display: flex; justify-content: space-between; margin-top: 30px; padding: 0 4px; font-family: var(--f-round); font-size: 15px; font-weight: 800; transition: opacity 0.25s; }
.qs__hints.is-off { opacity: 0; }
.qs__hint { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.qs__hint .qi { stroke-width: 2.8; }
.qs__hint--know { color: var(--qs-know); transform-origin: 0 100%; }
.qs__hint--learn { color: var(--qs-learn); transform-origin: 100% 100%; }
.qs__hint--learn .qi { transform: scaleX(-1); }
.live .qs:not(.is-touched) .qs__hint--know .qi { animation: qs-nudge 0.7s ease-in-out infinite alternate; }
.live .qs:not(.is-touched) .qs__hint--learn .qi { animation: qs-nudge-r 0.7s ease-in-out infinite alternate; }
.qs.is-far .qs__hint .qi { animation-play-state: paused; }
@keyframes qs-nudge { to { transform: translate3d(-4px, 0, 0); } }
@keyframes qs-nudge-r { to { transform: scaleX(-1) translate3d(-4px, 0, 0); } }

/* The app's chunky button: the face sits on a lip and goes down onto it. */
.qs__actions { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.qb { position: relative; display: block; width: 100%; padding: 0 0 5px; background: none; color: inherit; font: inherit; cursor: pointer; }
.qb__lip { position: absolute; inset: 5px 0 0; background: var(--lip); }
.qb__face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 56px;
  padding: 0 12px;
  background: var(--face);
  color: var(--text);
  font-family: var(--f-round);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition: transform 0.3s var(--spring-bounce);
}
.qb__face .qi { font-size: 19px; stroke-width: 2.8; }
[data-press].qb.is-down { transform: none; }
.qb.is-down .qb__face { transform: translate3d(0, 5px, 0); transition: transform 0.06s linear; }
.qb--know { --face: var(--qs-know); --lip: #1fa35c; --text: #04210f; }
.qb--learn { --face: var(--qs-learn); --lip: #d9624b; --text: #2a0b05; }
.qb--brand { --face: var(--qs-brand); --lip: #7a76e6; --text: #0d0f1e; }
.qb--plain { --face: var(--qs-surface); --lip: #2b2e47; --text: var(--qs-ink); }
.qb--plain .qb__face { box-shadow: inset 0 0 0 2px #2b2e47; }
.qb:disabled { cursor: default; }
.qb:disabled .qb__face { color: var(--qs-ink-2); }
.qb:disabled.qb--know, .qb:disabled.qb--learn { opacity: 0.4; }
.qb--s { flex: none; width: auto; }
.qb--s .qb__face { min-height: 40px; padding: 0 12px; font-size: 13.5px; }

.qs__craft { margin-top: clamp(72px, 14vh, 160px); padding: 0 var(--gutter); }
.qs__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.qs__note { --sq-r: 28px; display: flex; flex-direction: column; padding: 24px 24px 26px; background: var(--bg-2); }
.qs__note-k { color: var(--fg-2); font-size: 14px; font-weight: 600; }
.qs__note-v { margin-top: 18px; font-size: clamp(38px, 4.4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.qs__note-t { margin-top: 10px; color: var(--fg-2); font-size: 15px; line-height: 1.5; text-wrap: balance; }

.qs__soon { margin-top: clamp(64px, 11vh, 120px); padding: 0 var(--gutter); text-align: center; }
.qs__soon-t { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; }
.qs__soon .lead { margin-top: 8px; }
.qs__soon .link { margin-top: 10px; }
.qs__foot { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 0; text-align: center; }

/* Without the script it is one card, clue and answer, simply read. */
.qs:not(.is-on) .qs__top, .qs:not(.is-on) .qs__toast, .qs:not(.is-on) .qs__nail,
.qs:not(.is-on) .qs__hints, .qs:not(.is-on) .qs__actions, .qs:not(.is-on) .qc__stamps,
.qs:not(.is-on) .qc--end, .qs:not(.is-on) .qc__next, .qs:not(.is-on) .qs__craft,
.qs:not(.is-on) .qs__notes, .qs:not(.is-on) article.qc:not(:first-of-type) { display: none; }
.qs:not(.is-on) .qs__deck { height: auto; touch-action: auto; cursor: auto; -webkit-user-select: auto; user-select: auto; }
.qs:not(.is-on) .qc { position: static; }
.qs:not(.is-on) .qc__flip { position: static; display: grid; gap: 12px; }
.qs:not(.is-on) .qc__face { position: relative; visibility: visible; }

/* ---------- one person ---------- */
.person { background: #000; color: var(--fg); padding: clamp(140px, 26vh, 300px) var(--gutter) clamp(96px, 16vh, 180px); text-align: center; }
.person__title { font-size: clamp(36px, 6.4vw, 80px); font-weight: 700; line-height: 1.14; letter-spacing: -0.034em; }
.person__words {
  max-width: 880px;
  margin: clamp(28px, 5vh, 56px) auto 0;
  color: var(--fg);
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.person__words .w { opacity: 0.2; transition: opacity 0.35s linear; }
.person__words .w.on { opacity: 1; }
.person__lead { max-width: 560px; margin: clamp(28px, 5vh, 48px) auto 0; }
.person__sign { display: grid; gap: 2px; margin-top: clamp(28px, 5vh, 44px); color: var(--fg-2); font-size: 14px; font-weight: 500; }
.person__sign b { color: var(--fg); font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }

/* ---------- this visit ---------- */
.visit { background: #000; color: var(--fg); padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(72px, 14vh, 160px); }
.rows { --sq-r: 28px; max-width: 640px; margin: 0 auto; padding: 4px 20px; background: var(--bg-2); }
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 2px;
  padding: 15px 0 14px;
  border-bottom: var(--hair) solid var(--line);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--spring);
}
.rows > div:last-child { border-bottom: 0; }
.rows > div.is-in { opacity: 1; transform: none; }
html:not(.live) .rows > div { opacity: 1; transform: none; }
.rows dt { font-size: 16px; font-weight: 600; letter-spacing: -0.014em; }
.rows dd { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg-2); text-align: right; white-space: nowrap; }
.rows dd.why { grid-column: 1 / -1; color: var(--fg-2); font-size: 13.5px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; text-wrap: balance; }
.visit__foot { max-width: 640px; margin: 18px auto 0; text-align: center; }

/* ---------- dawn ---------- */
.live .dawn { height: 420vh; height: 420lvh; }
.dawn { position: relative; }
.dawn .stage { min-height: 100vh; min-height: 100svh; background: var(--bg); }
.dawn__sky { position: absolute; inset: 0; }
.live .dawn__sky--a { background: #000; }
.live .dawn__sky--b { background: linear-gradient(0deg, #ffc48e 0%, #f08f8c 22%, #8e4d86 48%, #1d1b4b 76%, #000 100%); opacity: 0; }
.live .dawn__sky--c { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 42%, #fbe6d2 68%, #d8e6f6 100%); opacity: 0; }
@media (prefers-color-scheme: dark) {
  .live .dawn__sky--c { background: linear-gradient(0deg, #000 0%, #05060c 50%, #10142a 100%); }
}
.dawn__copy {
  position: absolute;
  left: 50%;
  top: var(--cy, 46%);
  z-index: 2;
  width: min(calc(100vw - 2 * var(--gutter)), calc(var(--r, 320px) * 1.72));
  text-align: center;
  color: var(--fg);
  transform: translate(-50%, -50%);
}
.live .dawn__copy { opacity: 0; }
.dawn__title { font-size: clamp(27px, min(3.9vw, 5.6svh), 48px); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.dawn__lead { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(14px, min(1.4vw, 2svh), 18px); }
.dawn__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; margin-top: clamp(12px, 2.2vh, 22px); }
.dawn__cta .btn { height: 46px; padding: 0 24px; font-size: 16px; }
.dawn__cta .link { font-size: 16px; }
.dawn__seoul {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--cy, 46%) + var(--r, 320px) * 1.12);
  z-index: 2;
  padding: 0 var(--gutter);
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.live .dawn__seoul { opacity: 0; }
html:not(.live) .dawn__seoul { position: static; padding-bottom: 64px; }
.dawn__anchor { position: absolute; left: 0; bottom: 100vh; bottom: 100lvh; width: 0; height: 0; scroll-margin-top: 0; }
html:not(.live) .dawn__copy { position: relative; left: auto; top: auto; margin: 0 auto; padding: 96px 0; transform: none; }
html:not(.live) .dawn .stage__canvas { display: none; }

/* ---------- footer ---------- */
.end { position: relative; padding: clamp(40px, 7vh, 72px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px); background: var(--bg); color: var(--fg-2); font-size: 13px; }
.end__cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; max-width: var(--wrap); margin: 0 auto; padding-top: 22px; border-top: var(--hair) solid var(--line); }
.end__facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 40px; }
.end__facts > div { display: flex; gap: 12px; }
.end__facts dt { min-width: 3.4em; color: var(--fg-3); }
.end__facts dd { color: var(--fg); }
.end__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 32px; }
.end__nav a { color: var(--fg-2); transition: color 0.2s; }
@media (hover: hover) { .end__nav a:hover { color: var(--fg); } }
.end__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; max-width: var(--wrap); margin: 26px auto 0; color: var(--fg-3); font-size: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 70;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  box-shadow: inset 0 0 0 var(--hair) var(--glass-edge), 0 0 0 var(--hair) var(--glass-rim), 0 12px 36px -12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden; /* a glass layer can still show through opacity 0 in WebKit */
  pointer-events: none;
  transform: translate(-50%, 16px) scale(0.96);
  transition: opacity 0.25s var(--ease), transform 0.6s var(--spring-bounce), visibility 0s linear 0.25s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* ---------- reveals ---------- */
.live [data-rise] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.9s var(--ease), transform 1.2s var(--spring); transition-delay: var(--d, 0s); }
.live [data-rise].is-in { opacity: 1; transform: none; }
.sq-fallback [data-rise] { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   SMALLER SCREENS
   ========================================================================== */
@media (max-width: 899px) {
  .bar { gap: 2px; padding: 0 6px 0 14px; height: 48px; }
  .bar__nav { display: none; }
  .bar__menu { display: block; }
  .bar__cta { display: none; }
  .bar__end { gap: 11px; }

  .qs__notes { grid-template-columns: minmax(0, 1fr); max-width: calc(640px + 2 * var(--gutter)); }
}

@media (max-width: 1039px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:last-child { grid-column: span 2; }
}

@media (min-width: 900px) {
  .sheet { display: none !important; }
}

@media (max-width: 699px) {
  .lines__pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lines__card { padding: 18px 20px 20px; }
  .lines__card figcaption { margin-bottom: 12px; }
  .lines__box { height: 148px; }
  .lines__text { font-size: 20px; }

  .touch__card { grid-template-columns: minmax(0, 1fr); }
  .pad { width: min(72%, 240px); }
  .touch__read { justify-content: center; }
  .touch__cap { text-align: center; min-height: 0; }

  .lv__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 18px; padding: calc(var(--bar-top) + var(--bar-h) + 12px) var(--gutter) calc(var(--under) + env(safe-area-inset-bottom, 0px) + 28px); }
  .lv__phone { --pw: clamp(190px, min(58vw, 34svh), 280px); justify-self: center; align-self: center; }
  .lv__copy { min-height: clamp(190px, 25svh, 240px); align-items: start; text-align: center; }
  .lv__title { margin-bottom: 8px; font-size: clamp(25px, 7vw, 30px); }
  .lv__copy .eyebrow { margin-bottom: 6px; font-size: 15px; }
  .lv__copy .lead { font-size: 15px; line-height: 1.5; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--wide, .tile:last-child { grid-column: auto; }
  .tile { min-height: 196px; }

  .end__cols { grid-template-columns: minmax(0, 1fr); }
  .end__facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 379px) {
  .beat { font-size: 8.8vw; }
}

/* Short laptop screens: the night stage keeps its phone visible. */
@media (max-height: 640px) {
  .night__copy .lead { display: none; }
}

/* ==========================================================================
   VISITOR SETTINGS
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .bar, .sheet, .toast { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); }
}

@media (prefers-contrast: more) {
  :root { --fg-2: var(--fg); --fg-3: var(--fg); }
  .qs { --qs-ink-2: #c9c8d6; --qs-line: #6a6e8c; } /* the app's own high-contrast values */
}

/* A phone in low power mode runs at half speed; drop what costs the most. */
.lite .bar, .lite .toast { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); }

@media print {
  .bar, .sheet, .toast, .stage__canvas, .slider, .touch, .night__panel, .qs__stage { display: none !important; }
  .pin, .stage { height: auto !important; position: static !important; }
  [data-rise], .beat, .rows > div { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}
