/* ============================================
   JKB GLOBAL — PORTFOLIO  ·  "Obsidian & Foil" v3.0
   Quiet, deliberate. Black glass, champagne-gold foil,
   and exactly one cool-blue planet per orbital system.
============================================ */

/* ===== TOKENS =====
   The dark set is declared on :root AND on every permanently-dark band, so a
   dark band keeps its own tokens even when the page is switched to light. */
:root,
#hero, #navbar, .mobile-menu, #featured-projects, #pricing, #contact, #footer,
.pricing-card.featured, .faq-section, .projects-cta, .projects-cta-new, .page-hero, .projects-hero,
.lightbox {
  --gold: #d99a4e;
  --gold-light: #e6b077;
  --gold-text: #d99a4e;
  --gold-text-hover: #e6b077;
  --champagne: #f6dfb8;
  --gold-deep: #a8691f;
  --blue: #9fb4ff;
  --gold-pale: rgba(217,154,78,0.10);
  --gold-border: rgba(217,154,78,0.28);
  --gold-glow: rgba(217,154,78,0.22);
  --foil: linear-gradient(120deg, #fbe9c6 0%, #eec58a 30%, #d99a4e 64%, #b97a2f 100%);
  --foil-text: linear-gradient(115deg, #fff3da 0%, #f3cf98 34%, #dca256 68%, #c58634 100%);

  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --bg-dark: #050505;
  --bg-dark-2: #0d0d0d;
  --bg-dark-3: #131313;
  --bg-rgb: 10,10,10;

  --text: #f2f0ec;
  --text-2: rgba(242,240,236,0.66);
  --text-muted: rgba(242,240,236,0.46);
  --text-light: rgba(242,240,236,0.26);
  --border: rgba(242,240,236,0.10);

  --glass: linear-gradient(150deg, rgba(255,255,255,0.085) 0%, rgba(255,255,255,0.028) 55%, rgba(255,255,255,0.05) 100%);
  --glass-edge: linear-gradient(150deg, rgba(251,233,198,0.60), rgba(217,154,78,0.10) 38%, rgba(217,154,78,0.30) 100%);
  --glass-border: rgba(230,176,119,0.20);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,0.10);
  --chip-bg: rgba(255,255,255,0.05);
  --field-bg: rgba(255,255,255,0.045);
  --field-bg-focus: rgba(255,255,255,0.075);

  --shadow: 0 10px 30px rgba(0,0,0,0.30);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.50);
}

:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 12px;
  --max: 1160px;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg: #f8f6f2;
  --bg-2: #ffffff;
  --bg-3: #efe9df;
  --bg-dark: #121212;
  --bg-dark-2: #1a1a1a;
  --bg-dark-3: #202020;
  --bg-rgb: 248,246,242;

  --text: #17140f;
  --text-2: rgba(23,20,15,0.68);
  --text-muted: rgba(23,20,15,0.50);
  --text-light: rgba(23,20,15,0.30);
  --border: rgba(23,20,15,0.10);

  --foil-text: linear-gradient(115deg, #c98a3b 0%, #a8691f 55%, #8a5415 100%);
  --gold-text: #a8691f;
  --gold-text-hover: #8a5415;
  --gold-border: rgba(168,105,31,0.32);
  --glass: linear-gradient(150deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.62) 100%);
  --glass-edge: linear-gradient(150deg, rgba(168,105,31,0.55), rgba(168,105,31,0.10) 40%, rgba(168,105,31,0.32) 100%);
  --glass-border: rgba(168,105,31,0.24);
  --glass-hi: inset 0 1px 0 #ffffff;
  --chip-bg: rgba(255,255,255,0.70);
  --field-bg: rgba(23,20,15,0.035);
  --field-bg-focus: rgba(255,255,255,0.95);

  --shadow: 0 10px 30px rgba(60,40,10,0.08);
  --shadow-lg: 0 24px 64px rgba(60,40,10,0.14);
}

/* ===== PAGE TRANSITIONS (CSS View Transitions API) =====
   Native cross-document slide between index/projects/contact. No JS.
   Browsers without support (Firefox) just navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(root) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(root) { z-index: 1; animation: jkb-slide-out 0.5s cubic-bezier(0.65, 0, 0.35, 1) both; }
  ::view-transition-new(root) { z-index: 2; animation: jkb-slide-in 0.5s cubic-bezier(0.65, 0, 0.35, 1) both; }
  @keyframes jkb-slide-out { to { transform: translateX(-100%); } }
  @keyframes jkb-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

  /* the glass nav stays put while the page body slides */
  #navbar { view-transition-name: site-nav; }
  ::view-transition-group(site-nav),
  ::view-transition-old(site-nav),
  ::view-transition-new(site-nav) { animation: none; mix-blend-mode: normal; }
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 900px 650px at 12% -8%, var(--gold-glow), transparent 60%),
    radial-gradient(ellipse 1000px 800px at 105% 15%, rgba(120,140,255,0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  font-weight: 300;
  transition: background 0.4s ease, color 0.4s ease;
}
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 900px 650px at 12% -8%, rgba(217,154,78,0.16), transparent 60%),
    radial-gradient(ellipse 1000px 800px at 105% 15%, rgba(120,140,255,0.08), transparent 55%),
    var(--bg);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: rgba(217,154,78,0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
section { padding: clamp(84px, 11vw, 132px) 0; }

/* foil-gradient text, used by every highlighted word */
.section-title span, .hero-title span, .hero-title em, .foil-text, .stat-number,
.os-num, .pricing-price, .author-name-foil {
  background: var(--foil-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 11px; margin-bottom: 20px;
  border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--chip-bg); box-shadow: var(--glass-hi);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-text);
}
canvas.mini-orbit { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 500; line-height: 1.06; color: var(--text);
  letter-spacing: -0.035em;
}
.section-title span {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.12em; letter-spacing: -0.01em; padding-right: 0.06em;
}
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; gap: 20px; }

/* FADE UP */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: 0.08s; }
.fd2 { transition-delay: 0.16s; }
.fd3 { transition-delay: 0.24s; }
.fd4 { transition-delay: 0.32s; }

/* shared glass surface: rounded, soft, with a champagne hairline edge */
.glass, .fp-card-inner, .pricing-card, .testimonial-card, .os-card, .contact-form,
.stat-capsule, .gauge-panel, .fp-cta-strip, .faq-item, .form-card, .proj-card, .proj-card-sm {
  position: relative;
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--glass-hi), var(--shadow);
}
.glass::before, .fp-card-inner::before, .pricing-card::before, .testimonial-card::before, .os-card::before,
.contact-form::before, .stat-capsule::before, .gauge-panel::before, .fp-cta-strip::before, .faq-item::before,
.form-card::before, .proj-card::before, .proj-card-sm::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500; letter-spacing: 0.2px;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s, border-color 0.35s, background 0.35s, color 0.35s;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.35s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #1c1207; background: var(--foil);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -1px 0 rgba(120,70,10,0.25), 0 10px 28px rgba(217,154,78,0.26);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.5) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform 0.9s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 16px 38px rgba(217,154,78,0.42); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-outline {
  background: var(--chip-bg); color: var(--text);
  border-color: var(--glass-border); box-shadow: var(--glass-hi);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-text-hover); transform: translateY(-3px); box-shadow: var(--glass-hi), 0 14px 34px var(--gold-glow); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 14px 18px; }
