/* ==========================================================================
   Corner Table — $20,000 Awwwards + Pinterest Editorial Culinary Design System
   Strict 60-30-10 Tricolor Palettes, Per-Kitchen Architectural Layouts,
   Scroll-Velocity Kinetic Typography, Sacred Shape Morphing & Sensory Diagrams
   ========================================================================== */

:root {
  --bg: #F3EAD8;
  --ink: #1B1410;
  --muted: #5E5046;
  --accent: #C84324;
  --accent2: #1B1410;
  --glow: #C84324;
  --deep: #1B1410;
  --paper: #FAF4E8;
  --border: color-mix(in srgb, var(--ink) 15%, transparent);
  --border-strong: color-mix(in srgb, var(--ink) 28%, transparent);
  --surface: color-mix(in srgb, var(--paper) 88%, transparent);
  --shadow: 0 22px 50px -18px rgba(14, 9, 5, 0.22), 0 4px 12px -3px rgba(14, 9, 5, 0.08);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: color 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"],
html.has-cursor input {
  cursor: none;
}

/* WebGL shader canvas & tactile paper grain */
#bg-gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 0),
    radial-gradient(color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 0);
  background-size: 20px 20px, 34px 34px;
  background-position: 0 0, 10px 12px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  text-decoration: none;
  font-size: 0.85rem;
}
.skip:focus { top: 1rem; }

/* ==========================================================================
   Header Navigation + Live Tricolor Indicator Pill
   ========================================================================== */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3.25rem);
  pointer-events: none;
}

.hdr > * { pointer-events: auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 1rem 0.48rem 0.68rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.14);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.logo-mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
  transition: transform 0.6s var(--ease-spring);
}

.logo:hover .logo-mark {
  transform: rotate(45deg);
}

.hdr-r {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hdr-tricolor {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hdr-tricolor i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  display: inline-block;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.hbtn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hbtn svg { width: 15px; height: 15px; }

.hbtn kbd {
  font-family: var(--font-body);
  font-size: 0.66rem;
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--muted);
}

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.bars i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transition: height 0.25s ease;
}

.snd[aria-pressed="true"] { border-color: var(--accent); }
.snd[aria-pressed="true"] .bars i { animation: eqBar 0.85s ease-in-out infinite alternate; }
.snd[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: 0.17s; }
.snd[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: 0.35s; }
.snd[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: 0.08s; }
.snd[aria-pressed="true"] .bars i:nth-child(5) { animation-delay: 0.26s; }

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 13px; }
}

/* ==========================================================================
   Main View Container & Scroll-Triggered 3D Reveals
   ========================================================================== */
.view {
  min-height: 100vh;
  outline: none;
}

.rv {
  opacity: 0;
  transform: perspective(900px) translate3d(0, 32px, 0) rotateX(6deg);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: transform, opacity;
}
.rv.in {
  opacity: 1;
  transform: perspective(900px) translate3d(0, 0, 0) rotateX(0deg);
}

/* ==========================================================================
   Scroll-Velocity Kinetic Marquee Ribbon
   ========================================================================== */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--border-strong);
  border-bottom: 1.5px solid var(--border-strong);
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
  padding: 0.85rem 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  will-change: transform;
  animation: marqueeRoll 38s linear infinite;
}

@keyframes marqueeRoll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.m-item {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.m-item em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFDF9;
}

.m-sep {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ==========================================================================
   Tricolor 60-30-10 & Typography Specimen Bar
   ========================================================================== */
.tricolor-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.35rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

.tri-swatches {
  display: grid;
  grid-template-columns: 6fr 3fr 1.8fr;
  gap: 0.45rem;
  align-items: stretch;
}

.tri-chip {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 54px;
  font-size: 0.68rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease-out);
}
.tri-chip:hover {
  transform: translateY(-2px) scale(1.02);
}

.tri-chip small {
  font-size: 0.6rem;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tri-type {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border);
}

.tri-aa {
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  color: var(--accent);
}

.tri-type-meta {
  font-size: 0.75rem;
  line-height: 1.4;
}
.tri-type-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
}
.tri-type-meta span {
  color: var(--muted);
}

