/* Studio theme — dark blue-black, volt + violet gradient mesh, glass cards,
   bento grid. Display: Space Grotesk; body: Inter.
   Brand colours injected per-client as --volt / --violet. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #07080c;
  --bg-alt: #0b0d13;
  --card: rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.09);
  --fg: #eef0f4;
  --fg-muted: #9aa2b1;
  --border: #1d212b;
  --wrap: 1140px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --radius: 18px;
}

/* scroll-behavior removed: Lenis owns scroll (falls back to instant anchors) */
body {
  font-family: var(--font);
  color: var(--fg);
  background-color: var(--page-bg, var(--bg));
  transition: background-color 1.2s ease;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* content above the decorative layers */
.site-header, main, .site-footer, .fab { position: relative; z-index: 2; }
.site-header { z-index: 50; }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--volt), var(--violet));
}

/* ---------- orbs ---------- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; will-change: transform;
}
.orb.o1 { width: 480px; height: 480px; top: -8%; left: -6%;
  background: color-mix(in srgb, var(--violet) 34%, transparent); }
.orb.o2 { width: 380px; height: 380px; top: 30%; right: -10%;
  background: color-mix(in srgb, var(--volt) 20%, transparent); }
.orb.o3 { width: 420px; height: 420px; top: 75%; left: 22%;
  background: color-mix(in srgb, var(--violet) 22%, transparent); }

/* ---------- floating iron ---------- */
.float-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fl {
  position: absolute; width: var(--s, 90px); color: var(--volt);
  opacity: .15; will-change: transform;
}
.fl:nth-child(2n) { color: var(--violet); opacity: .2; }
.fl svg { width: 100%; height: auto; rotate: var(--r, 0deg); animation: bob 9s ease-in-out infinite alternate; }
.fl:nth-child(2n) svg { animation-duration: 12s; animation-delay: -4s; }
.fl:nth-child(3n) svg { animation-duration: 15s; animation-delay: -7s; }
.fl[data-depth=".35"], .fl[data-depth=".4"] { filter: blur(1.5px); opacity: .1; }
.fl[data-depth=".85"] { opacity: .22; }
@keyframes bob {
  from { translate: 0 -10px; rotate: var(--r, 0deg); }
  to   { translate: 0 10px;  rotate: calc(var(--r, 0deg) + 7deg); }
}
@media (max-width: 700px) {
  .fl { --s: 60px !important; }
  .fl[data-depth=".35"], .fl[data-depth=".4"], .fl[data-depth=".5"] { display: none; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .045;
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,2%); }
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 2rem; }
.display {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  letter-spacing: -.03em;
}
.display .accent, h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--volt), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p + p { margin-top: 1rem; }
a { color: var(--volt); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--fg-muted); }
.small { font-size: .875rem; }
.center-lede { margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--volt); color: #000; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,8,12,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -.02em; color: var(--fg); text-decoration: none;
}
.logo-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--volt), var(--violet));
  transform: rotate(45deg);
}
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--fg-muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-header nav a:hover { color: var(--fg); }
@media (max-width: 760px) { .site-header nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--volt); color: #0a0c05;
  padding: .9rem 1.8rem; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  font-family: var(--display);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px color-mix(in srgb, var(--volt) 35%, transparent); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--fg); border-color: var(--glass-border); }
.btn-ghost:hover { border-color: var(--volt); box-shadow: none; }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; border-radius: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.cta-row.center { justify-content: center; }

.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  background: var(--volt); color: #0a0c05;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 12px 34px rgba(0,0,0,.55);
}
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- hero + mesh ---------- */
.hero { position: relative; padding: clamp(5rem, 12vw, 8.5rem) 0; }
.hero.compact { padding: clamp(3rem, 7vw, 5rem) 0; }
.mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(640px 420px at 12% 8%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 62%),
    radial-gradient(560px 380px at 88% 30%, color-mix(in srgb, var(--volt) 14%, transparent), transparent 60%),
    radial-gradient(420px 320px at 55% 110%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 65%);
  mask-image: linear-gradient(#000 55%, transparent);
}
.mesh-b { mask-image: linear-gradient(transparent, #000 45%); }
.hero .wrap, .cta-band .wrap { position: relative; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .2em; font-size: .75rem;
  font-weight: 700; color: var(--volt); margin-bottom: 1.1rem;
  padding: .35rem .9rem; border: 1px solid color-mix(in srgb, var(--volt) 40%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--volt) 7%, transparent);
}
.lede { font-size: 1.15rem; color: var(--fg-muted); max-width: 56ch; margin-top: 1.4rem; }

/* ---------- stats ---------- */
.stats {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem;
}
.stat {
  flex: 1 1 150px;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
}
.stat-num {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em;
  background: linear-gradient(92deg, var(--volt), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .85rem; color: var(--fg-muted); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; }
/* translucent so the floating layer glints through */
.section.alt { background: rgba(11,13,19,.55); border-block: 1px solid var(--border); }
.cta-band { text-align: center; overflow: hidden; }

/* ---------- bento ---------- */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}
.cell {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease;
}
.cell:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--volt) 45%, transparent); }
.cell.wide { grid-column: span 4; }
.cell.tall { grid-row: span 2; }
.cell-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--volt) 22%, transparent), color-mix(in srgb, var(--violet) 22%, transparent));
  border: 1px solid var(--glass-border);
}
.cell h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.cell p { color: var(--fg-muted); font-size: .95rem; }
@media (max-width: 900px) { .cell, .cell.wide { grid-column: span 3; } }
@media (max-width: 620px) { .cell, .cell.wide { grid-column: span 6; } }

