/* ===== Growinture global styles ===== */
:root {
  --ink-0: #08080B;
  --ink-1: #0B0B11;
  --ink-2: #11121A;
  --ink-3: #1A1B26;
  --ink-4: #24252F;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --fg: #ECECEC;
  --fg-2: #B8B7B2;
  --fg-3: #6F6E69;
  --saffron: #E97817;
  --saffron-2: #FF8A1F;
  --saffron-3: #FFB060;
  --saffron-glow: rgba(233, 120, 23, 0.45);
  --cream: #F5EFE6;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, "SF Mono", monospace;

  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;
  --r-4: 28px;
}

[data-theme="light"] {
  --ink-0: #F7F4EE;
  --ink-1: #EFEBE2;
  --ink-2: #E6E1D6;
  --ink-3: #DAD3C4;
  --ink-4: #C8BFAA;
  --line: rgba(0,0,0,0.10);
  --line-2: rgba(0,0,0,0.18);
  --fg: #0E0E12;
  --fg-2: #3A3A40;
  --fg-3: #6F6E69;
  --saffron-glow: rgba(233, 120, 23, 0.30);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ===== Background grid + gradient ambience ===== */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.ambient::after {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(60% 40% at 80% 10%, var(--saffron-glow), transparent 60%),
    radial-gradient(50% 40% at 10% 80%, rgba(233,120,23,0.18), transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

/* ===== Magnetic cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--saffron);
  transition: width 0.25s, height 0.25s, background 0.25s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--saffron);
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Layout ===== */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 700px) { .wrap { padding: 0 20px; } }

/* ===== Top bar / nav ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--ink-0) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.topbar .brand img { height: 28px; width: auto; }
.topbar .brand .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--saffron);
}
[data-theme="light"] .topbar .brand img { filter: none; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: var(--ink-2); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--saffron); border-radius: 2px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--saffron); color: #0B0B0F;
  font-weight: 600; font-size: 13.5px;
  border-radius: 999px;
  border: 1px solid var(--saffron);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px var(--saffron-glow);
}

.menu-btn { display: none; }
@media (max-width: 900px) {
  .topbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; }
  .nav-cta { padding: 8px 12px; font-size: 12.5px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: color-mix(in oklab, var(--ink-0) 96%, transparent);
  backdrop-filter: blur(20px);
  display: none; flex-direction: column; padding: 100px 32px 40px;
}
.drawer.open { display: flex; }
.drawer a { padding: 18px 0; font-family: var(--serif); font-size: 32px; border-bottom: 1px solid var(--line); }

/* ===== Hero typography ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--saffron);
  box-shadow: 0 0 12px var(--saffron);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 104px); }
h2 { font-size: clamp(34px, 5vw, 68px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.015em; }
.italic { font-style: italic; color: var(--saffron); }

p { margin: 0; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-2); max-width: 62ch; line-height: 1.55; }

.section { padding: 120px 0; position: relative; z-index: 1; }
@media (max-width: 700px) { .section { padding: 80px 0; } }

.section-tag {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-tag .num { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.1em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-2);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--saffron); color: #0B0B0F; border-color: var(--saffron); }
.btn-primary:hover { box-shadow: 0 12px 36px var(--saffron-glow); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: color-mix(in oklab, var(--fg) 8%, transparent); }
.btn .arrow {
  width: 16px; height: 16px; display: inline-block;
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Cards ===== */
.card {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px;
  transition: border-color 0.25s, transform 0.3s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--ink-1);
}
.marquee-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: var(--serif); font-size: clamp(28px, 4vw, 56px);
  font-style: italic; color: var(--fg-2);
}
.marquee-track .dot { color: var(--saffron); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: var(--ink-1);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h4 {
  font-family: var(--mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--fg-2); font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--saffron); }
.footer .big-mark {
  font-family: var(--serif); font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85; letter-spacing: -0.04em;
  color: var(--saffron); font-weight: 500;
  margin: 40px 0 24px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 12px; } }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.48s; }

/* ===== Utility ===== */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.italic-em { font-family: var(--serif); font-style: italic; color: var(--saffron); }
.divider { height: 1px; background: var(--line); margin: 80px 0; }
.spacer-lg { height: 120px; }

/* tweaks panel basic styles only when used */
.tweak-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--ink-2); color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 999px; padding: 10px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.tweak-fab:hover { transform: translateY(-2px); border-color: var(--saffron); }
.tweak-fab .swatch { width: 14px; height: 14px; border-radius: 999px; background: var(--saffron); box-shadow: 0 0 10px var(--saffron-glow); }

/* page transition */
.page-fade { animation: pageIn 0.7s cubic-bezier(.2,.6,.2,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