.tri-chord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.tri-chord-btn:hover {
  background: var(--accent);
  color: #FFFDF9;
}

/* ==========================================================================
   Kinetic Typography Intros (Per-Kitchen Signatures)
   ========================================================================== */
.ktitle {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.ktitle .w { display: inline-block; white-space: nowrap; }
.ktitle .ch, .ktitle .wi { display: inline-block; will-change: transform, opacity; }

[data-intro="rise"] .ktitle .ch, .ktitle .ch {
  animation: kRise 0.85s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 22ms + 70ms);
}
@keyframes kRise {
  from { opacity: 0; transform: translateY(65%) rotate(5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

[data-intro="brush"] .ktitle .ch {
  animation: kBrush 0.95s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 28ms + 70ms);
}
@keyframes kBrush {
  from { opacity: 0; transform: scaleY(1.65) translateY(-25%); }
  to { opacity: 1; transform: scaleY(1) translateY(0); }
}

[data-intro="weight"] .ktitle .ch {
  animation: kWeight 0.9s var(--ease-out) both;
  animation-delay: calc((var(--n, 16) - var(--i, 0)) * 22ms + 60ms);
}
@keyframes kWeight {
  from { opacity: 0; transform: translateX(22px) skewX(-14deg); }
  to { opacity: 1; transform: translateX(0) skewX(0); }
}

[data-intro="italic"] .ktitle .ch {
  animation: kItalic 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 24ms + 60ms);
}
@keyframes kItalic {
  from { opacity: 0; transform: translateY(45%) skewX(-18deg) scale(0.92); }
  to { opacity: 1; transform: translateY(0) skewX(0) scale(1); }
}

[data-intro="sway"] .ktitle .ch {
  transform-origin: 50% 100%;
  animation: kSway 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 25ms + 60ms);
}
@keyframes kSway {
  0% { opacity: 0; transform: rotate(-14deg) translateY(35%); }
  60% { opacity: 1; transform: rotate(4deg) translateY(0); }
  100% { opacity: 1; transform: rotate(0) translateY(0); }
}

[data-intro="flip"] .ktitle .ch {
  animation: kFlip 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 24ms + 60ms);
}
@keyframes kFlip {
  from { opacity: 0; transform: perspective(500px) rotateX(-80deg) translateY(20%); }
  to { opacity: 1; transform: perspective(500px) rotateX(0) translateY(0); }
}

[data-intro="bounce"] .ktitle .ch {
  animation: kBounce 0.85s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 24ms + 60ms);
}
@keyframes kBounce {
  from { opacity: 0; transform: scale(0.35) translateY(55%) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}

[data-intro="tingle"] .ktitle .ch {
  animation: kTingle 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 20ms + 60ms);
}
@keyframes kTingle {
  0% { opacity: 0; transform: translate(-4px, 18px) scale(1.15); text-shadow: 0 0 24px var(--accent); }
  45% { opacity: 1; transform: translate(2px, -2px); }
  75% { transform: translate(-2px, 1px); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); text-shadow: 0 0 0 transparent; }
}

[data-intro="settle"] .ktitle .ch {
  animation: kSettle 0.95s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 24ms + 60ms);
}
@keyframes kSettle {
  from { opacity: 0; transform: translateY(-48%) scale(1.12); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Plates & Emblems (2.5D / 3D Tactile Vessels)
   ========================================================================== */
.plate {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 4.8%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.52), rgba(0, 0, 0, 0.18));
  box-shadow:
    0 24px 48px -14px rgba(14, 9, 5, 0.38),
    0 6px 14px -4px rgba(14, 9, 5, 0.2),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.6s var(--ease-out);
  user-select: none;
}

.plate-in {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #231b16;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.45);
}

.plate-in img,
.plate-in .plate-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 0.75s var(--ease-out);
}

.emblem {
  display: block;
  width: 100%;
  height: 100%;
  color: currentColor;
}

/* ==========================================================================
   LANDING PAGE — HERO & 2.5D/3D REVOLVING LAZY-SUSAN TABLE
   ========================================================================== */
