/* Eight Count Creative: blue, black and white. Liquid glass, kept quiet.
   Spacing is on a 4px grid; one accent (blue); no glows, no looping motion. */

:root {
  --bg: #03050b;
  --ink: #f4f7ff;
  --dim: rgba(232, 240, 255, 0.7);
  --faint: rgba(232, 240, 255, 0.46);
  --blue: #1d5fe0;          /* solid accent, 5.6:1 with white text */
  --blue-hi: #6cb2ff;       /* accent used as text on dark */
  --ice: #d6e9ff;
  --hair: rgba(255, 255, 255, 0.1);
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 4px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 8px 16px; border-radius: 12px; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- backdrop: still, so the glass has depth to blur ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; background:
    radial-gradient(ellipse 80% 55% at 12% -8%, rgba(29, 95, 224, 0.16), transparent 70%),
    linear-gradient(180deg, #03050b, #050813 60%, #03050b);
}

/* ---------- liquid glass ---------- */
.glass {
  position: relative; isolation: isolate; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 50%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px -20px rgba(0, 0, 0, 0.8);
}
/* soft neutral highlight under the pointer */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 62%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.spot:hover::before { opacity: 1; }
/* rim light: light catches the top-left edge */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- navigation pill ---------- */
.topbar {
  position: fixed; inset: max(16px, env(safe-area-inset-top)) 0 auto 0;
  z-index: 50; display: flex; justify-content: center; padding-inline: 8px; pointer-events: none;
}
.pill {
  pointer-events: auto; position: relative; display: flex; gap: 4px; padding: 4px;
  border-radius: 999px; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  background: rgba(16, 18, 26, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.6);
}
.pill.dragging { cursor: grabbing; }
.pill-link {
  position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.7); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  transition: color 0.2s, transform 0.18s var(--ease); -webkit-tap-highlight-color: transparent;
}
.pill-link:hover, .pill-link[aria-current="true"] { color: #fff; }
.pill-link:active { transform: scale(0.94); }
.pill-indicator {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; z-index: 0;
  border-radius: 999px; will-change: transform, width; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 12px rgba(255, 255, 255, 0.04), 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- signature: eight beats, one count per stretch of the page ---------- */
.beats {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: 8px; pointer-events: none;
}
.beat { display: block; width: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.3s, width 0.3s var(--ease); }
.beat.on { background: rgba(255, 255, 255, 0.85); }
.beat.now { width: 24px; background: var(--blue-hi); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.024em; max-width: 22ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.accent { color: var(--blue-hi); }
.eyebrow { margin: 0 0 16px; color: var(--blue-hi); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; }
.lead { color: var(--dim); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 56ch; margin: 20px 0 0; }
.sub { margin: 56px 0 16px; font-size: 1rem; font-weight: 500; color: var(--ice); }

/* ---------- layout ---------- */
section { padding-block: clamp(80px, 11vw, 144px); }
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 112px; padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-art { display: grid; place-items: center; perspective: 1200px; }

/* ---------- 3D hero stage ---------- */
.stage { position: relative; width: min(560px, 100%); aspect-ratio: 1 / 1.15; transform-style: preserve-3d; will-change: transform; }
.stage .logo { position: absolute; left: 8%; top: 0; width: 84%; }

.device {
  position: absolute; overflow: hidden; background: linear-gradient(160deg, rgba(22, 28, 48, 0.94), rgba(8, 10, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 36px 60px -24px rgba(0, 0, 0, 0.95);
}
.browser { left: 0; bottom: 0; width: 62%; aspect-ratio: 16 / 10; border-radius: 14px; transform: translateZ(70px); }
.browser .bar { display: flex; align-items: center; gap: 4px; height: 8%; min-height: 18px; padding: 0 8px; border-bottom: 1px solid var(--hair); }
.browser .bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.browser .bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.5625rem; color: var(--faint); }
.screen { padding: 10px 12px; display: grid; gap: 8px; }
.m-nav { display: flex; align-items: center; gap: 6px; }
.m-nav b { margin-right: auto; font-size: 0.5625rem; font-weight: 600; color: #fff; }
.m-nav span { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.m-hero { display: grid; gap: 4px; padding-top: 4px; }
.m-title { height: 8px; width: 74%; border-radius: 4px; background: rgba(255, 255, 255, 0.88); }
.m-title.short { width: 52%; }
.m-line { height: 4px; width: 86%; border-radius: 3px; background: rgba(255, 255, 255, 0.26); }
.m-line.short { width: 60%; }
.m-btn { margin-top: 4px; width: 38px; height: 12px; border-radius: 999px; background: var(--blue); }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-cards i { height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hair); }
.m-cards i.hot { background: linear-gradient(180deg, rgba(108, 178, 255, 0.4), rgba(29, 95, 224, 0.18)); }

.phone { right: 0; bottom: 0; width: 20%; aspect-ratio: 9 / 18; border-radius: 20px; padding: 10px 8px; display: grid; align-content: start; gap: 6px; transform: translateZ(120px); }
.phone .notch { justify-self: center; width: 30%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.phone .p-img { height: 38%; border-radius: 10px; background: linear-gradient(170deg, rgba(108, 178, 255, 0.5), rgba(29, 95, 224, 0.15) 60%, rgba(255, 255, 255, 0.05)); }
.phone .m-title { width: 80%; }

.float {
  position: absolute; padding: 8px 16px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
.f1 { top: 8%; left: -2%; transform: translateZ(110px); }
.f2 { top: 30%; right: -4%; transform: translateZ(150px); }
.f3 { top: 50%; left: -4%; transform: translateZ(90px); }

.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 32px 0 0; color: var(--faint); font-size: 0.875rem; }
.proof li { position: relative; padding-left: 16px; }
.proof li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--blue-hi); }

/* work thumbnails */
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--hair); background: rgba(0, 0, 0, 0.4); }
.thumb::before {
  content: ""; position: absolute; left: 12px; top: 8px; width: 30px; height: 6px;
  background: radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.3) 2.5px, transparent 3px) 0 0 / 10px 6px repeat-x;
}
.thumb i { position: absolute; left: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.thumb i:nth-of-type(1) { top: 34%; width: 44%; background: rgba(255, 255, 255, 0.8); height: 8px; }
.thumb i:nth-of-type(2) { top: 52%; width: 32%; }
.thumb b { position: absolute; right: 12px; top: 28px; bottom: 12px; width: 34%; }
.t-dance b { border-radius: 999px; background: linear-gradient(180deg, rgba(108, 178, 255, 0.6), rgba(29, 95, 224, 0.2)); }
.t-martial b { border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 4px, transparent 4px 10px); }
.t-gym b { border-radius: 6px; background: radial-gradient(circle, rgba(108, 178, 255, 0.7) 2px, transparent 2.5px) 0 0 / 12px 12px; }