.btn-ghost:hover { color: var(--gold-text); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--chip-bg); color: var(--text);
  box-shadow: var(--glass-hi); transition: var(--transition);
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-text-hover); transform: rotate(18deg); }

/* ===== NAVBAR — floating glass pill ===== */
#navbar {
  position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; z-index: 1000;
  width: min(1120px, calc(100% - 28px));
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,29,22,0.62), rgba(14,12,10,0.52));
  border: 1px solid rgba(230,176,119,0.22);
  box-shadow: 0 14px 40px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  transition: background 0.35s, box-shadow 0.35s, top 0.35s;
}
#navbar.scrolled {
  top: 10px;
  background: linear-gradient(135deg, rgba(30,26,20,0.82), rgba(10,9,8,0.78));
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 8px 7px 24px; }
.nav-logo { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 2.5px; color: var(--text); text-transform: uppercase; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: block; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 400; color: var(--text-muted); transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active {
  color: var(--champagne); background: rgba(217,154,78,0.12);
  box-shadow: inset 0 0 0 1px rgba(230,176,119,0.30), 0 0 22px rgba(217,154,78,0.14);
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right .btn { padding: 12px 22px; font-size: 13px; }
.hamburger {
  display: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--glass-border); background: var(--chip-bg); box-shadow: var(--glass-hi);
}
.hamburger span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  flex-direction: column; justify-content: center; gap: 4px; padding: 90px 24px 32px;
  background: radial-gradient(ellipse 620px 420px at 82% 4%, rgba(217,154,78,0.20), transparent 70%), rgba(8,8,8,0.95);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  color: var(--text);
}
.mobile-menu.open { display: flex; animation: menuIn 0.35s ease both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-radius: 22px; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; color: var(--text);
  transition: var(--transition);
}
.mobile-menu a:not(.btn)::after { content: '↗'; font-family: var(--font-mono); font-size: 14px; color: var(--text-light); }
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn):active {
  color: var(--champagne); background: rgba(217,154,78,0.10); border-color: rgba(230,176,119,0.26);
}
.mobile-menu .btn { margin-top: 14px; padding: 18px; }

/* ===== HERO ===== */
#hero {
  --bh-x: 64%;   /* where the black hole sits: shader-fx.js and hero-canvas.js read these two */
  --bh-y: 46%;
  min-height: 100vh; min-height: 100svh;
  background: radial-gradient(ellipse 500px 320px at var(--bh-x) var(--bh-y), var(--gold-glow), transparent 65%), var(--bg);
  display: flex; align-items: center;
  padding: 128px 0 92px; position: relative; overflow: hidden; color: var(--text);
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 700px 500px at calc(var(--bh-x) + 2%) calc(var(--bh-y) - 2%), #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 700px 500px at calc(var(--bh-x) + 2%) calc(var(--bh-y) - 2%), #000 0%, transparent 72%);
  opacity: 0.5; pointer-events: none; z-index: 0;
}
.hero-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(120px, 22vw, 340px); font-weight: 700;
  color: var(--text); opacity: 0.028; white-space: nowrap; pointer-events: none;
  user-select: none; letter-spacing: -0.05em; line-height: 1;
}
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.hero-greeting {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 18px 8px 14px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(14,12,10,0.55); box-shadow: var(--glass-hi);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 400; color: var(--text-muted);
}
.hero-greeting::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-light); box-shadow: 0 0 0 4px rgba(217,154,78,0.16), 0 0 12px var(--gold);
}
.hero-greeting span { color: var(--gold-light); }

.hero-title {
  font-family: var(--font-display); font-size: clamp(42px, 5.8vw, 82px); font-weight: 400;
  line-height: 1.02; letter-spacing: -0.04em; color: var(--text); margin-bottom: 26px;
}
.hero-title span { font-weight: 500; }
.hero-title .amp { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold-light); padding: 0 0.04em; }
.hero-title em {
  display: inline-block; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.16em; line-height: 0.96; letter-spacing: -0.015em; padding: 0 0.08em 0.04em 0;
  background-image: linear-gradient(110deg, #ffffff 4%, #f6dfb8 52%, #e6b077 100%);
}

.hero-desc { font-size: 16px; color: var(--text-2); max-width: 450px; line-height: 1.8; margin-bottom: 38px; font-weight: 300; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 52px; flex-wrap: wrap; }

.stat-capsule, .hero-stats {
  display: inline-flex; align-items: stretch; padding: 16px 6px; border-radius: 26px;
  background: rgba(14,12,10,0.55);
}
.stat-item { padding: 0 28px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-number { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-muted); font-weight: 400; margin-top: 8px; }

/* hero right: anchor for the badges that float around the shader black hole */
.hero-image-wrap { position: relative; width: 400px; height: 480px; margin: 0 auto; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 13px 20px 13px 16px; border-radius: 20px;
  background: linear-gradient(145deg, rgba(40,34,26,0.78), rgba(14,12,10,0.74));
  border: 1px solid rgba(230,176,119,0.30);
  box-shadow: 0 22px 50px rgba(0,0,0,0.55), 0 0 36px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.12);
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-light); box-shadow: 0 0 12px var(--gold), 0 0 2px var(--gold);
}
.hero-badge-1 { top: 6%; right: 2%; animation: floatBadge 4s ease-in-out infinite; --tilt: -3deg; }
.hero-badge-2 { bottom: 10%; left: 0%; animation: floatBadge 4s ease-in-out infinite 1.6s; --tilt: 2deg; }
@keyframes floatBadge { 0%,100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--tilt, 0deg)); } }
.hero-badge-text .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.hero-badge-text .value { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text); margin-top: 2px; letter-spacing: -0.01em; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
}
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.6); opacity: 0.5; } }

/* persistent starfield: ties every section back to the hero motif */
#pageStarfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 500; pointer-events: none; mix-blend-mode: screen; }

/* ===== MARQUEE — tech chips ===== */
.marquee-wrap {
  position: relative; overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; white-space: nowrap; }
.marquee-item {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0; margin-right: 14px;
  padding: 9px 20px 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--chip-bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted);
}
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ============================================================
   SERVICES — ORBIT STORY
   One sticky stage. Six loops sit on one line; the tallest is the
   biggest scope. Scrolling lights one loop at a time and swaps the
   panel below it. Size carries meaning: height = how much we build.
============================================================ */
.orbit-story {
  --loop-idle: rgba(242,240,236,0.22);
  position: relative; padding-bottom: 0;
}
[data-theme="light"] .orbit-story { --loop-idle: rgba(23,20,15,0.26); }

