/* ================================================
   AIRUNSFIRMS — v3 "Dark Editorial Luxe"
   Fraunces serif display · Inter body
   Near-black ink, champagne gold hairlines
   New layout · cursor trail · ambient particles
================================================ */

/* === LENIS === */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* === TOKENS === */
:root {
  --bg:          #07080c;
  --bg-raise:    #0b0d13;
  --bg-panel:    #0e1018;
  --ink:         #eae5da;
  --muted:       #8b8f9b;
  --faint:       #5b5f6b;

  --gold:        #c9a962;
  --gold-soft:   #e6cf9a;
  --gold-dim:    rgba(201, 169, 98, 0.55);

  --hairline:       rgba(201, 169, 98, 0.16);
  --hairline-faint: rgba(234, 229, 218, 0.08);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --pad:   clamp(24px, 5vw, 48px);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input { font-family: inherit; outline: none; }
ul { list-style: none; }
::selection { background: rgba(201, 169, 98, 0.25); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

/* === FX CANVAS (particles + cursor trail) === */
#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === CUSTOM CURSOR === */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor input, body.has-cursor [data-tilt] { cursor: none; }
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold-soft);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold-dim);
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
              border-color 0.28s var(--ease), background 0.28s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 58px; height: 58px;
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}
.cursor-ring.is-down { width: 26px; height: 26px; }
.cursor-label {
  font-size: 0.85rem;
  color: var(--gold-soft);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor-ring.is-hover .cursor-label { opacity: 1; }

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1001;
}

/* === TYPOGRAPHY === */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.eyebrow-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold-dim);
}
.eyebrow--center { justify-content: center; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.accent {
  font-style: italic;
  color: var(--gold-soft);
}
/* Molten-gold shimmer sweep on accent text (safe fallback via @supports).
   Rotator words get the effect individually — clip-to-text breaks on
   transformed children, so the parent .rotator is excluded. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent:not(.rotator), .rotator-word {
    background: linear-gradient(105deg,
      var(--gold-soft) 0%, #f6e7c3 16%, var(--gold) 34%,
      var(--gold-soft) 55%, #b9975a 78%, var(--gold-soft) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 9s linear infinite;
  }
}
@keyframes shimmer {
  from { background-position: 0% 0; }
  to   { background-position: -220% 0; }
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-top: 1.25rem;
  font-size: 1.02rem;
}
.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Ghost section numbers */
section { position: relative; }
.section-ghost {
  position: absolute;
  top: 0.5em;
  right: -0.05em;
  font-family: var(--serif);
  font-size: clamp(9rem, 22vw, 20rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 98, 0.10);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  transition: all 0.35s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn-arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-solid {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-solid:hover { background: var(--gold-soft); }

.btn-line {
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-quiet {
  color: var(--muted);
  padding: 14px 10px;
}
.btn-quiet:hover { color: var(--gold-soft); }

.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-faint);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-wordmark span { color: var(--gold); font-style: italic; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links-cta { display: none; }
.nav-cta { padding: 10px 22px; font-size: 0.85rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* === HERO === */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -12%;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.10) 0%, transparent 62%);
  pointer-events: none;
  will-change: transform;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline-faint) 1px, transparent 1px);
  background-size: clamp(120px, 16vw, 240px) 100%;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 2.25rem; }
.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero-headline.shown .line:nth-child(1) .line-inner { transform: translateY(0); transition-delay: 0.05s; }
.hero-headline.shown .line:nth-child(2) .line-inner { transform: translateY(0); transition-delay: 0.18s; }

