/* =========================================================================
   Given — design tokens (Figma source of truth)
   Paper #f5f5f5, Ink #201e1b, Border #d4d4d4, White #f5f5f5
   Serif: Instrument Serif · Sans: Poppins · CJK: Noto Serif KR
   ========================================================================= */
:root {
  --ink: #201e1b;
  --ink-soft: #3a3633;
  --ink-dim: #000000;
  --paper: #f5f5f5;
  --paper-bright: #ffffff;
  --cream: #e8e3dc;
  --line: #d4d4d4;
  --line-soft: rgba(32, 30, 27, 0.1);
  --mute: #656565;
  --text-secondary: #656565;
  --text-placeholder: rgba(32, 30, 27, 0.5);
  --on-dark: #f5f5f5;
  --on-dark-mute: rgba(245, 245, 245, 0.62);
  --orb-well: #2b2b2b;

  --wood: #006e23;
  --fire: #c92c00;
  --earth: #8c6901;
  --metal: #747474;
  --water: #0042a5;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cjk: 'Noto Serif KR', 'Instrument Serif', Georgia, serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --r-phone: 42px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 88px;
  --section-y: clamp(80px, 10vw, 140px);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
  background-image: url('assets/figma/grain-light.png');
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  left: 16px;
  top: -48px;
  z-index: 120;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(32, 30, 27, 0.12);
}

.skip-link:focus {
  top: 16px;
}

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

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.ital {
  font-style: italic;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow--sm {
  font-size: 16px;
  letter-spacing: 0.1em;
}

.eyebrow--light {
  color: var(--on-dark);
}

.t-wood {
  color: var(--wood);
}
.t-fire {
  color: var(--fire);
}
.t-earth {
  color: var(--earth);
}
.t-metal {
  color: var(--metal);
}
.t-water {
  color: var(--water);
}

.t-bg-wood {
  background: var(--wood);
}
.t-bg-fire {
  background: var(--fire);
}
.t-bg-earth {
  background: var(--earth);
}
.t-bg-metal {
  background: var(--metal);
}
.t-bg-water {
  background: var(--water);
}

/* =========================================================================
   NAV — 88px tall, centered serif tabs, transparent on hero/dark, light on paper
   ========================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  background: transparent;
  transition:
    background 260ms ease,
    backdrop-filter 260ms ease,
    color 260ms ease,
    border-color 260ms ease;
  border-bottom: 1px solid transparent;
}

.nav.is-on-light {
  color: var(--ink);
}

.nav.is-scrolled {
  background: rgba(32, 30, 27, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav.is-on-light.is-scrolled {
  background: rgba(245, 245, 245, 0.86);
  border-bottom-color: rgba(32, 30, 27, 0.06);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 22px;
  height: 29px;
  color: currentColor;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav__links a {
  color: inherit;
  opacity: 0.92;
  transition: opacity 180ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  opacity: 1;
}

.nav__spacer {
  width: 22px;
  flex-shrink: 0;
}

@media (max-width: 740px) {
  .nav {
    padding: 16px 20px;
  }
  .nav__links {
    gap: 24px;
    font-size: 16px;
  }
}

/* =========================================================================
   HERO — full viewport, one of 5 backgrounds, centered serif title
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--on-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 96px;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0f0e0c;
}

.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media img {
  z-index: 1;
  opacity: 1;
  transition: opacity 600ms ease;
}

.hero__media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero__media video.is-ready {
  opacity: 1;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.18) 35%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero__inner {
  width: min(100%, 368px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__headline {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--on-dark);
  font-weight: 400;
  text-wrap: balance;
}

.hero__headline em {
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  margin: 0;
  color: var(--on-dark);
  max-width: 28ch;
}

/* Side "given" vertical markers — Figma SVG, 40x200 at each edge */
.hero__mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 200px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.hero__mark--left {
  left: 40px;
}
.hero__mark--right {
  right: 40px;
}

@media (max-width: 820px) {
  .hero__mark {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero__mark {
    display: none;
  }
}

/* App Store button (outlined on dark, dark on light) */
.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 48px;
  padding: 0 24px;
  min-width: 220px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.app-btn:hover,
.app-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(245, 245, 245, 0.06);
}

.app-btn--dark {
  height: auto;
  min-width: 0;
  padding: 10px 24px;
  color: var(--ink);
  background: var(--paper);
  border: none;
}

.app-btn--dark:hover,
.app-btn--dark:focus-visible {
  background: var(--paper-bright);
}

.app-btn__apple {
  flex-shrink: 0;
  color: currentColor;
}

.app-btn__apple path {
  fill: currentColor;
}

.app-btn__stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.app-btn__line1 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.app-btn__line2 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

.app-btn--dark .app-btn__apple {
  width: 20px;
  height: 24px;
}

/* =========================================================================
   APP FLOW — dark→light→dark scenes. Each scene: caption left, large phone
   right. Phone sticks within scene, its internal content scrolls up as user
   progresses through the scene (parallax). Phone = 560px wide, bleeds tall.
   ========================================================================= */
.app-flow {
  position: relative;
  background-color: var(--ink);
  background-image: url('assets/figma/grain-dark.png');
  background-repeat: repeat;
  color: var(--on-dark);
}

.flow-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(112px, 14vw, 180px) var(--gutter) clamp(72px, 8vw, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.flow-intro__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
  color: inherit;
}

.flow-intro__sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  margin: 0;
  color: inherit;
  opacity: 0.72;
}

.flow-intro__sub em {
  font-style: italic;
}

/* Scene wrapper: ~220vh scroll room. Inner content is sticky-centered for
   the duration of the scene; caption stays put, phone parks briefly at center
   then scrolls past the caption and exits upward (JS sets --phone-y; CSS
   translates). --flow-progress (0→1) drives the gentle caption drift. */
.flow-scene {
  position: relative;
  min-height: 220vh;
}

.flow-scene--dark {
  background-color: var(--ink);
  background-image: url('assets/figma/grain-dark.png');
  color: var(--on-dark);
}

.flow-scene--light {
  background-color: var(--paper);
  background-image: url('assets/figma/grain-light.png');
  color: var(--ink);
}

.flow-scene__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Figma spec (Desktop-7): caption pinned at left=40px, width=504px.
   Scales down on narrow viewports but keeps the ratio. */
.flow-scene__caption {
  position: absolute;
  top: calc(var(--nav-h) + clamp(16px, 3vh, 40px));
  left: clamp(20px, 2.8vw, 40px);
  width: min(504px, calc(100% - 80px));
  /* caption barely drifts — mostly stays at top-left through the scene */
  transform: translateY(calc((0.5 - var(--flow-progress, 0.5)) * 40px));
  will-change: transform;
  z-index: 2;
}

.flow-scene__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 20px;
  font-weight: 400;
  color: inherit;
  text-wrap: balance;
}

.flow-scene__title em {
  font-style: italic;
}

.flow-scene__body {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: inherit;
  opacity: 0.82;
  max-width: 40ch;
}

.flow-scene__body em {
  font-style: italic;
}
.flow-scene__body--italic {
  font-style: italic;
}

.flow-scene__tail {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 17px);
  color: inherit;
  opacity: 0.58;
}

.flow-scene__beats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  color: inherit;
  opacity: 0.84;
}

.flow-scene__beats li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.14);
}

.flow-scene--light .flow-scene__beats li {
  border-color: rgba(32, 30, 27, 0.14);
}

.flow-scene__beats li:last-child {
  border-bottom: 0;
}

.flow-scene__beats span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: inherit;
  opacity: 0.5;
}

