/* ---------- Theme tokens ---------- */
:root {
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --accent-1: #f04e66;
  --accent-2: #fb5607;
  --accent-3: #22D3EE;

  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-border: #e6e8f0;
  --text: #14161f;
  --text-muted: #565b6d;
  --shadow: 0 10px 30px rgba(20, 22, 31, 0.06);
  --header-bg: rgba(255, 255, 255, 0.8);
  --glass: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] {
  --bg: #0b0c14;
  --bg-alt: #10121c;
  --surface: #14161f;
  --surface-border: #262a3a;
  --text: #f2f3f8;
  --text-muted: #9a9fb5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(11, 12, 20, 0.75);
  --glass: rgba(18, 20, 30, 0.68);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c14;
    --bg-alt: #10121c;
    --surface: #14161f;
    --surface-border: #262a3a;
    --text: #f2f3f8;
    --text-muted: #9a9fb5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(11, 12, 20, 0.75);
    --glass: rgba(18, 20, 30, 0.68);
  }
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
button { font-family: inherit; }

.container { width: min(1120px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent-1); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--surface-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand-accent { color: var(--accent-2); font-weight: 500; }
.brand-sm .brand-word { font-size: 1rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  position: relative;
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1), right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a:not(.nav-cta):hover::after { left: 0; right: 0; }
.nav-cta {
  background: var(--text); color: var(--bg) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600 !important;
}
:root[data-theme="dark"] .nav-cta { background: var(--accent-2); color: #fff !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-cta { background: var(--accent-2); color: #fff !important; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--surface-border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.icon-sun, .icon-moon {
  position: absolute; top: 50%; left: 50%;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-sun { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
.icon-moon { transform: translate(-50%, -50%) rotate(-90deg) scale(0.4); opacity: 0; }
:root[data-theme="dark"] .icon-sun { transform: translate(-50%, -50%) rotate(90deg) scale(0.4); opacity: 0; }
:root[data-theme="dark"] .icon-moon { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { transform: translate(-50%, -50%) rotate(90deg) scale(0.4); opacity: 0; }
  :root:not([data-theme="light"]) .icon-moon { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
}
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 500px;
  background: radial-gradient(60% 60% at 30% 30%, rgba(240,78,102,0.16), transparent 70%),
              radial-gradient(50% 50% at 80% 20%, rgba(34,211,238,0.14), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center; }
.hero-copy { max-width: 640px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600;
  color: var(--accent-1);
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.text-gradient {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.1rem; max-width: 60ch; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 0; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #b8791f 0%, #f2c464 25%, #b8791f 50%, #f2c464 75%, #b8791f 100%);
  background-size: 250% 100%;
  color: #3b2404;
  box-shadow: 0 8px 20px rgba(184, 121, 31, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 121, 31, 0.45); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}
.btn-primary:hover::after { left: 130%; }

@media (prefers-reduced-motion: no-preference) {
  .btn-primary { animation: gold-shine 3.5s linear infinite; }
}
@keyframes gold-shine {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--surface-border); }
.btn-ghost:hover { border-color: var(--accent-2); transform: translateY(-2px); }


/* Hero visual — one glass panel per service, stacked isometrically, with data streaming along the stack */
.hero-visual { position: relative; height: 480px; perspective: 1600px; }
.hero-particles {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
  mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.iso-scene {
  position: absolute; left: 50%; top: 46%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-38deg) translateZ(135px);
}
.iso-panel {
  position: absolute; width: 200px; height: 200px; margin: -100px 0 0 -100px;
  transform-style: preserve-3d; transform: translateZ(calc(var(--i) * -90px));
}
.iso-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 20px;
  background: radial-gradient(circle at 25% 15%, rgba(255,255,255,0.22), transparent 55%), var(--glass);
  border: 1.5px solid var(--c1);
  box-shadow: 0 0 22px -8px var(--c1), inset 0 0 34px -14px var(--c2);
}
.iso-face::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, var(--c1), var(--c2)); opacity: 0.16;
}
.iso-face::after {
  content: ""; position: absolute; left: 0; right: 0; top: -45%; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.28), transparent);
}
.iso-icon { position: relative; display: block; margin: 22px 22px 16px; color: var(--c1); }
.iso-line {
  position: relative; display: block; width: 62%; height: 6px; margin: 10px 22px 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: 0.55; transform-origin: left center;
}
.iso-line:nth-of-type(2) { width: 44%; }
.iso-line:nth-of-type(3) { width: 72%; }
.iso-line:nth-of-type(4) { width: 34%; }
/* Thickness: a strip off the right edge and one off the top edge, each folded back into the scene */
.iso-side, .iso-top { position: absolute; background: linear-gradient(180deg, var(--c1), var(--c2)); }
.iso-side {
  top: 12px; bottom: 12px; right: -20px; width: 20px; border-radius: 4px; opacity: 0.6;
  transform-origin: left center; transform: rotateY(90deg);
}
.iso-top {
  left: 12px; right: 12px; top: -20px; height: 20px; border-radius: 4px; opacity: 0.9;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transform-origin: center bottom; transform: rotateX(90deg);
}
.iso-top span { font: 700 10px/1 var(--font-heading); letter-spacing: 0.3em; text-transform: uppercase; color: #fff; }

/* Highlights floating around the stack, each tied to it by a short glowing connector */
.iso-callouts { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.iso-callout {
  position: absolute; max-width: 210px; padding: 12px 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid rgba(240, 78, 102, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(10, 12, 20, 0.18), 0 0 18px -6px rgba(240, 78, 102, 0.5);
}
.iso-callout dt { font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem; color: var(--text); }
.iso-callout dd { margin: 3px 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }
.iso-callout::before {
  content: ""; position: absolute; top: 50%; width: 34px; height: 1.5px;
  background: linear-gradient(90deg, rgba(240, 78, 102, 0), var(--accent-1));
}
.iso-callout::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -2.75px; border-radius: 50%;
  background: var(--accent-1); box-shadow: 0 0 10px 2px rgba(240, 78, 102, 0.7);
}
.iso-callout-1 { left: 0; top: -2%; }
.iso-callout-2 { right: -4%; bottom: 10%; }
.iso-callout-3 { left: 2%; bottom: -2%; }
.iso-callout-1::before, .iso-callout-3::before { left: 100%; transform: scaleX(-1); }
.iso-callout-1::after, .iso-callout-3::after { left: calc(100% + 32px); }
.iso-callout-2::before { right: 100%; }
.iso-callout-2::after { right: calc(100% + 32px); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; margin-top: 8px; }
  .iso-scene { scale: 0.8; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--accent-2);
  margin-bottom: 8px;
}
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { max-width: 60ch; font-size: 1.02rem; }

.card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(240,78,102,0.12), rgba(251,86,7,0.12));
  color: var(--accent-1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; }

