/* ===== Craftwell Ltd - premium 3D fly-through styles ===== */
:root {
  --ink: #0b0b0d;
  --graphite: #141418;
  --gold: #c9a24d;
  --gold2: #e4c57a;
  --copper: #b87333;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--ink); overflow-x: hidden; }
::selection { background: rgba(201,162,77,.35); color: #fff; }

/* 3D camera: main holds the scene, sections are planes flying past it */
#main { position: relative; z-index: 1; transform-style: preserve-3d; }

/* ---------- Deep space backdrop (fixed, 3 parallax dot layers) ---------- */
.space { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.space-layer {
  position: absolute; left: 0; right: 0; top: -240px; height: calc(100% + 480px);
  will-change: transform; background-repeat: repeat;
}
.space-l1 {
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 100%),
                    radial-gradient(1px 1px at 140px 110px, rgba(228,197,122,.45), transparent 100%),
                    radial-gradient(1px 1px at 90px 200px, rgba(255,255,255,.35), transparent 100%);
  background-size: 240px 240px; opacity: .5;
}
.space-l2 {
  background-image: radial-gradient(1.5px 1.5px at 60px 80px, rgba(255,255,255,.7), transparent 100%),
                    radial-gradient(1.5px 1.5px at 200px 160px, rgba(228,197,122,.6), transparent 100%),
                    radial-gradient(1px 1px at 300px 40px, rgba(255,255,255,.5), transparent 100%);
  background-size: 360px 360px; opacity: .55;
}
.space-l3 {
  background-image: radial-gradient(2px 2px at 100px 140px, rgba(228,197,122,.9), transparent 100%),
                    radial-gradient(2px 2px at 420px 300px, rgba(255,255,255,.75), transparent 100%);
  background-size: 480px 480px; opacity: .6;
}
.space-aurora {
  position: absolute; inset: -30%;
  background:
    radial-gradient(45% 35% at 25% 25%, rgba(201,162,77,.16), transparent 70%),
    radial-gradient(40% 35% at 78% 70%, rgba(184,115,51,.14), transparent 70%),
    radial-gradient(35% 30% at 65% 15%, rgba(228,197,122,.07), transparent 70%);
  filter: blur(50px);
  animation: aurora 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  100% { transform: translate3d(-5%, 4%, 0) rotate(5deg) scale(1.08); }
}
.space-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(5,5,7,.85) 100%);
}
.space-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .05; mix-blend-mode: overlay; }

/* ---------- Cursor glow (desktop only) ---------- */
#cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,197,122,.14) 0%, rgba(201,162,77,.06) 35%, transparent 65%);
  opacity: 0; transition: opacity .6s; will-change: transform;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) { #cursor-glow.on { opacity: 1; } }

/* ---------- Scroll progress rail ---------- */
.progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
#progress-bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #e4c57a, #c9a24d, #b87333); box-shadow: 0 0 12px rgba(228,197,122,.6); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.text-gold-grad {
  background: linear-gradient(100deg, #fff1c6 0%, #e4c57a 25%, #c9a24d 55%, #b87333 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Clip-path heading reveal */
.clip-reveal {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 24px, 0);
  transition: clip-path 1.3s var(--ease-out), transform 1.3s var(--ease-out);
}
.clip-reveal.in { clip-path: inset(-10% 0 -20% 0); transform: none; }

/* ---------- Buttons ---------- */
.btn-gold {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; overflow: hidden;
  background: linear-gradient(135deg, #f1dca0, #c9a24d 50%, #b87333);
  color: var(--ink); font-weight: 600; padding: .65rem 1.25rem; border-radius: 9999px;
  box-shadow: 0 10px 30px -8px rgba(201,162,77,.6), inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px rgba(228,197,122,.3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform: translateZ(0);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -10px rgba(201,162,77,.8), inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px rgba(228,197,122,.5); }
.btn-gold:hover::after { left: 120%; }
.btn-gold:active { transform: translateY(0) scale(.99); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85);
  padding: 1rem 1.9rem; border-radius: 9999px; font-weight: 500;
  background: rgba(255,255,255,.03);
  transition: border-color .3s, background .3s, transform .35s var(--ease), box-shadow .35s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,162,77,.08); transform: translateY(-2px); box-shadow: 0 0 30px -8px rgba(201,162,77,.5); }

/* ---------- Header ---------- */
#header { background: transparent; }
#header.scrolled {
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
#header.scrolled .header-inner { height: 4rem; }
.logo { text-shadow: 0 0 24px rgba(228,197,122,.25); }
.nav-link { position: relative; transition: color .3s; padding: .25rem 0; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { color: #fff; }

.burger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  background: rgba(11,11,13,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transform-origin: top; animation: menuIn .4s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: perspective(600px) rotateX(-12deg) translateY(-8px); } to { opacity: 1; transform: none; } }
.mob-link { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.85); }

/* ---------- HERO ---------- */
.hero { transform-origin: 50% 20%; will-change: transform, opacity; backface-visibility: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; perspective: 1000px; perspective-origin: 60% 45%; }

.mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(55% 45% at 22% 32%, rgba(201,162,77,.26), transparent 62%),
    radial-gradient(45% 40% at 80% 22%, rgba(184,115,51,.2), transparent 62%),
    radial-gradient(40% 35% at 60% 88%, rgba(228,197,122,.12), transparent 62%),
    radial-gradient(70% 60% at 50% 50%, #15151a, var(--ink) 80%);
  filter: blur(40px);
  animation: meshMove 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes meshMove {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) rotate(3deg) scale(1.06); }
  100% { transform: translate3d(3%, -4%, 0) rotate(-2deg) scale(1.03); }
}