/* Phone — always dead-center of viewport during sticky scene; gentle parallax
   drift (±40px) so it feels alive without wandering off the center line. */
.flow-scene__phone {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, calc(-50% + var(--phone-y, 150vh)));
  will-change: transform;
  z-index: 1;
}

@media (max-width: 1060px) {
  .flow-scene__caption {
    max-width: min(360px, 42vw);
  }
}

@media (max-width: 880px) {
  .flow-scene {
    min-height: 0;
  }
  .flow-scene__inner {
    position: static;
    height: auto;
    padding: 48px var(--gutter) 80px;
    display: grid;
    gap: 32px;
  }
  .flow-scene__caption {
    position: static;
    transform: none;
    max-width: none;
  }
  .flow-scene__phone {
    position: static;
    transform: none;
    height: auto;
  }
}

/* =========================================================================
   PHONE — ask/dark variant
   ========================================================================= */
.phone--dark {
  background: #1a1917;
  box-shadow:
    0 48px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

.phone--dark .phone__notch {
  background: #0d0c0b;
}

.phone__status--dark {
  color: var(--on-dark);
}

.phone__status--dark svg {
  color: var(--on-dark);
}

.phone__body--ask {
  justify-content: center;
  align-items: stretch;
  min-height: 520px;
  padding-top: 80px;
  gap: 24px;
}

.phone__display--dark {
  color: var(--on-dark);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

.phone__ask-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(245, 245, 245, 0.3);
  padding: 10px 14px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--on-dark);
  min-height: 40px;
  background: rgba(255, 255, 255, 0.03);
}

.phone__ask-input [data-mini-ask] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.phone__ask-input [data-mini-ask]:empty::before {
  content: 'Ask anything';
  color: rgba(245, 245, 245, 0.35);
}

.phone__ask-caret {
  opacity: 0;
  color: rgba(245, 245, 245, 0.7);
}

.phone__ask-caret.is-on {
  opacity: 1;
  animation: askBlink 1s steps(2) infinite;
}

@keyframes askBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.phone__ask-answer {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.82);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 600ms ease,
    opacity 400ms ease 150ms;
}

.phone__ask-answer em {
  display: block;
  font-style: italic;
  color: var(--on-dark);
  font-size: 14px;
  margin-bottom: 8px;
}

.phone__ask-answer p {
  margin: 0;
}

.phone__ask-answer.is-open {
  max-height: 400px;
  opacity: 1;
}

.phone__tabbar--dark {
  color: rgba(245, 245, 245, 0.42);
  background: linear-gradient(to bottom, rgba(26, 25, 23, 0), rgba(26, 25, 23, 0.95) 40%);
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

.phone__tabbar--dark .is-active {
  color: var(--on-dark);
}

.phone__person-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
}

/* Phone internal scroll animation (scene: today caption advances) */
.phone__scroll {
  overflow: hidden;
  flex: 1;
}

/* =========================================================================
   PHONE MOCKUP — shared between scenes
   ========================================================================= */
/* Phone — true iPhone aspect ratio 402:874 (≈0.46). Height-first sizing
   ensures it always fits the 100vh sticky scene. */
.phone {
  position: relative;
  height: min(820px, 86vh);
  aspect-ratio: 402 / 874;
  width: auto;
  max-width: 100%;
  border-radius: 48px;
  background: #fafafa;
  color: var(--ink);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.5),
    0 0 0 8px rgba(180, 180, 180, 0.3),
    0 0 0 9px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: var(--sans);
}

.phone--light {
  background: #f7f5f1;
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 36px;
  background: #0f0f0f;
  border-radius: 20px;
  z-index: 3;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 2;
  min-height: 52px;
}

.phone__status svg {
  fill: currentColor;
  color: var(--ink);
  width: 20px;
  height: auto;
}

.phone__status svg:last-child {
  width: 26px;
}

.phone__status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone__viewport {
  overflow: hidden;
}

.phone__body {
  padding: 20px 32px 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}

.phone__body--ask {
  padding-top: 120px;
  gap: 28px;
}

.phone__rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  padding-bottom: 12px;
}

.phone__rule--center {
  justify-content: center;
  padding-bottom: 16px;
}

.phone__rule-mute {
  font-size: 16px;
  color: rgba(32, 30, 27, 0.4);
}

.phone__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  border: 1px solid rgba(32, 30, 27, 0.16);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.6);
}

.phone__tag-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--water);
  background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 50%);
}

.phone__script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  color: rgba(32, 30, 27, 0.72);
  margin: 0;
}

.phone__display {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

.phone__display--center {
  text-align: center;
}

.phone__copy {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  color: rgba(32, 30, 27, 0.86);
}

.phone__copy--tight {
  font-family: var(--sans);
  font-style: italic;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(32, 30, 27, 0.66);
}

.phone__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(32, 30, 27, 0.1);
  border-bottom: 1px solid rgba(32, 30, 27, 0.1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
}

.phone__meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(32, 30, 27, 0.72);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.phone__note {
  display: grid;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}

.phone__chips {
  margin-top: 10px;
}

.phone__chip-label {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.phone__chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45), transparent 50%);
}

.chip[data-element='wood'] {
  background: var(--wood);
}
.chip[data-element='fire'] {
  background: var(--fire);
}
.chip[data-element='earth'] {
  background: var(--earth);
}
.chip[data-element='metal'] {
  background: var(--metal);
}
.chip[data-element='water'] {
  background: var(--water);
}

.phone__tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 24px 24px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(32, 30, 27, 0.45);
  background: linear-gradient(to bottom, rgba(247, 245, 241, 0), rgba(247, 245, 241, 0.95) 50%);
  border-top: 1px solid rgba(32, 30, 27, 0.05);
}

.phone__tabbar .is-active {
  color: var(--ink);
}

.phone__people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.phone__people > div:not(.phone__x) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.phone__x {
  font-family: var(--serif);
  font-size: 28px;
  color: rgba(32, 30, 27, 0.5);
}

.phone__person-type {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(32, 30, 27, 0.7);
}

.phone__person-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.phone__person-orb {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}

.orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  position: relative;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45), transparent 45%), #2b2b2b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.orb[data-element='wood'] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%), var(--wood);
}
.orb[data-element='fire'] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%), var(--fire);
}
.orb[data-element='earth'] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%), var(--earth);
}
.orb[data-element='metal'] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%), var(--metal);
}
.orb[data-element='water'] {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%), var(--water);
}

.orb--lg {
  width: 120px;
  height: 120px;
}

.compat-rows {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 30, 27, 0.08);
}

.compat-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 20px;
}

.compat-row__el {
  font-weight: 400;
}

.compat-row__tracks {
  display: grid;
  gap: 6px;
}

.compat-track {
  position: relative;
  height: 10px;
  background: rgba(32, 30, 27, 0.08);
  border-radius: 999px;
}

.compat-track span {
  position: absolute;
  right: 0;
  top: -22px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(32, 30, 27, 0.55);
}

.compat-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}

/* =========================================================================
   ASK FLOW — full-bleed dark starfield, minimal underline input, crossfade
   Figma: Desktop-12 / Desktop-13 / Desktop-14 (5555:29260/29476/29492)
   ========================================================================= */
.ask-flow {
  position: relative;
  background-color: #201e1b;
  background-image: url('assets/figma/starfield.svg');
  background-repeat: repeat;
  background-size: 640px 640px;
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.ask-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 0;
}

.ask-flow__rail {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  display: flex;
  justify-content: center;
  z-index: 1;
}