.os-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(20px, 3.4vw, 40px); }

.os-scroller { --os-step: 52vh; position: relative; height: calc(100vh + 5 * var(--os-step)); }
@supports (height: 100svh) { .os-scroller { --os-step: 52svh; height: calc(100svh + 5 * var(--os-step)); } }

.os-stage {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; overflow: clip;
  display: flex; flex-direction: column;
  padding: clamp(84px, 12vh, 112px) 0 24px;
  --heat: 0.35;
}
@supports (height: 100svh) { .os-stage { height: 100svh; padding-top: clamp(84px, 12svh, 112px); } }
.os-stage[data-active="0"] { --heat: 0.35; }
.os-stage[data-active="1"] { --heat: 0.50; }
.os-stage[data-active="2"] { --heat: 0.95; }
.os-stage[data-active="3"] { --heat: 0.80; }
.os-stage[data-active="4"] { --heat: 0.55; }
.os-stage[data-active="5"] { --heat: 0.40; }

/* the background warms up through the stages and peaks at the full-stack "aha" */
.os-heat {
  position: absolute; inset: 0; pointer-events: none;
  opacity: var(--heat); transition: opacity 0.9s ease;
  background:
    radial-gradient(ellipse 62% 54% at 50% 44%, rgba(217,154,78,0.30), transparent 70%),
    radial-gradient(ellipse 36% 40% at 14% 12%, rgba(159,180,255,0.07), transparent 70%);
}
[data-theme="light"] .os-heat { background: radial-gradient(ellipse 62% 54% at 50% 44%, rgba(217,154,78,0.22), transparent 70%); }

.os-ghost {
  position: absolute; left: 50%; top: 42%; pointer-events: none; user-select: none; white-space: nowrap;
  transform: translate(-50%, calc(-50% + var(--p, 0) * -48px));
  font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 20vw, 300px);
  line-height: 1; letter-spacing: -0.05em; color: var(--text); opacity: 0.06;
}

.os-inner { position: relative; z-index: 1; width: 100%; margin: auto; }

/* ---- the loops ---- */
.os-loops {
  --loop-max: clamp(150px, 27vh, 300px);
  position: relative; height: var(--loop-max); max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
@supports (height: 100svh) { .os-loops { --loop-max: clamp(150px, 27svh, 300px); } }
.os-loops::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}
.os-loop {
  position: relative; flex: 0 0 auto; padding: 0; cursor: pointer;
  width: clamp(40px, 8.2vw, 104px); height: calc(var(--loop-max) * var(--h, 1));
  border-radius: 50%; border: 1px solid var(--loop-idle); background: transparent;
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.4s ease, background 0.5s ease, filter 0.5s ease;
}
.os-loop:nth-child(1) { --h: 0.56; }
.os-loop:nth-child(2) { --h: 0.68; }
.os-loop:nth-child(3) { --h: 1; }
.os-loop:nth-child(4) { --h: 0.88; }
.os-loop:nth-child(5) { --h: 0.64; }
.os-loop:nth-child(6) { --h: 0.48; }
.os-loop::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; padding: 2px; pointer-events: none;
  background: var(--foil); opacity: 0; transition: opacity 0.5s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.os-loop:hover { border-color: rgba(230,176,119,0.55); }
.os-loop:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.os-loop.is-active {
  border-color: transparent;
  background: radial-gradient(ellipse at 50% 50%, rgba(217,154,78,0.14), transparent 72%);
  filter: drop-shadow(0 0 12px rgba(217,154,78,0.7));
}
.os-loop.is-active::before { opacity: 1; }
.os-name {
  writing-mode: vertical-rl; white-space: nowrap; pointer-events: none;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--text-light); transition: color 0.4s ease;
}
.os-loop.is-active .os-name { color: var(--gold-text-hover); }

/* a planet rides each loop; JS moves it, the active one burns brighter */
.os-planet {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; pointer-events: none; opacity: 0.55; will-change: transform;
  background: radial-gradient(circle at 34% 30%, #fff6e2, #e6b077 52%, #a8691f);
  box-shadow: 0 0 8px rgba(217,154,78,0.55);
  transition: opacity 0.4s ease;
}
.os-loop.is-active .os-planet { opacity: 1; box-shadow: 0 0 14px rgba(230,176,119,0.95); }
.os-planet.is-blue {
  background: radial-gradient(circle at 34% 30%, #ffffff, #9fb4ff 52%, #4a62c4);
  box-shadow: 0 0 10px rgba(159,180,255,0.7);
}
.os-loop.is-active .os-planet.is-blue { box-shadow: 0 0 16px rgba(159,180,255,1); }

.os-legend {
  margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-light);
}
.os-legend::before, .os-legend::after {
  content: ''; display: inline-block; width: 28px; height: 1px; margin: 0 14px; vertical-align: middle;
  background: currentColor; opacity: 0.55;
}

/* ---- the panels: stacked in one grid cell, one visible at a time ---- */
.os-panels { display: grid; margin-top: clamp(16px, 3.2vh, 40px); }
@supports (height: 100svh) { .os-panels { margin-top: clamp(16px, 3.2svh, 40px); } }
.os-panel {
  grid-area: 1 / 1; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}
.os-panel.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.55s ease 0.12s, transform 0.55s ease 0.12s, visibility 0s;
}
.os-top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.os-num {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 7vw, 92px);
  line-height: 0.9; letter-spacing: -0.05em;
}
.os-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-muted); }
.os-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.06; letter-spacing: -0.035em; color: var(--text); margin-bottom: 14px;
}
.os-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em;
  background: var(--foil-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.05em;
}
.os-desc { color: var(--text-2); font-size: 16px; line-height: 1.75; max-width: 46ch; margin-bottom: 22px; }
.os-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--chip-bg); box-shadow: var(--glass-hi);
  font-size: 13.5px; font-weight: 500; color: var(--text); transition: var(--transition);
}
.os-link span { color: var(--gold-text); transition: transform 0.35s; }
.os-link:hover { border-color: var(--gold); color: var(--gold-text-hover); transform: translateY(-2px); box-shadow: var(--glass-hi), 0 12px 30px var(--gold-glow); }
.os-link:hover span { transform: translate(2px, -2px); }

.os-card {
  height: clamp(190px, 31vh, 300px); display: grid; place-items: center; padding: 16px; color: var(--text);
}
@supports (height: 100svh) { .os-card { height: clamp(190px, 31svh, 300px); } }
.os-card svg { width: 100%; height: 100%; overflow: visible; }

/* illustration paint, shared by the six SVG cards (colours follow the theme) */
.il-line { fill: none; stroke: currentColor; stroke-opacity: 0.38; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.il-dash { fill: none; stroke: currentColor; stroke-opacity: 0.38; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 5; }
.il-soft { fill: currentColor; fill-opacity: 0.09; }
.il-mid { fill: currentColor; fill-opacity: 0.2; }
.il-strong { fill: currentColor; fill-opacity: 0.5; }
.il-orbit-move { transform-origin: 160px 110px; animation: ilSpin 26s linear infinite; }
@keyframes ilSpin { to { transform: rotate(360deg); } }
.il-pulse { animation: ilPulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ilPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.8; } }
.il-flow { stroke-dasharray: 4 6; animation: ilFlow 1.6s linear infinite; }
@keyframes ilFlow { to { stroke-dashoffset: -20; } }

