/* Kinetica Studios — shared styles */

:root {
  --bg: #0B0B0F;
  --fg: #F4F4F5;
  --muted: #A1A1AA;
  --muted-2: #71717A;
  --soft: #D4D4D8;
  --line: #27272A;
  --line-2: #3F3F46;
  --line-3: #52525B;
  --card: #18181B;
  --ink: #0B0B0F;
  --light: #F4F4F5;
  --light-muted: #52525B;
  --accent: #C6F432;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 128px; }
.section-sm { padding-block: 96px; }
.section-light { background: var(--light); color: var(--ink); }
.section-light .eyebrow { color: var(--light-muted); }
.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 16px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .92;
  letter-spacing: -.05em;
}
.display-md { font-size: clamp(48px, 7.6vw, 112px); line-height: .95; }
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.04em;
}
.h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--soft); max-width: 540px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

/* line-by-line headline reveal */
.line { display: block; overflow: hidden; padding-bottom: .05em; }
.line > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.line:nth-child(2) > span { animation-delay: .15s; }
.line:nth-child(3) > span { animation-delay: .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; transition: transform .3s var(--ease-out), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); }
.btn-light { background: var(--light); color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { color: var(--light); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--fg); font-weight: 500; }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.icon-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid currentColor; background: transparent;
}
.icon-btn.is-solid { background: var(--ink); color: var(--light); border-color: var(--ink); }

/* pill toggles (filters / tabs) */
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.section-light .pill-group { border-color: #D4D4D8; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: none;
  background: transparent; font-weight: 600; font-size: 14px; transition: background .3s, color .3s;
}
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--light); color: var(--ink); }
.section-light .pill[aria-pressed="true"] { background: var(--ink); color: var(--light); }

.chip {
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font-weight: 600; font-size: 15px; transition: all .25s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip .chip-mark::before { content: '+'; }
.chip[aria-pressed="true"] .chip-mark::before { content: '✓'; }

.tag { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }

/* ---------- header / nav ---------- */
.site-header {
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 28px;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { color: var(--fg); }
.logo .swirl { flex: 0 0 auto; transition: transform .9s var(--ease-out); }
.logo:hover .swirl { transform: rotate(120deg); }
.logo-word { display: flex; flex-direction: column; font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.logo-word small { margin-top: 4px; font-size: 9px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.nav, .nav .nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav { position: relative; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(24, 24, 27, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 15px; }
.nav a { position: relative; z-index: 1; display: block; padding: 10px 18px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color .35s var(--ease-out); }
.nav a:hover, .nav a:focus-visible { color: var(--fg); }
.nav a[aria-current="page"], .nav .current-menu-item > a, .nav .current-page-ancestor > a { color: var(--accent); }
.nav.has-indicator a.is-on { color: var(--ink); }
.nav-indicator { position: absolute; z-index: 0; top: 0; left: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 999px; background: var(--accent); opacity: 0; pointer-events: none; transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out), opacity .3s; }
.nav.has-indicator .nav-indicator { opacity: 1; }
.roll { display: block; height: 1.3em; line-height: 1.3; overflow: hidden; }
.roll > span { display: block; transition: transform .45s var(--ease-out); }
.roll > span::after { content: attr(data-text); display: block; }
.nav a:hover .roll > span, .nav a:focus-visible .roll > span { transform: translateY(-1.3em); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--fg); cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.site-header.is-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: calc(100% - 8px); left: var(--gutter); right: var(--gutter); z-index: 20; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 24px; background: rgba(24, 24, 27, .96); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s; }
  .nav .nav-list { flex-direction: column; align-items: stretch; }
  .nav a { padding: 14px 18px; font-size: 18px; }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .4s var(--ease-out); }
  .header-actions .btn { padding-inline: 16px; }
}
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.dot.pulse { animation: pulse 2s ease-in-out infinite; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 110px) 110px; }
.hero-art { position: absolute; pointer-events: none; transition: transform .8s var(--ease-out); }
.hero-art.a1 { right: -180px; top: 0; width: 660px; height: 660px; }
.hero-art.a2 { right: -90px; top: 90px; width: 480px; height: 480px; transition-duration: 1s; }
.hero-art.a3 { right: 50px; top: 230px; width: 200px; height: 200px; transition-duration: 1.2s; }
.scan-box { width: 200px; height: 200px; border-radius: 32px; border: 1px solid var(--line-3); position: relative; overflow: hidden; }
.scan-box::after { content: ''; position: absolute; inset: 0; border-bottom: 2px solid var(--accent); animation: scan 3s linear infinite; }
.cursor-ring {
  position: absolute; left: 0; top: 0; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none; opacity: 0;
  transition: transform .18s ease-out, opacity .3s ease;
}
.cursor-ring::after { content: ''; position: absolute; left: 32px; top: 32px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero > *:not(.hero-art):not(.cursor-ring) { position: relative; }
.scroll-hint { margin-top: 72px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase; }
.mouse { width: 28px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line-2); position: relative; overflow: hidden; }
.mouse::after { content: ''; position: absolute; left: 11px; top: 6px; width: 3px; height: 10px; border-radius: 2px; background: var(--accent); animation: scan 3s linear infinite; }

