/* ============================================================
   Glintvex brand-derived design system
   Palette (from brand guidelines):
   Primary Black   #071514   Secondary Black #0C3432
   Primary White   #FFFFFF   Text Gradient   #FFFFFF→#BBBBBB
   Horizon         #8AAAD9 / #3E88FF   Oceanic #1248A6
   Typeface: Satoshi
   ============================================================ */

:root {
  --ink: #071514;
  --ink-2: #0a1c1a;
  --surface: #0c3432;
  --surface-soft: rgba(12, 52, 50, 0.45);
  --white: #ffffff;
  --grad-a: #ffffff;
  --grad-b: #bbbbbb;
  --horizon-1: #8aaad9;
  --horizon-2: #3e88ff;
  --oceanic: #1248a6;
  --cyan: #2ee6d6;
  --violet: #8b7bf0;

  --text: #eef3f2;
  --text-dim: #9fb3b0;
  --text-faint: #859b98; /* AA-compliant on #071514 (~4.6:1) */
  --positive: var(--horizon-1); /* on-brand "up"/active accent (no off-palette green) */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle blueprint grid + horizon glow */
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(62, 136, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(12, 52, 50, 0.55), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: scroll;
}
/* parallax-fixed background only on capable desktop pointers (avoids mobile scroll jank) */
@media (min-width: 1025px) and (pointer: fine) {
  body { background-attachment: fixed, fixed, scroll, scroll; }
}

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- selection & focus ---------- */
::selection { background: rgba(62, 136, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--horizon-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(62, 136, 255, 0.10), transparent 60%);
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(62, 136, 255, 0.0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(62, 136, 255, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 21, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { height: 26px; width: auto; }
.brand-mark { height: 30px; width: auto; display: none; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.9rem; color: var(--text-dim);
  display: inline-flex; align-items: baseline; gap: 7px;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--white); }
.nav-idx { font-size: 0.68rem; color: var(--text-faint); font-weight: 500; letter-spacing: 0.05em; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  width: 42px; height: 42px; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 1.6px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 21, 20, 0.96);
  backdrop-filter: blur(14px);
}
.mobile-nav a { padding: 14px 4px; color: var(--text-dim); border-bottom: 1px solid var(--line); display: flex; gap: 9px; align-items: baseline; }
.mobile-nav a.btn { justify-content: center; color: var(--ink); margin-top: 14px; border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ============ HERO ============ */
.hero { position: relative; z-index: 1; padding-top: clamp(32px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 5vw, 80px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500;
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--horizon-2); box-shadow: 0 0 0 0 rgba(62,136,255,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,136,255,0.55); } 70% { box-shadow: 0 0 0 9px rgba(62,136,255,0); } 100% { box-shadow: 0 0 0 0 rgba(62,136,255,0); } }

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--white);
}
.grad-text {
  background: linear-gradient(100deg, var(--cyan), var(--horizon-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { margin-top: 22px; max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--text-dim); }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
/* ---- hero panel / orbital ---- */
.hero-panel { position: relative; }
.panel-glow {
  position: absolute; inset: -18% -8% -8% -8%; z-index: -1;
  background: radial-gradient(58% 58% at 68% 22%, rgba(62, 136, 255, 0.34), transparent 70%),
              radial-gradient(50% 50% at 22% 78%, rgba(46, 230, 214, 0.20), transparent 70%),
              radial-gradient(55% 55% at 10% 90%, rgba(12, 52, 50, 0.7), transparent 70%);
  filter: blur(8px);
}
/* ---- interactive tech-stack orbital ---- */
.orbital { position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1; }
.orbital-rotor { position: absolute; inset: 0; animation: orbit-spin 64s linear infinite; }
.orbital svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbital-ring { fill: none; stroke: rgba(255,255,255,0.1); stroke-dasharray: 2 7; }
.orbital-flow { fill: none; stroke: var(--cyan); stroke-opacity: 0.24; stroke-width: 1.2; stroke-linecap: round; transition: stroke-opacity 0.22s ease, stroke-width 0.22s ease, stroke 0.22s ease; }
.orbital-flow.is-hot { stroke-opacity: 0.65; stroke-width: 1.9; }
.orbital-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.orbital-node-inner { animation: orbit-spin 64s linear infinite reverse; }
.orbital-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: linear-gradient(160deg, rgba(26,82,77,0.96), rgba(13,38,36,0.96));
  border: 1.6px solid rgba(206,228,255,0.62); border-radius: 100px;
  padding: 7px 13px 7px 10px; color: #ffffff; font-size: 0.8rem; font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.95), 0 0 16px -4px rgba(94,234,212,0.3);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: default;
}
.orbital-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 9px currentColor; }
.orbital-node.is-hot .orbital-pill { transform: translateY(-2px) scale(1.07); border-color: var(--horizon-2); color: #fff; box-shadow: 0 16px 32px -12px rgba(62,136,255,0.7); }
.orbital-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: clamp(82px, 21%, 110px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 32% 26%, #259084 0%, #114944 46%, #06100f 100%);
  border: 2.5px solid rgba(120,240,222,0.85);
  box-shadow: 0 0 0 1px rgba(120,240,222,0.35), 0 0 50px -2px rgba(46,230,214,0.55), 0 20px 44px -14px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.16);
}
.orbital-core span { font-weight: 900; font-size: clamp(0.95rem, 2.4vw, 1.18rem); color: #ffffff; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(94,234,212,0.45); }
.orbital-core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed rgba(120,240,222,0.32); animation: orbit-spin 26s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* ---- marquee ---- */
.marquee {
  margin-top: clamp(34px, 5vw, 60px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 14px; white-space: nowrap; width: max-content; animation: scroll-x 42s linear infinite; will-change: transform; }
.marquee-track span { color: var(--text-dim); font-size: 0.84rem; letter-spacing: 0.02em; font-weight: 500; border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; background: rgba(255,255,255,0.02); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { position: relative; z-index: 1; padding: clamp(52px, 7vw, 100px) 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.section-head { max-width: 640px; margin-bottom: clamp(26px, 4vw, 46px); }
.section-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head--center .section-lede { margin-inline: auto; }
.eyebrow--accent { display: inline-flex; margin-bottom: 18px; color: var(--horizon-1); border-color: rgba(138,170,217,0.3); }
.grad-accent { background: linear-gradient(100deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.08; }
.section-lede { margin-top: 18px; color: var(--text-dim); font-size: clamp(1rem, 1.3vw, 1.12rem); }

/* ---- capabilities ---- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap-card { background: var(--ink); padding: clamp(24px, 3vw, 36px); position: relative; transition: background 0.3s var(--ease); min-height: 250px; display: flex; flex-direction: column; isolation: isolate; }
.cap-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(62,136,255,0.16), transparent 70%); transition: opacity 0.4s var(--ease); }
.cap-card:hover { background: var(--surface-soft); }
.cap-card:hover::before { opacity: 1; }
.cap-num { position: absolute; top: 22px; right: 24px; font-size: 0.74rem; color: var(--text-faint); font-weight: 500; }
.cap-icon { color: var(--cyan); margin-bottom: 22px; height: 28px; transition: color 0.3s ease, transform 0.4s var(--ease); }
.cap-icon svg { width: 28px; height: 28px; display: block; }
.cap-card:hover .cap-icon { color: var(--horizon-2); transform: translateY(-3px) scale(1.08); }
.cap-card h3 { margin-top: 26px; font-size: 1.25rem; font-weight: 700; color: var(--white); }
.cap-card p { margin-top: 12px; color: var(--text-dim); font-size: 0.95rem; }

/* ---- work ---- */
.work-grid { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: rgba(62,136,255,0.5) transparent; }
.work-grid::-webkit-scrollbar { height: 8px; }
.work-grid::-webkit-scrollbar-thumb { background: rgba(62,136,255,0.45); border-radius: 100px; }
.work-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 100px; }
.work-grid > .work-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.work-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: rgba(255,255,255,0.012); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease); cursor: default; overflow: hidden; display: flex; flex-direction: column; }
.work-card:hover, .work-card:focus-visible { transform: translateY(-6px); border-color: rgba(62,136,255,0.4); background: var(--surface-soft); }
.work-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.work-code { font-size: 0.74rem; letter-spacing: 0.08em; color: var(--horizon-1); font-weight: 500; }
.work-state { font-size: 0.7rem; color: var(--horizon-1); border: 1px solid rgba(138,170,217,0.35); border-radius: 100px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; }
.work-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--horizon-2); box-shadow: 0 0 7px rgba(62,136,255,0.8); }
.work-card h3 { font-size: 1.2rem; color: var(--white); font-weight: 700; }
.work-card p:not(.work-quote) { margin-top: 12px; color: var(--text-dim); font-size: 0.94rem; flex: 1; }
.work-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.work-stack li { font-size: 0.74rem; color: var(--text-faint); background: rgba(255,255,255,0.04); border-radius: 6px; padding: 4px 9px; }
.work-thumb { margin: -26px -26px 22px; aspect-ratio: 16 / 10; background: var(--surface-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.4s var(--ease); }
.work-card:hover .work-thumb img { transform: scale(1.03); }
.work-thumb--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(62,136,255,0.14), rgba(12,52,50,0.25)); }
.work-thumb--placeholder span { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.work-card .work-quote { margin-top: 16px; font-size: 0.84rem; font-style: italic; color: var(--text-faint); flex: none; }
.work-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; max-width: none; }
.work-head-main { max-width: 620px; }
.work-head-cta { flex-shrink: 0; }
.work-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; }
.work-stats li { display: flex; flex-direction: column; gap: 3px; }
.work-stats strong { font-size: 1.35rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1; }
.work-stats span { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.012); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); overflow: hidden; }
.team-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.team-portrait {
  width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, #143f3c, #071514 72%);
  border-bottom: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
}
.team-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s var(--ease); }
.team-card:hover .team-portrait img { transform: scale(1.04); }
.team-body { padding: 24px; }
.team-body h3 { font-size: 1.2rem; color: var(--white); font-weight: 700; }
.team-role { color: var(--horizon-1); font-size: 0.84rem; margin: 6px 0 12px; }
.team-body p:last-child { color: var(--text-dim); font-size: 0.92rem; }