.ask-flow__stage {
  width: min(100%, 1000px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(56px, 10vw, 120px);
  text-align: center;
}

.ask-flow__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ask-flow__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  color: var(--on-dark);
  font-weight: 400;
  text-wrap: balance;
}
.ask-flow__title em {
  font-style: italic;
  font-weight: 400;
}

.ask-flow__sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  color: var(--on-dark);
  margin: 12px auto 0;
  max-width: 62ch;
}

.ask-flow__examples {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.2;
  color: var(--on-dark);
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ask-flow__examples em {
  font-style: italic;
  color: var(--on-dark);
  margin-top: 8px;
}

/* Input: a horizontal underline, not a pill (Figma spec) */
.ask-flow__input {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 16px 56px 16px 0;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.6);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--on-dark);
  line-height: 1.2;
  background: transparent;
}

.ask-flow__typed {
  white-space: pre;
}

.ask-flow__caret {
  display: inline-block;
  width: 1px;
  margin-left: 1px;
  color: var(--on-dark);
  font-weight: 300;
  opacity: 0;
  animation: askCaret 1.05s steps(1) infinite;
}

.ask-flow__caret.is-hidden {
  animation: none;
  opacity: 0;
}

@keyframes askCaret {
  0%,
  49% {
    opacity: 0.9;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.ask-flow__submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(245, 245, 245, 0.5);
  background: transparent;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
}
.ask-flow__submit svg {
  display: block;
}

.ask-flow__answer {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ask-flow__question {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 0;
  color: var(--on-dark);
  font-weight: 400;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

.ask-flow__question.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.ask-flow__answer-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ask-flow__answer-body p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.2;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

.ask-flow__answer-body p.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .ask-flow__rail {
    padding-top: clamp(96px, 20vw, 140px);
    padding-bottom: clamp(96px, 20vw, 140px);
  }
  .ask-flow__stage {
    gap: 48px;
  }
  .ask-flow__input {
    padding: 14px 48px 14px 0;
    min-height: 48px;
  }
  .ask-flow__submit {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-flow__caret {
    animation: none;
    opacity: 0.9;
  }
}

/* =========================================================================
   HOW IT WORKS — "This isn't interpretation. It's calculation."
   ========================================================================= */
.hiw {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 12vw, 140px) 0;
}

.hiw__head {
  max-width: 640px;
  margin: 0 auto clamp(60px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.hiw__head .eyebrow {
  margin-bottom: 16px;
}

.hiw__title {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 24px;
  font-weight: 400;
}

.hiw__title em {
  font-style: italic;
}

.hiw__body {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  display: grid;
  gap: 16px;
}

.hiw__body p {
  margin: 0;
}

.hiw__body em {
  font-style: italic;
}

.pillars-row {
  max-width: 630px;
  margin: 0 auto;
  text-align: center;
}

.pillars-row__title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 24px;
}

.pillars-row__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  height: 320px;
}

.pcard {
  appearance: none;
  width: 142px;
  border: 1px solid rgba(32, 30, 27, 0.5);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  position: relative;
  transition: border-color 320ms ease;
  transform-origin: center;
}

.pcard:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.pcard.is-active {
  border-color: var(--ink);
  z-index: 2;
}

.pcard.is-active .pcard__hanja {
  font-weight: 600;
}

.pcard__label {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: inherit;
  transition: font-size 320ms ease;
}

.pcard.is-active .pcard__label {
  font-size: 32px;
}

.pcard__hanja {
  font-family: var(--cjk);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 4px;
  transition: font-size 320ms ease;
}

.pcard.is-active .pcard__hanja {
  font-size: 40px;
}

.pcard__hanja--small {
  font-size: 32px;
}

.pcard.is-active .pcard__hanja--small {
  font-size: 40px;
}

.pcard__el {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.2;
  color: inherit;
  margin-top: 4px;
}

.pcard__label,
.pcard__hanja,
.pcard__el {
  display: block;
  width: 100%;
  text-align: center;
}

.pcard > * + * {
  margin-top: 16px;
}

.pcard__el {
  margin-top: 4px;
}

.pcard__divider {
  display: none;
}

.pillars-row__caption {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  text-align: center;
  min-height: 6em;
  transition: opacity 200ms ease;
}

.pillars-row__caption strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
}

.pillars-row__caption em {
  display: block;
  font-size: 20px;
  font-style: italic;
}

.pillars-row__caption.is-switching {
  opacity: 0;
}

@media (max-width: 640px) {
  .pillars-row__grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    height: auto;
  }
  .pcard {
    width: calc(50% - 6px);
  }
}

/* =========================================================================
   TEN ARCHETYPES — dark section
   ========================================================================= */
.archetypes {
  background-color: var(--ink);
  background-image: url('assets/figma/grain-dark.png');
  background-repeat: repeat;
  color: var(--on-dark);
  padding: clamp(96px, 12vw, 140px) 0;
}

.archetypes__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto 60px;
}

.archetypes__head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.archetypes__title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

.archetypes__title em {
  font-style: italic;
}

.archetypes__lede {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  color: var(--on-dark);
  max-width: 48ch;
}

.archetype-feature-row {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
}

/* =========================================================================
   ARTICLE DIAGRAMS — inline SVG infographics inside .prose
   ========================================================================= */
.diagram {
  margin: 40px auto;
  max-width: 520px;
  text-align: center;
}

.diagram svg {
  width: 100%;
  height: auto;
  max-width: 460px;
  display: block;
  margin: 0 auto;
}

/* Branch wheel: ROOSTER (left) and RABBIT (right) labels sit ~3px past the
   400×400 viewBox; let them render without clipping. */
.diagram--branches svg {
  overflow: visible;
}

.diagram figcaption {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.62;
  text-align: center;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

/* Sample chart grid for the how-to-read article. 4 pillars × 2 rows
   (heavenly stem on top, earthly branch underneath). */
.sample-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(32, 30, 27, 0.1);
  border-radius: 14px;
  overflow: hidden;
  margin: 28px 0;
  background: var(--paper-bright);
  font-family: var(--sans);
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.03);
}

.sample-chart__head {
  padding: 10px 6px 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  background: rgba(32, 30, 27, 0.04);
  color: var(--ink);
  opacity: 0.65;
  border-right: 1px solid rgba(32, 30, 27, 0.08);
  border-bottom: 1px solid rgba(32, 30, 27, 0.1);
}

.sample-chart__cell {
  padding: 18px 8px 16px;
  text-align: center;
  border-right: 1px solid rgba(32, 30, 27, 0.08);
  border-bottom: 1px solid rgba(32, 30, 27, 0.08);
  font-family: var(--cjk);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
  position: relative;
}

.sample-chart__cell small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 6px;
  opacity: 0.55;
  color: var(--ink);
}

.sample-chart__cell--day {
  background: rgba(199, 90, 61, 0.06);
  position: relative;
}

.sample-chart__cell--day-master::after {
  content: 'Day master';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  background: #c45c3d;
  color: #fdf6e3;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.sample-chart > .sample-chart__head:nth-child(4),
.sample-chart > .sample-chart__cell:nth-child(4n) {
  border-right: 0;
}

.sample-chart > .sample-chart__cell:nth-last-child(-n + 4) {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .sample-chart__cell {
    font-size: 24px;
    padding: 14px 4px 12px;
  }
  .sample-chart__head {
    font-size: 9px;
  }
  .sample-chart__cell--day-master::after {
    font-size: 8px;
    padding: 2px 6px;
  }
}

/* Polarity grid — 5 element columns × 2 polarity rows for the day-master article */
.polarity-grid {
  display: grid;
  grid-template-columns: 70px repeat(5, 1fr);
  border: 1px solid rgba(32, 30, 27, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-bright);
  font-family: var(--sans);
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.03);
}