/* sun: gold horizon glow */
.sun {
  position: absolute; left: 50%; bottom: -22%; width: 120vw; max-width: 1400px; aspect-ratio: 2/1;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 100%, rgba(228,197,122,.32), rgba(201,162,77,.1) 45%, transparent 70%);
  filter: blur(18px); pointer-events: none;
}

.grid3d {
  position: absolute; left: -60%; right: -60%; bottom: -12%; height: 95%;
  background-image:
    linear-gradient(rgba(201,162,77,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,77,.2) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(70deg) translateZ(-100px);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.6) 40%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.6) 40%, transparent 85%);
  animation: gridScroll 10s linear infinite;
}
@keyframes gridScroll { from { background-position: 0 0; } to { background-position: 0 64px; } }

/* 3D objects: outer .obj is scroll-driven, inner .spin runs keyframes */
.obj { position: absolute; transform-style: preserve-3d; will-change: transform; }
.spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

/* wireframe cube */
.obj-cube { width: 200px; height: 200px; right: 9%; top: 16%; }
.spin-cube { animation: cubeSpin 26s linear infinite; }
.face {
  position: absolute; inset: 0; display: block;
  border: 1px solid rgba(228,197,122,.55);
  background: linear-gradient(135deg, rgba(201,162,77,.12), rgba(184,115,51,.02) 60%, rgba(228,197,122,.08));
  box-shadow: inset 0 0 40px rgba(201,162,77,.08);
  backface-visibility: visible;
}
.face::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(228,197,122,.18); }
.f1 { transform: translateZ(100px); }
.f2 { transform: rotateY(180deg) translateZ(100px); }
.f3 { transform: rotateY(90deg) translateZ(100px); }
.f4 { transform: rotateY(-90deg) translateZ(100px); }
.f5 { transform: rotateX(90deg) translateZ(100px); }
.f6 { transform: rotateX(-90deg) translateZ(100px); }
@keyframes cubeSpin {
  from { transform: rotateX(-20deg) rotateY(0deg) rotateZ(8deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg) rotateZ(8deg); }
}

/* gyroscope rings */
.obj-rings { width: 300px; height: 300px; left: -4%; bottom: 6%; }
.spin-rings { animation: ringsSpin 20s linear infinite; }
.gring {
  position: absolute; inset: 0; border-radius: 50%; display: block;
  border: 1px solid rgba(228,197,122,.5);
  box-shadow: 0 0 30px -8px rgba(228,197,122,.35), inset 0 0 30px -10px rgba(228,197,122,.25);
}
.r1 { transform: rotateY(0deg); }
.r2 { transform: rotateY(60deg); inset: 8%; border-color: rgba(228,197,122,.38); }
.r3 { transform: rotateY(120deg); inset: 16%; border-color: rgba(184,115,51,.5); }
.core {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: block;
  background: radial-gradient(circle, #fff1c6, #e4c57a 40%, rgba(201,162,77,0) 72%);
  box-shadow: 0 0 40px 8px rgba(228,197,122,.45);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes ringsSpin {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to   { transform: rotateX(68deg) rotateZ(360deg); }
}
@keyframes corePulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.4); opacity: 1; } }

