/* The Digital Crew — dark, single-theme site modelled on layer.xyz:
   near-black ground, lavender-violet accent, grotesk display + mono labels,
   hairline gray borders, canvas particle backgrounds, GSAP reveals. */
:root {
  --bg: #141316;
  --bg-2: #1c1a1e;
  --card: #1c1822;
  --line: #434245;
  --line-soft: rgba(255, 255, 255, 0.08);
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.85);
  --muted: #8e8d8f;
  --accent: #af7eff;
  --accent-ink: #141316;
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 2.2vw, 32px);
  --max: 1440px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- type ---------- */
.mono, .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { color: var(--muted); }
.label-accent { color: var(--accent); }
.h-hero {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.h-1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; margin: 0; text-wrap: balance; }
.h-2 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 500; margin: 0; text-wrap: balance; }
.h-3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--fg-2); max-width: 38ch; }
.body { color: var(--muted); max-width: 60ch; }
.accent { color: var(--accent); }

/* split-text masking */
.line-mask { overflow: hidden; display: block; padding-bottom: 0.06em; }
.line-mask > .line-inner { display: block; }
.word { display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: stretch; gap: 3px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.btn .btn-text {
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; display: inline-flex; align-items: center;
  position: relative; overflow: hidden;
}
.btn .btn-text span { position: relative; z-index: 1; transition: color .4s var(--ease); }
.btn .btn-text::before {
  content: ""; position: absolute; inset: 0; background: var(--fg);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn .btn-arrow {
  width: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.btn .btn-arrow svg { width: 12px; height: 12px; transition: transform .45s var(--ease); }
.btn:hover .btn-text::before { transform: translateY(0); }
.btn:hover .btn-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover .btn-arrow svg { transform: translateX(3px); }
.btn-ghost .btn-text { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover .btn-text span { color: var(--accent-ink); }

.link-arrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; color: var(--fg);
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; transition: background .5s var(--ease), border-color .5s var(--ease), height .5s var(--ease);
  border: 1px solid transparent;
}
.site-header.is-scrolled .bar {
  background: rgba(20, 19, 22, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-soft);
  height: 60px; margin-top: 10px; padding-inline: 16px;
}
.site-header.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.02em; font-size: 20px; }
.logo .logo-mark { height: 30px; width: auto; aspect-ratio: 1515 / 750; overflow: visible; transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: scale(1.06); }
.site-header.is-scrolled .logo .logo-mark { height: 26px; }
.logo-footer { gap: 16px; font-size: 18px; }
.logo-footer .logo-mark { height: 40px; }
.loader-logo { height: 56px; width: auto; aspect-ratio: 1515 / 750; margin-bottom: 10px; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); position: relative; padding-block: 6px; transition: color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px;
  background: var(--accent); transform: translateY(-50%);
}
.menu-toggle { display: none; width: 40px; height: 34px; border: 1px solid var(--line); position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 20px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 16px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu a.big { display: block; font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.03em; line-height: 1.1; border-bottom: 1px solid var(--line-soft); padding-block: 8px; }
.mobile-menu a.big small { font-family: var(--font-mono); font-size: 11px; color: var(--accent); vertical-align: top; margin-right: 10px; letter-spacing: .1em; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- canvas backgrounds ---------- */
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none;
}
.hero .bg-canvas { z-index: -2; }
.hero-center { text-align: center; padding-top: 72px; }
.hero-center .h-hero .accent { display: block; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-foot p { margin: 0; font-size: 13px; max-width: 30ch; color: var(--fg-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 26px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(150px, 20vh, 220px); padding-bottom: clamp(70px, 10vh, 120px);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .bg-canvas { z-index: -1; opacity: .9; }
.page-hero .inner { display: grid; gap: 28px; }
.page-hero .h-hero { max-width: 14ch; }
.page-hero .meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section.gray { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); align-items: end; }
.section-head > * { min-width: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* statement: scrubbed word reveal */
.statement { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.statement > * { min-width: 0; }
.statement p { margin: 0 0 1em; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500; }
.statement p .word { color: rgba(255, 255, 255, 0.16); transition: color .2s; }
.statement p .word.on { color: var(--fg); }
.statement p .word.on.hl { color: var(--accent); }
@media (max-width: 800px) { .statement { grid-template-columns: 1fr; } }

/* feature cards (bracket numbered) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; position: relative; overflow: hidden;
  transition: background .5s var(--ease);
}
.feature:hover { background: var(--card); }
.feature .viz { aspect-ratio: 4 / 3; width: 100%; max-width: 100%; position: relative; border: 1px solid var(--line-soft); background: radial-gradient(ellipse at 50% 60%, rgba(175, 126, 255, .12), transparent 70%); }
.feature .viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature p { margin: 0; color: var(--muted); }
.feature::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .6s var(--ease);
}
.feature:hover::after { width: 100%; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* ticker / use-case wheel */
.ship {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.ship > * { min-width: 0; }
.wheel { height: 420px; overflow: hidden; position: relative; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.wheel ul { list-style: none; margin: 0; padding: 0; animation: wheel 28s linear infinite; }
.wheel li { font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1.5; color: rgba(255, 255, 255, .22); display: flex; gap: 16px; align-items: baseline; }
.wheel li .mono { color: var(--muted); font-size: 11px; }
.wheel:hover ul { animation-play-state: paused; }
.wheel li:hover { color: var(--accent); }
@keyframes wheel { to { transform: translateY(-50%); } }
@media (max-width: 900px) { .ship { grid-template-columns: 1fr; } .wheel { height: 300px; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: var(--accent); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* grid of cells (sectors / partners) */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell {
  background: var(--bg); min-height: 140px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: background .4s var(--ease); min-width: 0;
}
.section.gray .cell { background: var(--bg-2); }
.cell:hover, .section.gray .cell:hover { background: var(--card); }
.cell .h-3 { transition: color .3s; }
.cell:hover .h-3 { color: var(--accent); }
@media (max-width: 900px) { .cells { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cells { grid-template-columns: 1fr; } }

/* client logo wall */
.brands-section { overflow: hidden; }
.brands-intro { display: grid; justify-items: center; text-align: center; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); }
.brands-intro .h-1 { max-width: 16ch; }
.brands-intro .lead { max-width: 46ch; margin: 0; }
.brands-intro .globe-dot { display: inline-flex; align-items: center; gap: 10px; }
.brands-intro .globe-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(175, 126, 255, .6); animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(175, 126, 255, .6); } 100% { box-shadow: 0 0 0 14px rgba(175, 126, 255, 0); } }

.logo-wall {
  display: grid; gap: 18px; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-wall::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 90%); height: 220px; z-index: -1;
  transform: translate(-50%, -50%); filter: blur(60px); pointer-events: none;
  background: radial-gradient(ellipse, rgba(175, 126, 255, .22), transparent 70%);
}
.logo-row { overflow: hidden; padding-block: 14px; }
.logo-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.logo-row.reverse .logo-track { animation-direction: reverse; animation-duration: 70s; }
.logo-row:hover .logo-track { animation-play-state: paused; }

.logo-tile {
  --plate-bg: #f4f1f8; --plate-ink: #1c1822; --plate-muted: #6b5f80;
  position: relative; flex: none; width: 250px; height: 140px; overflow: hidden; isolation: isolate;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .005));
  transition: transform .6s var(--ease), border-color .4s, background-color .5s, box-shadow .6s var(--ease);
}
.logo-tile[data-plate="dark"] { --plate-bg: #241e2c; --plate-ink: #ffffff; --plate-muted: var(--accent); }
/* purple glow rising from the bottom edge */
.logo-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 90% at 50% 120%, rgba(175, 126, 255, .45), transparent 60%);
}
/* corner brackets */
.logo-tile::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: 0; transform: scale(1.08);
  transition: opacity .4s, transform .6s var(--ease);
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1px 12px no-repeat;
}
.logo-tile-mark { display: grid; place-items: center; transition: transform .6s var(--ease); }
.logo-tile img {
  width: 110px; height: auto; max-width: none;
  filter: brightness(0) invert(1); opacity: .7;
  transition: filter .5s, opacity .4s;
}
.logo-word { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, .7); transition: color .4s; white-space: nowrap; }
.logo-tile-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 10px;
  display: grid; gap: 2px; text-align: center;
  transform: translateY(105%); transition: transform .55s var(--ease);
}
.logo-tile-info b { font-size: 13px; font-weight: 600; color: var(--plate-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-tile-info small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--plate-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.logo-tile:hover, .logo-tile:focus-visible {
  transform: translateY(-8px);
  border-color: var(--accent);
  background-color: var(--plate-bg);
  box-shadow: 0 24px 50px -22px rgba(175, 126, 255, .7);
}
.logo-tile:hover::before, .logo-tile:focus-visible::before { opacity: .55; }
.logo-tile:hover::after, .logo-tile:focus-visible::after { opacity: 1; transform: scale(1); }
.logo-tile:hover .logo-tile-mark, .logo-tile:focus-visible .logo-tile-mark { transform: translateY(-14px) scale(1.04); }
.logo-tile:hover img, .logo-tile:focus-visible img { filter: none; opacity: 1; }
.logo-tile:hover .logo-word, .logo-tile:focus-visible .logo-word { color: var(--plate-ink); }
.logo-tile:hover .logo-tile-info, .logo-tile:focus-visible .logo-tile-info { transform: translateY(0); }
/* dim the neighbours so the hovered brand stands out */
.logo-row:hover .logo-tile:not(:hover) img, .logo-row:hover .logo-tile:not(:hover) .logo-word { opacity: .35; }

@media (hover: none) { .logo-tile img { opacity: .9; } .logo-word { color: rgba(255, 255, 255, .9); } }
@media (max-width: 600px) {
  .logo-tile { width: 180px; height: 104px; }
  .logo-tile img { transform: scale(.75); }
  .logo-word { font-size: 16px; }
  .logo-wall { gap: 10px; }
  .logo-track { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-track [aria-hidden="true"] { display: none; }
}

/* community / CTA block */
.cta-block {
  position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line);
  padding: clamp(40px, 7vw, 100px) clamp(22px, 5vw, 64px);
  display: grid; gap: 28px; justify-items: start;
}
.cta-block .bg-canvas { z-index: -1; }
.cta-block .h-1 { max-width: 16ch; }

/* post cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 18px; min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.post .thumb { aspect-ratio: 16 / 10; max-width: 100%; position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); }
.post .thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post:hover .thumb canvas { transform: scale(1.06); }
.post .meta { display: flex; gap: 10px; flex-wrap: wrap; }
.post .meta .sep { color: var(--line); }
.post p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post:hover .h-3 { color: var(--accent); }
.post .h-3 { transition: color .3s; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* service rows (accordion list) */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%; display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center;
  padding-block: 28px; text-align: left; transition: padding .5s var(--ease);
}
.svc-head .h-2 { transition: color .3s, transform .5s var(--ease); }
.svc-head:hover .h-2 { color: var(--accent); transform: translateX(10px); }
.svc-head .plus { width: 34px; height: 34px; border: 1px solid var(--line); position: relative; transition: background .3s, transform .5s var(--ease); }
.svc-head .plus::before, .svc-head .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--fg); transform: translate(-50%, -50%); }
.svc-head .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.svc.open .plus { background: var(--accent); border-color: var(--accent); }
.svc.open .plus::before, .svc.open .plus::after { background: var(--accent-ink); }
.svc.open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc.open .svc-body { grid-template-rows: 1fr; }
.svc-body > div { overflow: hidden; }
.svc-body .content { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 20px; padding-bottom: 36px; }
.svc-body .content > * { min-width: 0; }
.svc-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-body li { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); display: flex; gap: 10px; }
.svc-body li::before { content: "/"; color: var(--accent); }
@media (max-width: 700px) {
  .svc-head { grid-template-columns: 54px 1fr auto; }
  .svc-body .content { grid-template-columns: 1fr; }
  .svc-body .content > :first-child { display: none; }
}

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.step { border-right: 1px solid var(--line); padding: 0 24px 8px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.step .bar { height: 2px; background: var(--line); position: relative; overflow: hidden; margin-bottom: 16px; }
.step .bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 28px 22px; display: grid; gap: 8px; min-width: 0; }
.stat b { font-size: clamp(40px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b sup { color: var(--accent); font-size: .45em; vertical-align: super; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* case study */
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: stretch; }
.case > * { min-width: 0; }
.case .visual { position: relative; min-height: 460px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.case .visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case .visual .tag { position: absolute; left: 16px; top: 16px; }
.case .copy { display: grid; gap: 22px; align-content: center; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.case dt { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.case dd { margin: 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case .visual { min-height: 320px; } }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 8px 14px; color: var(--muted); transition: all .3s;
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 90px); }
.contact-grid > * { min-width: 0; }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; gap: 6px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.info-list .val { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.01em; user-select: all; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg);
  font: inherit; font-size: 18px; padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.field select option { background: var(--bg); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .25); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { cursor: pointer; }
.pills input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pills input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 800px) { .contact-grid, .form { grid-template-columns: 1fr; } }

/* team / values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border: 1px solid var(--line); padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; background: linear-gradient(180deg, rgba(175, 126, 255, .05), transparent 60%); }
.value p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line-soft); padding-top: clamp(70px, 10vw, 130px); }
.site-footer .bg-canvas { z-index: -1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-top > * { min-width: 0; }
.footer-top h4 { margin: 0 0 16px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top ul a { color: var(--fg-2); transition: color .3s; }
.footer-top ul a:hover { color: var(--accent); }
.footer-word {
  font-size: clamp(56px, 16.5vw, 260px); font-weight: 600; letter-spacing: -0.06em; line-height: .8;
  margin-top: clamp(60px, 10vw, 120px); white-space: nowrap;
  background: linear-gradient(180deg, var(--fg) 20%, rgba(175, 126, 255, .25));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-soft); margin-top: 20px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- page transition + loader ---------- */
.transition-panel {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.transition-panel i { background: var(--accent); transform: scaleY(0); transform-origin: bottom; }
.transition-panel i:nth-child(even) { background: var(--bg-2); }

.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center;
}
.loader .count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.loader .line { width: 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader .line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

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