/* Word rotator */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
}
.rotator-word {
  grid-area: 1 / 1;
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  transition: transform 0.65s var(--ease), opacity 0.5s;
  white-space: nowrap;
}
.rotator-word.is-active { opacity: 1; transform: translateY(0); }
.rotator-word.is-out { opacity: 0; transform: translateY(-60%); }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 540px;
  margin-bottom: 2.75rem;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: clamp(3.5rem, 7vh, 5.5rem);
}
.hero-stats {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline-faint);
  padding-top: 2rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1.1;
}
.stat-lbl { font-size: 0.82rem; color: var(--faint); letter-spacing: 0.04em; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  z-index: 1;
}
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* === TRUSTED MARQUEE === */
.trusted {
  padding: 2.6rem 0;
  border-top: 1px solid var(--hairline-faint);
  border-bottom: 1px solid var(--hairline-faint);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.trusted-label {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.6rem;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.4rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--gold-dim);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover .marquee-track span { color: var(--muted); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === SECTION SPACING === */
.services, .process, .work, .founder { padding: clamp(6rem, 11vw, 9.5rem) 0; }

/* === SERVICES — BENTO === */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-card {
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--hairline-faint);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.bento-card:hover { border-color: var(--hairline); background: var(--bg-panel); }
.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; justify-content: flex-start; }

.bento-no {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
}
.bento-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
}
.bento-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}
.bento-tags {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.bento-flag {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
}

/* Spotlight overlay (shared) */
[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 50%), rgba(201, 169, 98, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }

/* Dashboard mini viz */
.bento-viz {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 74px;
  margin: 8px 0 4px;
}
.viz-bar {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(to top, rgba(201, 169, 98, 0.28), rgba(201, 169, 98, 0.06));
  border-top: 1px solid var(--gold-dim);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
}
.bento-card.in .viz-bar { transform: scaleY(1); }
.bento-card.in .viz-bar:nth-child(2) { transition-delay: 0.07s; }
.bento-card.in .viz-bar:nth-child(3) { transition-delay: 0.14s; }
.bento-card.in .viz-bar:nth-child(4) { transition-delay: 0.21s; }
.bento-card.in .viz-bar:nth-child(5) { transition-delay: 0.28s; }
.bento-card.in .viz-bar:nth-child(6) { transition-delay: 0.35s; }
.bento-card.in .viz-bar:nth-child(7) { transition-delay: 0.42s; }

/* Orbit decoration (custom agents card) */
.bento-orbit {
  position: relative;
  height: 150px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  width: 120px; height: 120px;
  border: 1px dashed rgba(201, 169, 98, 0.25);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.orbit-ring--2 {
  width: 80px; height: 80px;
  animation-duration: 11s;
  animation-direction: reverse;
  border-style: dotted;
}
.orbit-ring::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.orbit-core {
  font-size: 1.5rem;
  color: var(--gold-soft);
}
@keyframes spin { to { transform: rotate(360deg); } }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 10px;
  transition: color 0.3s;
}
.service-link:hover { color: var(--gold-soft); }
.service-link .btn-arrow { transition: transform 0.3s var(--ease); }
.service-link:hover .btn-arrow { transform: translateX(5px); }

/* === PROCESS === */
.process-track { position: relative; }
.process-line {
  position: absolute;
  top: 7px;
  left: 0; right: 0;
  height: 1px;
  background: var(--hairline-faint);
}
.process-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.2s linear;
}
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.process-step { position: relative; padding-top: 40px; }
.process-marker {
  position: absolute;
  top: 0; left: 0;
  width: 15px; height: 15px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: var(--bg);
  transition: background 0.4s, box-shadow 0.4s;
}
.process-step.lit .process-marker {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201, 169, 98, 0.5);
}
.process-big {
  position: absolute;
  top: 14px; right: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 98, 0.18);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.5s;
}
.process-step.lit .process-big { -webkit-text-stroke-color: rgba(201, 169, 98, 0.45); }
.process-meta {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 0.9rem;
}
.process-no {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.process-time { font-size: 0.75rem; color: var(--faint); }
.process-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.process-step p { color: var(--muted); font-size: 0.93rem; }

/* Assurance strip */
.assurance {
  margin-top: clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline-faint);
}
.assurance-item {
  padding: 26px 24px;
  border-right: 1px solid var(--hairline-faint);
}
.assurance-item:last-child { border-right: none; }
.assurance-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}
.assurance-item p { color: var(--faint); font-size: 0.84rem; line-height: 1.6; }