/* glass plates */
.obj-plate i {
  display: block; width: 100%; height: 100%; border-radius: 18px;
  border: 1px solid rgba(228,197,122,.3);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(201,162,77,.04) 50%, rgba(255,255,255,.02));
  box-shadow: 0 40px 80px -30px rgba(201,162,77,.35), inset 0 1px 0 rgba(255,255,255,.15);
  animation: plateFloat 14s ease-in-out infinite;
}
.plate-a { width: 220px; height: 140px; right: 30%; bottom: 12%; }
.plate-b { width: 120px; height: 180px; left: 42%; top: 10%; }
.plate-b i { animation-duration: 11s; animation-delay: -4s; }
@keyframes plateFloat {
  0%,100% { transform: rotateX(55deg) rotateZ(-25deg) translateZ(0); }
  50%     { transform: rotateX(62deg) rotateZ(-10deg) translate3d(-20px, -30px, 60px); }
}

.orbit { position: absolute; overflow: visible; width: 640px; height: 230px; right: -8%; top: 20%; transform-origin: center; }

@media (max-width: 640px) {
  .obj-cube { width: 130px; height: 130px; right: 4%; top: 11%; }
  .f1 { transform: translateZ(65px); } .f2 { transform: rotateY(180deg) translateZ(65px); }
  .f3 { transform: rotateY(90deg) translateZ(65px); } .f4 { transform: rotateY(-90deg) translateZ(65px); }
  .f5 { transform: rotateX(90deg) translateZ(65px); } .f6 { transform: rotateX(-90deg) translateZ(65px); }
  .obj-rings { width: 220px; height: 220px; left: -22%; bottom: 2%; }
  .plate-a { width: 150px; height: 95px; right: -6%; bottom: 20%; }
  .plate-b { width: 80px; height: 120px; left: 8%; top: 12%; opacity: .7; }
  .orbit { width: 420px; height: 150px; right: -40%; top: 14%; }
}

/* Hero text: per-letter 3D entrance (spans injected by JS) */
.hero-content { transform-style: preserve-3d; }
.hero-content .line { display: block; }
.hero-content .w { display: inline-block; white-space: nowrap; }
.hero-content .ch {
  display: inline-block; opacity: 0;
  transform: perspective(600px) rotateY(70deg) translate3d(0, 26px, -60px);
  animation: chIn 1.1s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--c) * 28ms);
  transform-origin: left bottom;
}
@keyframes chIn { to { opacity: 1; transform: none; } }
.hero-content .line:not(.split) { opacity: 0; transform: translate3d(0,40px,0) rotateX(-30deg); transform-origin: bottom; animation: lineIn 1s var(--ease) forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.hero-content > .eyebrow, .hero-sub, .hero-cta { opacity: 0; animation: fadeUp 1.1s var(--ease-out) forwards; }
.hero-content > .eyebrow { animation-delay: 0s; }
.hero-sub { animation-delay: .9s; }
.hero-cta { animation-delay: 1.1s; }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0,28px,0); } to { opacity: 1; transform: none; } }

.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: .6rem; opacity: 0; animation: fadeUp 1s 1.6s var(--ease) forwards; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 3D FLY-THROUGH SECTIONS ---------- */
.fly-section {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
  border-radius: 28px;
  margin: 0 auto;
  isolation: isolate;
}
.fly-section::before {
  /* panel edge light: gold hairline top + faint border, reads as a plate in space */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  border: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(228,197,122,.07), transparent 18%);
}
.fly-section::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(228,197,122,.7), transparent);
  transform: scaleX(var(--sp, 0)); transform-origin: center; transition: none;
}
.section.bg-graphite { background: linear-gradient(180deg, #16161b, #121216 60%, #0f0f12); }
.section:not(.bg-graphite) { background: linear-gradient(180deg, rgba(20,20,24,.6), rgba(11,11,13,.2)); }

/* growing spine line */
.spine {
  position: absolute; left: 1.1rem; top: 10%; bottom: 10%; width: 1px; z-index: 0;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  transform: scaleY(var(--sp, 0)); transform-origin: top; opacity: .55;
}
.spine::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 14px 2px rgba(228,197,122,.7); }
.spine-right { left: auto; right: 1.1rem; }
@media (min-width: 1280px) { .spine { left: 2rem; } .spine-right { left: auto; right: 2rem; } }

/* drawn SVG paths */
.deco-path { position: absolute; z-index: 0; pointer-events: none; width: 60%; height: 100%; top: 0; opacity: .8; }
.deco-about { right: 0; }
.deco-portfolio { left: 0; }
.deco-path path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sp, 0)); }