/* split hero (inner pages) */
.hero-split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: clamp(40px, 7vw, 96px) 96px; }
.hero-split > .copy { flex: 1 1 600px; min-width: 0; }
.hero-split > .art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero-split > .art svg { width: 100%; max-width: 440px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.marquee-track { display: inline-flex; gap: 48px; font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: -.02em; color: var(--muted-2); animation: marquee 30s linear infinite; }
.marquee-track.reverse { animation: marquee-rev 36s linear infinite; color: transparent; -webkit-text-stroke: 1px var(--line-3); }
.marquee-track.reverse .sep { -webkit-text-stroke: 0; color: var(--line-3); }
.marquee-track .sep { color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { transition: color .3s; }
.marquee-track:not(.reverse) span:not(.sep):hover { color: var(--fg); }
.marquee-xl .marquee-track { font-size: clamp(44px, 7vw, 96px); font-weight: 700; letter-spacing: -.04em; color: var(--fg); }

/* ---------- service cards (home) ---------- */
.svc-card {
  text-align: left; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  padding: 12px 12px 28px; display: flex; flex-direction: column; gap: 24px;
  transition: transform .4s var(--ease-out), background .35s, color .35s, border-color .35s;
}
.svc-card:hover { transform: translateY(-6px); }
.svc-card[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.svc-card .pic { height: 190px; border-radius: 16px; background: var(--card); overflow: hidden; }
.svc-card .pic svg { width: 100%; height: 100%; transition: transform .6s var(--ease-out); }
.svc-card:hover .pic svg { transform: scale(1.04); }
.svc-card .meta { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.svc-card .num { font-family: var(--font-display); font-size: 14px; opacity: .7; }
.svc-card .body { padding: 0 16px; }
.svc-card .title { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.svc-card .desc { display: block; line-height: 1.6; font-size: 15px; opacity: .8; }
.arrow-circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .4s ease; flex: 0 0 auto; }
.svc-card:hover .arrow-circle { transform: rotate(45deg); }
.svc-detail { margin-top: 16px; border-radius: 24px; border: 1px solid var(--line); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.svc-detail .label { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.bullet { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }
.bullet::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* ---------- work cards ---------- */
.work-card { display: block; }
.work-card:hover { color: inherit; }
.work-card .frame { position: relative; height: 380px; border-radius: 24px; overflow: hidden; }
.work-card .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
.work-card:hover .frame svg { transform: scale(1.08) rotate(-3deg); }
.work-card .cta {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--ink); color: var(--light); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.work-card:hover .cta { opacity: 1; transform: none; }
.work-card .caption { display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px 0; }
.work-card .caption h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.work-card .caption span { color: var(--muted); font-size: 15px; }
[data-cat][hidden] { display: none; }

/* ---------- stepper (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { text-align: left; background: none; border: none; padding: 0; color: var(--muted-2); transition: color .3s; }
.step[aria-selected="true"] { color: var(--ink); }
.step .bar { display: block; position: relative; height: 3px; background: #D4D4D8; border-radius: 2px; overflow: hidden; }
.step .bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.step.is-done .bar::after { width: 100%; }
.step[aria-selected="true"] .bar::after { animation: fill var(--step-ms, 3600ms) linear both; }
.step .n { display: block; margin-top: 20px; font-family: var(--font-display); font-size: 15px; }
.step .t { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.step-panels { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }
.step-copy { flex: 1 1 420px; min-width: 0; background: var(--ink); color: var(--light); border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.step-copy .big { font-family: var(--font-display); font-size: clamp(96px, 12vw, 160px); font-weight: 700; letter-spacing: -.06em; line-height: .85; color: var(--accent); }
.step-copy h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -.03em; }
.step-copy p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 520px; }
.step-art { flex: 1.3 1 420px; min-width: 0; min-height: 360px; border-radius: 28px; background: var(--card); overflow: hidden; }
.step-art svg { width: 100%; height: 100%; min-height: 360px; }

/* tab panels */
[data-panel][hidden] { display: none !important; }
.is-entering { animation: fade .55s ease both; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; border-radius: 32px; background: var(--accent); color: var(--ink);
  padding: clamp(40px, 7vw, 96px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; overflow: hidden;
}
.cta-box h2 { position: relative; margin: 0; font-family: var(--font-display); font-size: clamp(44px, 7vw, 104px); line-height: .92; letter-spacing: -.05em; max-width: 720px; }
.cta-box .deco { position: absolute; right: -120px; bottom: -120px; opacity: .25; animation: spin 40s linear infinite; }
.magnet {
  position: relative; display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%;
  background: var(--ink); color: var(--light); font-weight: 600; font-size: 17px; text-align: center;
  transition: transform .3s var(--ease-out);
}
.magnet:hover { color: var(--light); }
.magnet span { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, #0E0E12 100%); font-size: 15px; color: var(--muted); }
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: 48px 40px; padding-block: 72px 56px; }
.site-footer .col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-label { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.footer-brand .logo { margin-bottom: 6px; }
.footer-brand p { margin: 0; max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-link, .footer-links a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; color: var(--soft); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: color .3s, background-size .45s var(--ease-out); }
.footer-link::after, .footer-links a::after { content: '\2197'; font-size: 13px; opacity: 0; transform: translate(-6px, 4px); transition: opacity .3s, transform .4s var(--ease-out); }
.footer-link:hover, .footer-links a:hover, .footer-link:focus-visible, .footer-links a:focus-visible { color: var(--fg); background-size: 100% 1px; }
.footer-link:hover::after, .footer-links a:hover::after, .footer-link:focus-visible::after, .footer-links a:focus-visible::after { opacity: 1; transform: none; color: var(--accent); }
.footer-links .current-menu-item > a, .footer-links a[aria-current="page"] { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--soft); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.social:hover, .social:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.to-top { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: none; background: none; color: var(--soft); font: inherit; cursor: pointer; }
.to-top span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.to-top:hover span, .to-top:focus-visible span { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-word { position: absolute; z-index: 0; left: 50%; bottom: -.24em; transform: translateX(-50%); margin: 0; font-family: var(--font-display); font-size: clamp(96px, 21vw, 340px); font-weight: 700; letter-spacing: -.06em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #1F1F24; pointer-events: none; user-select: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- list tabs (principles / services explorer) ---------- */
.list-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list-tab {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 0; border: none; border-bottom: 1px solid var(--line);
  background: transparent; text-align: left; font-family: var(--font-display); font-size: 22px; font-weight: 500; transition: all .35s ease;
}
.list-tab small { font-size: 14px; opacity: .7; }
.list-tab[aria-selected="true"] { background: var(--accent); color: var(--ink); padding: 0 20px; }
.box-tabs { display: flex; flex-direction: column; gap: 8px; }
.box-tab {
  display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 0 24px; border-radius: 20px; border: 1px solid var(--line);
  background: transparent; text-align: left; transition: all .35s ease;
}
.box-tab small { font-family: var(--font-display); font-size: 14px; opacity: .7; }
.box-tab strong { flex: 1 1 auto; font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.box-tab svg { transition: transform .4s ease; }
.box-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.box-tab[aria-selected="true"] svg { transform: rotate(45deg); }
.big-statement { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); line-height: 1.12; letter-spacing: -.03em; }

/* ---------- flip cards ---------- */
.flip { position: relative; height: 380px; padding: 0; border: none; background: none; perspective: 1200px; text-align: left; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease-io); }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.flip-front { border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 38%, #16161A 0%, var(--bg) 70%); transition: border-color .4s; }
.flip-top { display: flex; justify-content: space-between; align-items: center; }
.flip-top .num { font-family: var(--font-display); font-size: 14px; color: var(--muted-2); }
.flip-hint { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease-out); }
.flip-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 4px -8px; }
.flip-art svg { width: 100%; max-width: 260px; height: 100%; max-height: 160px; transition: transform .6s var(--ease-out); }
.flip-front .tagline { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.flip:hover .flip-front, .flip:focus-visible .flip-front { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.flip:hover .flip-hint, .flip:focus-visible .flip-hint { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(180deg); }
.flip:hover .flip-art svg { transform: scale(1.06); }
.flip-front .title { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.flip-back { transform: rotateY(180deg); background: var(--accent); color: var(--ink); }
.flip-back .text { font-size: 18px; line-height: 1.5; font-weight: 500; }

/* ---------- team ---------- */
.member .photo { position: relative; height: 300px; border-radius: 24px; overflow: hidden; }
.member .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--ease-out); }
.member:hover .photo svg { transform: scale(1.08) rotate(-4deg); }
.member .bio { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--light); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(10px); transition: all .35s ease; }
.member:hover .bio, .member:focus-within .bio { opacity: 1; transform: none; }
.member .name { padding: 14px 4px 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.member .role { padding: 2px 4px 0; color: var(--light-muted); font-size: 15px; }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  background: none; border: none; text-align: left; font-family: var(--font-display); font-size: 21px; font-weight: 500;
}
.acc-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .35s ease; }
.acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.acc-panel { margin: 0; padding: 0 56px 28px 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.acc-panel[hidden] { display: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; }
.field label { font-size: 14px; color: var(--soft); }
.input {
  min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg);
}
textarea.input { padding: 14px 16px; min-height: 120px; resize: vertical; }
.input.is-invalid { border-color: #FCA5A5; }
.error { margin: -6px 0 0; color: #FCA5A5; font-size: 14px; }
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 40px; }
.progress > span { display: block; height: 100%; width: 33%; background: var(--accent); transition: width .6s var(--ease-io); }
fieldset { border: none; margin: 0; padding: 0; }
legend { padding: 0; }

/* ---------- misc ---------- */
.panel { border-radius: 28px; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.art-box { border-radius: 28px; background: var(--card); overflow: hidden; }
.art-box svg { width: 100%; height: 100%; }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--fg); width: 0; transition: width 1.6s var(--ease-io); }
.is-visible .meter > span { width: var(--w); }
.stat-num { font-family: var(--font-display); font-size: 72px; font-weight: 700; letter-spacing: -.05em; }

/* svg colour helpers (follow --accent) */
.fa { fill: var(--accent); }
.sa { stroke: var(--accent); }

/* toolkit (dim filter) */
.tool { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 16px; font-weight: 500; transition: all .35s ease; }
.tool::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tool:hover { transform: translateY(-3px); }
.tool.is-dim { opacity: .25; }
.tool.is-lit { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.tool.is-lit::before { background: var(--ink); }

/* engagement model cards */
.model {
  text-align: left; border-radius: 28px; border: 1px solid #D4D4D8; background: #FFFFFF; color: var(--ink); padding: 32px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; transition: transform .4s var(--ease-out), background .35s, color .35s;
}
.model:hover { transform: translateY(-6px); }
.model[aria-pressed="true"] { background: var(--ink); color: var(--light); border-color: var(--ink); }

/* radio-style option */
.option {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--line-2);
  background: transparent; text-align: left; font-size: 17px; font-weight: 500; transition: all .3s ease;
}
.option .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-3); display: grid; place-items: center; flex: 0 0 auto; }
.option .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.option[aria-checked="true"] { background: var(--line); border-color: var(--accent); }
.option[aria-checked="true"] .radio { border-color: var(--accent); }
.option[aria-checked="true"] .radio::after { background: var(--accent); }

/* brief summary */
.summary { border-radius: 32px; background: var(--accent); color: var(--ink); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.summary .k { font-size: 13px; opacity: .7; margin-bottom: 6px; }
.summary .v { font-weight: 700; overflow-wrap: anywhere; }
.summary-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--light); font-size: 13px; font-weight: 600; margin: 0 6px 6px 0; }
.summary-empty { opacity: .7; }
.select-box { min-height: 64px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 15px; text-align: left; transition: all .25s; }
.select-box[aria-pressed="true"] { background: var(--light); color: var(--ink); border-color: var(--light); }
.pill[data-value][aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.check-pop { transform-box: fill-box; transform-origin: center; animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.check-draw { stroke-dasharray: 200; animation: draw-short .9s var(--ease-io) .3s both; }
@keyframes draw-short { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

/* case study */
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.thumb { min-height: 64px; padding: 14px 16px; border-radius: 16px; border: 2px solid #D4D4D8; background: #FFFFFF; color: var(--ink); text-align: left; font-weight: 600; font-size: 15px; transition: transform .3s ease, background .3s, color .3s; }
.thumb:hover { transform: translateY(-4px); }
.thumb[aria-pressed="true"] { background: var(--ink); color: var(--light); border-color: var(--ink); }
.next-project { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; border-radius: 32px; background: var(--accent); color: var(--ink); padding: clamp(32px, 5vw, 64px); }
.next-project:hover { color: var(--ink); }
.next-arrow { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--light); display: grid; place-items: center; transition: transform .45s var(--ease-out); }
.next-project:hover .next-arrow { transform: translateX(12px) rotate(-45deg); }
.rec { gap: 10px; }
.rec span { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; padding-bottom: 10px; border-bottom: 1px solid rgba(11, 11, 15, .2); }

/* careers */
.perk { border-radius: 24px; border: 1px solid var(--line); padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: transform .4s var(--ease-out), border-color .3s; }
.perk:hover { transform: translateY(-6px); border-color: var(--accent); }
.perk h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.perk p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.perk-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--line); color: var(--fg); display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.perk-ico.is-accent { background: var(--accent); color: var(--ink); }
.perk-ico.is-light { background: var(--light); color: var(--ink); }
.perk:hover .perk-ico { transform: rotate(-12deg) scale(1.1); }

.role-search { min-height: 48px; width: 220px; max-width: 100%; padding: 0 18px; border-radius: 999px; border: 1px solid #D4D4D8; background: #FFFFFF; color: var(--ink); }
.pill .count { opacity: .6; }
.role-list { border-top: 1px solid var(--ink); }
.role-list .acc-item { border-bottom-color: #D4D4D8; }
.role-btn { flex-wrap: wrap; gap: 12px 24px; padding: 26px 12px; color: var(--ink); transition: background .3s; }
.role-btn:hover { background: #E4E4E7; }
.role-title { flex: 1 1 320px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.role-dept { padding: 6px 12px; border-radius: 999px; background: #E4E4E7; font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.role-meta { flex: 0 0 200px; color: var(--light-muted); font-family: var(--font-body); font-size: 15px; font-weight: 400; }
.role-type { flex: 0 0 100px; color: var(--light-muted); font-family: var(--font-body); font-size: 15px; font-weight: 400; }
.role-list .acc-icon { border-color: var(--ink); }
.role-list .acc-btn[aria-expanded="true"] .acc-icon { background: var(--ink); color: var(--light); border-color: var(--ink); }
.role-panel { padding: 0 12px 32px; color: #3F3F46; display: flex; flex-direction: column; gap: 28px; }
.role-summary { margin: 0; font-size: 17px; line-height: 1.6; max-width: 760px; }
.role-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.role-cols > div { flex: 1 1 280px; }
.role-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--light-muted); margin-bottom: 12px; }
.role-cols ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); line-height: 1.5; }
.role-panel .btn { align-self: flex-start; }
.role-empty { padding: 48px 12px; margin: 0; color: var(--light-muted); font-size: 17px; }

.hire-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hire-line { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 4px; }
.hire-step { position: relative; transition: transform .4s var(--ease-out); }
.hire-step:hover { transform: translateY(-6px); }
.hire-num { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.hire-num.is-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hire-step h3 { margin: 24px 0 8px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.hire-step p { margin: 0; color: var(--muted); line-height: 1.55; }

.apply-box { border-radius: 32px; background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; }
.apply-box .input { background: var(--bg); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input.is-flash { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198, 244, 50, .25); transition: border-color .3s, box-shadow .3s; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- svg animation helpers ---------- */
.a-spin { transform-box: fill-box; transform-origin: center; animation: spin 10s linear infinite; }
.a-spin-slow { animation: spin 40s linear infinite; }
.a-spin-rev { animation: spin 28s linear infinite reverse; }
.a-peek { animation: peek 6s var(--ease-io) infinite; }
.a-float { animation: float 3.5s ease-in-out infinite; }
.a-float-2 { animation: float 4.2s ease-in-out -1.5s infinite; }
.a-flow { stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
.a-draw { stroke-dasharray: 700; animation: draw 2.4s var(--ease-io) both; }
.a-pulse { animation: pulse 2s ease-in-out infinite; }
.a-cursor { animation: cursor 5s var(--ease-io) infinite; }
.a-scanx { animation: scanx 6s ease-in-out infinite; }
.a-drop { animation: drop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.a-ping { transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
.a-ping-2 { transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out 1s infinite; }
.a-grow { transform-box: fill-box; transform-origin: bottom; animation: grow 2.6s ease-in-out infinite; }
.a-orbit { transform-origin: 220px 220px; animation: spin 24s linear infinite; }
.a-fill { animation: fill 1.6s var(--ease-io) both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes peek { 0%, 100% { transform: translateX(-26px); } 50% { transform: translateX(26px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-118px, -50px); } 60% { transform: translate(-40px, 40px); } }
@keyframes scanx { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(250px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes grow { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .hero-art.a1, .hero-art.a2, .hero-art.a3 { opacity: .35; }
  .section { padding-block: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .is-visible .meter > span, .meter > span { width: var(--w); }
}

/* ---------- project logos (work cards, case study) ---------- */
.frame-logo { position: absolute; left: 50%; top: 41%; z-index: 1; width: 48%; max-width: 280px; height: auto; max-height: 40%; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .5)); pointer-events: none; transition: transform .8s var(--ease-out); }
.work-card:hover .frame-logo { transform: translate(-50%, -50%) scale(1.06); }
.case-logo { display: block; width: auto; height: clamp(52px, 7vw, 84px); margin-bottom: 28px; }

/* App store buttons (case study intro) */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.store-label { margin-right: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, .03); color: var(--fg); transition: border-color .3s, background-color .3s, transform .3s var(--ease-out); }
.store-btn:hover { border-color: var(--accent); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.store-btn svg { flex: none; color: var(--accent); }
.store-btn span { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

/* Document upload (job application) */
.field-hint { margin-left: 6px; font-size: 13px; color: var(--muted-2); }
.file-drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--bg); transition: border-color .3s, background-color .3s; }
.file-drop:hover, [data-file-field].is-drag .file-drop { border-color: var(--accent); background: rgba(255, 255, 255, .03); }
.file-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-zone { display: flex; align-items: center; gap: 14px; padding: 18px 20px; pointer-events: none; }
.file-zone svg { flex: none; color: var(--accent); }
.file-zone span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--soft); }
.file-zone strong { color: var(--fg); font-weight: 600; }
.file-zone small { font-size: 13px; color: var(--muted-2); }
[data-file-field].is-full .file-drop { opacity: .5; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.file-list:empty { display: none; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.file-size { color: var(--muted-2); font-size: 13px; }
.file-remove { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--line); color: var(--fg); cursor: pointer; }
.file-remove:hover { background: var(--line-2); }
