:root {
  --bg: #07080a;
  --bg-2: #0e1014;
  --bg-3: #14161b;
  --panel: rgba(14, 16, 20, 0.82);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f2efe9;
  --muted: #a39f97;
  --dim: #6d6a64;
  --glow: #f5dcb0;          /* the warm white of the hex ceiling */
  --accent: #e9b872;
  --display: 'Michroma', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: var(--cur-hand); }
img { max-width: 100%; }
::selection { background: var(--glow); color: #111; }

/* page arriving through a hex transition: hold a veil until site.js reveals it */
html.hx-in body::after { content: ''; position: fixed; inset: 0; background: var(--bg); z-index: 9999; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 8, 10, .78), rgba(7, 8, 10, 0));
  pointer-events: none; transition: transform .5s var(--ease), background .4s;
}
.site-head > * { pointer-events: auto; }
.site-head.hide { transform: translateY(-100%); }
.brand { font-family: var(--display); font-size: 15px; letter-spacing: .32em; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; flex: none;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(135deg, var(--glow), #8a7350);
  position: relative;
}
.brand-mark::after { content: ''; position: absolute; inset: 3px; background: var(--bg); clip-path: inherit; }
.brand b { font-weight: 400; color: var(--accent); }
.brand-logo { display: block; height: 46px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
@media (max-width: 640px) { .brand-logo { height: 36px; } }
.foot-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.foot-social a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: color .25s, border-color .25s; }
.foot-social a:hover { color: var(--text); border-color: var(--glow); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.nav a { position: relative; transition: color .25s; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.menu-btn .bars { width: 16px; height: 8px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 7px; }
body.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 960px) { .nav { display: none; } }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: rgba(5, 6, 8, .96); backdrop-filter: blur(20px);
  display: grid; grid-template-columns: 1.1fr 1fr; padding: 110px var(--gutter) 40px; gap: 48px;
  clip-path: circle(0% at calc(100% - 60px) 44px); transition: clip-path .8s var(--ease); visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 44px); visibility: visible; }
.menu-list { list-style: none; display: flex; flex-direction: column; justify-content: center; }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex; align-items: baseline; gap: 20px; padding: 6px 0;
  font-family: var(--display); font-size: clamp(28px, 5vw, 64px); line-height: 1.15; color: var(--muted);
  transform: translateY(110%); transition: transform .8s var(--ease), color .3s;
}
.menu-list a small { font-family: var(--body); font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.menu-list a:hover, .menu-list a[aria-current] { color: var(--text); }
body.menu-open .menu-list a { transform: none; }
.menu-preview { position: relative; border-radius: 22px; overflow: hidden; align-self: center; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.menu-preview img.on { opacity: 1; transform: none; }
.menu-preview figcaption { position: absolute; left: 20px; bottom: 18px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; z-index: 2; }
.menu-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 22px; }
@media (max-width: 800px) { .menu { grid-template-columns: 1fr; } .menu-preview { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 30px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px);
  transition: background .3s var(--ease), border-color .3s, color .3s, box-shadow .3s;
}
.btn:hover { background: var(--glow); color: #111; border-color: var(--glow); box-shadow: 0 10px 40px -10px rgba(245, 220, 176, .5); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.solid { background: var(--glow); color: #111; border-color: var(--glow); }
.btn.solid:hover { background: #fff; border-color: #fff; }
.btn.small { padding: 12px 20px; font-size: 10px; }

.eyebrow { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.1; }
.muted { color: var(--muted); }

/* ---------- generic page sections ---------- */
.page-hero { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 70px; overflow: hidden; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 8vw, 128px); line-height: 1.02; letter-spacing: .01em; }
.page-hero p.lead { margin-top: 26px; max-width: 560px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; }
.section { padding: clamp(70px, 10vw, 150px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.6vw, 50px); margin-top: 14px; line-height: 1.15; }
.section-head p { color: var(--muted); max-width: 440px; line-height: 1.75; font-size: 14px; }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(245, 220, 176, .55); }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }

/* ---------- chrome arrow cursor (a real system cursor, so it never lags) ---------- */
:root {
  --cur-hand: url(/img/cursor-arrow.png) 2 2, auto;
  --cur-grab: url(/img/cursor-arrow.png) 2 2, grab;
}
html, body, a, button, label, summary, select, [role="button"], input[type="range"], .spot, .card {
  cursor: var(--cur-hand);
  cursor: image-set(url(/img/cursor-arrow.png) 1x, url(/img/cursor-arrow@2x.png) 2x) 2 2, auto;   /* sharp on Retina */
}
input:not([type="range"]), textarea { cursor: text; }

/* ---------- hex transition canvas ---------- */
.hexfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; }
.hexfx.block { pointer-events: auto; }

/* ---------- 3D stage (shared) ---------- */
.stage3d { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 50% 60%, #22252c, #0b0c0f 75%); transition: background .9s var(--ease); }
.stage3d > canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: var(--cur-grab); }
.stage3d[data-env="midnight"] { background: radial-gradient(80% 70% at 50% 65%, #0f1d44, #03050c 72%); }
.stage3d[data-env="golden"] { background: radial-gradient(90% 80% at 70% 30%, #6b3414, #1a0b05 60%, #070302); }
.stage3d[data-env="studio"] { background: radial-gradient(100% 80% at 50% 40%, #fbfaf8, #d9d6d0 75%); }

/* ---------- footer ---------- */
.site-foot { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; user-select: none; }
.marquee-track { display: flex; gap: 48px; padding-right: 48px; flex: none; animation: marquee 40s linear infinite; font-family: var(--display); font-size: clamp(18px, 2.2vw, 30px); color: var(--muted); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-100%); } }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 64px var(--gutter) 40px; max-width: 1440px; margin: 0 auto; }
.foot-grid h4 { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 18px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.foot-cta h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; margin-bottom: 22px; }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.open-now i { width: 7px; height: 7px; border-radius: 50%; background: #5ad17a; box-shadow: 0 0 10px #5ad17a; }
.open-now.closed i { background: #d16a5a; box-shadow: 0 0 10px #d16a5a; }
.foot-word { font-family: var(--display); font-size: clamp(42px, 12vw, 196px); line-height: .8; letter-spacing: .04em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(245, 220, 176, .22); padding: 20px 0 0; margin-bottom: -.12em; white-space: nowrap; user-select: none; }
.foot-word b { font-weight: 400; -webkit-text-stroke: 1px rgba(233, 184, 114, .5); }
.foot-bottom a { color: var(--accent); }
.foot-bottom a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); position: relative; background: var(--bg); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-cta { grid-column: 1 / -1; } }

@media (max-width: 640px) {
  .brand { font-size: 13px; letter-spacing: .26em; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split .w > span { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