/* Section glows */
.section-glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  left: -25vw; top: -15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,77,.18), transparent 62%);
  filter: blur(60px); pointer-events: none;
}
.section-glow.glow-right { left: auto; right: -25vw; top: auto; bottom: -25%; }
.contact-halo {
  position: absolute; left: 50%; top: 50%; width: 80vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(228,197,122,.1);
  box-shadow: 0 0 0 60px rgba(228,197,122,.03), 0 0 0 140px rgba(228,197,122,.02), 0 0 120px -20px rgba(228,197,122,.18);
  animation: haloBreath 8s ease-in-out infinite;
}
@keyframes haloBreath { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .8; } 50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; } }

/* ---------- Reveal (IO, one-shot) ---------- */
.reveal {
  opacity: 0; transform: translate3d(0, 40px, 0);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Scrubbed items: --p goes 0 (far, below) -> 1 (arrived) ---------- */
.perspective { perspective: 1400px; transform-style: preserve-3d; }
.scrub {
  --p: 0;
  opacity: calc(var(--p) * 1.15);
  transform: perspective(1100px)
             translate3d(0, calc((1 - var(--p)) * 90px), calc((1 - var(--p)) * -260px))
             rotateX(calc((1 - var(--p)) * 32deg))
             scale(calc(.92 + var(--p) * .08));
  transform-origin: center top;
  will-change: transform, opacity;
}

/* ---------- Stats ---------- */
.stats { background: transparent; }
.stat {
  position: relative; background: rgba(20,20,24,.85); padding: 2rem 1.5rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold2), transparent); opacity: .7; }
.stats .stat:first-child { border-radius: 1.25rem 0 0 0; }
.stats .stat:nth-child(2) { border-radius: 0 1.25rem 0 0; }
.stats .stat:nth-child(3) { border-radius: 0 0 0 1.25rem; }
.stats .stat:nth-child(4) { border-radius: 0 0 1.25rem 0; }
@media (min-width: 1024px) {
  .stats .stat:first-child { border-radius: 1.25rem 0 0 1.25rem; }
  .stats .stat:nth-child(2), .stats .stat:nth-child(3) { border-radius: 0; }
  .stats .stat:nth-child(4) { border-radius: 0 1.25rem 1.25rem 0; }
  .stat { padding: 2.75rem 2.25rem; }
}
.stat-num { font-family: "Playfair Display", serif; font-size: 3rem; line-height: 1; font-weight: 600; text-shadow: 0 0 30px rgba(228,197,122,.2); }
@media (min-width: 768px) { .stat-num { font-size: 3.75rem; } }
.stat-label { margin-top: .75rem; font-size: .85rem; color: rgba(255,255,255,.5); letter-spacing: .02em; }

/* ---------- Service cards ---------- */
.card { position: relative; border-radius: 1.25rem; transform-style: preserve-3d; }
.card-inner {
  position: relative; height: 100%; padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%, rgba(201,162,77,.04));
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d; overflow: hidden;
  transition: box-shadow .5s var(--ease);
}
/* gradient border ring */
.card-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(228,197,122,.45), rgba(255,255,255,.08) 40%, rgba(184,115,51,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6; transition: opacity .4s;
}
.card-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,77,.2), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tilt:hover .card-inner, .tilt:hover .rcard-inner { box-shadow: 0 50px 90px -30px rgba(201,162,77,.35), 0 30px 60px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1); }
.tilt:hover .card-inner::before, .tilt:hover .rcard-inner::before { opacity: 1; }
.tilt:hover .card-inner::after, .tilt:hover .rcard-inner::after { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: var(--gold2); border: 1px solid rgba(228,197,122,.35);
  background: linear-gradient(135deg, rgba(201,162,77,.2), rgba(184,115,51,.04));
  box-shadow: 0 10px 30px -10px rgba(201,162,77,.5), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateZ(50px);
}
.card-icon svg { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(228,197,122,.5)); }
.card-num { position: absolute; top: 1.6rem; right: 1.9rem; font-family: "Playfair Display", serif; font-size: 2.6rem; line-height: 1; font-style: italic; color: rgba(228,197,122,.12); transform: translateZ(10px); }
.card h3 { transform: translateZ(36px); }
.card p { transform: translateZ(24px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding: 2.25rem; overflow: hidden;
  border-radius: 1.5rem; border: 1px solid rgba(201,162,77,.35);
  background: linear-gradient(135deg, rgba(201,162,77,.16), rgba(184,115,51,.05) 60%, rgba(255,255,255,.02));
  box-shadow: 0 40px 80px -40px rgba(201,162,77,.3);
}
.cta-band::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; left: -20%; top: -80%; background: radial-gradient(circle, rgba(228,197,122,.25), transparent 65%); filter: blur(30px); pointer-events: none; }
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.75rem 3rem; } }

