/* ==========================================================================
   Eggyolk Coffee — site styles
   Layout language inspired by lacaph.com (ruled grid, framed cards,
   chapter stepper) dressed in Eggyolk's own identity: Lora only,
   sunrise orange, yolk yellow, and the radiating egg.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #fff8ec;
  --bg-2: #ffefd6;
  --paper: #fffcf6;

  /* Ink */
  --ink: #2a1e17;
  --ink-2: #5b4a3f;
  --ink-3: #8a7465;

  /* Lines */
  --line: #efd6bd;
  --line-strong: #e2bb97;

  /* Brand palette (from the Eggyolk identity) */
  --orange: #f05a30;      /* Sunrise */
  --orange-logo: #e84e24;
  --orange-deep: #d44119; /* AA-safe for small text & buttons */
  --orange-dark: #b5360f;
  --yolk: #f7b21a;
  --sea: #00b7ac;
  --sky: #0096d5;
  --night: #262c65;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --header-h: 72px;
  --max: 1360px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yolk); color: var(--ink); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.tinted { background: var(--bg-2); }
.ruled-top { border-top: 1px solid var(--line); }
.ruled-bottom { border-bottom: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 22px; height: 1px; background: currentColor; }

.title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--orange-logo);
  margin-bottom: 22px;
}
.title.sm { font-size: clamp(32px, 3.8vw, 52px); }
.title em { font-style: italic; font-weight: 500; text-transform: none; color: var(--ink); }
.lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 46ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--orange-deep); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--orange-deep); color: var(--orange-deep); }
.btn-outline:hover { background: var(--orange-deep); color: #fff; }
.btn-light { background: #fff; color: var(--orange-deep); }
.btn-light:hover { background: var(--bg-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange-deep); font-weight: 600; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

.pill {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); background: var(--paper); transition: border-color .2s, color .2s;
}
a.pill:hover { border-color: var(--orange-deep); color: var(--orange-deep); }

/* ==========================================================================
   Header — three ruled cells, sentence navigation (lacaph-style)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -24px rgba(120, 50, 10, .55); }
.header-grid { display: grid; grid-template-columns: 1fr auto 1fr; height: var(--header-h); }
.h-cell { display: flex; align-items: center; min-width: 0; }
.h-left { padding-left: var(--gutter); border-right: 1px solid var(--line); }
.h-center {
  padding: 0 clamp(24px, 3vw, 52px); border-right: 1px solid var(--line);
  gap: .55em; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
}
.h-right { justify-content: flex-end; gap: 10px; padding: 0 var(--gutter) 0 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.h-left { justify-content: space-between; gap: 16px; padding-right: clamp(14px, 2vw, 28px); }

/* Language switch */
.lang { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); }
.lang a { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1; color: var(--ink-2); transition: background-color .2s, color .2s; }
.lang a:hover { color: var(--orange-deep); }
.lang a[aria-current="true"] { background: var(--orange-deep); color: #fff; }

.dd { position: relative; display: inline-flex; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 0;
  color: var(--orange-deep); font-weight: 600; letter-spacing: inherit; text-transform: inherit;
  border-bottom: 1px solid currentColor;
}
.dd-btn svg { width: 9px; height: 9px; transition: transform .25s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 25px); left: 50%;
  width: 340px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -28px rgba(110, 45, 10, .45);
  text-transform: none; letter-spacing: 0; white-space: normal;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .22s, transform .22s var(--ease), visibility .22s;
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-panel a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; transition: background-color .2s; }
.dd-panel a:hover { background: var(--bg-2); }
.dd-panel img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.dd-panel strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dd-panel span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }

.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 0 var(--gutter); border-left: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--orange-deep);
}
.menu-icon { position: relative; width: 22px; height: 12px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 10px; }
.menu-open .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
  background: var(--bg); overflow-y: auto;
  padding: 28px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav .group { border-top: 1px solid var(--line); padding: 20px 0; }