/* 3D services ring — JS places each card around the circle, spins the ring, and handles drag */
.carousel-3d {
  position: relative; margin-top: 40px; padding: 32px 0 8px;
  overflow: hidden; outline: none;
}
.carousel-3d::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 70%; height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(240,78,102,0.22), rgba(251,86,7,0.08) 55%, transparent);
  filter: blur(30px); pointer-events: none;
}
.carousel-stage {
  position: relative; height: 340px;
  perspective: 1150px; perspective-origin: 50% 30%;
  touch-action: pan-y; cursor: grab;
}
.carousel-stage.is-dragging { cursor: grabbing; }
.carousel-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.carousel-ring .card {
  --card-w: min(270px, 62vw);
  position: absolute; top: 0; left: 50%; width: var(--card-w); margin-left: calc(var(--card-w) / -2);
  min-height: 320px; padding: 30px 26px;
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}
.carousel-ring .card .card-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 24px; }
.carousel-ring .card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.carousel-ring .card p { font-size: 0.98rem; line-height: 1.65; }
.carousel-ring .card.is-active {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 1px rgba(240,78,102,0.35), 0 24px 60px rgba(240,78,102,0.28);
}
.carousel-ring .card.is-active .card-icon {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 20px rgba(240,78,102,0.35);
}
.carousel-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.carousel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--surface-border); background: var(--surface); color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.carousel-btn:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-1px); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; border-color: var(--surface-border); color: var(--text); transform: none; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-border); transition: width 0.3s ease, background 0.3s ease;
}
.carousel-dot[aria-current="true"] { width: 26px; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }
.carousel-3d:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-1); border-radius: 16px; }