/* no JS, or a viewport too short to pin: show every panel in a plain stack */
html:not(.js) .os-scroller { height: auto; }
html:not(.js) .os-stage { position: static; height: auto; overflow: visible; padding: 0 0 72px; }
html:not(.js) .os-inner { margin: 0 auto; }
html:not(.js) .os-loops { margin-bottom: 8px; }
html:not(.js) .os-loop { pointer-events: none; }
html:not(.js) .os-panels { display: flex; flex-direction: column; gap: 56px; margin-top: 40px; }
html:not(.js) .os-panel { opacity: 1; visibility: visible; transform: none; }
@media (max-height: 560px) {
  .os-scroller { height: auto; }
  .os-stage { position: static; height: auto; overflow: visible; padding: 0 0 72px; }
  .os-inner { margin: 0 auto; }
  .os-loops { margin-bottom: 8px; }
  .os-loop { pointer-events: none; }
  .os-panels { display: flex; flex-direction: column; gap: 56px; margin-top: 40px; }
  .os-panel { opacity: 1; visibility: visible; transform: none; }
}

/* ============================================================
   WORK — carousel (always a dark band)
============================================================ */
#featured-projects {
  --fp-gap: 20px; --fp-vis: 1;
  position: relative; color: var(--text);
  background:
    radial-gradient(ellipse 820px 520px at 100% 0%, rgba(217,154,78,0.13), transparent 60%),
    radial-gradient(ellipse 720px 520px at 0% 100%, rgba(120,140,255,0.07), transparent 60%),
    var(--bg-dark-2);
  border-top: 1px solid rgba(230,176,119,0.14); border-bottom: 1px solid rgba(230,176,119,0.10);
}
@media (min-width: 600px) { #featured-projects { --fp-vis: 2; } }
@media (min-width: 1024px) { #featured-projects { --fp-vis: 3; } }

.fp-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.fp-subtitle { color: var(--text-2); margin-top: 14px; max-width: 46ch; font-size: 15.5px; }
.fp-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.fp-carousel-nav { display: flex; align-items: center; gap: 14px; }
.fp-nav-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--chip-bg); color: var(--text); box-shadow: var(--glass-hi);
  transition: var(--transition);
}
.fp-nav-btn svg { width: 18px; height: 18px; }
.fp-nav-btn:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--glass-hi), 0 10px 26px var(--gold-glow); }
.fp-nav-dots { display: flex; align-items: center; gap: 7px; }
.fp-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,0.22); transition: width 0.4s ease, background 0.4s ease;
}
.fp-dot.active { width: 28px; background: var(--foil); }
.fp-view-all { border: 1px solid var(--glass-border); background: var(--chip-bg); color: var(--text); box-shadow: var(--glass-hi); padding: 13px 24px; }
.fp-view-all:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); box-shadow: var(--glass-hi), 0 14px 34px var(--gold-glow); }

/* the wrap clips the sliding track but leaves room for the hover lift and glow */
.fp-track-wrap { overflow: hidden; padding: 18px 12px 40px; margin: -18px -12px -40px; }
.fp-track { display: flex; gap: var(--fp-gap); transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.fp-card { flex: 0 0 calc((100% - (var(--fp-vis) - 1) * var(--fp-gap)) / var(--fp-vis)); min-width: 0; }
.fp-card-inner {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s;
}
.fp-card-inner:hover { transform: translateY(-7px); box-shadow: var(--glass-hi), 0 28px 64px rgba(0,0,0,0.55), 0 0 46px var(--gold-glow); }
.fp-img-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 10px 10px 0; border-radius: 20px; background: var(--bg-3); }
.fp-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.4,0,0.2,1); }
.fp-card-inner:hover .fp-img { transform: scale(1.06); }
.fp-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(8,7,6,0.78) 100%); }
.fp-badge {
  position: absolute; top: 12px; left: 12px; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--champagne);
  background: rgba(14,12,10,0.72); border: 1px solid rgba(230,176,119,0.32);
}
.fp-hover-cta {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center;
  padding: 9px 18px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #1c1207; background: var(--foil);
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s;
}
.fp-card-inner:hover .fp-hover-cta, .fp-card-inner:focus-visible .fp-hover-cta { opacity: 1; transform: none; }
.fp-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 24px; }
.fp-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.fp-num { color: var(--gold-text); }
.fp-category { color: var(--text-muted); }
.fp-name { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.025em; color: var(--text); line-height: 1.15; }
.fp-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.fp-techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.fp-techs span {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--chip-bg);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
}

.fp-cta-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 44px; padding: 20px 22px 20px 32px; border-radius: 999px;
}
.fp-cta-left { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 19px; font-weight: 400; letter-spacing: -0.015em; color: var(--text); }
.fp-cta-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(217,154,78,0.16), 0 0 16px var(--gold); animation: ctaPulse 2.6s ease-in-out infinite;
}
@keyframes ctaPulse { 0%,100% { box-shadow: 0 0 0 5px rgba(217,154,78,0.16), 0 0 16px var(--gold); } 50% { box-shadow: 0 0 0 9px rgba(217,154,78,0.06), 0 0 22px var(--gold); } }

/* ============================================================
   EXPERIENCE — arc gauges + orbit timeline
============================================================ */
#experience { position: relative; }
.experience-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.exp-intro { color: var(--text-2); max-width: 46ch; margin: 18px 0 30px; font-size: 15.5px; }

.gauge-panel { padding: 30px 22px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 8px; }
.gauge { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.g-ring { position: relative; width: 100%; max-width: 132px; aspect-ratio: 1; color: var(--text); }
.g-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g-track { fill: none; stroke: currentColor; stroke-opacity: 0.12; stroke-width: 7; stroke-linecap: round; }
.g-arc {
  fill: none; stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 0 100; transition: stroke-dasharray 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(217,154,78,0.45));
}
.gauge.is-in .g-arc, html:not(.js) .g-arc { stroke-dasharray: var(--pct) 100; }
.g-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
  font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: -0.04em; color: var(--text);
}
.g-val i { font-style: normal; font-size: 0.5em; color: var(--text-muted); margin: 0.4em 0 0 1px; }
.g-label { margin-top: -14px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); max-width: 11ch; }
.gauge:nth-child(4) { grid-column: 1 / span 1; }