.polarity-grid__corner {
  background: rgba(32, 30, 27, 0.04);
  border-right: 1px solid rgba(32, 30, 27, 0.1);
  border-bottom: 1px solid rgba(32, 30, 27, 0.1);
}

.polarity-grid__head {
  padding: 12px 4px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  background: rgba(32, 30, 27, 0.04);
  color: var(--ink);
  opacity: 0.72;
  border-right: 1px solid rgba(32, 30, 27, 0.08);
  border-bottom: 1px solid rgba(32, 30, 27, 0.1);
}

.polarity-grid__row-label {
  padding: 18px 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  background: rgba(32, 30, 27, 0.04);
  color: var(--ink);
  opacity: 0.72;
  border-right: 1px solid rgba(32, 30, 27, 0.1);
  border-bottom: 1px solid rgba(32, 30, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.polarity-grid__cell {
  padding: 16px 4px 14px;
  text-align: center;
  border-right: 1px solid rgba(32, 30, 27, 0.08);
  border-bottom: 1px solid rgba(32, 30, 27, 0.08);
  font-family: var(--cjk);
  position: relative;
}

.polarity-grid__cell .hanja {
  font-size: 30px;
  line-height: 1;
  display: block;
  color: var(--ink);
}

.polarity-grid__cell small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.7;
  color: var(--ink);
}

.polarity-grid__cell--yin {
  background: rgba(32, 30, 27, 0.022);
}

.polarity-grid__cell--wood::before,
.polarity-grid__cell--fire::before,
.polarity-grid__cell--earth::before,
.polarity-grid__cell--metal::before,
.polarity-grid__cell--water::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.polarity-grid__cell--wood::before {
  background: #5b8a72;
}
.polarity-grid__cell--fire::before {
  background: #c45c3d;
}
.polarity-grid__cell--earth::before {
  background: #b89968;
}
.polarity-grid__cell--metal::before {
  background: #8a8a82;
}
.polarity-grid__cell--water::before {
  background: #4d6a8a;
}

.polarity-grid > :nth-child(6n) {
  border-right: 0;
}
.polarity-grid > :nth-last-child(-n + 6) {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .polarity-grid {
    grid-template-columns: 56px repeat(5, 1fr);
  }
  .polarity-grid__cell .hanja {
    font-size: 22px;
  }
  .polarity-grid__cell small {
    font-size: 8px;
    margin-top: 4px;
  }
  .polarity-grid__head {
    font-size: 9px;
  }
  .polarity-grid__row-label {
    font-size: 10px;
    padding: 12px 2px;
  }
}

/* Two-chart compatibility flow visual */
.compat-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
  font-family: var(--sans);
}

.compat-flow__chart {
  border: 1px solid rgba(32, 30, 27, 0.1);
  border-radius: 14px;
  padding: 20px 16px;
  background: var(--paper-bright);
  text-align: center;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.03);
}

.compat-flow__person {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
  margin-bottom: 10px;
}

.compat-flow__hanja {
  font-family: var(--cjk);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  margin: 4px 0 8px;
}

.compat-flow__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.compat-flow__archetype {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  opacity: 0.7;
}

.compat-flow__chart--a .compat-flow__hanja {
  color: #5b8a72;
}
.compat-flow__chart--b .compat-flow__hanja {
  color: #4d6a8a;
}

.compat-flow__interactions {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.compat-flow__interaction {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 30, 27, 0.12);
  border-radius: 8px;
  background: rgba(32, 30, 27, 0.02);
  align-items: start;
}

.compat-flow__tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  align-self: start;
  white-space: nowrap;
}

.compat-flow__tag--feeds {
  background: #5b8a72;
  color: #fdf6e3;
}
.compat-flow__tag--drains {
  background: #8a8a82;
  color: #fdf6e3;
}
.compat-flow__tag--clash {
  background: #c45c3d;
  color: #fdf6e3;
}
.compat-flow__tag--mixed {
  background: rgba(32, 30, 27, 0.7);
  color: #fdf6e3;
}

@media (max-width: 560px) {
  .compat-flow__hanja {
    font-size: 32px;
  }
  .compat-flow__archetype {
    font-size: 13px;
  }
  .compat-flow__interaction {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Gift-flow diagram — 3 numbered cards in a row connected by arrow glyphs.
   Used inside .prose figures (gift-saju-reading article). Stacks on narrow. */
.gift-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 0;
  margin: 28px 0;
  list-style: none;
  font-family: var(--sans);
}

.gift-flow__step {
  border: 1px solid rgba(32, 30, 27, 0.1);
  border-radius: 14px;
  padding: 20px 18px 18px;
  background: var(--paper-bright);
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.035);
}

.gift-flow__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: rgba(32, 30, 27, 0.5);
  margin-bottom: 8px;
}

.gift-flow__step h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink);
}

.gift-flow__step h3 em {
  font-style: italic;
}

.gift-flow__step p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  opacity: 0.66;
}

.gift-flow__arrow {
  align-self: center;
  font-size: 18px;
  line-height: 1;
  color: rgba(32, 30, 27, 0.32);
  font-family: var(--sans);
}

@media (max-width: 640px) {
  .gift-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gift-flow__arrow {
    justify-self: center;
    transform: rotate(90deg);
    margin: 2px 0;
  }
}

/* Tradition comparison — 3-column grid (Saju / Bazi / Four Pillars) with
   row-labels down the left edge (saju-vs-bazi article). */
.tradition-compare {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  border: 1px solid rgba(32, 30, 27, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-bright);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  margin: 28px 0;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.03);
}

.tradition-compare__corner {
  background: rgba(32, 30, 27, 0.04);
  border-right: 1px solid rgba(32, 30, 27, 0.1);
  border-bottom: 1px solid rgba(32, 30, 27, 0.1);
}

.tradition-compare__head {
  padding: 16px 12px 14px;
  background: rgba(32, 30, 27, 0.04);
  border-right: 1px solid rgba(32, 30, 27, 0.08);
  border-bottom: 1px solid rgba(32, 30, 27, 0.1);
  text-align: center;
}

.tradition-compare__hanja {
  display: block;
  font-family: var(--cjk);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ink);
}

.tradition-compare__name {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.72;
}

.tradition-compare__row-label {
  padding: 14px 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.62;
  background: rgba(32, 30, 27, 0.025);
  border-right: 1px solid rgba(32, 30, 27, 0.1);
  border-bottom: 1px solid rgba(32, 30, 27, 0.06);
  display: flex;
  align-items: center;
}

.tradition-compare__cell {
  padding: 14px 12px;
  border-right: 1px solid rgba(32, 30, 27, 0.06);
  border-bottom: 1px solid rgba(32, 30, 27, 0.06);
  color: var(--ink);
}

.tradition-compare > :nth-child(4n) {
  border-right: 0;
}