/* Clients fan carousel — JS sets --d (signed offset from the centre card) and --ad (its absolute value) */
.fan-carousel { position: relative; margin-top: 40px; padding: 16px 0 8px; overflow: hidden; outline: none; }
.fan-carousel:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-1); border-radius: 16px; }
.fan-stage { position: relative; height: 420px; perspective: 1400px; touch-action: pan-y; }
.fan-card {
  --w: min(260px, 64vw);
  position: absolute; top: 8px; left: 50%; width: var(--w); height: 360px; margin-left: calc(var(--w) / -2);
  display: flex; flex-direction: column; padding: 20px;
  border-radius: 28px; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none;
  color: #fff;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255,255,255,0.28), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(0,0,0,0.28), transparent 60%),
    linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 18px 40px rgba(10, 12, 20, 0.28);
  transform-origin: 50% 120%;
  transform:
    translateX(calc(var(--d, 0) * 62%))
    translateY(calc(var(--ad, 0) * var(--ad, 0) * 9px))
    rotate(calc(var(--d, 0) * 7deg))
    rotateY(calc(var(--d, 0) * -9deg))
    scale(calc(1 - var(--ad, 0) * 0.07));
  filter: brightness(calc(1 - var(--ad, 0) * 0.14));
}
.fan-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.fan-card.is-active { cursor: default; box-shadow: 0 28px 60px rgba(10, 12, 20, 0.4); }
.fan-logo {
  flex: 1; display: grid; place-items: center; padding: 22px;
  background: rgba(255,255,255,0.95); border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.fan-logo img { width: 100%; height: auto; max-height: 110px; object-fit: contain; pointer-events: none; }
.fan-monogram {
  font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fan-meta { padding: 18px 4px 2px; }
.fan-meta h3 { color: #fff; font-size: 1.12rem; margin: 0 0 4px; }
.fan-meta p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.88rem; }

@media (max-width: 720px) {
  .fan-stage { height: 400px; }
  .fan-card {
    transform:
      translateX(calc(var(--d, 0) * 48%))
      translateY(calc(var(--ad, 0) * var(--ad, 0) * 9px))
      rotate(calc(var(--d, 0) * 6deg))
      scale(calc(1 - var(--ad, 0) * 0.09));
  }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.check-list { margin-top: 20px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.97rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff;
}

.about-panel { position: relative; }
.panel-glow {
  position: absolute; inset: -10%; background: radial-gradient(60% 60% at 50% 50%, rgba(251,86,7,0.22), transparent 70%);
  filter: blur(30px); z-index: -1;
}
.panel-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.panel-row { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-a { background: var(--accent-1); }
.dot-b { background: var(--accent-2); }
.dot-c { background: var(--accent-3); }
.dot-d { background: #34d399; }

/* Process */
/* Curved panorama — panels sit on the inside of a cylinder; JS rotates it and handles drag */
.section-process { overflow: hidden; }
.process-slider { position: relative; margin: 32px calc(50% - 50vw) 0; outline: none; }
.process-slider:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-1); }
.process-stage { position: relative; height: 470px; touch-action: pan-y; cursor: grab; }
.process-stage.is-dragging { cursor: grabbing; }
/* The track is pushed toward the camera, so it must not swallow clicks meant for the cards. */
.process-track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; pointer-events: none; }
.process-card {
  --w: min(210px, 60vw); --h: 330px;
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  display: flex; flex-direction: column; padding: 26px 22px;
  border-radius: 18px; overflow: hidden; color: #fff;
  user-select: none; -webkit-user-select: none; backface-visibility: hidden; pointer-events: auto;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255,255,255,0.26), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(0,0,0,0.3), transparent 60%),
    linear-gradient(165deg, var(--c1), var(--c2));
  box-shadow: 0 20px 50px rgba(10, 12, 20, 0.3), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.process-num { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.process-icon {
  width: 52px; height: 52px; margin-top: 18px; border-radius: 14px;
  display: grid; place-items: center; background: rgba(255,255,255,0.18);
}
.process-body { margin-top: auto; }
.process-body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.process-body p { color: rgba(255,255,255,0.9); margin: 0; font-size: 0.95rem; }

@media (max-width: 720px) {
  .process-stage { height: 430px; }
  .process-card { --h: 330px; }
}

/* Contact */
.section-cta { background: var(--bg-alt); }
.cta-inner { max-width: 640px; }
.contact-links { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.contact-links .btn { gap: 10px; }

/* Contact — a lighthouse whose fan of light sweeps across the contact details, lighting them as it passes */
.section-night {
  position: relative; overflow: hidden; color: #f3eee4;
  background:
    radial-gradient(70% 90% at 82% 25%, rgba(130, 88, 30, 0.38), transparent 62%),
    linear-gradient(180deg, #0b0a0d 0%, #110f13 100%);
}
.section-night .section-sub { color: rgba(240, 232, 216, 0.82); }
/* The rays are drawn on a canvas above the lighthouse but below the text, so the copy stays crisp. */
.lh-rays {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none;
  filter: blur(3px); mix-blend-mode: screen;
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.section-night .cta-inner { position: relative; z-index: 4; align-self: center; }
.lighthouse { position: relative; z-index: 2; width: 210px; margin: -40px 6% -88px 0; }
.lighthouse svg { display: block; width: 100%; height: auto; }
.section-night .contact-links .btn {
  --lit: var(--beam-lit, 0);
  box-shadow: 0 0 calc(var(--lit) * 40px) calc(var(--lit) * 5px) rgba(255, 206, 110, calc(var(--lit) * 0.6));
  filter: brightness(calc(0.85 + var(--lit) * 0.3));
}
.section-night .contact-links .btn:hover,
.section-night .contact-links .btn:focus-visible { --lit: 1; }
.section-night .btn-ghost {
  color: #f3eee4; border-color: rgba(255, 236, 200, 0.26);
  background: rgba(255, 220, 160, calc(0.04 + var(--lit) * 0.12));
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .lighthouse { width: 140px; justify-self: end; margin: 8px 4% -64px 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--surface-border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-panel { order: -1; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed; inset: 64px 16px auto 16px; z-index: 40;
    background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px;
    padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.2s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { width: 100%; padding: 10px 8px; border-radius: 8px; }
  .nav-cta { margin-top: 6px; text-align: center; }
  .nav-burger { display: inline-flex; }
  .hero { padding: 64px 0 48px; }
  .hero-visual { height: 390px; }
  .iso-scene { scale: 0.7; }
  .iso-callout { max-width: 158px; padding: 9px 12px; }
  .iso-callout dt { font-size: 0.86rem; }
  .iso-callout dd { font-size: 0.72rem; }
  .iso-callout::before { width: 20px; }
  .iso-callout-1::after, .iso-callout-3::after { left: calc(100% + 18px); }
  .iso-callout-2::after { right: calc(100% + 18px); }
  .iso-callout-1 { left: 0; top: -6%; }
  .iso-callout-2 { right: -2%; bottom: 0; }
  .iso-callout-3 { left: 0; bottom: 0; }
  .iso-callout-2::before, .iso-callout-2::after, .iso-callout-3::before, .iso-callout-3::after { display: none; }
  .section { padding: 64px 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-drift 18s ease-in-out infinite alternate; }

  .hero .eyebrow, .hero h1, .hero-sub, .hero-actions {
    opacity: 0;
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.15s; }
  .hero-sub { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.42s; }
  .hero-visual { opacity: 0; animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
  .iso-scene { animation: iso-float 7s ease-in-out infinite alternate; }
  .iso-callout { opacity: 0; animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, iso-float 6s ease-in-out infinite alternate; }
  .iso-callout-1 { animation-delay: 0.9s, 0s; }
  .iso-callout-2 { animation-delay: 1.1s, -2s; }
  .iso-callout-3 { animation-delay: 1.3s, -4s; }
  .iso-face { animation: iso-pulse 4.8s ease-in-out infinite; animation-delay: calc((3 - var(--i)) * 0.55s); }
  .iso-face::after { animation: iso-scan 3.6s linear infinite; animation-delay: calc(var(--i) * -0.9s); }
  .iso-line { animation: iso-code 2.8s ease-in-out infinite alternate; }
  .iso-line:nth-of-type(2) { animation-delay: -0.7s; }
  .iso-line:nth-of-type(3) { animation-delay: -1.4s; }
  .iso-line:nth-of-type(4) { animation-delay: -2.1s; }

  .reveal, .about-copy, .about-panel, .cta-inner {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .about-copy { transform: translateX(-28px); }
  .about-panel { transform: translateX(28px); }
  :where(.in-view).reveal,
  :where(.in-view).about-copy,
  :where(.in-view).about-panel,
  :where(.in-view).cta-inner {
    opacity: 1; transform: translate(0, 0);
  }

  .fan-card {
    transition: transform 0.75s cubic-bezier(0.22, 0.8, 0.2, 1), filter 0.75s ease, box-shadow 0.5s ease;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2%, -3%) scale(1.06); }
}

@keyframes iso-float {
  from { translate: 0 6px; }
  to { translate: 0 -10px; }
}
@keyframes iso-pulse {
  0%, 100% { box-shadow: 0 0 22px -8px var(--c1), inset 0 0 34px -14px var(--c2); }
  50% { box-shadow: 0 0 46px -4px var(--c1), inset 0 0 46px -10px var(--c2); }
}
@keyframes iso-scan {
  from { top: -45%; }
  to { top: 110%; }
}
@keyframes iso-code {
  from { transform: scaleX(0.55); opacity: 0.35; }
  to { transform: scaleX(1); opacity: 0.7; }
}