.home-hero {
  position: relative;
  min-height: 94vh;
  padding: 5.1rem clamp(1.25rem, 4vw, 3.5rem) 1.8rem;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(340px, 1.12fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  max-width: 1460px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.3vw, 5.2rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero-tag em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.58;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

/* Macro-Region Terroir Filter Strip for the 9 Cuisines */
.region-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.rpill {
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out);
}
.rpill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.rpill.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Active Kitchen Live Spotlight Card with Tricolor Swatch Header */
.table-focus {
  position: relative;
  padding: 1.25rem 1.45rem;
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 530px;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.tf-tricolor-strip {
  display: grid;
  grid-template-columns: 6fr 3fr 1fr;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.15rem;
}

.tf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tf-idx {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tf-native {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.tf-name {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.7vw, 2.5rem);
  line-height: 1;
  margin: 0;
}

.tf-line {
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--muted);
  margin: 0;
}

.tf-meta-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.tf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1px solid var(--border);
}

.tf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.15rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.74rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFDF9;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 0.81rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ==========================================================================
   THE 2.5D/3D REVOLVING TABLE WHEEL (Right Column)
   ========================================================================== */
.wheel-stage {
  position: relative;
  width: 100%;
  max-width: 575px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  perspective: 1200px;
  user-select: none;
  touch-action: pan-y;
}

.wheel-tilted {
  position: relative;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-6deg);
  transition: transform 0.6s var(--ease-out);
}

.wheel-platter {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--paper) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 86%, var(--ink) 14%) 72%, color-mix(in srgb, var(--ink) 22%, var(--bg)) 100%);
  border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border-strong));
  box-shadow:
    0 40px 80px -20px rgba(15, 10, 6, 0.38),
    0 12px 26px -8px rgba(15, 10, 6, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -10px 24px rgba(0, 0, 0, 0.16);
}

.wheel-platter::before {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  pointer-events: none;
}

.wheel-platter::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 38%, transparent);
  pointer-events: none;
}

/* Sacred Shape-Morphing Silhouette in Center of Wheel */
.wheel-blob {
  position: absolute;
  inset: 18%;
  width: 64%;
  height: 64%;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.22;
  transition: color 0.5s ease;
}

.wheel-emblem {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  pointer-events: none;
  color: var(--ink);
  opacity: 0.13;
  animation: slowSpin 55s linear infinite;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }

.wheel-center {
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 5;
  text-decoration: none;
  color: var(--ink);
  transform: translateZ(28px);
  transition: transform 0.45s var(--ease-spring);
}
.wheel-center:hover {
  transform: translateZ(42px) scale(1.05);
}
.wheel-center .plate { width: 100%; height: 100%; }

.wheel-center-badge {
  position: absolute;
  bottom: -14px;
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  border: 1.5px solid var(--accent);
}

.wheel-seat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(72px, 12.5%, 86px);
  height: clamp(72px, 12.5%, 86px);
  margin: calc(clamp(72px, 12.5%, 86px) / -2);
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem;
  box-shadow: 0 12px 24px -6px rgba(15, 10, 6, 0.24);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  z-index: 6;
}

.wheel-seat.is-dim {
  opacity: 0.28;
}

.wheel-seat .emblem {
  width: 32px;
  height: 32px;
  opacity: 0.86;
  transition: transform 0.45s var(--ease-spring);
}

.wheel-seat-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

.wheel-seat-dots {
  display: flex;
  gap: 2px;
  margin-top: 1px;
}
.wheel-seat-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}

.wheel-seat:hover .emblem {
  transform: scale(1.15) rotate(12deg);
}

.wheel-seat.is-active {
  background: var(--accent);
  color: #FFFDF9;
  border-color: var(--ink);
  box-shadow:
    0 18px 34px -6px color-mix(in srgb, var(--accent) 68%, transparent),
    0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
  z-index: 8;
  opacity: 1;
}