.tradition-compare > :nth-last-child(-n + 4) {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .tradition-compare {
    grid-template-columns: 76px repeat(3, 1fr);
    font-size: 11px;
  }
  .tradition-compare__hanja {
    font-size: 18px;
  }
  .tradition-compare__name {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .tradition-compare__cell,
  .tradition-compare__row-label {
    padding: 10px 8px;
  }
  .tradition-compare__row-label {
    font-size: 9px;
  }
}

@keyframes archHintPulse {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  35% {
    transform: scale(1.1) translateY(-4px);
  }
  70% {
    transform: scale(1) translateY(0);
  }
}

.arch-card.is-hinting .arch-card__orb,
.arch-card.is-hinting .arch-card__hanja,
.arch-card.is-hinting .arch-card__name {
  animation: archHintPulse 1100ms ease-in-out 2;
}

/* Width = 6 grid columns (60%); shifts horizontally so its left edge sits
   at the hovered tile's column. --arch-col is set in JS on hover. */
.archetype-feature {
  width: 60%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid #d4d4d4;
  border-bottom: 0;
  align-items: center;
  transform: translateX(calc(min(var(--arch-col, 0), 4) * 100% / 6));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Component-level display rules override the UA [hidden] default; restore it
   so JS can show one bio at a time via the hidden attribute. */
.archetype-feature[hidden] {
  display: none;
}

.archetype-feature__orb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.archetype-feature__orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: opacity 220ms ease;
}

.archetype-feature__orb.is-switching {
  opacity: 0;
}

.archetype-feature__hanja {
  font-family: var(--cjk);
  font-size: 32px;
  line-height: 1;
  color: var(--on-dark);
}

.archetype-feature__arch {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--on-dark);
}

.archetype-feature__body {
  display: grid;
  gap: 12px;
}

.archetype-feature__quote {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  color: var(--on-dark);
}

.archetype-feature__quote em {
  font-style: italic;
  color: var(--on-dark);
}

.archetype-feature__quote--tight {
  font-family: var(--sans);
  font-style: italic;
  font-size: 14px;
  line-height: 1.2;
  color: var(--on-dark);
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid #d4d4d4;
  border-left: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
}

.arch-card {
  appearance: none;
  font: inherit;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 20px;
  border: 0;
  border-right: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  color: var(--on-dark);
  cursor: pointer;
  transition:
    background 220ms ease,
    transform 220ms ease;
  text-align: center;
}

.arch-card:last-child {
  border-right: 0;
}

.arch-card:hover,
.arch-card:focus-visible,
.arch-card.arch-card--active {
  background: rgba(245, 245, 245, 0.05);
  outline: none;
}

.arch-card__orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.arch-card:hover .arch-card__orb,
.arch-card.arch-card--active .arch-card__orb {
  transform: scale(1.08);
}

.arch-card__hanja {
  font-family: var(--cjk);
  font-size: 16px;
  color: var(--on-dark);
  line-height: 1;
  margin-top: 4px;
  opacity: 0.85;
}

.arch-card__name {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  color: var(--on-dark);
  text-wrap: balance;
}

@media (max-width: 1000px) {
  .archetypes__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .archetype-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .arch-card:nth-child(5n) {
    border-right: 0;
  }
  /* Mobile: archetype detail panel always visible, sits flush above the grid
     so panel border-bottom + grid border-top share a single seam (no doubling). */
  .archetype-feature-row,
  .archetype-feature-row.is-revealed {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    margin: 24px 0 0;
    transition: none;
  }
  .archetype-feature {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
    transform: none;
    border: 1px solid #d4d4d4;
    border-bottom: 0;
    align-items: center;
    min-height: 440px;
  }
  .archetype-feature__orb-col {
    align-items: center;
    gap: 8px;
  }
  .archetype-feature__orb {
    width: 88px;
    height: 88px;
  }
  .archetype-feature__hanja {
    font-size: 26px;
  }
  .archetype-feature__arch {
    font-size: 22px;
  }
  .archetype-feature__body {
    text-align: center;
  }
  .archetype-feature__quote {
    font-size: 14px;
    line-height: 1.45;
  }
  /* No hover on touch — kill the hint pulse + active-orb scale that
     make taps feel jumpy and shift adjacent tiles. */
  .arch-card.is-hinting .arch-card__orb,
  .arch-card.is-hinting .arch-card__hanja,
  .arch-card.is-hinting .arch-card__name {
    animation: none;
  }
  .arch-card:hover .arch-card__orb,
  .arch-card.arch-card--active .arch-card__orb {
    transform: none;
  }
}

@media (max-width: 520px) {
  /* 10 cards in 2 dense rows of 5; tighten the tile so "Perfectionist" fits. */
  .archetype-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .arch-card {
    padding: 14px 4px 16px;
    gap: 6px;
  }
  .arch-card__orb {
    width: 32px;
    height: 32px;
  }
  .arch-card__hanja {
    font-size: 13px;
    margin-top: 2px;
  }
  .arch-card__name {
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .arch-card:nth-child(5n) {
    border-right: 0;
  }
}

/* =========================================================================
   GIFT A READING
   ========================================================================= */
.gift {
  background: var(--paper);
  padding: clamp(80px, 10vw, 128px) 0;
}

.gift__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 630px);
  gap: 80px;
  align-items: start;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}

.gift__text .eyebrow {
  margin-bottom: 16px;
}

.gift__title {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 24px;
  font-weight: 400;
}

.gift__body {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  max-width: 36ch;
}

.gift-form {
  background: var(--paper-bright);
  padding: 40px 24px;
  display: grid;
  gap: 40px;
}

/* Divider between the buyer-info row and the recipient-info rows
   (matches Figma Desktop-4 LINE 25). */
.gift-form > .gift-form__row:first-of-type {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.gift-form__row {
  display: grid;
  gap: 20px;
}

.gift-form__row--2 {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 16px;
}

.field__label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}

.field__label-dim {
  color: rgba(32, 30, 27, 0.5);
  font-weight: 400;
  text-transform: none;
  font-size: 12px;
}

.field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.field__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.field__checkbox input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(32, 30, 27, 0.25);
  background: var(--paper-bright);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.field__checkbox input[type='checkbox']:hover {
  border-color: rgba(32, 30, 27, 0.45);
}

.field__checkbox input[type='checkbox']:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.field__checkbox input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 6.5l2.5 2.5L10 3' stroke='%23ffffff' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.field__checkbox input[type='checkbox']:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field input[type='text'],
.field input[type='email'],
.field select,
.field textarea {
  height: 56px;
  padding: 0 18px;
  background: var(--paper-bright);
  border: 1px solid rgba(32, 30, 27, 0.12);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.04);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  width: 100%;
}

.field textarea {
  height: auto;
  padding: 16px 18px;
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-placeholder);
  font-family: var(--serif);
  opacity: 0.65;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(32, 30, 27, 0.24);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper-bright);
  box-shadow: 0 0 0 3px rgba(32, 30, 27, 0.08);
}

.field select {
  font-family: var(--serif);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' stroke='%23201e1b' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field__trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.field__trio input {
  text-align: center;
  padding: 0 12px;
}

.field__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  flex: 1;
  min-width: 80px;
  cursor: pointer;
}

.pill input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: block;
  height: 56px;
  line-height: 54px;
  text-align: center;
  padding: 0 16px;
  background: var(--paper-bright);
  border: 1px solid rgba(32, 30, 27, 0.12);
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.04);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.pill:hover span {
  border-color: rgba(32, 30, 27, 0.32);
}

.pill input[type='radio']:checked + span {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
  box-shadow: 0 2px 6px rgba(32, 30, 27, 0.16);
}

.pill input[type='radio']:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.gift-form__submit {
  height: 56px;
  border-radius: 999px;
  background: var(--ink);
  border: 0;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(32, 30, 27, 0.18);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 100ms ease;
}

.gift-form__submit:hover,
.gift-form__submit:focus-visible {
  background: #0f0e0c;
  box-shadow: 0 4px 14px rgba(32, 30, 27, 0.24);
}

.gift-form__submit:active {
  transform: scale(0.99);
}

.gift-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.08);
}