.mobile-nav .group .eyebrow { margin-bottom: 10px; }
.mobile-nav a.m-link { display: block; padding: 6px 0; font-size: 26px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.mobile-nav a.m-link:hover { color: var(--orange-deep); }
.mobile-nav .btn-row { margin-top: 12px; }

@media (max-width: 1280px) { .h-center .lead { display: none; } }
@media (max-width: 1040px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .h-center, .h-right { display: none; }
  .h-left { border-right: 0; }
  .menu-btn { display: inline-flex; }
}

/* ==========================================================================
   Home — hero + chapters with sticky stepper
   ========================================================================== */
/* Default (no JS / small screens): chapters simply stack. */
.chapters { position: relative; --n: 5; --seg: 90svh; }
.stepper { display: none; align-items: center; width: max-content; --c: var(--ink-2); --c-line: var(--line-strong); }
.chapters.on-hero .stepper { --c: rgba(255, 255, 255, .9); --c-line: rgba(255, 255, 255, .55); }
.step-link {
  position: relative; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--c-line); color: var(--c);
  font-size: 12px; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s;
}
.step-link:not(:last-child) { margin-right: 64px; }
.step-link:not(:last-child)::after {
  content: ""; position: absolute; left: calc(100% + 1px); top: 50%; width: 64px; height: 1px;
  background: var(--c-line); transform-origin: left;
}
.step-link::before {
  content: ""; position: absolute; left: calc(100% + 1px); top: 50%; width: 64px; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 1;
}
.step-link:last-child::before { display: none; }
.step-link.is-done::before { transform: scaleX(1); }
.step-link.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.step-link.is-done { border-color: var(--orange); color: var(--c); }
.step-label {
  margin-left: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--c);
  transition: color .3s;
}

.hero { padding: 18px var(--gutter) 22px; }
.hero-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: calc(100svh - var(--header-h) - 40px); min-height: 520px; max-height: 980px;
  background: #3a2216;
}
/* Hero slideshow: each slide carries its own photo and message. */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 8s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(30, 12, 4, .4), rgba(30, 12, 4, 0) 70%),
    linear-gradient(180deg, rgba(30, 12, 4, .25) 0%, rgba(30, 12, 4, .05) 40%, rgba(30, 12, 4, .45) 100%);
}
.hero-copy {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center;
  padding: 0 var(--gutter) 40px; color: #fff;
}
.hero-title {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35em .5em; margin: 0;
  font-size: clamp(30px, 5vw, 68px); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-title, .hero-sub { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: .35s; }
.hero-slide.is-active .hero-sub { opacity: .95; transform: none; transition-delay: .55s; }
.egg-glyph { width: .95em; height: .95em; flex: none; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .25)); animation: eggBob 6s ease-in-out infinite; }
@keyframes eggBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.hero-sub { margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 20px); font-style: italic; }

.hero-controls {
  position: absolute; z-index: 3; left: 50%; top: calc(50% + clamp(70px, 8vw, 116px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
}
.hero-dot { width: 34px; height: 22px; display: grid; align-items: center; }
.hero-dot span { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); overflow: hidden; position: relative; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot[aria-current="true"] span::after { animation: dotFill var(--slide-ms, 6500ms) linear forwards; }
.hero-frame.is-paused .hero-dot[aria-current="true"] span::after { animation: none; transform: scaleX(1); }
.hero-dot:hover span { background: rgba(255, 255, 255, .7); }
@keyframes dotFill { to { transform: scaleX(1); } }
.hero-pause { width: 30px; height: 30px; margin-left: 6px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.hero-pause:hover { background: rgba(255, 255, 255, .15); }
.hero-pause svg { width: 12px; height: 12px; }
.hero-pause .i-play, .hero-frame.is-paused .hero-pause .i-pause { display: none; }
.hero-frame.is-paused .hero-pause .i-play { display: block; }

.chapter {
  display: flex; align-items: center;
  padding: clamp(48px, 7vh, 88px) var(--gutter);
}
.chapter-grid {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 120px); align-items: center;
}
.chapter-text .lede { margin-bottom: 0; }
.chapter-no { font-size: 13px; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 14px; display: block; }
.chapter-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--bg-2); }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; }
.chapter-media .tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(255, 252, 246, .92); backdrop-filter: blur(6px);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-style: italic; color: var(--ink);
}