.wheel-needle {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 22px;
  height: 22px;
  color: var(--accent);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.wheel-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.wbtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.wbtn:hover {
  background: var(--accent);
  color: #FFFDF9;
  transform: scale(1.08);
}

/* ==========================================================================
   MULTI-DIMENSIONAL FILTER DECK & PINTEREST BENTO COMPENDIUM
   ========================================================================== */
.explore-sec {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1.5px solid var(--border-strong);
  padding-bottom: 1.25rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  margin: 0.3rem 0 0;
}

/* Advanced Multi-Row Filter Deck */
.filter-deck {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.f-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.f-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  min-width: 88px;
}

.mtab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.25s var(--ease-out);
}
.mtab:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.mtab.is-on {
  background: var(--accent);
  color: #FFFDF9;
  border-color: var(--accent);
}

.k-dot-pair {
  display: inline-flex;
  gap: 2px;
}
.k-dot-pair i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* Activity Trail Strip */
.activity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border: 1px solid var(--border-strong);
}

.act-lbl {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
}

.act-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.act-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.act-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* Pinterest Editorial Bento / Asymmetric Grid */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  grid-auto-flow: dense;
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
}

@media (min-width: 1020px) {
  .dish-grid.bento-mode .dcard.is-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 1.75rem;
  }
  .dish-grid.bento-mode .dcard.is-featured .dcard-plate {
    width: 86%;
    margin: 0 auto;
  }
}

.dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
  overflow: hidden;
}

/* Compositor-only hover elevation via pseudo-element opacity */
.dcard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 30px 64px -16px rgba(12, 8, 4, 0.34);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.dcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.dcard:hover {
  border-color: var(--accent);
}
.dcard:hover::before,
.dcard:hover::after {
  opacity: 1;
}
.dcard:hover .plate-in img,
.dcard:hover .plate-in .plate-art {
  transform: scale(1.13) rotate(4deg);
}

/* Tricolor Accent Ribbon on Card Top */
.dcard-tricolor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  display: grid;
  grid-template-columns: 6fr 3fr 1fr;
}

.dcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 0.2rem;
}

.dcard-time {
  color: var(--muted);
  font-weight: 700;
}

.dcard-plate {
  width: 68%;
  margin: 1.1rem auto 1.2rem;
  transform: translateZ(26px);
  will-change: transform;
}

.dcard-title {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.04;
  margin: 0 0 0.35rem;
}