/* ---- CTA / funnel ---- */
.cta-head { max-width: 880px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.cta-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.1; white-space: nowrap; }

.funnel { display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; gap: 20px; align-items: stretch; }
.funnel-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: var(--surface-soft); display: flex; flex-direction: column; }
.funnel-step { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--horizon-1); font-weight: 500; }
.funnel-card h3 { margin-top: 12px; font-size: 1.5rem; color: var(--white); font-weight: 700; }
.funnel-lede { margin-top: 10px; color: var(--text-dim); font-size: 0.96rem; }

.cta-form { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.cta-form input, .cta-form textarea, .book-form input {
  font-family: var(--font); font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 13px 16px; width: 100%;
  transition: border-color 0.25s ease;
}
.cta-form textarea { resize: vertical; border-radius: 12px; line-height: 1.5; }
.cta-form input::placeholder, .cta-form textarea::placeholder, .book-form input::placeholder { color: var(--text-faint); }
.cta-form input:focus, .cta-form textarea:focus, .book-form input:focus { border-color: var(--horizon-2); outline: none; }
.cta-form .btn { width: 100%; }
.cta-hint { margin-top: 14px; font-size: 0.9rem; min-height: 1.2em; color: var(--horizon-1); }

/* ---- booking calendar ---- */
.booking { margin-top: 22px; flex: 1; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-weight: 700; color: var(--white); font-size: 1.02rem; }
.cal-nav { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font-size: 1.2rem; cursor: pointer; line-height: 1; transition: background 0.2s ease, border-color 0.2s ease; }
.cal-nav:hover:not(:disabled) { background: rgba(255,255,255,0.06); border-color: var(--white); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px;
  background: transparent; color: var(--text); font-family: var(--font); font-size: 0.9rem;
  cursor: pointer; transition: all 0.18s ease; font-variant-numeric: tabular-nums;
}
.cal-day:hover:not(:disabled) { border-color: var(--horizon-2); background: rgba(62,136,255,0.12); color: #fff; }
.cal-day.is-empty { border: none; background: none; cursor: default; }
.cal-day:disabled { color: var(--text-faint); opacity: 0.35; cursor: not-allowed; }
.cal-day.is-today { border-color: var(--horizon-1); }
.cal-day.is-selected { background: var(--horizon-2); border-color: var(--horizon-2); color: #fff; font-weight: 700; }
.cal-note { margin-top: 12px; font-size: 0.75rem; color: var(--text-faint); }

.slots-date { color: var(--white); font-weight: 700; margin: 14px 0 12px; }
.back-link { background: none; border: none; color: var(--horizon-1); cursor: pointer; font-family: var(--font); font-size: 0.85rem; padding: 0; }
.back-link:hover { color: #fff; }
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,0.03);
  color: var(--text); font-family: var(--font); font-size: 0.9rem; padding: 11px 6px; cursor: pointer;
  transition: all 0.18s ease; font-variant-numeric: tabular-nums;
}
.slot:hover:not(:disabled) { border-color: var(--horizon-2); color: #fff; }
.slot.is-selected { background: var(--horizon-2); border-color: var(--horizon-2); color: #fff; font-weight: 700; }
.slot:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.slots-empty { color: var(--text-dim); font-size: 0.9rem; padding: 8px 0; }
.book-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.book-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.booked { text-align: center; padding: 20px 0; }
.booked-check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: rgba(62,136,255,0.16); border: 1px solid var(--horizon-2); color: var(--horizon-1); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.booked h4 { font-size: 1.4rem; color: var(--white); font-weight: 700; }
.booked-detail { margin-top: 10px; color: var(--text-dim); }
.booked-ref { margin-top: 8px; color: var(--text-faint); font-size: 0.85rem; }
.booked-ref strong { color: var(--horizon-1); font-variant-numeric: tabular-nums; }
.booked .btn { margin-top: 20px; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); position: relative; z-index: 1; background: linear-gradient(180deg, transparent, rgba(12,52,50,0.25)); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-mark { height: 34px; width: auto; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; }
.footer-mid { display: flex; flex-direction: column; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 0.88rem; color: var(--text-dim); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-health { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.footer-health strong { color: var(--white); font-weight: 500; }
.footer-health .sep { color: var(--text-faint); }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--horizon-2); box-shadow: 0 0 8px rgba(62,136,255,0.85); }
.footer-subscribe label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 12px; }
.term-line { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; background: rgba(0,0,0,0.25); font-family: var(--font); }
.term-line:focus-within { border-color: var(--horizon-2); }
.term-prompt { color: var(--horizon-1); font-size: 0.84rem; white-space: nowrap; }
.term-line input { flex: 1; background: none; border: none; color: var(--white); font-family: var(--font); font-size: 0.9rem; min-width: 0; }
.term-line input:focus { outline: none; }
.term-line input::placeholder { color: var(--text-faint); }
.term-line button { background: var(--white); color: var(--ink); border: none; width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 0.95rem; transition: transform 0.2s ease; }
.term-line button:hover { transform: scale(1.08); }
.sub-hint { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--horizon-1); min-height: 1em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-faint); }

/* ---- drifting ambient glows ---- */
.drift { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }
.drift-a { width: 380px; height: 380px; top: 4%; left: 8%; background: rgba(62,136,255,0.10); animation: drift 18s ease-in-out infinite alternate; }
.drift-b { width: 320px; height: 320px; bottom: 6%; right: 10%; background: rgba(12,52,50,0.55); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, -30px); } }
.pricing .container { position: relative; z-index: 1; }

