/* Syntari v3 — "Silent+" — single unified landing.
   Silent Engineering base with tech savvy + Apple precision. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,500&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --bg-3: #111115;
  --fg: #f5f5f2;
  --fg-muted: rgba(245,245,242,0.65);
  --fg-dim: rgba(245,245,242,0.45);
  --fg-faint: rgba(245,245,242,0.22);
  --line: rgba(245,245,242,0.08);
  --line-2: rgba(245,245,242,0.14);
  --accent: oklch(0.82 0.13 40);        /* warm amber */
  --accent-dim: oklch(0.55 0.11 40);
  --growth: oklch(0.85 0.15 130);        /* lime — used sparingly as data-positive */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ─── Type scale ─── */
.serif { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400; }
.mono  { font-family: 'Geist Mono', ui-monospace, monospace; }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow-dash::before { content: '. '; }

/* ─── Aurora conic ring (from site DNA) ─── */
@property --aurora-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.aurora {
  position: relative;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--aurora-angle),
    rgba(255,255,255,0.05) 0deg,
    rgba(255,255,255,0.95) 85deg,
    rgba(255,255,255,0.35) 140deg,
    rgba(255,255,255,0.05) 210deg,
    rgba(255,255,255,0.7) 310deg,
    rgba(255,255,255,0.05) 360deg
  );
  animation: aurora-spin 12s linear infinite;
}
.aurora-accent {
  background: conic-gradient(
    from var(--aurora-angle),
    oklch(0.82 0.13 40 / 0.08) 0deg,
    oklch(0.82 0.13 40 / 0.95) 85deg,
    oklch(0.82 0.13 40 / 0.3) 150deg,
    oklch(0.82 0.13 40 / 0.08) 220deg,
    oklch(0.82 0.13 40 / 0.7) 310deg,
    oklch(0.82 0.13 40 / 0.08) 360deg
  );
}
.aurora > * { border-radius: inherit; background: var(--bg-2); }
@keyframes aurora-spin { to { --aurora-angle: 360deg; } }

/* ─── Halos ─── */
.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  animation: halo-breathe 9s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.06); }
}

/* ─── Dot grid bg ─── */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ─── Reveal animations ─── */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transition: opacity 1s ease-out; }
.reveal.in { opacity: 1; }
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 1.1s cubic-bezier(.6,.2,.15,1), opacity .4s ease-out;
}
.reveal-clip.in { clip-path: inset(0 0 0 0); opacity: 1; }

/* Stagger helper — nth-child based delays */
.stagger > *:nth-child(1) { transition-delay: 0.00s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }

/* ─── Cursor halo (whole page) ─── */
.cursor-halo {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, oklch(0.75 0.15 40 / 0.06), transparent 60%);
  transform: translate3d(-50%, -50%, 0);
  left: -1000px; top: -1000px;
  z-index: 1;
  transition: opacity .5s;
  will-change: transform;
}

/* ─── Hover button (ported) ─── */
.hover-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  letter-spacing: -0.005em;
  transition: box-shadow .3s, transform .3s;
}
.hover-btn:hover { box-shadow: 0 10px 40px -10px oklch(0.82 0.13 40 / 0.6); }
.hover-btn .label { position: relative; z-index: 2; }
.hover-btn .circle {
  position: absolute;
  width: 88px; height: 88px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 1s, opacity 1s;
  z-index: 1;
}
.hover-btn .circle.in  { transform: translate(-50%, -50%) scale(1);   opacity: 0.5; }
.hover-btn .circle.out { transform: translate(-50%, -50%) scale(1.6); opacity: 0;   }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 22px; border-radius: 999px;
  background: transparent; color: var(--fg);
  font-family: inherit; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ghost-btn:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.25); }

/* ─── Tilt spotlight card ─── */
.tilt-card {
  position: relative;
  perspective: 1200px;
  border-radius: 14px;
}
.tilt-inner {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .15s ease-out;
  border-radius: inherit;
}
.tilt-card .spot {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%),
    rgba(255,255,255,0.12), transparent 60%);
  z-index: 2;
}
.tilt-card:hover .spot { opacity: 1; }

/* ─── Ticker ─── */
.ticker-track {
  display: flex; gap: 64px;
  width: max-content;
  animation: ticker 40s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Live pulse dot ─── */
.pulse-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--growth);
}
.pulse-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: inherit; opacity: 0.45;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* ─── Bars (sparkline-ish) ─── */
@keyframes bar-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.12); } }
.bar { transform-origin: bottom; animation: bar-breathe 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 110ms); }

/* ─── Slot pulse (availability calendar) ─── */
@keyframes slotPulse {
  0%, 100% { border-color: var(--accent); opacity: 1; }
  50%      { border-color: oklch(0.82 0.13 40 / 0.5); opacity: 0.75; }
}

/* ─── Number tabular ─── */
.tab { font-variant-numeric: tabular-nums; }

/* ─── Text gradient ─── */
.text-shine {
  background: linear-gradient(180deg, #fff 0%, #fff 50%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Scroll-big-number ghost ─── */
.big-ghost {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 9rem;
  letter-spacing: -0.035em;
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .6s, transform .15s linear;
  z-index: 0;
}
.big-ghost.in { opacity: 0.06; }

/* ─── Table-like selected work ─── */
.work-row {
  display: grid;
  grid-template-columns: 70px 240px 1fr 220px;
  gap: 40px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: padding .3s ease;
  cursor: pointer;
}
.work-row:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent 70%); }
.work-row:hover .work-arrow { transform: translateX(4px); opacity: 1; }
.work-arrow { opacity: 0.5; transition: transform .3s, opacity .3s; display: inline-block; margin-left: 8px; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
