/* ==========================================================================
   Boltish — Volt direction
   Mobile-first. Dark theme, electric accent.
   ========================================================================== */

:root {
  --bg: #0A0A0C;
  --ink: #F2F2EE;
  --muted: #B9B9B2;
  --dim: #8E8E87;
  --line: #2A2A30;
  --line-2: #34343B;
  --card: #17171B;
  --accent: #D4FF3A;

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html:has(body.menu-open),
body.menu-open { overflow: hidden; overscroll-behavior: none; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 12px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.accent { color: var(--accent); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em;
}
.logo svg { width: 22px; height: 22px; fill: var(--accent); }
.logo--ink svg { fill: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter) 0;
  padding-top: max(20px, env(safe-area-inset-top));
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(-120%); }

.menu-btn, .menu-close {
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 12, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); cursor: pointer; padding: 0;
}
.menu-btn svg, .menu-close svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.menu-close { background: var(--bg); border-color: var(--bg); color: var(--accent); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--accent); color: var(--bg);
  display: flex; flex-direction: column;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
  clip-path: circle(0px at calc(100% - 44px) 44px);
}
.menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 44px) 44px); }

.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter) 0;
  padding-top: max(20px, env(safe-area-inset-top));
}

.menu-nav {
  margin-top: 48px; padding-inline: var(--gutter);
  display: flex; flex-direction: column;
}
.menu-nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 0; border-bottom: 1.5px solid var(--bg);
}
.menu-nav .idx { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.menu-nav .word {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(42px, 12vw, 96px); line-height: 1; letter-spacing: -.045em;
}

.menu-foot {
  margin-top: auto; padding: 40px var(--gutter) 0;
  display: flex; flex-direction: column; gap: 10px;
}
.menu-email {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 5.6vw, 32px); letter-spacing: -.03em;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
  margin-bottom: 14px; overflow-wrap: anywhere;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.pills a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pills--ink a { border: 1.5px solid var(--bg); }
.pills--ink a:hover { background: var(--bg); color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 60px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  cursor: pointer; transition: transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--light { background: var(--ink); color: var(--bg); padding: 0 8px 0 26px; }
.btn--dark { background: var(--bg); color: var(--ink); padding: 0 26px; }
.btn--block { width: 100%; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 999px; background: var(--bg);
  display: grid; place-items: center; transition: transform .4s var(--ease);
}
.btn:hover .btn-icon { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 28px;
}
.hero-bolt {
  position: absolute; right: -90px; top: 110px;
  width: min(380px, 95vw); height: auto; pointer-events: none;
  fill: none; stroke: var(--accent); stroke-width: .18; stroke-linejoin: round; opacity: .5;
}
.hero-inner { position: relative; display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--muted); }
.dot {
  position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.9); opacity: .25; } }

.hero-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(54px, 14.4vw, 168px); line-height: .94; letter-spacing: -.045em;
}
/* Hide intro elements until GSAP takes over (with a failsafe if JS never runs) */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.intro-ready) .hero-title,
  .js:not(.intro-ready) .hero-fade { opacity: 0; animation: failsafe 0s 2.5s forwards; }
}
@keyframes failsafe { to { opacity: 1; } }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }

.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34ch; }

.hero-bottom {
  margin-top: auto; padding-top: 48px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--dim);
}
.scroll-cue > span { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i {
  position: absolute; inset: 0; background: var(--accent); transform-origin: top;
  animation: cue 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquees ---------- */
.marquees { overflow: clip; padding-block: 28px; margin-top: 28px; position: relative; }
.marquee {
  width: 120%; margin-left: -10%; padding: 14px 0; overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3vw, 30px); white-space: nowrap;
}
.marquee--accent { background: var(--accent); color: var(--bg); transform: rotate(-4deg); position: relative; z-index: 1; }
.marquee--light { background: var(--ink); color: var(--bg); transform: rotate(3deg); margin-top: -18px; }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { padding-right: .5em; }
/* CSS fallback if GSAP doesn't load */
html:not(.gsap) .marquee-track { animation: marquee 16s linear infinite; }
html:not(.gsap) .marquee-track[data-reverse] { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(96px, 14vw, 160px); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.05;
}
.section-num { font-size: 13px; font-weight: 700; color: var(--dim); }

/* ---------- Service cards (sticky stack) ----------
   Each card sticks a little lower than the one before, so earlier titles
   stay visible. The bottom margins line every card's bottom edge up, so the
   finished stack scrolls away together instead of collapsing. */
.cards {
  --peek: 104px;    /* how much of each earlier card stays visible */
  --card-h: 276px;
  --count: 3;
  display: flex; flex-direction: column; gap: 24px;
}
.card {
  position: sticky;
  top: calc(var(--header-h) + var(--i) * var(--peek));
  margin-bottom: calc((var(--count) - 1 - var(--i)) * var(--peek));
  min-height: var(--card-h); border-radius: 28px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
/* Gives the finished stack a moment on screen before it scrolls away */
.cards-hold { height: 8svh; }
.card--dark { background: var(--card); border: 1px solid var(--line); }
.card--light { background: var(--ink); color: var(--bg); }
.card--accent { background: var(--accent); color: var(--bg); }
.card-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.card-top svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.card h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(34px, 6vw, 64px); letter-spacing: -.045em; line-height: 1;
}
.card p { font-size: 15px; max-width: 40ch; }
.card--dark p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 13px; font-weight: 700; }
.card--dark .tags li { border-color: var(--line-2); }

