/* Evernest Online — Emblem Nest */

:root {
  --ink: #1a1714;
  --night: #14110f;
  --mist: #ebe4da;
  --fog: #f6f1ea;
  --panel: #fffaf4;
  --apricot: #e07848;
  --apricot-deep: #c45f32;
  --gold: #c9a227;
  --gold-soft: #e8d39a;
  --jade: #3f7d72;
  --sage: #8a7d6e;
  --line: rgba(26, 23, 20, 0.11);
  --shadow: 0 22px 55px rgba(20, 17, 15, 0.14);
  --radius: 16px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(224, 120, 72, 0.12), transparent 55%),
    radial-gradient(900px 480px at 100% 12%, rgba(201, 162, 39, 0.14), transparent 52%),
    radial-gradient(700px 400px at 70% 80%, rgba(63, 125, 114, 0.08), transparent 50%),
    linear-gradient(180deg, #f8f3ec 0%, var(--mist) 42%, #e7dfd3 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--apricot-deep);
}

h1,
h2,
h3,
.brand-hero,
.brand-copy strong,
.result-name,
.menu-price {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--night);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Rail */
.nest-rail {
  background: var(--night);
  color: rgba(228, 237, 231, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.rail-mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  background: var(--apricot);
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0;
}

.rail-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.55);
  animation: filament 2.4s ease-out infinite;
}

.rail-sep {
  width: 1px;
  height: 0.9rem;
  background: rgba(228, 237, 231, 0.25);
}

.nest-rail a {
  color: #fff;
  text-decoration: none;
}

.nest-rail a:hover {
  color: var(--gold);
}

@keyframes filament {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 168, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 75, 0);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 234, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 241, 234, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--night);
}

.brand:hover {
  color: var(--night);
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-copy small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.main-nav a:hover {
  color: var(--apricot-deep);
}

.nav-idx {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 600;
}

.nav-cta {
  background: var(--night);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--apricot) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--panel);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--night);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--apricot);
  color: #fff;
}

.btn-primary:hover {
  background: var(--apricot-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chn-tag {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apricot-deep);
}

.section-lede {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: rgba(26, 23, 20, 0.78);
  font-size: 1.05rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.28) 0%, rgba(20, 17, 15, 0.58) 42%, rgba(20, 17, 15, 0.94) 100%),
    radial-gradient(800px 400px at 70% 20%, rgba(224, 120, 72, 0.28), transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.5rem;
  max-width: 42rem;
}

.brand-hero {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: rgba(228, 237, 231, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Who */
.who {
  padding: 4.5rem 0 2rem;
}

.who-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
}

.who h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  max-width: 18ch;
}

.who-copy p:last-child {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  color: rgba(26, 23, 20, 0.8);
}

.who-panel {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(224, 120, 72, 0.12), transparent 45%),
    linear-gradient(180deg, #fffaf4, #f3ebe1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.who-stat {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.who-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.who-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 650;
}

.who-stat strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Atmosphere */
.atmosphere {
  padding: 2rem 0 1rem;
}

.atmosphere-row {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.1fr;
  gap: 1rem;
}

.atm-shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
}

.atm-shot img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.atm-shot:hover img {
  transform: scale(1.04);
}

.atm-shot:nth-child(2) img {
  height: 320px;
  margin-top: 1.5rem;
}

.atm-shot figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Menu */
.menu {
  padding: 4rem 0;
}

.menu h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
}

.menu-list {
  display: grid;
  gap: 0.75rem;
}

.menu-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.95), rgba(243, 235, 225, 0.9));
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.menu-row:hover {
  border-color: rgba(240, 120, 60, 0.45);
  transform: translateX(4px);
}

.menu-idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--apricot);
}

.menu-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.menu-body p {
  margin: 0;
  color: rgba(26, 23, 20, 0.72);
  font-size: 0.98rem;
}

.menu-price {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.menu-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 650;
}

/* Lathe */
.lathe {
  padding: 2rem 0 4.5rem;
}

.lathe h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
}