.gift-form__fine {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink);
  margin: -24px 0 0;
  text-align: center;
}

.gift-form__status {
  font-family: var(--sans);
  font-size: 14px;
  margin: -28px 0 0;
  text-align: center;
  color: var(--ink);
}

.gift-form__status:empty {
  display: none;
  margin: 0;
}

.gift-form__status.is-success {
  color: #2f7a3a;
}
.gift-form__status.is-error {
  color: #b7381f;
}

@media (max-width: 900px) {
  .gift__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .gift-form__row--2 {
    grid-template-columns: 1fr;
  }
  .field__trio {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .field__pills {
    flex-direction: row;
  }
}

/* =========================================================================
   FINAL CTA — "This is what you were given."
   ========================================================================= */
.cta {
  background-color: var(--paper);
  background-image: url('assets/figma/paper-tex-cta.jpg');
  background-size: 4096px 2304px;
  background-repeat: repeat;
  padding: clamp(72px, 9vw, 112px) 0;
}

.cta__inner {
  max-width: 630px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.cta__title {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  font-weight: 400;
}

.cta__title em {
  font-style: italic;
}

.cta__sub {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq {
  background-color: var(--paper);
  background-image: url('assets/figma/paper-tex-faq.jpg');
  background-size: 3277px 1843px;
  background-repeat: repeat;
  padding: clamp(80px, 10vw, 128px) 0;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 630px);
  gap: 110px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
  justify-content: center;
}

.faq__head .eyebrow {
  margin-bottom: 8px;
}

.faq__title {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  font-weight: 400;
}

.faq__title em {
  font-style: italic;
}

.faq__list {
  display: grid;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__plus,
.faq__minus {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  color: var(--ink);
  flex-shrink: 0;
}

.faq__item .faq__minus {
  display: none;
}
.faq__item[open] .faq__plus {
  display: none;
}
.faq__item[open] .faq__minus {
  display: grid;
}

.faq__answer {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  color: #000;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Mobile fallbacks for the headlines + lighter background textures */
@media (max-width: 720px) {
  .cta {
    background-image: url('assets/figma/paper-tex-cta-mobile.jpg');
    background-size: 1600px 900px;
  }
  .faq {
    background-image: url('assets/figma/paper-tex-faq-mobile.jpg');
    background-size: 1280px 720px;
  }
  .footer {
    background-image: url('assets/figma/paper-tex-footer-mobile.png');
    background-size: 120px 90px;
  }
  .hiw__title,
  .gift__title,
  .cta__title,
  .faq__title {
    font-size: clamp(40px, 9vw, 56px);
  }
  .archetypes__title,
  .pillars-row__title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .hiw__body,
  .archetypes__lede,
  .pillars-row__caption {
    font-size: clamp(18px, 4vw, 22px);
  }
  .cta__sub {
    font-size: clamp(20px, 5vw, 26px);
  }
  .ask-flow__sub {
    font-size: clamp(16px, 4.5vw, 22px);
  }
  .field input[type='text'],
  .field input[type='email'],
  .field select,
  .field textarea {
    height: 52px;
    font-size: 16px;
  }
  .pill span {
    height: 52px;
    line-height: 50px;
  }
  .gift-form__submit {
    height: 52px;
    font-size: 16px;
  }
}

/* =========================================================================
   FOOTER — dark, menu/menu columns, email, legal row
   ========================================================================= */
.footer {
  background-color: var(--ink);
  background-image: url('assets/figma/paper-tex-footer.png');
  background-size: 186px 140px;
  background-repeat: repeat;
  color: var(--on-dark);
  padding: 80px 0 56px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
}

.footer__right {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}

.footer__brand {
  color: var(--on-dark);
}

.footer__logo {
  width: 81px;
  height: 108px;
  color: var(--on-dark);
}

.footer__col {
  display: grid;
  gap: 16px;
}

.footer__col-label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.footer__col a {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: opacity 160ms ease;
}

.footer__col a:hover,
.footer__col a:focus-visible {
  opacity: 0.75;
}

.footer__email {
  justify-self: end;
}

.footer__email a {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--on-dark);
  transition: opacity 160ms ease;
}

.footer__email a:hover,
.footer__email a:focus-visible {
  opacity: 0.75;
}

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--on-dark);
}

.footer__bottom-text {
  display: inline-flex;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
}

.footer__bottom-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 245, 245, 0.35);
  transition: text-decoration-color 160ms ease;
}

.footer__bottom-text a:hover,
.footer__bottom-text a:focus-visible {
  text-decoration-color: rgba(245, 245, 245, 0.85);
}

.footer__tag {
  opacity: 1;
}

.footer__socials {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer__socials a {
  color: var(--on-dark);
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
  opacity: 1;
}

@media (max-width: 1020px) {
  .footer__grid {
    flex-direction: column;
    gap: 48px;
  }
  .footer__right {
    flex-wrap: wrap;
    gap: 48px 80px;
  }
}

@media (max-width: 560px) {
  .footer__right {
    flex-direction: column;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer__logo {
    width: 60px;
    height: 80px;
  }
}

/* =========================================================================
   APP STORE — "Coming soon" popover (triggered when dummy App Store link clicked)
   ========================================================================= */
.app-soon {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 40px);
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 14px 20px 14px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(245, 245, 245, 0.2);
  font-family: var(--serif);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  max-width: calc(100% - 40px);
}

.app-soon.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.app-soon__link {
  color: var(--on-dark);
  border-bottom: 1px solid rgba(245, 245, 245, 0.4);
  padding-bottom: 2px;
  font-size: 15px;
  white-space: nowrap;
}

.app-soon__close {
  background: transparent;
  border: 0;
  color: var(--on-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================================
   ARTICLE + LEGAL PAGE SHARED STYLES (preserved from prior build)
   Do not remove — articles/ and privacy/terms rely on these.
   ========================================================================= */
.shell {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.8rem var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark-shell {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--r-md);
  background: rgba(32, 30, 27, 0.06);
}

.brand-mark {
  width: 1.05rem;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-word {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-domain {
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-menu a {
  position: relative;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.18s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.is-current {
  opacity: 1;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(32, 30, 27, 0.08);
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* =========================================================================
   JOURNAL + ARTICLE PAGES — restyled to new design system (Instrument Serif
   headlines, Poppins body, --ink/--paper/--line tokens, 1240px container).
   Scoped under .page-journal / .page-article so rules don't leak to index.html.
   .page-legal kept on the same selectors for terms/privacy continuity.
   ========================================================================= */
.page-journal,
.page-article,
.page-legal {
  background-color: var(--paper);
  background-image: url('assets/figma/grain-light.png');
  color: var(--ink);
}

/* HERO ---------------------------------------------------------------- */
.page-journal .hero,
.page-article .hero,
.page-legal .hero {
  position: relative;
  background: transparent;
  color: var(--ink);
  padding: calc(var(--nav-h) + 64px) 0 64px;
  min-height: 0;
  overflow: visible;
  text-align: center;
}

.page-journal .hero .shell,
.page-article .hero .shell,
.page-legal .hero .shell {
  position: relative;
  z-index: 1;
}

.page-journal .hero-panel,
.page-article .hero-panel,
.page-legal .hero-panel {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-journal .hero-panel .eyebrow,
.page-article .hero-panel .eyebrow,
.page-legal .hero-panel .eyebrow {
  display: inline-block;
  margin: 0 0 24px;
}

.page-journal .hero-panel h1,
.page-article .hero-panel h1,
.page-legal .hero-panel h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--ink);
}

.page-journal .hero-copy,
.page-article .hero-copy,
.page-legal .hero-copy {
  font-family: var(--sans);
  color: var(--mute);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

.page-journal .hero .element-dots,
.page-article .hero .element-dots,
.page-legal .hero .element-dots {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.page-journal .hero .element-dots i,
.page-article .hero .element-dots i,
.page-legal .hero .element-dots i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.9;
}

.page-journal .hero .element-dots i:nth-child(1) {
  background: var(--wood);
}
.page-journal .hero .element-dots i:nth-child(2) {
  background: var(--fire);
}
.page-journal .hero .element-dots i:nth-child(3) {
  background: var(--earth);
}
.page-journal .hero .element-dots i:nth-child(4) {
  background: var(--metal);
}
.page-journal .hero .element-dots i:nth-child(5) {
  background: var(--water);
}

.page-journal .tag-row,
.page-article .tag-row,
.page-legal .tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
}

.page-journal .tag-row span,
.page-article .tag-row span,
.page-legal .tag-row span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}

/* SECTION padding ----------------------------------------------------- */
.page-journal .section,
.page-article .section,
.page-legal .section {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 128px);
}

/* CARDS (intro + meta-panel sidebar) --------------------------------- */
.page-journal .card,
.page-article .card,
.page-legal .card {
  padding: 28px 28px;
  border: 1px solid rgba(32, 30, 27, 0.08);
  border-radius: 22px;
  background: var(--paper-bright);
  color: var(--ink);
  /* iOS-style resting elevation — soft enough to look at home next to a
   * native Settings tableview cell. */
  box-shadow:
    0 1px 2px rgba(32, 30, 27, 0.035),
    0 6px 18px rgba(32, 30, 27, 0.025);
}

.page-journal .card .eyebrow,
.page-article .card .eyebrow,
.page-legal .card .eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-journal .card h2,
.page-article .card h2,
.page-legal .card h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--ink);
}

.page-journal .card p,
.page-article .card p,
.page-legal .card p {
  font-family: var(--sans);
  color: var(--mute);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 34rem;
}

/* JOURNAL INDEX intro grid ------------------------------------------- */
.page-journal .intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 56px;
}

/* JOURNAL INDEX article list — vertical-stacked cards in 1/2-col grid */
.page-journal .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 0;
  margin-top: 8px;
}

.page-journal .article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 32px 32px 36px;
  border: 1px solid rgba(32, 30, 27, 0.08);
  border-radius: 22px;
  background: var(--paper-bright);
  color: var(--ink);
  text-decoration: none;
  /* iOS-style resting elevation — soft, just enough depth to lift the card
   * off the grain background without looking heavy. */
  box-shadow:
    0 1px 2px rgba(32, 30, 27, 0.035),
    0 6px 18px rgba(32, 30, 27, 0.03);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  position: relative;
}