.timeline { display: flex; flex-direction: column; margin-top: 4px; }
.timeline-item { display: flex; gap: 22px; }
.timeline-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 16px; }
.timeline-dot {
  width: 13px; height: 13px; margin-top: 7px; border-radius: 50%; flex-shrink: 0; background: var(--foil);
  box-shadow: 0 0 0 5px rgba(217,154,78,0.16), 0 0 18px rgba(217,154,78,0.6);
}
.timeline-bar { flex: 1; width: 1px; margin: 10px 0 6px; background: linear-gradient(to bottom, var(--gold-border), transparent); }
.timeline-item:last-child .timeline-bar { opacity: 0; }
.timeline-content { padding-bottom: 38px; }
.timeline-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.timeline-title { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.025em; color: var(--text); line-height: 1.2; }
.timeline-company { font-size: 13px; color: var(--text-muted); margin: 4px 0 10px; }
.timeline-desc { font-size: 14.5px; line-height: 1.75; color: var(--text-2); }

/* ============================================================
   PRICING — three rings (always a dark band)
============================================================ */
#pricing {
  position: relative; color: var(--text);
  background:
    radial-gradient(ellipse 900px 520px at 50% 0%, rgba(217,154,78,0.15), transparent 62%),
    radial-gradient(ellipse 600px 420px at 0% 100%, rgba(120,140,255,0.06), transparent 62%),
    var(--bg-dark);
  border-top: 1px solid rgba(230,176,119,0.12);
}
.pricing-header { text-align: center; margin-bottom: 64px; }
.pricing-desc { color: var(--text-2); margin-top: 14px; font-size: 15.5px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; padding: 34px 30px 30px; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--glass-hi), 0 28px 64px rgba(0,0,0,0.5), 0 0 44px var(--gold-glow); }
.pricing-card.featured {
  background: linear-gradient(160deg, rgba(217,154,78,0.24), rgba(217,154,78,0.07) 52%, rgba(255,255,255,0.04));
  box-shadow: var(--glass-hi), 0 30px 80px rgba(217,154,78,0.20), var(--shadow-lg);
}
.pricing-card.featured::before { background: linear-gradient(150deg, rgba(251,233,198,0.9), rgba(217,154,78,0.25) 40%, rgba(217,154,78,0.7)); }
.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 18px; border-radius: 999px; background: var(--foil); color: #1c1207;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(217,154,78,0.4);
}
.pricing-emblem { display: block; width: 116px; height: 116px; margin: 0 auto 16px; color: var(--text); overflow: visible; }
.pe-ring { fill: none; stroke: currentColor; stroke-opacity: 0.24; stroke-width: 1; }
.pe-core { fill: currentColor; fill-opacity: 0.14; }
.pe-spin { transform-origin: 60px 60px; animation: peSpin 18s linear infinite; }
.pe-spin.s2 { animation-duration: 26s; animation-direction: reverse; }
.pe-spin.s3 { animation-duration: 38s; }
@keyframes peSpin { to { transform: rotate(360deg); } }
.pe-planet { fill: #e6b077; filter: drop-shadow(0 0 4px rgba(230,176,119,0.9)); }
.pe-planet.is-blue { fill: #9fb4ff; filter: drop-shadow(0 0 5px rgba(159,180,255,0.95)); }
.pricing-name { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-text); }
.pricing-price { text-align: center; font-family: var(--font-display); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -0.045em; margin: 14px 0 10px; }
.pricing-price sup { font-size: 0.38em; vertical-align: 1.05em; letter-spacing: 0; margin-right: 3px; }
.pricing-period { text-align: center; font-size: 13px; color: var(--text-muted); }
.pricing-divider { height: 1px; margin: 26px 0 22px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); }
.pricing-features { flex: 1; margin-bottom: 26px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pricing-feature::before {
  content: ''; flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23e6b077' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.2l2.1 2.1L9 4'/%3E%3C/svg%3E") center / 11px no-repeat, rgba(217,154,78,0.15);
}

/* ============================================================
   TESTIMONIALS — one voice in the middle, two in orbit
============================================================ */
#testimonials { position: relative; overflow: hidden; overflow: clip; }
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-orbit { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 22px; align-items: center; }
.testimonials-orbit::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(1180px, 124%); aspect-ratio: 2.5 / 1;
  transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--glass-border); opacity: 0.55; pointer-events: none;
}
.testimonial-card { padding: 30px 28px; z-index: 1; display: flex; flex-direction: column; }
.testimonial-satellite-left { margin-bottom: 38px; }
.testimonial-satellite-right { margin-top: 38px; }
.testimonial-spotlight {
  padding: 42px 36px; background: linear-gradient(160deg, rgba(217,154,78,0.20), rgba(217,154,78,0.05) 55%, rgba(255,255,255,0.03));
  box-shadow: var(--glass-hi), 0 26px 70px rgba(217,154,78,0.16), var(--shadow-lg);
}
[data-theme="light"] .testimonial-spotlight { background: linear-gradient(160deg, rgba(255,247,232,0.98), rgba(255,255,255,0.8)); }
.testimonial-stars { color: var(--gold); letter-spacing: 5px; font-size: 14px; margin-bottom: 16px; }
.testimonial-text { font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.5; letter-spacing: -0.005em; color: var(--text); flex: 1; }
.testimonial-spotlight .testimonial-text { font-size: 25px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #1c1207; background: var(--foil);
  box-shadow: 0 6px 18px rgba(217,154,78,0.3);
}
.author-name { font-family: var(--font-display); font-size: 15.5px; font-weight: 500; color: var(--text); }
.author-role { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }

/* ============================================================
   CONTACT (always a dark band)
============================================================ */
#contact {
  position: relative; color: var(--text);
  background:
    radial-gradient(ellipse 800px 560px at 0% 0%, rgba(217,154,78,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(120,140,255,0.07), transparent 60%),
    var(--bg-dark-2);
  border-top: 1px solid rgba(230,176,119,0.12);
}
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-intro { color: var(--text-2); max-width: 44ch; margin-bottom: 34px; font-size: 15.5px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--chip-bg); transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--glass-border); transform: translateX(4px); }
.contact-info-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(217,154,78,0.12); border: 1px solid var(--glass-border); color: var(--gold-light);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); }
.contact-info-value { font-size: 15.5px; color: var(--text); margin-top: 1px; overflow-wrap: anywhere; }