/* ---------- Restaurant cards ---------- */
.rcard { position: relative; border-radius: 1.25rem; transform-style: preserve-3d; }
.rcard-inner {
  position: relative; height: 100%; border-radius: 1.25rem; overflow: hidden;
  background: var(--graphite);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.9);
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease);
}
.rcard-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(160deg, rgba(228,197,122,.5), rgba(255,255,255,.08) 40%, rgba(184,115,51,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .4s;
}
.rcard-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.09), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.rcard-art { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; transform: translateZ(10px); }
.rcard-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.rcard-art::before { content: ""; position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(228,197,122,.12) 60deg, transparent 120deg, rgba(228,197,122,.08) 240deg, transparent 300deg); animation: artSpin 18s linear infinite; }
@keyframes artSpin { to { transform: rotate(360deg); } }
.art-merul { background: linear-gradient(135deg, #2e2210, #42301a 40%, #1a1510); }
.art-soon  { background: linear-gradient(135deg, #1b1b22, #24242e 50%, #121216); }
.art-soon2 { background: linear-gradient(135deg, #1a1d22, #202830 50%, #111316); }
.art-mono {
  font-family: "Playfair Display", serif; font-size: 5.5rem; line-height: 1; font-weight: 600;
  background: linear-gradient(135deg, #fff1c6, #e4c57a 30%, #c9a24d 60%, #b87333); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateZ(50px); position: relative; z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(201,162,77,.35));
}
.art-soon .art-mono, .art-soon2 .art-mono { opacity: .4; }
.rcard-body { padding: 1.75rem; transform: translateZ(25px); }
.badge { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 9999px; }
.badge-live { color: var(--ink); background: linear-gradient(135deg, #f1dca0, #c9a24d); font-weight: 600; box-shadow: 0 0 20px -4px rgba(228,197,122,.6); }
.badge-soon { color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.18); }

/* ---------- Contact ---------- */
.big-phone { font-size: clamp(2rem, 7.6vw, 5.5rem); line-height: 1.05; letter-spacing: -.01em; transition: transform .4s var(--ease); display: inline-block; word-break: break-all; filter: drop-shadow(0 0 30px rgba(228,197,122,.25)); }
.big-phone:hover { transform: translateX(6px); }
.contact-card {
  position: relative; padding: 2rem; border-radius: 1.5rem; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%, rgba(201,162,77,.05));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
}
.contact-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(228,197,122,.5), rgba(255,255,255,.08) 40%, rgba(184,115,51,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact-row { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-row:first-child { padding-top: 0; }
.contact-k { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.contact-v { font-size: 1.15rem; color: #fff; align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .clip-reveal { opacity: 1; transform: none; clip-path: none; }
  .scrub { --p: 1; transform: none; opacity: 1; }
  .fly-section, .hero { transform: none !important; opacity: 1 !important; }
  .fly-section::after, .spine { transform: scaleY(1) scaleX(1); }
  .deco-path path { stroke-dashoffset: 0; }
  .hero-content .ch, .hero-content .line, .hero-content > .eyebrow, .hero-sub, .hero-cta, .scroll-hint { opacity: 1; transform: none; animation: none; }
  .space-layer, .obj { transform: none !important; }
  #cursor-glow { display: none; }
  html { scroll-behavior: auto; }
}