/* ---------- Work (horizontal) ---------- */
.work { padding-top: clamp(96px, 14vw, 160px); }
.work-pin { display: flex; flex-direction: column; gap: 0; }
/* While pinned, the whole block (title included) sits centred below the header */
html.gsap .work-pin {
  min-height: 100svh; justify-content: center;
  padding-top: calc(var(--header-h) + 8px); padding-bottom: 24px;
}
.work-pin .section-head { margin-bottom: 28px; }
.work-viewport { overflow: hidden; }
html:not(.gsap) .work-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.work-track {
  display: flex; gap: 14px; width: max-content;
  padding-inline: var(--gutter);
}
.work-card { width: min(76vw, 380px); display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.work-art {
  height: min(100vw, 460px); max-height: 56svh; min-height: 340px;
  border-radius: 28px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.art--violet { background: #8B7BFF; }
.art--orange { background: #FF6B3D; }
.art--accent { background: var(--accent); }
.art--light { background: var(--ink); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work-meta span:first-child { font-family: var(--display); font-weight: 700; font-size: 18px; }
.work-meta span:last-child { font-size: 13px; color: var(--dim); }

/* Placeholder art (swap for real project imagery) */
.art-orbit { position: absolute; width: 110%; height: auto; fill: none; stroke: var(--bg); stroke-width: 2; stroke-dasharray: 4 8; animation: spin 18s linear infinite; }
.art-orbit .moon { fill: var(--bg); stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-phone {
  position: relative; width: 46%; aspect-ratio: 9 / 16; border-radius: 26px; background: var(--bg);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 8px;
  animation: bob 5s ease-in-out infinite;
}
.art-phone i { display: block; border-radius: 4px; background: #45454C; height: 8px; }
.art-phone i:nth-child(1) { width: 60%; height: 10px; background: var(--ink); }
.art-phone i:nth-child(2) { height: 30%; border-radius: 12px; background: var(--accent); }
.art-phone i:nth-child(3) { width: 80%; }
.art-phone i:nth-child(4) { width: 50%; }
.art-phone i:nth-child(5) { margin-top: auto; height: 34px; border-radius: 999px; background: var(--ink); }
.art-phone--dark { transform: rotate(-6deg); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.art-browser {
  width: 82%; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--ink); overflow: hidden;
  display: flex; flex-direction: column;
}
.art-browser i:nth-child(1) { height: 22px; background: var(--bg); }
.art-browser i:nth-child(2) { margin: 16px; height: 16px; width: 55%; border-radius: 4px; background: var(--bg); }
.art-browser i:nth-child(3) { margin: 0 16px; flex: 1; margin-bottom: 16px; border-radius: 8px; background: #FFB59C; }
.art-grid { width: 76%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; transform: rotate(4deg); }
.art-grid i { aspect-ratio: 1; border-radius: 14px; background: var(--bg); }
.art-grid i:nth-child(2), .art-grid i:nth-child(3) { background: rgba(10, 10, 12, .2); border: 2px solid var(--bg); }

.work-progress { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 13px; font-weight: 700; }
.work-progress .bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.work-progress .bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(.25); }
.work-progress a { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Statement ---------- */
.statement {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 7vw, 88px); line-height: 1.08; letter-spacing: -.045em;
}
html.gsap .statement .word { color: #3A3A40; }

/* ---------- Process ---------- */
.process { display: flex; gap: 20px; }
.process-line { width: 2px; flex: none; background: var(--line); position: relative; }
.process-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(.15); }
.process ol { display: flex; flex-direction: column; gap: 34px; }
.process li { display: flex; flex-direction: column; gap: 6px; color: var(--dim); transition: color .4s; }
.process .step { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 32px); color: var(--ink); transition: color .4s; }
.process li.is-active { color: var(--muted); }
.process li.is-active .step { color: var(--accent); }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  margin: clamp(96px, 14vw, 160px) 12px 0;
  max-width: calc(var(--max) - 24px);
  background: var(--accent); color: var(--bg);
  border-radius: 32px; padding: 40px 22px;
  display: flex; flex-direction: column; gap: 22px;
}
@media (min-width: 1224px) { .contact { margin-inline: auto; } }
.contact > * { position: relative; }
.contact-bolt { position: absolute; right: -40px; top: -30px; width: 220px; height: 220px; fill: var(--bg); opacity: .16; }
.contact h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(44px, 8vw, 96px); line-height: .96; letter-spacing: -.05em;
}
.contact-sub { font-size: 16px; max-width: 42ch; }
.contact-alt { font-size: 15px; }
.contact-alt a { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.form { display: flex; flex-direction: column; gap: 22px; margin-top: 6px; max-width: 640px; }
.field {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 0; margin: 0; padding: 0; min-width: 0;
}
.field em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.field legend { padding: 0; margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--bg); border-radius: 0;
  padding: 10px 0;
  font-family: var(--body); font-size: 17px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--bg); resize: none;
  transition: border-bottom-width .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(10, 10, 12, .55); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-width: 3px; }
.field input[aria-invalid="true"] { border-bottom-color: #B0001E; border-bottom-width: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--bg);
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none;
  cursor: pointer; user-select: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip:has(input:checked) { background: var(--bg); color: var(--accent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--bg); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: #8A0018; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer {
  padding-top: 64px; padding-bottom: max(36px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px;
}
.footer-mark {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(76px, 20vw, 260px); letter-spacing: -.06em; line-height: .9;
}
.footer-bottom { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  .cards { gap: 32px; --peek: 128px; --card-h: 360px; }
  .card { padding: 40px; }
  .contact { padding: 64px 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .menu { transition: none; }
}