.page-journal .article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 30, 27, 0.18);
  box-shadow:
    0 4px 10px rgba(32, 30, 27, 0.06),
    0 14px 32px rgba(32, 30, 27, 0.06);
  background: var(--paper-bright);
}

.page-journal .article-card .meta {
  display: inline-block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: normal;
  width: auto;
  margin: 0;
}

.page-journal .article-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 4px 0 4px;
  color: var(--ink);
}

.page-journal .article-card p {
  font-family: var(--sans);
  color: var(--mute);
  font-size: 16px;
  line-height: 1.55;
  max-width: 44rem;
  margin: 0;
}

.page-journal .article-card::after {
  content: '→';
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 12px;
  align-self: flex-start;
  transition: transform 0.22s ease;
}

.page-journal .article-card:hover::after {
  transform: translateX(4px);
}

/* ARTICLE LAYOUT ----------------------------------------------------- */
.page-article .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

/* PROSE -------------------------------------------------------------- */
.page-article .prose {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.65;
}

.page-article .prose > section + section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.page-article .prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  max-width: 22ch;
  margin: 0 0 20px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--ink);
}

.page-article .prose h2 em {
  font-style: italic;
}

.page-article .prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 32px 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.page-article .prose p {
  margin: 0 0 20px;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.page-article .prose p strong {
  font-weight: 600;
  color: var(--ink);
}

.page-article .prose p em,
.page-article .prose em {
  font-style: italic;
}

.page-article .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.18s ease;
}

.page-article .prose a:hover {
  text-decoration-color: var(--ink);
}

.page-article .prose ul,
.page-article .prose ol {
  padding-left: 0;
  margin: 16px 0 24px;
  list-style: none;
}

.page-article .prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 17px;
}

.page-article .prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--ink);
}

.page-article .prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--ink);
}

/* PILLARS inline mini-grid ------------------------------------------ */
.page-article .pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0 8px;
}

.page-article .pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-bright);
}

.page-article .pillar span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
}

.page-article .pillar strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  line-height: 1.1;
  color: var(--ink);
}

/* TIMELINE ----------------------------------------------------------- */
.page-article .timeline {
  display: grid;
  gap: 24px;
  margin: 24px 0 8px;
}

.page-article .timeline-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-article .timeline-step b {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  background: var(--paper-bright);
  color: var(--ink);
}

.page-article .timeline-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 4px 0 6px;
  color: var(--ink);
}

.page-article .timeline-step p {
  margin: 0;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.55;
}

/* META-PANEL sticky sidebar ------------------------------------------ */
.page-article .meta-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.page-article .meta-panel .card {
  padding: 24px 24px;
  border-radius: 20px;
}

.page-article .meta-panel .card .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

.page-journal .section-copy,
.page-article .section-copy {
  margin: 0;
  font-family: var(--sans);
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
}

.page-journal .section-copy a,
.page-article .section-copy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.page-article .mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}

.page-article .mini-link::after {
  content: '→';
}

.page-article .mini-link:hover {
  gap: 10px;
}

/* =========================================================================
   PAGE-LEGAL OVERRIDES — restyle privacy.html / terms.html to match
   the new index.html design system (Instrument Serif + Poppins, --ink/--paper,
   1240 container). All rules scoped under `.page-legal` so articles/journal
   keep their existing look.
   ========================================================================= */

/* Body grain comes from <body>; legal pages opt out of any extra background. */
.page-legal {
  background: transparent;
  color: var(--ink);
}

/* Kill the new full-viewport dark hero treatment for legal pages. */
.page-legal .hero {
  position: relative;
  min-height: 0;
  display: block;
  overflow: visible;
  isolation: auto;
  background: transparent;
  color: var(--ink);
  text-align: center;
  padding: calc(var(--nav-h) + 64px) var(--gutter) 80px;
}

/* Drop the legacy rainbow blur on legal pages — not part of new system. */
.page-legal .hero::after {
  content: none;
  display: none;
  background: none;
  filter: none;
}

/* Legal hero shell — center column, no card chrome. */
.page-legal .hero .shell.hero-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.page-legal .hero-panel .eyebrow {
  margin-bottom: 24px;
  color: var(--ink);
}

.page-legal .hero-panel h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 24px;
  max-width: 22ch;
  margin-inline: auto;
  color: var(--ink);
  text-wrap: balance;
}

.page-legal .hero-panel h1 em {
  font-style: italic;
  font-weight: 400;
}

.page-legal .hero-copy {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--mute);
  max-width: 56ch;
  margin: 0 auto;
}

/* Section padding aligned with new system. */
.page-legal .section {
  padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 128px);
}