.lathe-console {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.lathe-stage {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(420px 260px at 50% 28%, rgba(232, 211, 154, 0.22), transparent 58%),
    radial-gradient(360px 220px at 78% 70%, rgba(224, 120, 72, 0.2), transparent 55%),
    radial-gradient(280px 200px at 18% 75%, rgba(63, 125, 114, 0.18), transparent 50%),
    linear-gradient(165deg, #2a221c 0%, #171310 55%, #100e0c 100%);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-height: 440px;
  overflow: hidden;
}

.lathe-stage::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 90deg,
    transparent 0 48%,
    rgba(232, 211, 154, 0.12),
    rgba(224, 120, 72, 0.1),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.lathe-stage:has([data-life="animated"])::before {
  opacity: 1;
  animation: stage-sweep 10s linear infinite;
}

.lathe-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 1px solid rgba(232, 211, 154, 0.16);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.03), transparent 40%);
}

.lathe-chip {
  justify-self: start;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.78);
  border: 1px solid rgba(232, 211, 154, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.lathe-stage:has([data-life="animated"]) .lathe-chip {
  color: #fffaf4;
  border-color: rgba(224, 120, 72, 0.5);
  background: rgba(224, 120, 72, 0.2);
}

.mark-preview {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
  min-height: 280px;
}

.mark-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 211, 154, 0.35),
    rgba(224, 120, 72, 0.18) 40%,
    transparent 68%
  );
  opacity: 0.4;
  filter: blur(2px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.mark-orbit {
  display: none;
}

.mark-svg-2d {
  position: relative;
  z-index: 1;
  width: min(250px, 72%);
  overflow: visible;
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease);
}

.mark-scene-3d {
  position: absolute;
  inset: 8% 10% 12%;
  display: none;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 900px;
}

.mark-preview[data-form="2d"] .mark-svg-2d {
  display: block;
  opacity: 1;
}

.mark-preview[data-form="2d"] .mark-scene-3d {
  display: none;
}