/* ---------- timetable ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius); }
.timetable { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--card); }
.timetable th {
  text-align: left; font-family: var(--display); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--fg-muted);
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--glass-border);
}
.timetable td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.timetable tr:last-child td { border-bottom: 0; }
.timetable tbody tr { transition: background .15s ease; }
.timetable tbody tr:hover { background: rgba(255,255,255,.03); }
.pill {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  color: var(--volt); border: 1px solid color-mix(in srgb, var(--volt) 45%, transparent);
}
.pill:hover { background: var(--volt); color: #0a0c05; }

/* ---------- plans ---------- */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 1.25rem; }
.plan {
  position: relative;
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.plan.featured {
  border-color: var(--volt);
  background: linear-gradient(180deg, color-mix(in srgb, var(--volt) 8%, transparent), var(--card));
}
.badge {
  position: absolute; top: -12px; left: 1.5rem;
  background: var(--volt); color: #0a0c05;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: 999px;
}
.plan h3 { font-size: 1.05rem; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -.02em; }
.plan-price .per { font-size: 1rem; color: var(--fg-muted); font-weight: 500; }
.plan .btn { margin-top: auto; text-align: center; }
.ticks { padding: 0; list-style: none; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; color: var(--fg-muted); font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--volt); font-weight: 700; }

/* ---------- team ---------- */
.grid { display: grid; gap: 1.25rem; }
.team { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.person {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.75rem; text-align: center;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 1rem; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: #0a0c05;
  background: linear-gradient(135deg, var(--volt), var(--violet));
}
.person h3 { font-size: 1.05rem; }
.role { color: var(--volt); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: .3rem 0 .75rem; }
.person .muted { font-size: .9rem; }

/* ---------- quotes ---------- */
.quotes { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote { background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; margin: 0; }
.stars { color: var(--volt); letter-spacing: .12em; margin-bottom: .75rem; }
.quote figcaption { margin-top: 1rem; font-size: .875rem; color: var(--fg-muted); font-weight: 600; }

/* ---------- faq ---------- */
details { border: 1px solid var(--glass-border); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .75rem; background: var(--card); }
details summary { cursor: pointer; font-weight: 600; font-family: var(--display); }
details[open] { border-color: color-mix(in srgb, var(--volt) 40%, transparent); }
details p { margin-top: .75rem; color: var(--fg-muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.book-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--volt) 10%, transparent), color-mix(in srgb, var(--violet) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--volt) 40%, transparent);
  border-radius: var(--radius); padding: 1.75rem; margin-bottom: 2rem;
}
.book-card h2 { font-size: 1.25rem; margin-bottom: .375rem; }
.book-card .btn { margin-top: 1.25rem; }
.form { display: grid; gap: 1rem; }
.form h2 { font-size: 1.25rem; }
.form label { display: grid; gap: .375rem; font-weight: 600; font-size: .9375rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .85rem .95rem;
  border: 1px solid var(--glass-border); border-radius: 12px;
  background: var(--bg-alt); color: var(--fg); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--volt); outline-offset: 1px; border-color: var(--volt);
}
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.contact-side h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-side h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }
.big { font-size: 1.6rem; font-weight: 700; font-family: var(--display); }
.big a { text-decoration: none; color: var(--fg); }

.hours { list-style: none; padding: 0; font-size: .9375rem; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .25rem 0; color: var(--fg-muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2rem; }
.footer-word { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-muted); margin-bottom: .75rem; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--volt); }
.legal { border-top: 1px solid var(--border); padding: 1.25rem 0; }

/* fallback pages (default service template under this theme) */
.crumbs { font-size: .875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.price { font-family: var(--display); color: var(--volt); font-size: 1.4rem; margin-top: .75rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- 2026 playbook: compositor scroll-driven reveals + view transitions ---- */
@view-transition { navigation: auto; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      opacity: 1; transform: none; transition: none;
      animation: pw-reveal both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}
@keyframes pw-reveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