.dcard-sub {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.dcard-story {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mini Sensory Bars on Cards */
.dcard-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.95rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
}
.dbar-i span {
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dbar-track {
  height: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  overflow: hidden;
}
.dbar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.dcard-foot {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.dcard-cta {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   CUISINE PAGE — PER-KITCHEN ARCHITECTURAL PERSONALITIES & SENSORY RADAR
   ========================================================================== */
.c-hero {
  position: relative;
  min-height: 72vh;
  padding: 6.8rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 2px solid var(--border-strong);
}

.c-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.c-emblem-bg {
  position: absolute;
  right: -5vw;
  top: 8%;
  width: clamp(280px, 42vw, 560px);
  height: clamp(280px, 42vw, 560px);
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
  animation: slowSpin 75s linear infinite;
}

/* Vertical Native Script Watermark (Especially prominent in Kyoto tategaki & Sichuan daipaidong) */
.c-vert-script {
  position: absolute;
  left: 1.5rem;
  top: 6.5rem;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  color: var(--ink);
  opacity: 0.08;
  letter-spacing: 0.14em;
  pointer-events: none;
  user-select: none;
}

.c-hero-in {
  position: relative;
  z-index: 2;
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  align-items: end;
  gap: 2.5rem;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.25s ease, transform 0.25s ease;
}
.crumb:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.c-native {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.c-title {
  font-size: clamp(3.1rem, 6.6vw, 6.2rem);
  margin: 0 0 0.9rem;
}

.c-tag {
  font-size: clamp(1.04rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 54ch;
  margin: 0;
}

/* Right Column: Philosophy + Live 5-Axis Sensory Radar */
.c-side-deck {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.c-phil-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.c-phil-txt {
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--muted);
  margin: 0;
}

/* 5-Axis Sensory Radar SVG Styling */
.radar-svg {
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
  display: block;
  color: var(--ink);
}

.radar-poly {
  fill: color-mix(in srgb, var(--accent) 28%, transparent);
  stroke: var(--accent);
  stroke-width: 2.2;
  transition: all 0.5s var(--ease-out);
}

.radar-dot {
  fill: var(--accent);
  stroke: var(--paper);
  stroke-width: 1.5;
}

.radar-lbl {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 800;
  fill: var(--ink);
  letter-spacing: 0.08em;
}

.c-body {
  max-width: 1420px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 5rem;
}

/* Per-Kitchen Architectural Layout Overrides */
html[data-layout="woodblock"] .dcard,
html[data-layout="woodblock"] .c-side-deck,
html[data-layout="woodblock"] .tricolor-bar {
  border-width: 2px;
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

html[data-layout="gazette"] .dcard,
html[data-layout="gazette"] .c-side-deck {
  border-radius: 6px;
  border-top: 4px double var(--ink);
}

html[data-layout="atelier"] .dcard {
  border-radius: 140px 140px 26px 26px;
}

html[data-layout="zellige"] .dcard {
  border-radius: 80px 80px 20px 20px;
  border: 2px solid var(--ink);
}

html[data-layout="manuscript"] .dcard,
html[data-layout="manuscript"] .c-side-deck {
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow);
}

html[data-layout="daipaidong"] .dcard {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 20px 50px -15px rgba(236, 59, 34, 0.18);
}

/* Kitchen Ribbon Switcher */
.k-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--border-strong);
}

.k-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.k-pill .emblem { width: 16px; height: 16px; }
.k-pill:hover, .k-pill.is-cur {
  background: var(--accent);
  color: #FFFDF9;
  border-color: var(--accent);
}

/* ==========================================================================
   DISH FOLIO PAGE — THERMAL CURVE, CATEGORY FILTERS & SCROLL SPINE
   ========================================================================== */
.d-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6.4rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
}

.d-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--border-strong);
}

.d-plate-wrap {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  will-change: transform;
}

.d-plate-wrap .c-ambient {
  inset: -12%;
  width: 124%;
  height: 124%;
  z-index: 2;
}

.d-shape-halo {
  position: absolute;
  inset: -9%;
  width: 118%;
  height: 118%;
  color: var(--accent);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.d-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0;
}

.mpill {
  padding: 0.4rem 0.88rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.d-story {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 1.35rem;
}

.d-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.seg-ctrl {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1px solid var(--border-strong);
}

.seg-btn {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.22s ease;
}

.seg-btn.is-on {
  background: var(--accent);
  color: #FFFDF9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* Sensory & Thermal Analytics Strip on Dish Page */
.d-analytics {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  align-items: center;
}

.thermal-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--ink);
}

.thermal-area {
  fill: color-mix(in srgb, var(--accent) 16%, transparent);
}

.thermal-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawThermal 1.6s var(--ease-out) both;
}

@keyframes drawThermal {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.thermal-pulse {
  fill: var(--accent);
  animation: travelPulse 6s ease-in-out infinite;
}

@keyframes travelPulse {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

.thermal-node circle {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 2;
}

.thermal-node text {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  fill: var(--ink);
}

/* Two-Column Recipe Folio Body */
.d-folio {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.28fr);
  gap: clamp(2rem, 4.5vw, 4.2rem);
  margin-top: 2.8rem;
  align-items: start;
}

.f-sec-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.f-sec-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

/* Ingredient Category Filter Pills */
.ing-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.ing-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  text-align: left;
  border: 1px solid var(--border-strong);
  transition: transform 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}
