/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #120e0b;
  --bg-2:      #1b140f;
  --bg-3:      #241b14;
  --cream:     #f3ead9;
  --cream-2:   #dfd0b8;
  --cream-3:   #8c7a63;
  --accent:    #c97a3d;
  --accent-2:  #a85f2b;
  --gold:      #d8b26a;
  --line:      rgba(243,234,217,0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600;
  text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em;
}
em { font-style: italic; font-weight: 500; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--bg);
  z-index: 9999; border-radius: 6px; font-weight: 500; font-size: .85rem;
}
.skip-link:focus { top: 1rem; }

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   3. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-mark {
  font-family: var(--font-display); font-style: italic; color: var(--accent);
  font-size: 1.6rem; letter-spacing: 0.04em;
  opacity: 0; animation: splashPulse 1.4s var(--ease-soft) infinite;
}
@keyframes splashPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: transparent;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18,14,11,0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-brand { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.25rem; color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .88rem; }
.nav-links a:not(.nav-cta) { color: var(--cream-2); position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--cream); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 100px; color: var(--cream);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out);
}
.nav-cta:hover { border-color: var(--accent); color: var(--bg); background: var(--accent); }

@media (max-width: 719px) { .nav-links a:not(.nav-cta) { display: none; } }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.25rem 4rem; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.05) contrast(1.05) brightness(0.85);
}
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,14,11,0.55) 0%, rgba(18,14,11,0.72) 55%, rgba(18,14,11,0.92) 100%);
}
.hero-mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 50% at var(--mesh-x) var(--mesh-y), rgba(201,122,61,.4), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(216,178,106,.18), rgba(168,95,43,.1), rgba(201,122,61,.22), rgba(216,178,106,.18));
  filter: blur(80px) saturate(120%);
  opacity: .8; mix-blend-mode: screen;
  animation: meshShift 24s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 60%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 35%; }
}
.hero-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}
.hero-inner { position: relative; z-index: 1; max-width: 46rem; }
.hero-kicker {
  font-size: .8rem; color: var(--cream-2); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 500; margin-bottom: 1.6rem;
}
.hero-title { font-size: clamp(2.6rem, 8vw, 5.2rem); color: var(--cream); max-width: 18ch; margin-inline: auto; }
.hero-sub { margin-top: 1.6rem; max-width: 42ch; margin-inline: auto; color: var(--cream-2); font-size: 1.02rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line); overflow: hidden; z-index: 1;
}
.hero-scroll span { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent); animation: scrollLine 2.2s var(--ease-soft) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.7rem; border-radius: 100px; font-size: .92rem; font-weight: 500;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(201,122,61,0.5); }
.btn-ghost { border: 1px solid rgba(243,234,217,0.3); color: var(--cream); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

/* =============================================================
   6. Manifesto
   ============================================================= */
.manifesto { max-width: 60ch; margin-inline: auto; padding: 6rem 1.25rem; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.55; text-align: center; color: var(--cream-2); }
.manifesto em { color: var(--accent); font-style: italic; }

/* =============================================================
   7. Section titles
   ============================================================= */
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); padding: 0 1.25rem; max-width: 1100px; margin-inline: auto; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.section-title-mute { font-family: var(--font-body); font-size: .85rem; color: var(--cream-3); font-weight: 400; text-transform: none; }

/* =============================================================
   8. Process
   ============================================================= */
.process { padding: 6rem 1.25rem; max-width: 1160px; margin-inline: auto; }
.process-grid { margin-top: 2.6rem; display: grid; gap: 1.6rem; }
.process-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
  perspective: 900px;
}
.process-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.process-card-video { width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); }
.process-card-body { padding: 1.6rem; }
.process-num { color: var(--accent); font-size: .85rem; font-weight: 500; letter-spacing: 0.06em; }
.process-title { margin-top: .5rem; font-size: 1.5rem; }
.process-text { margin-top: .6rem; color: var(--cream-3); font-size: .94rem; max-width: 34ch; }

/* Tilt 3D */
[data-tilt-card] {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .4s var(--ease-out);
}
[data-tilt-card]:hover { transition-duration: .15s; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5); }

@media (min-width: 960px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   9. Stats
   ============================================================= */
.stats { padding: 1rem 1.25rem 6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 960px; margin-inline: auto; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; color: var(--accent); }
.stat-label { margin-top: .4rem; font-size: .82rem; color: var(--cream-3); }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   10. Menu
   ============================================================= */
.menu { padding: 3rem 1.25rem 6rem; max-width: 1100px; margin-inline: auto; }
.menu-grid { margin-top: 2.4rem; display: grid; gap: 2.6rem; }
.menu-list { display: flex; flex-direction: column; gap: 1.1rem; }
.menu-item { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .9rem; border-bottom: 1px dotted var(--line); transition: color .3s var(--ease-out); }
.menu-item:hover { color: var(--accent); }
.menu-item-name { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.menu-item-line { flex: 1; }
.menu-item-price { color: var(--cream-3); font-size: .95rem; font-variant-numeric: tabular-nums; }
.menu-item:hover .menu-item-price { color: var(--accent); }
@media (min-width: 720px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   11. Visit + form
   ============================================================= */
.visit { padding: 3rem 1.25rem 7rem; max-width: 1100px; margin-inline: auto; display: grid; gap: 3rem; }
.visit-address, .visit-hours { margin-top: 1rem; color: var(--cream-2); font-size: .98rem; line-height: 1.7; }
.visit-hours { margin-top: 1.4rem; }

.cta-wrap { position: relative; }
.cta-form { display: flex; flex-direction: column; gap: 1rem; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cta-form-row { display: grid; gap: 1rem; }
@media (min-width: 540px) { .cta-form-row { grid-template-columns: 1fr 1fr; } }
.cta-form input, .cta-form textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; color: var(--cream); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .3s var(--ease-out);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--cream-3); }
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--accent); outline: none; }
.cta-submit { position: relative; align-self: flex-start; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after { content: ""; width: 16px; height: 16px; border: 1.5px solid rgba(18,14,11,0.3); border-top-color: var(--bg); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease-out); }
.cta-form.is-sent .cta-form-check { opacity: 1; }
.cta-form.is-sent .cta-form-check path { stroke-dashoffset: 0; }

.cta-success {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .8s var(--ease-out) .25s, transform .9s var(--ease-soft) .25s;
  width: 100%;
}
.cta-success.is-visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.cta-success p { margin-top: .5rem; color: var(--cream-3); }

@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.3fr; } }

/* =============================================================
   12. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding: 1.6rem 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--cream-3); }

/* =============================================================
   13. Reduced motion — only the truly intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .hero-mesh { animation: none; }
}