/* ---- work carousel arrow ---- */
.work-rail { position: relative; }
.work-arrow {
  position: absolute; top: -56px; right: 0; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(62,136,255,0.12); border: 1px solid rgba(62,136,255,0.45);
  color: var(--white); font-size: 1.15rem; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  animation: arrow-bob 1.8s ease-in-out infinite;
}
.work-arrow:hover { background: rgba(62,136,255,0.28); border-color: var(--horizon-2); }
@keyframes arrow-bob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ---- pricing / packages ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; position: relative; z-index: 1; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.014); padding: clamp(24px, 2.6vw, 34px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-soft); }
.price-card--popular { border-color: rgba(62,136,255,0.55); background: linear-gradient(180deg, rgba(62,136,255,0.08), rgba(255,255,255,0.014)); box-shadow: 0 30px 70px -40px rgba(62,136,255,0.6); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(100deg, var(--horizon-1), var(--horizon-2));
  border-radius: 100px; padding: 5px 14px; white-space: nowrap;
}
.price-head h3 { font-size: 1.35rem; font-weight: 700; color: var(--white); }
.price-meta { margin-top: 6px; font-size: 0.82rem; color: var(--horizon-1); font-weight: 500; }
.price-desc { margin-top: 16px; color: var(--text-dim); font-size: 0.94rem; }
.price-features { list-style: none; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li { position: relative; padding-left: 26px; font-size: 0.9rem; color: var(--text); }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background-color: rgba(62,136,255,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E88FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.price-ideal { margin-top: 20px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 0.85rem; color: var(--text-dim); }
.price-ideal span { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--text-faint); margin-bottom: 4px; }
.price-cta { margin-top: 22px; width: 100%; }

/* ---- single-line headings (wrap on smaller screens) ---- */
#team .section-title { white-space: nowrap; }
#pricing .section-head { max-width: 980px; }
#pricing .section-lede { white-space: nowrap; font-size: clamp(0.82rem, 1.5vw, 1rem); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: 2; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid > .work-card { flex-basis: calc((100% - 20px) / 2); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .funnel { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  #pricing .section-lede { white-space: normal; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .brand-lockup { display: none; }
  .brand-mark { display: block; }
  .team-grid, .cap-grid, .footer-top { grid-template-columns: 1fr; }
  .work-grid > .work-card { flex-basis: 84%; }
  .book-fields { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-title { white-space: normal; font-size: clamp(1.5rem, 7vw, 2rem); }
  #team .section-title { white-space: normal; }
  .work-arrow { top: -50px; width: 40px; height: 40px; }
  .footer-bottom { flex-direction: column; }
  /* WCAG 2.5.5: larger tap targets on touch screens */
  .term-line button { width: 40px; height: 40px; }
  .term-line { padding: 8px 10px 8px 14px; }
  .nav-idx { display: none; } /* declutter mobile menu rows */
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