/* Two-column article layout — 1240 container, gap ~96px, sticky sidebar. */
.page-legal .shell.article-layout {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

/* Prose column — Poppins body, Instrument Serif headings. */
.page-legal .prose {
  max-width: 62ch;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* iOS Settings — inset-grouped cards. Each <section> reads as its own
 * grouped row in a tableview rather than a wall of prose with hairlines. */
.page-legal .prose section {
  background: var(--paper-bright);
  border: 1px solid rgba(32, 30, 27, 0.08);
  border-radius: 18px;
  padding: 36px clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.035);
}

.page-legal .prose > section + section {
  margin-top: 16px;
  padding-top: 36px;
  border-top: none;
}

.page-legal .prose section h2 {
  margin-top: 0;
}

.page-legal .prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 20px;
  color: var(--ink);
  max-width: none;
  text-wrap: balance;
}

.page-legal .prose h2 em {
  font-style: italic;
  font-weight: 400;
}

.page-legal .prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  margin: 32px 0 12px;
  color: var(--ink);
}

.page-legal .prose p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.page-legal .prose p:last-child {
  margin-bottom: 0;
}

.page-legal .prose strong {
  font-weight: 600;
  color: var(--ink);
}

.page-legal .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}

.page-legal .prose a:hover,
.page-legal .prose a:focus-visible {
  text-decoration-color: var(--ink);
}

.page-legal .prose ul,
.page-legal .prose ol {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.page-legal .prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.page-legal .prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--ink);
}

/* Right-rail sidebar — matte cards, sticky. */
.page-legal .meta-panel {
  display: grid;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.page-legal .meta-panel .card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-bright);
  color: var(--ink);
}

.page-legal .meta-panel .card .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.page-legal .meta-panel .card .section-copy {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
}

.page-legal .meta-panel .card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
}

/* Mini-link — sans, underlined, arrow suffix. */
.page-legal .mini-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  border: 0;
  padding: 0;
}

.page-legal .mini-link::after {
  content: '→';
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
}

/* Mobile — stack columns, tighten spacing. */
@media (max-width: 820px) {
  .page-legal .hero {
    padding: calc(var(--nav-h) + 32px) var(--gutter) 56px;
  }

  .page-legal .hero-panel h1 {
    font-size: clamp(40px, 9vw, 56px);
  }

  .page-legal .shell.article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-legal .meta-panel {
    position: static;
    order: 2;
  }

  .page-legal .prose > section + section {
    margin-top: 32px;
    padding-top: 32px;
  }

  .page-legal .prose h2 {
    font-size: clamp(26px, 6vw, 32px);
  }

  .page-legal .meta-panel .card {
    padding: 24px;
  }
}

.site-footer {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid rgba(245, 245, 245, 0.1);
  overflow: hidden;
  isolation: isolate;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 245, 245, 0.1);
  align-items: start;
}

.footer-brand .brand {
  color: var(--on-dark);
}

.footer-brand .brand-mark-shell {
  background: rgba(245, 245, 245, 0.08);
}

.footer-brand .brand-domain {
  color: rgba(245, 245, 245, 0.52);
}

.footer-lede {
  max-width: 26rem;
  margin-top: 1.2rem;
  color: rgba(245, 245, 245, 0.7);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.35;
}

.footer-cta {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(245, 245, 245, 0.24);
  border-radius: var(--r-pill);
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-col h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.92);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.95rem;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  margin-top: 1.8rem;
  color: rgba(245, 245, 245, 0.48);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-bottom__hanja {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 0.5rem;
    padding-inline: 0.75rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid rgba(32, 30, 27, 0.08);
    border-radius: var(--r-xl);
    background: rgba(245, 245, 245, 0.96);
    backdrop-filter: blur(18px);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.9rem;
    font-size: 1.1rem;
  }

  .nav-menu a::after {
    display: none;
  }

  .brand-domain {
    display: none;
  }

  .page-journal .intro-grid,
  .page-article .intro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .page-journal .card,
  .page-article .card {
    padding: 24px 22px;
  }

  .page-journal .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-journal .article-card {
    padding: 24px 24px 28px;
  }

  .page-journal .article-card:hover {
    transform: none;
  }

  .page-journal .article-card .meta {
    display: block;
    width: auto;
    margin-bottom: 4px;
    white-space: normal;
  }

  .page-journal .article-card strong {
    font-size: 26px;
  }

  .page-article .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-article .meta-panel {
    position: static;
    order: 2;
  }

  .page-journal .hero,
  .page-article .hero,
  .page-legal .hero {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 40px;
  }

  .page-journal .hero-panel h1,
  .page-article .hero-panel h1 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .page-article .prose {
    font-size: 16px;
  }

  .page-article .prose > section + section {
    margin-top: 36px;
    padding-top: 36px;
  }

  .page-article .prose h2 {
    font-size: clamp(26px, 6vw, 32px);
    max-width: none;
  }

  .page-article .prose p,
  .page-article .prose li {
    font-size: 16px;
  }

  .page-article .timeline-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .page-article .timeline-step b {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .page-article .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 460px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ── Gift success page ─────────────────────────────────────────────────── */

.page-gift-success {
  background: var(--paper);
}

.gs {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px 96px;
  text-align: center;
}

.gs__eyebrow {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  margin: 0 0 28px;
}

.gs__title {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 16px;
}

.gs__lede {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
  margin: 0 auto 32px;
  max-width: 460px;
}

.gs__shimmer {
  width: 220px;
  height: 4px;
  margin: 32px auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(32, 30, 27, 0.08) 0%,
    rgba(32, 30, 27, 0.18) 50%,
    rgba(32, 30, 27, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: gsShimmer 1.4s ease-in-out infinite;
}
@keyframes gsShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gs__link {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--paper-bright);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  margin: 0 auto 24px;
  max-width: 520px;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.04);
}

.gs__link input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 8px;
  outline: none;
  text-overflow: ellipsis;
  min-width: 0;
}

.gs__link input:focus {
  outline: 2px solid rgba(32, 30, 27, 0.12);
  outline-offset: 2px;
  border-radius: 8px;
}

.gs__copy {
  border: 0;
  background: var(--ink);
  color: var(--paper-bright);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  min-width: 76px;
}

.gs__copy:hover { background: #000; }
.gs__copy:active { transform: scale(0.97); }
.gs__copy.is-done { background: #2c8060; }

.gs__share {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 40px;
}

.gs__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--paper-bright);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(32, 30, 27, 0.03);
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gs__share-btn:hover {
  border-color: rgba(32, 30, 27, 0.18);
  box-shadow: 0 2px 6px rgba(32, 30, 27, 0.06);
  transform: translateY(-1px);
}

.gs__share-btn:active { transform: translateY(0); }

.gs__share-glyph {
  font-size: 14px;
  opacity: 0.7;
}

.gs__timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 460px;
  text-align: left;
  position: relative;
}

.gs__timeline li {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
}

.gs__timeline li + li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: -8px;
  width: 2px;
  height: 22px;
  background: rgba(32, 30, 27, 0.1);
  border-radius: 1px;
}

.gs__timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.gs__timeline-dot[data-step-state='now'] {
  background: var(--ink);
}

.gs__timeline-dot[data-step-state='generating'].is-done {
  background: var(--ink);
}

.gs__timeline-when {
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.gs__timeline-what {
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 2px;
}

.gs__back {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-bright);
  background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.gs__back:hover { background: #000; }

@media (max-width: 520px) {
  .gs { padding: 56px 20px 72px; }
  .gs__title { font-size: 34px; }
  .gs__share { grid-template-columns: 1fr; }
  .gs__link {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
  }
  .gs__link input { padding: 10px 0; text-align: center; }
  .gs__copy { padding: 12px; }
}