.contact-form { padding: 34px 32px 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; min-width: 0; }
.form-label { display: block; margin: 0 0 8px 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--field-bg); color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; -webkit-appearance: none; appearance: none;
}
.form-textarea { min-height: 132px; border-radius: 24px; resize: vertical; line-height: 1.6; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 0; border-color: var(--gold); background: var(--field-bg-focus); box-shadow: 0 0 0 4px rgba(217,154,78,0.15);
}
.form-select {
  padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23d99a4e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 12px;
}
.form-select option { background: #151311; color: #f2f0ec; }
.form-submit { width: 100%; justify-content: center; padding: 17px; margin-top: 4px; font-size: 14.5px; }

/* ============================================================
   FOOTER — giant wordmark, six orbit dots
============================================================ */
#footer {
  position: relative; overflow: hidden; color: var(--text); padding: 76px 0 0;
  background: radial-gradient(ellipse 980px 420px at 50% 100%, rgba(217,154,78,0.16), transparent 65%), var(--bg-dark);
  border-top: 1px solid rgba(230,176,119,0.16);
}
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.footer-brand-name { font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: 3px; color: var(--text); }
.footer-brand-name span { color: var(--gold); }
.footer-brand-desc { color: var(--text-2); max-width: 40ch; margin: 14px 0 24px; font-size: 14.5px; line-height: 1.75; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--glass-border); background: var(--chip-bg); color: var(--text); box-shadow: var(--glass-hi); transition: var(--transition);
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { background: var(--foil); color: #1c1207; border-color: transparent; transform: translateY(-4px); box-shadow: 0 12px 28px rgba(217,154,78,0.4); }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; color: var(--text-2); transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--champagne); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-copy span { color: var(--gold-light); }

.footer-mark { position: relative; padding-top: 10px; text-align: center; pointer-events: none; user-select: none; }
.footer-dots { display: flex; justify-content: center; align-items: center; gap: 18px; position: relative; z-index: 1; }
.footer-dots::before, .footer-dots::after { content: ''; width: min(18vw, 180px); height: 1px; background: linear-gradient(90deg, transparent, rgba(230,176,119,0.35)); }
.footer-dots::after { transform: scaleX(-1); }
.footer-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px var(--gold);
  animation: dotFloat 4.2s ease-in-out infinite;
}
.footer-dots i:nth-child(2) { animation-delay: -0.7s; }
.footer-dots i:nth-child(3) { animation-delay: -1.4s; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.footer-dots i:nth-child(4) { animation-delay: -2.1s; }
.footer-dots i:nth-child(5) { animation-delay: -2.8s; }
.footer-dots i:nth-child(6) { animation-delay: -3.5s; }
@keyframes dotFloat { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.footer-word {
  display: block; margin-top: -0.06em; margin-bottom: -0.16em;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 31vw, 440px); line-height: 0.86; letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(251,233,198,0.92) 0%, rgba(217,154,78,0.55) 46%, rgba(217,154,78,0) 94%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   INNER PAGES — page hero, projects, contact, FAQ (always dark bands)
============================================================ */
.page-hero, .projects-hero {
  position: relative; overflow: hidden; color: var(--text);
  padding: clamp(132px, 17vw, 190px) 0 clamp(56px, 8vw, 92px);
  background:
    radial-gradient(ellipse 560px 360px at 82% 18%, rgba(217,154,78,0.20), transparent 68%),
    radial-gradient(ellipse 420px 300px at 8% 100%, rgba(159,180,255,0.07), transparent 70%),
    var(--bg);
}
.page-hero::before, .projects-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 620px 420px at 82% 24%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 620px 420px at 82% 24%, #000, transparent 72%);
}
.page-hero-orb {
  position: absolute; right: clamp(-120px, -6vw, -40px); top: 50%; width: clamp(180px, 30vw, 380px); aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #000 0 36%, rgba(246,223,184,0.9) 37%, rgba(217,154,78,0.5) 42%, rgba(217,154,78,0.10) 58%, transparent 70%);
  box-shadow: 0 0 80px rgba(217,154,78,0.28);
}
.page-hero-inner, .projects-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero-title, .projects-hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02; letter-spacing: -0.04em; color: var(--text); margin-bottom: 22px;
}
.page-hero-title span, .projects-hero h1 span {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -0.015em;
  background: var(--foil-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.06em;
}
.page-hero p, .projects-hero p { font-size: 17px; color: var(--text-2); max-width: 520px; line-height: 1.75; font-weight: 300; }
.projects-hero .hero-stats { margin-top: 40px; }

/* ---- projects: filter chips ---- */
.filter-wrap { padding: 0 0 clamp(60px, 8vw, 110px); position: relative; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  cursor: pointer; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--chip-bg); box-shadow: var(--glass-hi);
  font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.3px; color: var(--text-muted);
  transition: var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: var(--glass-border); }
.filter-btn.active { color: #1c1207; background: var(--foil); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 24px rgba(217,154,78,0.3); }
.projects-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 36px; }
.projects-count span { color: var(--gold-text); font-weight: 500; }
.projects-grid { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 72px); }

.proj-card, .proj-card-sm { position: relative; overflow: hidden; background: var(--glass), var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--glass-hi), var(--shadow); transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s; }
.proj-card:hover, .proj-card-sm:hover { transform: translateY(-4px); box-shadow: var(--glass-hi), var(--shadow-lg), 0 0 44px var(--gold-glow); border-color: var(--glass-border); }
.proj-card { display: grid; grid-template-columns: 1fr 1fr; }
.proj-card.pi-reverse { direction: rtl; }
.proj-card.pi-reverse > * { direction: ltr; }
.proj-img-wrap, .proj-sm-img { position: relative; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.proj-img-wrap { min-height: 420px; }
.proj-sm-img { height: 220px; }
.proj-img-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.04)); }
.proj-sm-img .proj-img-overlay { background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5)); }
.proj-number, .proj-badge {
  position: absolute; z-index: 3; border-radius: 999px; background: rgba(10,9,8,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.proj-number { top: 22px; left: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.16); padding: 5px 14px; }
.proj-badge { bottom: 22px; left: 24px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-light); border: 1px solid rgba(217,154,78,0.34); padding: 6px 16px; }
.proj-sm-img .proj-number { top: 14px; left: 14px; }
.proj-sm-img .proj-badge { bottom: 14px; left: 14px; font-size: 10px; padding: 4px 12px; }
.proj-gallery-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; z-index: 0; transition: opacity 0.8s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.proj-gallery-img.active { opacity: 1; z-index: 1; }
.proj-card:hover .proj-gallery-img.active, .proj-card-sm:hover .proj-gallery-img.active { transform: scale(1.05); }
.proj-img-wrap > img:not(.proj-gallery-img), .proj-sm-img > img:not(.proj-gallery-img) { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.proj-gallery-dots { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 6px; z-index: 4; }
.proj-sm-img .proj-gallery-dots { bottom: 12px; right: 12px; }
.proj-gallery-dots .dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.3); transition: all 0.3s ease; }
.proj-gallery-dots .dot.active { width: 18px; border-radius: 999px; background: var(--gold); border-color: var(--gold); }

.proj-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.proj-body h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 500; color: var(--text); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.proj-body p { font-size: 15px; line-height: 1.75; color: var(--text-2); margin-bottom: 26px; }
.proj-techs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.proj-techs span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4px; color: var(--gold-text); background: var(--gold-pale); border: 1px solid var(--gold-border); border-radius: 999px; padding: 5px 13px; }
.proj-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.projects-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card-sm { display: flex; flex-direction: column; }
.proj-sm-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.proj-sm-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; margin-bottom: 10px; }
.proj-sm-body p { font-size: 13.5px; line-height: 1.7; color: var(--text-2); margin-bottom: 18px; flex: 1; }
.proj-sm-body .proj-techs { margin-bottom: 22px; }
.proj-sm-body .proj-techs span { font-size: 10px; padding: 4px 10px; }
.proj-sm-placeholder { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); }
.proj-card[data-hidden="true"], .proj-card-sm[data-hidden="true"] { display: none; }
.projects-row-3:empty, .projects-row-3:not(:has(.proj-card-sm:not([data-hidden="true"]))) { display: none; }