.mark-preview[data-form="3d"] .mark-svg-2d {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.mark-preview[data-form="3d"] .mark-scene-3d {
  display: grid;
}

.mark-core {
  transform-origin: 60px 62px;
  transform-box: fill-box;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.nest-leaf {
  fill: url(#leafGrad);
  transform-origin: 60px 48px;
}

.nest-egg {
  fill: url(#eggGrad);
  transform-origin: 60px 58px;
}

.nest-shadow {
  fill: rgba(0, 0, 0, 0.28);
  opacity: 0.35;
}

.nest-arc {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nest-arc.a2 {
  stroke: var(--gold);
  stroke-width: 2.6;
}

.nest-arc.a3 {
  stroke: rgba(246, 241, 234, 0.5);
  stroke-width: 2;
}

.spark {
  fill: var(--gold);
  opacity: 0;
}

/* —— Rich 3D scene —— */
.scene-floor {
  position: absolute;
  width: 70%;
  height: 28%;
  bottom: 6%;
  left: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(232, 211, 154, 0.35), rgba(224, 120, 72, 0.12) 42%, transparent 70%);
  filter: blur(1px);
  transform: rotateX(68deg);
}

.scene-beam {
  position: absolute;
  width: 2px;
  height: 55%;
  top: 12%;
  border-radius: 999px;
  opacity: 0.55;
  filter: blur(0.5px);
}

.scene-beam.beam-a {
  left: 28%;
  background: linear-gradient(180deg, transparent, rgba(232, 211, 154, 0.7), transparent);
  transform: rotate(18deg);
}

.scene-beam.beam-b {
  right: 30%;
  background: linear-gradient(180deg, transparent, rgba(224, 120, 72, 0.65), transparent);
  transform: rotate(-14deg);
}

.scene-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  transform: rotateX(64deg);
}

.scene-ring.ring-outer {
  width: 210px;
  height: 210px;
  border-width: 1.5px;
  border-top-color: rgba(232, 211, 154, 0.75);
  border-right-color: rgba(224, 120, 72, 0.45);
}

.scene-ring.ring-mid {
  width: 160px;
  height: 160px;
  border-width: 2px;
  border-bottom-color: rgba(63, 125, 114, 0.7);
  border-left-color: rgba(232, 211, 154, 0.4);
}

.scene-ring.ring-inner {
  width: 110px;
  height: 110px;
  border-width: 2.5px;
  border-top-color: rgba(224, 120, 72, 0.85);
  border-left-color: rgba(232, 211, 154, 0.55);
}

.scene-stack {
  position: relative;
  width: 88px;
  height: 88px;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-24deg);
  z-index: 2;
}

.stack-plate {
  position: absolute;
  inset: 10px;
  border-radius: 28% 72% 40% 60% / 55% 35% 65% 45%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.stack-plate.p1 {
  background: linear-gradient(145deg, #fff8ef, #e8d39a 45%, #c9a227);
  transform: translateZ(28px);
}

.stack-plate.p2 {
  background: linear-gradient(145deg, #ffc49a, #e07848 50%, #b8542a);
  transform: translateZ(18px) scale(1.04);
  opacity: 0.95;
}

.stack-plate.p3 {
  background: linear-gradient(145deg, #7eb5ab, #3f7d72 55%, #2a5a52);
  transform: translateZ(8px) scale(1.08);
  opacity: 0.9;
}

.stack-plate.p4 {
  background: linear-gradient(145deg, #5a5048, #2a221c);
  transform: translateZ(0) scale(1.12);
  opacity: 0.85;
}

.stack-gem {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: radial-gradient(circle at 35% 30%, #fff8ef, #e8d39a 40%, #c9a227 75%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: translateZ(36px);
  box-shadow: 0 0 18px rgba(232, 211, 154, 0.7);
}

.scene-arc {
  position: absolute;
  width: 130px;
  height: 56px;
  border: 3px solid transparent;
  border-bottom-color: currentColor;
  border-radius: 50%;
  bottom: 28%;
  left: calc(50% - 65px);
  transform: rotateX(55deg);
  filter: drop-shadow(0 0 6px currentColor);
}

.scene-arc.a-gold {
  color: #e8d39a;
  width: 150px;
  left: calc(50% - 75px);
  bottom: 30%;
}

.scene-arc.a-copper {
  color: #e07848;
  width: 120px;
  left: calc(50% - 60px);
  bottom: 24%;
  border-width: 2.5px;
}

.scene-arc.a-jade {
  color: #6fb3a7;
  width: 95px;
  left: calc(50% - 47px);
  bottom: 20%;
  border-width: 2px;
}

.scene-orb {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.scene-orb.o1 {
  color: #e8d39a;
  background: radial-gradient(circle at 30% 30%, #fff, #e8d39a);
  top: 22%;
  left: 22%;
}

.scene-orb.o2 {
  color: #e07848;
  background: radial-gradient(circle at 30% 30%, #ffd0b0, #e07848);
  top: 30%;
  right: 20%;
  width: 8px;
  height: 8px;
}

.scene-orb.o3 {
  color: #6fb3a7;
  background: radial-gradient(circle at 30% 30%, #c8ebe4, #3f7d72);
  bottom: 34%;
  left: 18%;
  width: 9px;
  height: 9px;
}

.scene-orb.o4 {
  color: #f0c96a;
  background: radial-gradient(circle at 30% 30%, #fff3c8, #c9a227);
  bottom: 38%;
  right: 24%;
  width: 7px;
  height: 7px;
}

.scene-orb.o5 {
  color: #ff9a6a;
  background: radial-gradient(circle at 30% 30%, #ffe0d0, #e07848);
  top: 46%;
  left: 12%;
  width: 6px;
  height: 6px;
}

/* Form / life states — 2D */
.mark-preview[data-form="3d"] .mark-glow {
  opacity: 0.7;
  transform: scale(1.15);
  background: radial-gradient(
    circle,
    rgba(232, 211, 154, 0.45),
    rgba(224, 120, 72, 0.25) 38%,
    rgba(63, 125, 114, 0.12) 58%,
    transparent 72%
  );
}

.mark-preview[data-life="animated"] .mark-glow {
  opacity: 0.85;
  animation: glow-breathe 2.8s ease-in-out infinite;
}

.mark-preview[data-life="animated"] .spark {
  animation: spark-twinkle 2.4s ease-in-out infinite;
}

.mark-preview[data-life="animated"] .spark.s2 {
  animation-delay: 0.4s;
}

.mark-preview[data-life="animated"] .spark.s3 {
  animation-delay: 0.9s;
}

.mark-preview[data-life="animated"] .spark.s4 {
  animation-delay: 1.3s;
}

.mark-preview[data-life="animated"] .nest-egg {
  animation: egg-pulse 1.8s ease-in-out infinite;
}

.mark-preview[data-life="animated"] .nest-leaf {
  animation: leaf-breathe 3.2s ease-in-out infinite;
}

.mark-preview[data-life="animated"] .nest-arc.a1 {
  stroke-dasharray: 90;
  animation: arc-draw 2.6s ease-in-out infinite;
}

.mark-preview[data-life="animated"] .nest-arc.a2 {
  stroke-dasharray: 70;
  animation: arc-draw 2.6s ease-in-out infinite 0.25s;
}

.mark-preview[data-life="animated"] .nest-arc.a3 {
  stroke-dasharray: 50;
  animation: arc-draw 2.6s ease-in-out infinite 0.5s;
}

.mark-preview[data-form="2d"][data-life="animated"] .mark-core {
  animation: orbit-mark 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* 3D static */
.mark-preview[data-form="3d"] .scene-stack {
  transform: rotateX(18deg) rotateY(-24deg);
}

/* 3D animated — cinematic */
.mark-preview[data-form="3d"][data-life="animated"] .scene-stack {
  animation: stack-orbit 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-ring.ring-outer {
  animation: ring-spin 9s linear infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-ring.ring-mid {
  animation: ring-spin-rev 7s linear infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-ring.ring-inner {
  animation: ring-spin 5s linear infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-arc.a-gold {
  animation: arc-pulse 2.8s ease-in-out infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-arc.a-copper {
  animation: arc-pulse 2.8s ease-in-out infinite 0.2s;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-arc.a-jade {
  animation: arc-pulse 2.8s ease-in-out infinite 0.4s;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-orb.o1 {
  animation: orb-float 3.2s ease-in-out infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-orb.o2 {
  animation: orb-float 3.6s ease-in-out infinite 0.3s;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-orb.o3 {
  animation: orb-float 3s ease-in-out infinite 0.6s;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-orb.o4 {
  animation: orb-float 3.8s ease-in-out infinite 0.15s;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-orb.o5 {
  animation: orb-float 2.7s ease-in-out infinite 0.45s;
}

.mark-preview[data-form="3d"][data-life="animated"] .stack-gem {
  animation: gem-shine 2.2s ease-in-out infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-beam {
  animation: beam-flicker 2.4s ease-in-out infinite;
}

.mark-preview[data-form="3d"][data-life="animated"] .scene-floor {
  animation: floor-breathe 5.5s ease-in-out infinite;
}

.lathe-note {
  margin: 0;
  color: rgba(246, 241, 234, 0.78);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}

@keyframes stage-sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.95;
  }
}

@keyframes orbit-mark {
  0% {
    transform: rotate(-6deg) scale(0.98) translateY(2px);
  }
  25% {
    transform: rotate(4deg) scale(1.04) translateY(-4px);
  }
  50% {
    transform: rotate(10deg) scale(1.06) translateY(-2px);
  }
  75% {
    transform: rotate(2deg) scale(1.02) translateY(-5px);
  }
  100% {
    transform: rotate(-6deg) scale(0.98) translateY(2px);
  }
}

@keyframes stack-orbit {
  0% {
    transform: rotateX(20deg) rotateY(-36deg) rotateZ(-3deg) scale(1);
  }
  25% {
    transform: rotateX(12deg) rotateY(-8deg) rotateZ(2deg) scale(1.06);
  }
  50% {
    transform: rotateX(18deg) rotateY(34deg) rotateZ(4deg) scale(1.04);
  }
  75% {
    transform: rotateX(10deg) rotateY(10deg) rotateZ(-2deg) scale(1.08);
  }
  100% {
    transform: rotateX(20deg) rotateY(-36deg) rotateZ(-3deg) scale(1);
  }
}

@keyframes ring-spin {
  to {
    transform: rotateX(64deg) rotateZ(360deg);
  }
}

@keyframes ring-spin-rev {
  to {
    transform: rotateX(64deg) rotateZ(-360deg);
  }
}

@keyframes arc-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: rotateX(55deg) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: rotateX(55deg) scaleX(1.08);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(6px, -12px) scale(1.25);
    opacity: 1;
  }
}

@keyframes gem-shine {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(232, 211, 154, 0.5);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 28px rgba(232, 211, 154, 0.95), 0 0 40px rgba(224, 120, 72, 0.35);
    filter: brightness(1.25);
  }
}

@keyframes beam-flicker {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes floor-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: rotateX(68deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotateX(68deg) scale(1.08);
  }
}

@keyframes arc-draw {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  45% {
    stroke-dashoffset: 28;
    opacity: 0.7;
  }
  55% {
    stroke-dashoffset: -12;
    opacity: 1;
  }
}

@keyframes egg-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.28);
  }
}

@keyframes leaf-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
}

@keyframes spark-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  35% {
    opacity: 1;
    transform: translate(2px, -4px) scale(1.2);
  }
  70% {
    opacity: 0.35;
    transform: translate(-2px, -8px) scale(0.8);
  }
}

.lathe-controls {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.35rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, #fffaf4, #f3ebe1);
  border: 1px solid var(--line);
}

.lathe-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.lathe-field legend {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.55rem;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.seg-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.seg-btn.is-on {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

.seg-btn:hover:not(.is-on) {
  border-color: var(--apricot);
  color: var(--apricot-deep);
}

.lathe-result {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.result-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}

.result-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.result-price {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--apricot-deep);
}

/* Steps */
.steps {
  padding: 1rem 0 4rem;
}

.steps h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  max-width: 16ch;
}

.step-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: none;
}

.step-track li {
  padding: 1.25rem 1.1rem;
  border-top: 3px solid var(--apricot);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(235, 228, 218, 0.55));
  border-radius: 0 0 var(--radius) var(--radius);
}

.step-idx {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.step-track h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.step-track p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(26, 23, 20, 0.75);
}

/* Notes / FAQ */
.notes {
  padding: 1rem 0 4rem;
}

.notes-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.notes h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  max-width: 12ch;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
  color: rgba(26, 23, 20, 0.78);
}

/* Brief */
.brief {
  padding: 1rem 0 5rem;
}

.brief-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.brief h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
}

.brief-copy > p {
  margin: 0 0 1.5rem;
  color: rgba(26, 23, 20, 0.8);
}

.contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-facts li {
  display: grid;
  gap: 0.2rem;
}

.contact-facts span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}

.contact-facts a,
.contact-facts address {
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

.brief-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, #fffaf4, #f3ebe1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brief-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.opt {
  font-weight: 500;
  color: var(--sage);
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: 2px solid rgba(240, 120, 60, 0.45);
  border-color: var(--apricot);
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.92rem;
}

.form-status.is-ok {
  color: #1f6b45;
}

.form-status.is-err {
  color: #a33a1f;
}

/* Footer */
.site-footer {
  background: var(--night);
  color: rgba(228, 237, 231, 0.8);
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.55rem;
  padding: 0.2rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 550;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
}

/* Policy pages */
.policy-body .site-header {
  position: relative;
}

.policy-hero {
  padding: 3.5rem 0 1.5rem;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(240, 120, 60, 0.12), transparent 60%),
    linear-gradient(180deg, #f8f3ec, var(--mist));
}

.policy-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.policy-nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  position: sticky;
  top: 1rem;
  height: max-content;
}

.policy-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.policy-content h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
}

.policy-content p,
.policy-content li {
  color: rgba(26, 23, 20, 0.82);
}

/* Responsive */
@media (max-width: 920px) {
  .who-grid,
  .lathe-console,
  .notes-wrap,
  .brief-grid,
  .footer-inner,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .atmosphere-row {
    grid-template-columns: 1fr;
  }

  .atm-shot:nth-child(2) img,
  .atm-shot img {
    height: 240px;
    margin-top: 0;
  }

  .step-track {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(246, 241, 234, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .policy-nav {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .menu-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "idx price"
      "body body";
  }

  .menu-idx {
    grid-area: idx;
  }

  .menu-price {
    grid-area: price;
  }

  .menu-body {
    grid-area: body;
  }

  .step-track {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .mark-preview[data-form="3d"] .scene-stack {
    animation: none !important;
    transform: rotateX(18deg) rotateY(-24deg);
  }

  .mark-glow,
  .lathe-stage::before,
  .scene-ring,
  .scene-orb,
  .scene-arc,
  .scene-beam,
  .scene-floor,
  .stack-gem {
    animation: none !important;
  }

  .mark-orbit {
    display: none;
  }
}
