/* ============================================================
   What I Build With AI — Boring
   Editorial Luxury · ivory / kodak / rust · Suisse + Söhne
   ============================================================ */

/* ---- Fonts (real brand files, local) ---- */
@font-face {
  font-family: "Suisse Book";
  src: url("fonts/SuisseIntlTrial-Book.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Suisse Medium";
  src: url("fonts/SuisseIntlTrial-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Soehne Fett";
  src: url("fonts/soehne-dreiviertelfett.woff2") format("woff2"),
       url("fonts/soehne-dreiviertelfett.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roc Bold";
  src: url("fonts/rocgrotesk-bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ivory: #FFF9F3;
  --film: #F0EBE3;
  --paper: #E8E0D4;
  --kodak: #1A1714;
  --kodak-warm: #2B2420;
  --rust: #B84A3A;
  --rust-dark: #9A3A2B;
  --rust-soft: #E8C6BE;

  --ink: var(--kodak);
  --ink-60: rgba(26, 23, 20, 0.62);
  --ink-40: rgba(26, 23, 20, 0.40);
  --ink-12: rgba(26, 23, 20, 0.12);
  --ink-06: rgba(26, 23, 20, 0.06);

  --font-display: "Suisse Book", Georgia, serif;
  --font-body: "Suisse Medium", system-ui, sans-serif;
  --font-label: "Soehne Fett", system-ui, sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* status palette */
  --st-live: var(--rust);
  --st-working: #4A7C59;
  --st-build: #B7892B;
  --st-rnd: #6B5BA6;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Film grain overlay ---- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Eyebrow / labels ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rust);
  padding: 6px 12px;
  border: 1px solid var(--rust-soft);
  border-radius: 999px;
  background: rgba(184, 74, 58, 0.05);
}

/* ============================================================
   NAV — floating glass pill
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  margin: clamp(14px, 2.4vw, 26px) auto 0;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--ink-12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -30px rgba(26,23,20,0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 30px)); }
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__mark { width: 26px; height: 26px; }
.nav__word {
  font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 14px;
}
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-60);
  position: relative; transition: color 0.4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--rust); transition: width 0.5s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__burger {
  display: none; width: 40px; height: 40px; border: none; background: transparent;
  position: relative; cursor: pointer;
}
.nav__burger span {
  position: absolute; left: 9px; width: 22px; height: 1.6px; background: var(--ink);
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---- Mobile menu overlay ---- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(255, 249, 243, 0.86);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: grid; gap: 8px; text-align: center; }
.menu__links a {
  font-family: var(--font-display); font-size: clamp(34px, 9vw, 64px);
  line-height: 1.1; opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.14s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.20s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.26s; color: var(--rust); }

/* ============================================================
   BUTTONS — island / button-in-button
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 12px;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  background: var(--kodak); color: var(--ivory);
  border: 1px solid var(--kodak);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { box-shadow: 0 18px 40px -22px rgba(26,23,20,0.7); }
.btn:active { transform: scale(0.98); }
.btn__icon {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 999px;
  background: rgba(255, 249, 243, 0.14); font-size: 14px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.06); background: rgba(255,249,243,0.22); }
.btn--lg { font-size: 13px; padding: 16px 16px 16px 28px; }
.btn--lg .btn__icon { width: 36px; height: 36px; }
.btn--sm { padding: 9px 9px 9px 18px; font-size: 11px; }
.btn--sm .btn__icon { width: 26px; height: 26px; font-size: 12px; }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink-12);
}
.btn--ghost .btn__icon { background: var(--ink-06); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--rust { background: var(--rust); border-color: var(--rust); color: var(--ivory); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(150px, 22vh, 240px) var(--gutter) clamp(40px, 8vh, 90px);
  display: grid; gap: 26px; justify-items: start;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 9.5vw, 132px); line-height: 0.96; letter-spacing: -0.02em;
  margin: 4px 0 0; max-width: 14ch;
}
.hero__title .rust { color: var(--rust); }
.hero__lede {
  font-size: clamp(17px, 2.1vw, 22px); line-height: 1.55; color: var(--ink-60);
  max-width: 56ch; margin: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  border-top: 1px solid var(--ink-12); padding-top: 20px;
}
.stat__value {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px);
  line-height: 1; letter-spacing: -0.02em;
}
.stat__label { margin-top: 10px; font-size: 15px; }
.stat__note { font-size: 13px; color: var(--ink-40); margin-top: 2px; }

/* ============================================================
   LEGEND
   ============================================================ */
.legend {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 6vh, 64px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
}
.legend__title { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink-12); color: var(--ink-60);
}
.chip i { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-40); }
.chip[data-status="live"] i { background: var(--st-live); }
.chip[data-status="working"] i { background: var(--st-working); }
.chip[data-status="in-build"] i { background: var(--st-build); }
.chip[data-status="rnd"] i { background: var(--st-rnd); }
.legend__note { font-size: 13px; color: var(--ink-40); flex: 1 1 240px; }

/* ============================================================
   BUCKETS + CARDS
   ============================================================ */
.bucket { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 8vh, 100px) var(--gutter); }
.bucket__head { display: grid; gap: 14px; margin-bottom: clamp(30px, 5vh, 56px); max-width: 60ch; }
.bucket__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.02em; margin: 0;
}
.bucket__blurb { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-60); margin: 0; max-width: 52ch; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }

