/* ========== Tokens ========== */
:root {
  /* Warm neutrals */
  --paper: #F5F0E8;        /* page background */
  --paper-2: #EFE8DC;      /* slightly deeper */
  --cream: #FAF6EF;        /* card */
  --beige: #E8DFCF;        /* divider / muted surface */
  --sand: #D9CDB6;         /* subtle accent */
  --ink: #1F1B16;          /* primary text */
  --ink-2: #3A332A;        /* secondary text */
  --ink-3: #6B6358;        /* tertiary / meta */
  --ink-4: #9A9286;        /* hint */
  --rule: #DCD3BF;         /* hairline */
  --accent: #B45A2C;       /* warm terracotta accent */
  --accent-soft: #E9C9B0;

  /* Type */
  --font-sans: "Inter Tight", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  font-size: 17px;
  letter-spacing: -0.005em;
}

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

::selection { background: var(--accent-soft); color: var(--ink); }

/* ========== Layout ========== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ========== Nav ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: baseline; gap: 4px;
  position: relative;
  padding: 4px 6px 6px;
}
.brand-signature {
  font-family: "Pacifico", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  transform: rotate(-3deg);
  transform-origin: left center;
  display: inline-block;
  padding-right: 4px;
}
.brand-flourish {
  position: absolute;
  left: 6px;
  bottom: -2px;
  width: 130px;
  height: 12px;
  pointer-events: none;
  opacity: 0.85;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-signature {
  transform: rotate(-4deg) translateY(-1px);
}
.brand:hover .brand-flourish {
  transform: translateX(2px);
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E9C9B0, #B45A2C 60%, #6B2F12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 15px; color: var(--ink-2);
}
.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: color-mix(in oklch, var(--cream) 70%, transparent);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2E9E5C;
  box-shadow: 0 0 0 0 rgba(46,158,92,.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,158,92,.55); }
  70% { box-shadow: 0 0 0 8px rgba(46,158,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,158,92,0); }
}

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ========== Buttons / links ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--cream); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { color: var(--ink); gap: 12px; border-color: var(--rule); }

/* ========== Type ========== */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.05; margin: 0; font-weight: 500; }
.display {
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 450;
}
.h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; font-weight: 450;}
.h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.025em; font-weight: 480;}
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500;}

.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); line-height: 1.5; max-width: 60ch;}
p { color: var(--ink-2); }

/* ========== Footer ========== */
.footer {
  padding: 80px 0 40px;
  margin-top: 120px;
  border-top: 1px solid var(--rule);
}
.footer .display {
  font-size: clamp(48px, 11vw, 160px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 24px 0 64px;
}
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  font-size: 14px; color: var(--ink-3);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap;}