.ing-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}
.ing-item.is-done {
  opacity: 0.45;
  text-decoration: line-through;
}
.ing-item.is-swapped {
  border-color: var(--accent);
  border-width: 1.5px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.ing-name { font-size: 0.9rem; font-weight: 600; }
.ing-qty { font-size: 0.84rem; font-weight: 800; color: var(--accent); white-space: nowrap; }

.swap-box {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.swap-card {
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.swap-card.is-on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
}

.swap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.swap-title { font-size: 0.86rem; font-weight: 800; }

.swap-toggle {
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  transition: all 0.22s ease;
}
.swap-card.is-on .swap-toggle {
  background: var(--accent);
  color: #FFFDF9;
  border-color: var(--accent);
}

.swap-why {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Scroll-Scrubbed Method Progression Spine + Steps */
.step-wrap {
  position: relative;
  padding-left: 1.5rem;
}

.step-spine {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  overflow: hidden;
}

.step-spine-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(0.15);
  will-change: transform;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.step-card {
  padding: 1.35rem 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--accent);
  min-width: 28px;
}

.step-txt {
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0;
}

.ing-tok {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.06rem 0.48rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--accent);
}
.ing-tok small {
  font-size: 0.76em;
  color: var(--accent);
}

.t-chip {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.t-chip:hover {
  background: var(--accent);
  color: #FFFDF9;
}

/* ==========================================================================
   TIMERS, COOK MODE, SEARCH & LIQUID WIPE
   ========================================================================== */
.timers {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.timer-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--accent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
}
.timer-pill strong {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 0.95rem;
}
.timer-pill button {
  border: none;
  background: rgba(128, 128, 128, 0.25);
  color: inherit;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.cook {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #120B08;
  color: #F6EFE4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.cook[hidden] { display: none !important; }

.cook-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cook-step-lbl {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cook-stage {
  max-width: 920px;
  margin: auto;
  text-align: center;
}
.cook-text {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 3.35rem);
  line-height: 1.24;
  margin: 0 0 1.8rem;
}
.cook-text .ing-tok {
  background: rgba(232, 67, 43, 0.22);
  color: #FFFDF9;
  border-bottom-color: var(--accent);
}
.cook-text .ing-tok small { color: #FFD29D; }

.cook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.cook-dots { display: flex; gap: 0.45rem; }
.cook-dot {
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, width 0.3s ease;
}
.cook-dot.is-on {
  background: var(--accent);
  width: 48px;
}

.search {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: start center;
  padding-top: 11vh;
}
.search[hidden] { display: none !important; }
.search-scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 8, 0.58);
  backdrop-filter: blur(8px);
}
.search-in {
  position: relative;
  z-index: 2;
  width: min(650px, 92vw);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-field svg { width: 18px; height: 18px; color: var(--muted); }
.search-field input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
.search-field kbd {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--muted);
}
.search-res { max-height: 58vh; overflow-y: auto; padding: 0.55rem; }
.s-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}
.s-item:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.s-item-title { font-weight: 700; font-size: 0.92rem; }
.s-item-sub { font-size: 0.76rem; color: var(--muted); }

/* Liquid SVG Curtain Wipe with Tricolor Swatch & Emblem */
.wipe {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.wipe.on { opacity: 1; }

.wipe-label {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  color: #FFFDF9;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.wipe-label.on {
  opacity: 1;
  transform: translateY(0);
}
.wipe-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
}
.cursor.is-out { opacity: 0; }
.cursor-dot {
  position: fixed;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cursor-ring {
  position: fixed;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.4px solid color-mix(in srgb, var(--ink) 45%, transparent);
  display: grid;
  place-items: center;
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out), top 0.28s var(--ease-out), left 0.28s var(--ease-out), background 0.28s ease, border-color 0.28s ease;
}
.cursor-ring span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFDF9;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor.is-hover .cursor-ring {
  top: -24px;
  left: -24px;
  width: 48px;
  height: 48px;
  border-color: var(--accent);
}
.cursor.has-label .cursor-ring {
  top: -34px;
  left: -34px;
  width: 68px;
  height: 68px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.has-label .cursor-ring span { opacity: 1; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .home-hero,
  .c-hero-in,
  .c-side-deck,
  .d-hero,
  .d-analytics,
  .d-folio,
  .tricolor-bar {
    grid-template-columns: 1fr;
  }
  .tri-type {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 560px) {
  .hbtn-l,
  .hbtn kbd,
  .hdr-tricolor span {
    display: none;
  }
  .wheel-seat {
    width: 62px;
    height: 62px;
    margin: -31px;
  }
  .wheel-seat .emblem {
    width: 24px;
    height: 24px;
  }
  .wheel-seat-lbl {
    font-size: 0.58rem;
  }
}