/* Pinned stage (desktop, JS on): one chapter at a time, cross-fading as you scroll — lacaph-style. */
@media (min-width: 901px) {
  .js .chapters { height: calc(100svh - var(--header-h) + (var(--n) - 1) * var(--seg)); }
  .js .stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 560px; overflow: hidden; }
  .js .chapter-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
  .js .chapter-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
  .js .hero.chapter-slide { padding: 18px var(--gutter) 22px; }
  .js .hero-frame { height: 100%; min-height: 0; max-height: none; }
  .js .chapter { min-height: 0; height: 100%; padding: 32px var(--gutter) 112px; }
  .js .chapter-media { max-height: calc(100svh - var(--header-h) - 170px); justify-self: end; width: 100%; }

  .js .chapter .chapter-text > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .chapter.is-active .chapter-text > * { opacity: 1; transform: none; }
  .js .chapter.is-active .chapter-text > :nth-child(2) { transition-delay: .08s; }
  .js .chapter.is-active .chapter-text > :nth-child(3) { transition-delay: .16s; }
  .js .chapter.is-active .chapter-text > :nth-child(4) { transition-delay: .24s; }
  .js .chapter .chapter-media { clip-path: inset(8% 0 8% 12% round var(--radius)); transition: clip-path 1.1s var(--ease); }
  .js .chapter .chapter-media img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
  .js .chapter.is-active .chapter-media { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .chapter.is-active .chapter-media img { transform: scale(1); }

  .js .stepper { display: flex; position: absolute; z-index: 5; left: calc(var(--gutter) + 28px); bottom: 50px; }
  .js .chapters.on-hero .stepper { bottom: 54px; }
}
@media (max-width: 900px) {
  .chapter { padding: 64px var(--gutter); border-top: 1px solid var(--line); }
  .chapter-grid { grid-template-columns: 1fr; }
  .hero-frame { height: min(78svh, 720px); min-height: 460px; }
  .hero-controls { top: auto; bottom: 16px; }
}

/* ---------- Press marquee ---------- */
.press { border-block: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; align-items: stretch; }
.press-label {
  padding: 22px var(--gutter); border-right: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; white-space: nowrap;
}
.marquee { overflow: hidden; display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; flex: none; gap: 64px; padding-right: 64px; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { font-size: clamp(20px, 2vw, 26px); font-style: italic; color: var(--ink-2); white-space: nowrap; transition: color .2s; padding: 18px 0; }
.marquee-track a:hover { color: var(--orange-deep); }
.marquee-track .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yolk); flex: none; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 640px) { .press { grid-template-columns: 1fr; } .press-label { border-right: 0; border-bottom: 1px solid var(--line); justify-content: center; padding: 14px; } }

/* ---------- Section heads ---------- */
.head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; position: relative; }
.head .title { margin-bottom: 18px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row .title { margin-bottom: 0; }
.head-row .lede { margin: 0; }

/* ---------- Moments (illustrated cards) ---------- */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.moment { display: flex; flex-direction: column; gap: 18px; }
.moment-art { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.moment-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.moment:hover .moment-art img { transform: scale(1.04); }
.moment-meta { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.moment-time { font-size: 13px; letter-spacing: .14em; color: var(--orange-deep); font-weight: 600; flex: none; }
.moment h3 { font-size: 22px; margin-bottom: 6px; }
.moment p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) {
  .moments { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .moments::-webkit-scrollbar { display: none; }
  .moment { scroll-snap-align: start; }
}

/* ---------- Ruled grids ---------- */
.ruled { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ruled > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stat-num { font-size: clamp(48px, 6vw, 84px); font-weight: 500; line-height: 1; color: var(--orange-logo); margin-bottom: 14px; font-style: italic; }
.stat p { color: var(--ink-2); max-width: 24ch; }

.feature h3 { font-size: 22px; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 16px; }
.feature .icon { width: 46px; height: 46px; margin-bottom: 22px; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 22px; background: var(--paper); margin: 0; }
.review .quote-mark { font-size: 64px; line-height: .6; color: var(--yolk); font-style: italic; height: 26px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.6; font-style: italic; color: var(--ink); flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.review footer .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #fff; background: var(--orange); }
.review footer small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 11vw, 150px) var(--gutter) clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}
.page-hero .rings { position: absolute; left: 50%; top: 50%; width: min(1200px, 160vw); transform: translate(-50%, -50%); pointer-events: none; color: var(--orange); opacity: .35; }
.page-hero > *:not(.rings) { position: relative; }
.page-hero .title { font-size: clamp(46px, 7.5vw, 104px); margin-bottom: 20px; }
.page-hero .ph-quote { font-size: clamp(18px, 1.8vw, 23px); font-style: italic; color: var(--ink-2); max-width: 40ch; margin: 0 auto; }
.page-hero .btn-row { justify-content: center; }

/* Framed card (double rule) */
.frame {
  position: relative; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: clamp(28px, 5vw, 72px);
}
.frame::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }
.frame > * { position: relative; }
.frame-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.frame-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 5 / 4; }
.frame-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .frame-grid { grid-template-columns: 1fr; } }

