/* ============ TOKENS ============ */
:root {
  --bg: #0A0A0A;
  --bg-deep: #050505;
  --bg-elev: #101010;
  --bg-card: #131313;
  --ink: #EDEAE0;
  --ink-mid: #B9B4A7;
  --ink-soft: #8D887D;
  --ink-dim: #5E5A52;
  --accent: #C8C3B8;
  --accent-warm: #D9B977;
  --gold: #9C7A3C;
  --gold-lt: #D9B977;
  --hairline: rgba(237, 234, 224, 0.08);
  --hairline-mid: rgba(237, 234, 224, 0.14);
  --hairline-strong: rgba(237, 234, 224, 0.22);
  --serif: 'Fraunces', 'Canela', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: hidden; max-width: 100vw; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  cursor: none;
}
@media (hover: none), (max-width: 860px) { body { cursor: auto; } }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: opacity 0.7s var(--ease) 0.1s, visibility 0s linear 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark {
  width: 74px; height: 74px;
  transform: scale(0.78);
  opacity: 0;
  animation: markIn 0.8s var(--ease-out) 0.15s forwards;
}
.preloader-line {
  position: absolute; bottom: 6vh; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--ink-dim);
  text-transform: uppercase;
  opacity: 0; animation: markIn 0.6s var(--ease-out) 0.55s forwards;
}
@keyframes markIn { to { transform: scale(1); opacity: 1; } }

/* ============ GRAIN + CURSOR ============ */
.grain {
  position: fixed; inset: -50%; z-index: 180; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  pointer-events: none; z-index: 190;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.3s, border 0.3s;
  mix-blend-mode: difference;
}
.cursor.big {
  width: 48px; height: 48px; background: transparent; border: 1px solid var(--ink);
}
@media (hover: none), (max-width: 860px) { .cursor { display: none; } }

/* ============ LAYOUT ============ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 780px) { .wrap { padding: 0 22px; } }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
@media (max-width: 380px) { .wrap { padding: 0 16px; } }

.label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.label--dim { color: var(--ink-dim); }
.hairline { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  background: rgba(10, 10, 10, 0.62);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(0);
  transition: transform 0.5s var(--ease), background 0.3s;
}
.nav.hide { transform: translateY(-110%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand em { font-style: italic; color: var(--accent); font-weight: 300; }
.brand-mono { width: 24px; height: 24px; opacity: 0.95; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.25s;
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link.current { color: var(--ink); }
.nav-link.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--accent);
}
@media (max-width: 860px) { .nav-links { display: none; } }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  position: relative; overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.nav-cta:hover { color: var(--bg); border-color: var(--ink); }
.nav-cta:hover::before { transform: translateY(0); }
.nav-cta span { position: relative; z-index: 1; }
.nav-cta .short { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 17px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: none;
  position: relative; overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
@media (hover: none) { .btn { cursor: pointer; } }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn span { position: relative; z-index: 1; }
.btn .arrow { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; position: relative; z-index: 1; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); border-color: var(--ink); }

/* ============ TYPOGRAPHY HELPERS ============ */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em;
  color: var(--accent-warm); text-transform: uppercase;
}

.hero-section {
  position: relative;
  padding: 160px 0 100px;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.hero-section-inner {
  position: relative; z-index: 2;
}
.hero-section .ambient-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(156,122,60,0.05), transparent 65%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(200,195,184,0.04), transparent 60%);
}
.page-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144, "wght" 220;
}
.page-title em { font-style: italic; color: var(--accent); font-weight: 200; }
.page-sub {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 640px;
  margin: 0;
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--hairline);
  padding: 100px 0 48px;
  background: var(--bg-deep);
  position: relative;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 40px; } }
.foot-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.foot-brand-row .foot-monogram { width: 32px; height: 32px; }
.foot-brand-row .foot-name {
  font-family: var(--serif); font-weight: 300; font-size: 24px; letter-spacing: -0.015em;
}
.foot-brand-row .foot-name em { font-style: italic; color: var(--accent); font-weight: 300; }
.foot-legal {
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-dim);
  max-width: 440px;
}
.foot-col h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 20px; font-weight: 400;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li {
  padding: 8px 0;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 15px;
  color: var(--ink-mid);
}
.foot-col a { transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }

.colophon {
  margin-top: 72px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============ MOBILE CHROME ============ */
@media (max-width: 640px) {
  .nav-inner { height: 60px; }
  .brand { gap: 10px; font-size: 15px; }
  .brand-mono { width: 22px; height: 22px; }
  .brand .word { display: none; }
  .nav-right { gap: 14px; }
  .nav-cta { padding: 8px 12px; font-size: 10px; letter-spacing: 0.16em; }
  .nav-cta .full { display: none; }
  .nav-cta .short { display: inline; }

  .btn { padding: 14px 22px; font-size: 10.5px; letter-spacing: 0.2em; }

  .hero-section { padding: 100px 0 60px; }
  .page-title { font-size: clamp(40px, 12vw, 68px); }
  .page-sub { font-size: 16px; }

  footer { padding: 60px 0 32px; }
  .foot-grid { gap: 32px; }
  .foot-brand-row .foot-monogram { width: 26px; height: 26px; }
  .foot-brand-row .foot-name { font-size: 20px; }
  .foot-legal { font-size: 11.5px; line-height: 1.8; }
  .colophon { margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