.projects-cta-new {
  position: relative; overflow: hidden; margin-top: clamp(56px, 8vw, 96px); text-align: center; color: var(--text);
  padding: clamp(48px, 8vw, 84px) clamp(24px, 6vw, 60px); border-radius: var(--radius);
  background: radial-gradient(ellipse 520px 300px at 50% 0%, rgba(217,154,78,0.20), transparent 70%), var(--glass), var(--bg-2);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-hi), var(--shadow-lg);
}
.projects-cta-new h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.4vw, 54px); letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 16px; }
.projects-cta-new h2 span { font-family: var(--font-serif); font-style: italic; font-size: 1.1em; background: var(--foil-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.05em; }
.projects-cta-new p { font-size: 16.5px; color: var(--text-2); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.projects-cta-new .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- lightbox ---- */
.proj-lightbox {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,8,0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.proj-lightbox.open { opacity: 1; visibility: visible; }
.proj-lightbox .lb-img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.proj-lightbox .lb-close, .proj-lightbox .lb-prev, .proj-lightbox .lb-next {
  position: absolute; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; border-radius: 50%;
  background: linear-gradient(155deg, rgba(255,255,255,0.26), rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.12)), rgba(20,18,14,0.4);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 6px 20px rgba(0,0,0,0.4);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.25s;
}
.proj-lightbox .lb-close:hover, .proj-lightbox .lb-prev:hover, .proj-lightbox .lb-next:hover {
  background: linear-gradient(155deg, rgba(255,224,160,0.45), rgba(217,154,78,0.18) 55%, rgba(255,224,160,0.24)), rgba(20,18,14,0.4);
  border-color: rgba(255,214,130,0.7); box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 8px 26px rgba(217,154,78,0.4);
}
.proj-lightbox .lb-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 18px; }
.proj-lightbox .lb-prev, .proj-lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.proj-lightbox .lb-prev { left: 24px; }
.proj-lightbox .lb-next { right: 24px; }
.proj-lightbox .lb-prev:active, .proj-lightbox .lb-next:active { transform: translateY(-50%) scale(0.94); }
.proj-lightbox .lb-close:active { transform: scale(0.94); }
.proj-lightbox.single .lb-prev, .proj-lightbox.single .lb-next { display: none; }
.proj-lightbox .lb-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.5px; color: var(--text-2); white-space: nowrap; }