/* === WORK / RESULTS === */
.work-list { display: flex; flex-direction: column; }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(4px, 1vw, 16px);
  border-top: 1px solid var(--hairline-faint);
  transition: background 0.4s;
  overflow: hidden;
}
.work-list .work-row:last-child { border-bottom: 1px solid var(--hairline-faint); }
.work-row:hover { background: rgba(201, 169, 98, 0.025); }
.work-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.work-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
.work-desc { color: var(--muted); font-size: 0.95rem; max-width: 560px; }
.work-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 170px;
}
.work-stat-val {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold-soft);
  line-height: 1.05;
}
.work-stat-lbl {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 6px;
}
.work-stat-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-faint);
}

/* === FOUNDER × BUILD IN PUBLIC === */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.founder-side { position: sticky; top: 100px; }
.founder-card {
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--hairline-faint);
  padding: 26px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.15s ease-out;
  transform-style: preserve-3d;
}
.founder-card:hover { border-color: var(--hairline); }
.founder-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.founder-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--hairline);
  pointer-events: none;
}
.founder-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(24%) contrast(1.04);
  transition: filter 0.6s, transform 0.9s var(--ease);
}
.founder-card:hover .founder-frame img { filter: grayscale(0%); transform: scale(1.03); }
.founder-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
}
.founder-role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 0 18px;
}
.founder-letter {
  border-left: 1px solid var(--hairline);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.founder-letter p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.founder-sig { margin: 18px 0 20px; }
.founder-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-faint);
  padding-top: 18px;
  gap: 12px;
}
.founder-cred { display: flex; flex-direction: column; gap: 3px; }
.cred-val {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-soft);
  line-height: 1.1;
}
.cred-lbl { font-size: 0.68rem; color: var(--faint); line-height: 1.45; }

/* Build log feed */
.logs { display: flex; flex-direction: column; gap: 18px; }
.logs-head { margin-bottom: 8px; }
.logs-head .section-sub { margin-top: 0; }
.logs-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d0442e;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208, 68, 46, 0.5); }
  55% { box-shadow: 0 0 0 7px rgba(208, 68, 46, 0); }
}
.log-entry {
  position: relative;
  display: grid;
  grid-template-columns: auto 240px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--bg-raise);
  border: 1px solid var(--hairline-faint);
  padding: 18px 22px;
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s, transform 0.35s var(--ease);
}
.log-entry:hover {
  border-color: var(--hairline);
  background: var(--bg-panel);
  transform: translateX(6px);
}
.log-index {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold-dim);
  writing-mode: vertical-rl;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.log-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.log-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.log-entry:hover .log-thumb img { transform: scale(1.06); }
.log-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: 0.7rem;
  background: rgba(7, 8, 12, 0.85);
  padding: 2px 8px;
  color: var(--ink);
}
.log-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-soft);
  background: rgba(7, 8, 12, 0.35);
  opacity: 0;
  transition: opacity 0.35s;
}
.log-entry:hover .log-play { opacity: 1; }
.log-cat {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.log-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.log-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s;
}
.log-entry:hover .log-watch { color: var(--gold-soft); }
.logs-foot { margin-top: 10px; }

/* === CLOSING === */
.closing {
  position: relative;
  padding: clamp(7rem, 13vw, 11rem) 0;
  text-align: center;
  border-top: 1px solid var(--hairline-faint);
  overflow: hidden;
}
.closing-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
}
.closing-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.closing-marquee-track span {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 98, 0.09);
}
.closing-inner { position: relative; z-index: 1; }
.closing-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.closing-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 1.6rem;
}
.closing-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gold-soft);
  margin-bottom: 2.2rem;
}
.note-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}
.closing-assure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.assure-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-dim);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--hairline-faint);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 3.5rem;
}
.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin: 14px 0 20px;
}
.footer-socials { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-socials a {
  font-size: 0.82rem;
  color: var(--faint);
  transition: color 0.25s;
}
.footer-socials a:hover { color: var(--gold-soft); }
.footer-news { margin-top: 26px; }
.footer-news label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.footer-news-row {
  display: flex;
  border: 1px solid var(--hairline-faint);
  max-width: 340px;
  transition: border-color 0.3s;
}
.footer-news-row:focus-within { border-color: var(--hairline); }
.footer-news input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 12px 14px;
}
.footer-news input::placeholder { color: var(--faint); }
.footer-news button {
  font-size: 0.82rem;
  color: var(--gold);
  padding: 0 18px;
  border-left: 1px solid var(--hairline-faint);
  transition: color 0.25s, background 0.25s;
}
.footer-news button:hover { color: #0a0a0a; background: var(--gold); }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline-faint);
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--faint);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { transition: color 0.25s; }
.footer-legal a:hover { color: var(--muted); }

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px);
  transition: opacity 0.9s var(--ease) var(--d, 0s),
              transform 0.9s var(--ease) var(--d, 0s),
              filter 1.1s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* once revealed, cards return to fast transforms so tilt feels snappy */