/* tilt: set by script, small and quick */
.tilt.reveal.in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: opacity 0.5s var(--ease), transform 0.35s var(--ease); }

/* nav: the glass follows hover */
.pill:hover .pill-link[aria-current="true"]:not(.hot) { color: rgba(255, 255, 255, 0.7); }
.pill-link.hot { color: #fff; }
.logo {
  width: min(540px, 100%); height: auto;
  /* the artwork has a black background: feather the edges so it melts into the page */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-svc { grid-template-columns: repeat(3, 1fr); }
.grid-svc .wide { grid-column: 1 / -1; }
.grid-svc .wide p { max-width: 64ch; }
.grid-work { grid-template-columns: 1.4fr 1fr 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: clamp(24px, 3vw, 32px); }
.card p { color: var(--dim); margin: 12px 0 0; }
.tag {
  display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--ice);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair);
}
.role { color: var(--blue-hi) !important; font-weight: 500; margin-top: 4px !important; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 0.9375rem; color: var(--ice);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 24px 28px; border-radius: var(--r-md); display: grid; gap: 8px; align-content: start; }
.steps .n { font-family: var(--mono); font-size: 0.8125rem; color: var(--blue-hi); font-variant-numeric: tabular-nums; }
.steps b { font-size: 1.125rem; font-weight: 600; }
.steps span:not(.n) { color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn-primary { background: var(--blue); border-color: rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover { background: #2569f0; }
.btn-glass {
  background: rgba(255, 255, 255, 0.07); border-color: var(--hair);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list span { color: var(--faint); font-size: 0.8125rem; font-weight: 500; }
.contact-list a, .contact-list b { font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--ice); }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.form { padding: clamp(24px, 3vw, 32px); display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--ice); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hair); border-radius: 12px;
  padding: 12px 16px; transition: border-color 0.2s, background-color 0.2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form select option { background: #0b0f1a; color: #fff; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue-hi); background: rgba(0, 0, 0, 0.5);
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.5em; font-size: 0.9375rem; color: var(--dim); }
.status.ok { color: #8fd0ff; }
.status.err { color: #ffb4b4; }

.foot { padding: 56px 0 48px; color: var(--faint); font-size: 0.9375rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid > * { display: grid; gap: 8px; align-content: start; }
.foot b { color: var(--ink); font-weight: 600; }
.foot-brand { font-size: 1.0625rem; }
.foot p { margin: 0; max-width: 32ch; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.875rem; }

/* ---------- entrance: one short fade and rise ---------- */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .beats { display: none; } }
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .stage { width: min(380px, 88vw); }
  .hero { padding-top: 96px; }
  .grid-svc, .grid-work, .steps, .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pill-link { padding: 8px 12px; font-size: 0.8125rem; }
  .btn { padding: 12px 24px; }
  /* keep the floating labels inside the screen */
  .float { padding: 6px 12px; font-size: 0.75rem; }
  .f1 { left: 6%; }
  .f2 { right: 2%; }
  .f3 { display: none; }
}

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 0.2s; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .pill, .btn-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0b1020; }
}
@media (prefers-contrast: more) {
  .glass, .pill { background: #060a14; border-color: rgba(255, 255, 255, 0.6); }
  .lead, .card p, .steps span { color: #fff; }
}