/* ---- contact page ---- */
.contact-section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.contact-page-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.ci-item { display: flex; align-items: center; gap: 16px; padding: 15px 18px; margin-bottom: 12px; border-radius: 22px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--glass-hi); transition: var(--transition); }
.ci-item:hover { border-color: var(--glass-border); transform: translateX(4px); }
.ci-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: var(--gold-light); background: var(--gold-pale); border: 1px solid var(--gold-border); }
.ci-icon svg { width: 20px; height: 20px; }
.ci-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); }
.ci-val { display: block; margin-top: 1px; font-size: 15.5px; color: var(--text); overflow-wrap: anywhere; }
a.ci-val:hover { color: var(--gold-text-hover); }
.contact-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--chip-bg); font-size: 13px; color: var(--text-2); }
.cn-dot { width: 8px; height: 8px; border-radius: 50%; background: #6fd39a; box-shadow: 0 0 0 4px rgba(111,211,154,0.16), 0 0 10px #6fd39a; }
.form-card { position: relative; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--glass), var(--bg-2); border: 1px solid var(--glass-border); box-shadow: var(--glass-hi), var(--shadow-lg); }
.thank-you { text-align: center; padding: 60px 20px; border-radius: var(--radius); background: var(--glass), var(--bg-2); border: 1px solid var(--glass-border); }
.ty-mark { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #1c1207; background: var(--foil); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 34px rgba(217,154,78,0.4); }
.ty-mark svg { width: 30px; height: 30px; }
.thank-you h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 10px; }
.thank-you h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; background: var(--foil-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.thank-you p { color: var(--text-muted); font-size: 14.5px; }
.thank-you .btn { margin-top: 24px; }

.faq-section { position: relative; overflow: hidden; color: var(--text); padding: clamp(60px, 9vw, 110px) 0; background: radial-gradient(ellipse 600px 380px at 100% 100%, rgba(217,154,78,0.12), transparent 70%), var(--bg-dark-2); border-top: 1px solid rgba(230,176,119,0.12); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-item { position: relative; padding: 24px 26px; border-radius: var(--radius-sm); background: var(--glass), var(--bg-2); border: 1px solid var(--border); box-shadow: var(--glass-hi); transition: var(--transition); }
.faq-item:hover { border-color: var(--glass-border); transform: translateY(-3px); }
.faq-q { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; margin-bottom: 8px; }
.faq-a { font-size: 14px; line-height: 1.75; color: var(--text-2); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  #hero { --bh-x: 66%; --bh-y: 270px; align-items: flex-start; padding: 400px 0 64px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-image-wrap { position: static; width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
  .hero-badge { position: static; animation: none; padding: 10px 16px 10px 14px; border-radius: 18px; }
  .scroll-hint { display: none; }
  .experience-inner, .contact-inner, .contact-page-inner, .footer-inner { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .proj-card { grid-template-columns: 1fr; }
  .proj-card.pi-reverse { direction: ltr; }
  .proj-img-wrap { min-height: 280px; }
  .projects-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .testimonials-orbit { grid-template-columns: 1fr; }
  .testimonial-satellite-left, .testimonial-satellite-right { margin: 0; }
  .testimonial-spotlight { order: -1; }
}
@media (max-width: 760px) {
  .os-panel { grid-template-columns: 1fr; gap: 12px; align-content: start; }
  .os-ghost { font-size: 33vw; }
  .os-loops { --loop-max: clamp(150px, 24vh, 260px); }
  .os-card { height: clamp(96px, 15vh, 150px); padding: 0; }
  .os-name { font-size: 9px; letter-spacing: 1.8px; }
  .os-num { font-size: 46px; }
  .os-desc { font-size: 15px; margin-bottom: 16px; }
  .os-head { flex-direction: column; align-items: flex-start; }
  .gauge-panel { grid-template-columns: 1fr 1fr; }
  .fp-header { flex-direction: column; align-items: flex-start; }
  .fp-header-right { align-items: flex-start; }
  .fp-cta-strip { flex-direction: column; text-align: center; border-radius: 28px; padding: 24px 22px; }
}
@media (max-width: 760px) and (max-height: 740px) { .os-card { display: none; } }
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  #hero { --bh-x: 50%; --bh-y: 222px; padding-top: 320px; }
  .hero-greeting { margin-bottom: 20px; }
  .hero-title { margin-bottom: 18px; }
  .hero-desc { margin-bottom: 26px; }
  .hero-actions { margin-bottom: 30px; }
  .stat-item { padding: 0 16px; }
  .stat-number { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .projects-row-3 { grid-template-columns: 1fr; }
  .proj-body { padding: 26px 22px; }
  .contact-form, .form-card { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .proj-lightbox .lb-prev { left: 8px; width: 40px; height: 40px; }
  .proj-lightbox .lb-next { right: 8px; width: 40px; height: 40px; }
  .proj-lightbox .lb-close { top: 12px; right: 12px; }
  .proj-lightbox .lb-caption { font-size: 11px; bottom: 12px; }
}
@media (max-width: 520px) { .nav-right .btn { display: none; } }
@media (max-width: 380px) { .gauge-panel { grid-template-columns: 1fr; } }

/* short landscape phones: keep two columns, black hole on the right */
@media (max-width: 1024px) and (max-height: 540px) and (orientation: landscape) {
  #hero { --bh-x: 72%; --bh-y: 46%; align-items: center; padding: 110px 0 40px; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-image-wrap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}
html:not(.js) .fade-up { opacity: 1; transform: none; }

/* ---- orbit journey: scroll-driven scene replaces the loop outlines (the loop buttons stay as invisible hit targets) ---- */
.orbit-story .os-loops::before{display:none}
.orbit-story .os-loop{opacity:0}
.orbit-story .os-legend{display:none}
.oj-scene{position:absolute;left:50%;top:50%;width:min(100%,calc(var(--loop-max) * 2.45));transform:translate(-50%,-50%);pointer-events:none;color:var(--text);z-index:1}
.oj-scene svg{display:block;width:100%;height:auto;overflow:visible}
.os-panel.is-active .os-card svg{animation:ojIn .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes ojIn{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.os-panel.is-active .os-card svg{animation:none}}
html:not(.js) .oj-scene,.os-scroller .oj-scene:empty{display:none}
.orbit-story .oj-cv{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.orbit-story .os-ghost,.orbit-story .os-heat{z-index:0}
.orbit-story .os-inner{position:relative;z-index:2}
.orbit-story .os-scrim{display:none}
.orbit-story .os-copy{position:relative;padding:clamp(20px,2.6vw,34px);border-radius:30px;background:linear-gradient(145deg,rgba(255,240,214,.09),rgba(217,154,78,.03) 55%,rgba(0,0,0,.35));border:1px solid rgba(230,176,119,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 24px 60px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);overflow:hidden}
.orbit-story .os-copy::before{content:"";position:absolute;left:-40%;top:0;width:40%;height:2px;background:linear-gradient(90deg,transparent,#f3cf98,transparent);opacity:0}
.orbit-story .os-panel.is-active .os-copy::before{animation:ojScan 1.4s .2s ease-out both}
@keyframes ojScan{0%{left:-40%;opacity:1}100%{left:110%;opacity:0}}
.orbit-story .os-panel.is-active .os-copy>*{animation:ojUp .8s cubic-bezier(.2,.8,.2,1) both}
.orbit-story .os-panel.is-active .os-copy>*:nth-child(2){animation-delay:.1s}
.orbit-story .os-panel.is-active .os-copy>*:nth-child(3){animation-delay:.2s}
.orbit-story .os-panel.is-active .os-copy>*:nth-child(4){animation-delay:.3s}
@keyframes ojUp{from{opacity:0;transform:translateY(22px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
.orbit-story .os-panel.is-active .os-num{animation:ojNum 1s cubic-bezier(.2,.8,.2,1) both,ojSheen 4s 1s ease-in-out infinite;background-size:220% 100%}
@keyframes ojNum{from{opacity:0;transform:translateY(40%) scale(.8);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
@keyframes ojSheen{0%,100%{background-position:0 0}50%{background-position:100% 0}}
.orbit-story .os-link{border-radius:999px;background:linear-gradient(135deg,#f6dfb8,#e0a85f 55%,#b97a2f);color:#1a1209;border:0;font-weight:600;box-shadow:0 10px 30px rgba(217,154,78,.35);transition:transform .3s,box-shadow .3s}
.orbit-story .os-link:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 14px 40px rgba(217,154,78,.55)}
.orbit-story .os-link span{color:#1a1209}
.oj-rail{position:absolute;left:50%;bottom:14px;width:min(78%,420px);height:6px;transform:translateX(-50%);border-radius:99px;background:rgba(255,255,255,.1);z-index:3;pointer-events:none}
.oj-fill{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#b97a2f,#f3cf98);box-shadow:0 0 14px rgba(230,176,119,.8)}
.oj-rail b{position:absolute;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#14100a;border:1px solid rgba(230,176,119,.7)}
.oj-rail b:last-child{left:100%!important}
@media (prefers-reduced-motion:reduce){.orbit-story .os-panel.is-active .os-copy>*,.orbit-story .os-panel.is-active .os-num,.orbit-story .os-panel.is-active .os-copy::before{animation:none}}

/* blueprint process */
.blueprint{position:relative;padding:90px 0;background-image:linear-gradient(rgba(120,170,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(120,170,255,.07) 1px,transparent 1px);background-size:32px 32px}
.bp-eyebrow{font:600 .75rem/1 ui-monospace,Menlo,monospace;letter-spacing:.22em;color:var(--gold-text);margin:0 0 12px}
.bp-title{max-width:18ch;margin:0 0 36px}
.bp-steps{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));counter-reset:bp}
.bp-step{position:relative;padding:22px 20px;border-radius:26px;border:1px dashed var(--gold-border);background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.01));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.bp-step svg{width:56px;height:56px;color:var(--gold);margin-bottom:10px}
.bp-step svg *{stroke-dasharray:1;stroke-dashoffset:0}
.bp-step em{position:absolute;top:18px;right:20px;font:600 .8rem ui-monospace,Menlo,monospace;color:var(--gold-text);opacity:.8;font-style:normal}
.bp-step h3{margin:0 0 6px;font-size:1.15rem}.bp-step p{margin:0;opacity:.8;font-size:.95rem;line-height:1.5}
.js .bp-step{opacity:0;transform:translateY(18px);transition:opacity .6s,transform .6s}
.js .bp-step svg *{stroke-dashoffset:1;transition:stroke-dashoffset 1.4s ease .2s}
.js .bp-step.in{opacity:1;transform:none}.js .bp-step.in svg *{stroke-dashoffset:0}
.bp-step:nth-child(2){transition-delay:.1s}.bp-step:nth-child(3){transition-delay:.2s}.bp-step:nth-child(4){transition-delay:.3s}.bp-step:nth-child(5){transition-delay:.4s}
@media (prefers-reduced-motion:reduce){.js .bp-step,.js .bp-step svg *{opacity:1;transform:none;stroke-dashoffset:0;transition:none}}
.blueprint{scroll-margin-top:60px}