/* Split panel: full-bleed image + tinted text */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(92vh, 900px); border-block: 1px solid var(--line); }
.split-media { position: relative; overflow: hidden; min-height: 420px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-body { position: relative; background: var(--bg-2); padding: clamp(40px, 6vw, 104px); display: flex; flex-direction: column; justify-content: center; }
.split-body::before { content: ""; position: absolute; inset: clamp(12px, 1.6vw, 22px); border: 1px solid var(--line-strong); pointer-events: none; }
.split-body > * { position: relative; max-width: 560px; }
.split-body p { color: var(--ink-2); }
.split.reverse .split-media { order: 2; }
.split.plain .split-body { background: var(--bg); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Step sequences (stepper motif) */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; }
.step { position: relative; }
.step-dot {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  border: 1px solid var(--orange-deep); color: var(--orange-deep); background: var(--bg);
  font-weight: 600; font-size: 16px;
}
.tinted .step-dot { background: var(--bg-2); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 60px; right: -20px; height: 1px; background: var(--line-strong); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step .kicker { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 6px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 72px; }
  .step-dot { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::after { top: 56px; bottom: 8px; left: 24px; right: auto; width: 1px; height: auto; }
}

/* Mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 260px); gap: clamp(10px, 1.4vw, 18px); }
.mosaic figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--bg-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 252, 246, .92);
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-style: italic;
}
.m-2x2 { grid-column: span 2; grid-row: span 2; }
.m-2x1 { grid-column: span 2; }
.m-1x2 { grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .m-2x2 { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Brand symbol & palette (story) ---------- */
.symbol-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.symbol-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.symbol-tile svg { width: 46%; height: auto; }
.symbol-tile .guides { position: absolute; inset: 6%; width: auto; height: auto; }
.symbol-tile figcaption { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font-size: 15px; color: #fff; }
.symbol-tile.o { background: #e6e1da; }
.symbol-tile.o figcaption { color: var(--ink-2); }
.symbol-tile.yolk { background: var(--orange); }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.swatch { border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; flex-direction: column; }
.swatch-art { aspect-ratio: 3 / 4; position: relative; }
.swatch-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.swatch-info { padding: 16px 18px 18px; }
.swatch-info strong { display: block; font-size: 20px; font-weight: 600; }
.swatch-info span { font-size: 13px; letter-spacing: .08em; opacity: .9; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Coffee page ---------- */
.menu-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.menu-col h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-deep); padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); margin-bottom: 8px; }
.menu-item { padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.menu-item:last-child { border-bottom: 0; }
.menu-item strong { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; }
.menu-item .star { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.menu-item span { display: block; font-size: 14.5px; color: var(--ink-2); font-style: italic; }
@media (max-width: 860px) { .menu-board { grid-template-columns: 1fr; } }

.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product.flip .product-media { order: 2; }
.product-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; text-transform: uppercase; color: var(--orange-logo); letter-spacing: .01em; }
.product .lede { margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: 13.5px; color: #fff; }
.avail { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); font-style: italic; }
.avail svg { width: 18px; height: 18px; color: var(--orange-deep); flex: none; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product.flip .product-media { order: 0; } }

.beans { display: grid; gap: 12px; }
.bean { display: grid; grid-template-columns: 10px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bean:last-child { border-bottom: 0; }
.bean i { border-radius: 4px; }
.bean strong { display: block; font-size: 18px; }
.bean small { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 2px 0 6px; }
.bean p { font-size: 15px; color: var(--ink-2); font-style: italic; margin: 0; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.thumbs img { border-radius: var(--radius-sm); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.callout {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--orange-deep); color: #fff; padding: clamp(36px, 5vw, 72px);
  padding-right: max(clamp(36px, 5vw, 72px), 38%);
}
.callout .title { color: #fff; margin-bottom: 10px; font-size: clamp(30px, 3.6vw, 48px); }
.callout p { color: #fff; max-width: 52ch; }
.callout .btn { margin-top: 22px; }
.callout .rays { position: absolute; right: -4%; top: 50%; width: min(40%, 420px); transform: translateY(-50%); pointer-events: none; }
.callout > *:not(.rays) { position: relative; }
@media (max-width: 760px) { .callout { padding-right: clamp(36px, 5vw, 72px); padding-bottom: 200px; } .callout .rays { width: 300px; right: 50%; top: auto; bottom: -150px; transform: translateX(50%); } }

/* ---------- Spaces page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14.5px; color: var(--ink-2); background: var(--paper); transition: all .2s;
}
.filter:hover { border-color: var(--orange-deep); color: var(--orange-deep); }
.filter[aria-pressed="true"] { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.filter .count { opacity: .7; margin-left: 4px; font-size: 12.5px; }
.stores { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.store { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); transition: background-color .25s; }
.store:hover { background: var(--paper); }
.store[hidden] { display: none; }
.store-top { display: flex; justify-content: space-between; align-items: center; }
.store-no { font-size: 13px; color: var(--ink-3); letter-spacing: .1em; }
.store-region { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
.store h3 { font-size: 22px; }
.store address { font-style: normal; color: var(--ink-2); font-size: 15px; flex: 1; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14.5px; }
.store-links a { display: inline-flex; align-items: center; gap: 6px; }
.store-links a.tel:hover { color: var(--orange-deep); }
.store-links svg { width: 15px; height: 15px; }
@media (max-width: 960px) { .stores { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stores { grid-template-columns: 1fr; } }

/* ---------- Business page ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.service { display: flex; flex-direction: column; padding: 12px 12px 28px; }
.service .frame-media { aspect-ratio: 4 / 3; margin-bottom: 26px; }
.service-body { padding: 0 clamp(8px, 1.4vw, 18px); display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 26px; text-transform: uppercase; color: var(--orange-logo); margin-bottom: 12px; letter-spacing: .01em; }
.service p { color: var(--ink-2); font-size: 16px; flex: 1; }
.service .link-arrow { align-self: flex-start; margin-top: 18px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.contact-info li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.contact-info li:first-child { border-top: 1px solid var(--line); }
.contact-info svg { width: 20px; height: 20px; color: var(--orange-deep); flex: none; margin-top: 3px; }
.contact-info strong { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-deep); box-shadow: 0 0 0 3px rgba(240, 90, 48, .18); }
.field .err { font-size: 13px; color: var(--orange-dark); min-height: 0; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot p { font-size: 13.5px; color: var(--ink-3); margin: 0; max-width: 40ch; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success svg { width: 84px; height: 84px; margin: 0 auto 18px; }
.form-success h3 { font-size: 28px; color: var(--orange-logo); margin-bottom: 8px; }
.form.sent { display: none; }
.form.sent + .form-success { display: block; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sunrise band + rotating badge + footer
   ========================================================================== */
.sunrise { position: relative; text-align: center; padding-top: clamp(64px, 9vw, 120px); overflow: hidden; }
.badge { width: clamp(132px, 13vw, 168px); height: auto; margin: 0 auto clamp(28px, 4vw, 48px); display: block; }
.badge .ring { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
.badge text { font-family: "Lora", serif; font-size: 13.2px; font-weight: 600; letter-spacing: .14em; fill: var(--orange-deep); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.sunrise-art { display: block; width: 100%; height: clamp(120px, 17vw, 250px); }
.sunrise-art .sun { transform-origin: 720px 300px; animation: rise 1.6s var(--ease) both; animation-play-state: paused; }
.sunrise.in .sun { animation-play-state: running; }
@keyframes rise { from { transform: translateY(70px); } to { transform: none; } }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; }
.f-col { padding: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 36px); border-right: 1px solid var(--line); }
.f-col:first-child { padding-left: var(--gutter); }
.f-col:last-child { border-right: 0; padding-right: var(--gutter); }
.f-col h4 { font-size: 20px; margin-bottom: 26px; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul a { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.f-col ul a:hover { color: var(--orange-deep); }
.f-col .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.f-brand img { height: 38px; width: auto; margin-bottom: 18px; }
.f-brand .f-tag { font-style: italic; color: var(--ink-2); margin-bottom: 22px; }
.f-contact li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5; }
.f-contact svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--orange-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--gutter); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3);
}
.footer-bottom p { margin: 0; }
.socials { display: flex; gap: 6px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--orange-deep); color: #fff; }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-col:nth-child(2) { border-right: 0; padding-right: var(--gutter); }
  .f-col:nth-child(3) { padding-left: var(--gutter); }
  .f-col:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .f-col { border-right: 0 !important; border-bottom: 1px solid var(--line); padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
  .f-col:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Floating chat buttons (Zalo, WhatsApp)
   ========================================================================== */
.chat-float { position: fixed; right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 24px); z-index: 58; display: flex; flex-direction: column; gap: 12px; }
.chat-btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(40, 20, 5, .55); transition: transform .25s var(--ease), box-shadow .25s;
}
.chat-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 28px -10px rgba(40, 20, 5, .6); }
.chat-btn svg { width: 30px; height: 30px; }
.chat-btn.zalo { background: #0068ff; }
.chat-btn.zalo svg { width: 34px; height: 34px; }
.chat-btn.whatsapp { background: #25d366; }
.chat-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: .45; animation: chatPing 2.6s ease-out infinite; z-index: -1; }
.chat-btn.whatsapp::before { animation-delay: 1.3s; }
@keyframes chatPing { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.chat-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.chat-btn:hover .chat-label, .chat-btn:focus-visible .chat-label { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 600px) { .chat-btn { width: 48px; height: 48px; } .chat-btn svg { width: 26px; height: 26px; } .chat-btn.zalo svg { width: 30px; height: 30px; } }
.footer-bottom { padding-right: calc(var(--gutter) + 72px); }
.contact-info a.chat-row { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.contact-info a.chat-row:hover { color: var(--orange-deep); }

/* ==========================================================================
   Blog — listing, cards, article
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.post-card {
  display: flex; flex-direction: column; gap: 14px; margin: 0;
  padding: 20px 20px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg); transition: background-color .25s;
}
.post-card:hover { background: var(--paper); }
.post-card[hidden] { display: none; }
.post-thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-thumb img, .featured-post:hover .post-thumb img { transform: scale(1.04); }
.post-cat { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
.post-card h3 { font-size: 21px; line-height: 1.28; }
.post-card h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.post-card:hover h3 a { color: var(--orange-deep); background-size: 100% 1px; }
.post-card p { font-size: 15px; color: var(--ink-2); margin: 0; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--ink-3); }
.post-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--yolk); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.featured-post { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.featured-post[hidden] { display: none; }
.featured-post .post-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.featured-post h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 14px 0 16px; text-transform: uppercase; color: var(--orange-logo); }
.featured-post h2 a:hover { color: var(--orange-deep); }
.featured-post p { color: var(--ink-2); font-size: 17px; }
.featured-post .btn-row { margin-top: 24px; }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } }

/* Article */
.read-progress { position: fixed; left: 0; top: 0; z-index: 80; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.article-head { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(36px, 5vw, 60px); }
.article-head .rings { position: absolute; left: 50%; top: 50%; width: min(1200px, 160vw); transform: translate(-50%, -50%); color: var(--orange); opacity: .3; pointer-events: none; }
.article-head > *:not(.rings) { position: relative; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--orange-deep); border-color: currentColor; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; text-transform: uppercase; color: var(--orange-logo); max-width: 22ch; margin: 0 auto 24px; letter-spacing: .005em; }
.article-head .lede { font-size: clamp(17px, 1.5vw, 20px); font-style: italic; color: var(--ink-2); max-width: 62ch; margin: 0 auto 28px; }
.article-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: 14px; color: var(--ink-2); }
.article-meta .by { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.article-meta .by svg { width: 30px; height: 30px; }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--yolk); }
.article-cover { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }

.article-layout { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) var(--gutter); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.toc-side { position: sticky; top: calc(var(--header-h) + 36px); border-top: 1px solid var(--line-strong); padding-top: 18px; }
.toc-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.toc a { display: block; font-size: 14.5px; line-height: 1.38; color: var(--ink-2); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--orange-deep); }
.toc a.is-active { color: var(--orange-deep); border-left-color: var(--orange); font-weight: 600; }
.toc-side .share { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.toc-inline { display: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 32px; background: var(--paper); }
.toc-inline summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.toc-inline .toc { margin-top: 12px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc-side { display: none; }
  .toc-inline { display: block; }
}

.prose { max-width: 720px; font-size: 18.5px; line-height: 1.8; color: #3b2c22; }
.prose > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .82; margin: .06em .1em 0 0; color: var(--orange-logo); font-weight: 600; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(25px, 2.5vw, 33px); line-height: 1.2; color: var(--ink); margin: 2.1em 0 .7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--orange); margin-bottom: 18px; }
.prose h3 { font-size: 21px; color: var(--ink); margin: 1.8em 0 .45em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--orange-deep); border-bottom: 1px solid currentColor; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--yolk); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: .75em; }
.prose ol li::before {
  content: counter(step); position: absolute; left: 0; top: .2em; width: 27px; height: 27px; border-radius: 50%;
  border: 1px solid var(--orange-deep); color: var(--orange-deep); font-size: 13px; font-weight: 600; display: grid; place-items: center; line-height: 1;
}
.prose figure { margin: 2.4em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figcaption { margin-top: 12px; font-size: 14.5px; font-style: italic; color: var(--ink-3); text-align: center; }
.prose .note {
  position: relative; margin: 2.6em 0; padding: clamp(24px, 3vw, 36px); font-size: 17px; line-height: 1.7;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
}
.prose .note::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.prose .note > p:first-child { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.prose .note > p:first-child strong { color: var(--orange-deep); }
.prose .note ul { margin-bottom: 0; }
.prose .note li:last-child { margin-bottom: 0; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-tags .toc-label { margin: 0 8px 0 0; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; margin-top: 36px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); }
.author-box svg { width: 64px; height: 64px; }
.author-box strong { display: block; font-size: 17px; }
.author-box p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a { padding: 28px var(--gutter); display: flex; flex-direction: column; gap: 6px; transition: background-color .25s; }
.post-nav a:hover { background: var(--paper); }
.post-nav a + a { border-left: 1px solid var(--line); text-align: right; }
.post-nav small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.post-nav span { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--ink); }
.post-nav a:hover span { color: var(--orange-deep); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; } }

/* ==========================================================================
   Motion
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="media"] { opacity: 1; transform: none; clip-path: inset(6% 6% 6% 6% round var(--radius)); transition: clip-path 1.3s var(--ease); }
.js [data-reveal="media"] img { transform: scale(1.14); transition: transform 1.8s var(--ease); }
.js [data-reveal="media"].in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="media"].in img { transform: scale(1); }
.js [data-delay="1"] { transition-delay: .12s; }
.js [data-delay="2"] { transition-delay: .24s; }
.js [data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal="media"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="media"] img { transform: none; }
}