.bento-card.reveal.in {
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.15s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .bento-card--tall { grid-row: auto; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-side { position: static; max-width: 480px; }
  .assurance { grid-template-columns: repeat(2, 1fr); }
  .assurance-item:nth-child(2) { border-right: none; }
  .assurance-item:nth-child(-n+2) { border-bottom: 1px solid var(--hairline-faint); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: rgba(9, 10, 15, 0.97);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--hairline-faint);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 38px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-links-cta { display: block; color: var(--gold) !important; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; z-index: 1000; }

  .hero { padding-top: 110px; }
  .hero-stats { gap: 1.8rem; }
  .scroll-cue { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }

  .process-row { grid-template-columns: 1fr; gap: 40px; }
  .process-line { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .process-line-fill { width: 100% !important; height: 0%; transition: height 0.2s linear; }
  .process-step { padding-top: 0; padding-left: 40px; }
  .process-marker { top: 4px; }

  .assurance { grid-template-columns: 1fr; }
  .assurance-item { border-right: none; border-bottom: 1px solid var(--hairline-faint); }
  .assurance-item:last-child { border-bottom: none; }

  .work-row { grid-template-columns: 1fr; gap: 20px; }
  .work-stat { align-items: flex-start; text-align: left; }

  .log-entry { grid-template-columns: 1fr; gap: 14px; }
  .log-index { writing-mode: horizontal-tb; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .cursor-dot, .cursor-ring { display: none; }
}

/* ================================================
   v4 ATMOSPHERE LAYER
   Film grain · aurora drift · WebGL hero mount ·
   cursor-following border glow
================================================ */

/* === FILM GRAIN (static texture — zero per-frame cost) === */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* === AURORA — two drifting light fields (transform/opacity only) === */
.aurora {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  width: 72vmax;
  height: 72vmax;
  border-radius: 50%;
  will-change: transform;
}
.aurora::before {
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.075) 0%, transparent 62%);
  animation: auroraDrift 28s ease-in-out infinite alternate;
}
.aurora::after {
  bottom: -22%;
  right: -14%;
  background: radial-gradient(circle, rgba(122, 108, 210, 0.05) 0%, transparent 60%);
  animation: auroraDrift 36s ease-in-out -14s infinite alternate-reverse;
}
@keyframes auroraDrift {
  from { transform: translate3d(-5%, -3%, 0) scale(1); }
  to   { transform: translate3d(7%, 6%, 0) scale(1.18); }
}
.aurora--closing::before { top: auto; bottom: -30%; left: -18%; }
.aurora--closing::after  { bottom: auto; top: -26%; right: -10%; }

/* === WEBGL HERO MOUNT === */
.hero-3d {
  position: absolute;
  top: 50%;
  right: max(-6vw, -90px);
  width: clamp(480px, 52vw, 820px);
  height: clamp(480px, 52vw, 820px);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s var(--ease) 0.2s;
  z-index: 0;
}
.hero-3d.on { opacity: 1; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* === CURSOR-FOLLOWING BORDER GLOW (cards, rows, log entries) === */
[data-spotlight]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%),
              rgba(201, 169, 98, 0.55), rgba(201, 169, 98, 0.08) 55%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
[data-spotlight]:hover::after { opacity: 1; }

@media (max-width: 1024px) {
  .hero-3d { display: none; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-headline .line-inner { transform: none; }
  .cursor-dot, .cursor-ring, #fx { display: none; }
  .hero-3d, .aurora { display: none; }
  html { scroll-behavior: auto; }
}