/* Double-bezel card: outer shell + inner core */
.card {
  grid-column: span 3;
  background: var(--ink-06);
  border: 1px solid var(--ink-12);
  border-radius: 30px;
  padding: 7px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -44px rgba(26,23,20,0.5); }
.card--wide { grid-column: span 6; }
.card--feature { grid-column: span 3; }
.card__core {
  background: var(--ivory);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
  padding: clamp(22px, 2.4vw, 32px);
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.04; letter-spacing: -0.01em; margin: 0;
}
.card__tagline { font-size: 14px; color: var(--ink-60); margin-top: 4px; }

.status {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--ink-12); color: var(--ink-60);
  white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 999px; }
.status--live i { background: var(--st-live); box-shadow: 0 0 0 3px rgba(184,74,58,0.16); }
.status--working i { background: var(--st-working); }
.status--in-build i { background: var(--st-build); }
.status--rnd i { background: var(--st-rnd); }

.proof { margin-top: 2px; }
.proof__label, .value__label {
  display: block; font-family: var(--font-label); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px;
}
.value__label { color: var(--ink-40); }
.proof__text { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; }
.value__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-60); margin: 0; }
.caveat {
  font-size: 13px; color: var(--ink-40); margin: 0;
  padding-left: 12px; border-left: 2px solid var(--ink-12); font-style: italic;
}

.card__foot { margin-top: auto; padding-top: 8px; display: grid; gap: 14px; }
.stack { font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-40); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-60); padding: 5px 10px; border-radius: 999px; background: var(--ink-06);
}
.card .btn { align-self: flex-start; }

/* ============================================================
   CLOSER
   ============================================================ */
.closer {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 12vh, 140px) var(--gutter);
  display: grid; gap: 28px; justify-items: start;
  border-top: 1px solid var(--ink-12);
}
.closer__line {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.01em;
  max-width: 24ch; margin: 0;
}
.closer__line strong { color: var(--rust); font-weight: 400; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid var(--ink-12);
}
.foot__mark { width: 22px; height: 22px; opacity: 0.7; }
.foot__meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-40); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal, .card {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft), filter 0.8s var(--ease-soft);
}
.reveal.is-in, .card.is-in { opacity: 1; transform: none; filter: none; }
.card:hover.is-in { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .card, .card--wide, .card--feature { grid-column: span 3; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav .btn--sm { display: none; }
  .nav__burger { display: block; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card, .card--wide, .card--feature { grid-column: 1 / -1; }
  .hero { padding-top: 130px; }
  .card__top { flex-direction: column; }
}
