/* =========================================================
   Diginint — style.css
   Brand: green #99CA46 · grey #B3B1B3
   Type: Comfortaa (display, echoes the logo) + Quicksand (text)
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --fg: #ecebe6;
  --muted: #8f8e89;
  --line: rgba(236, 235, 230, .13);
  --accent: #99ca46;
  --accent-2: #b3b1b3;
  --on-accent: #0b0b0c;
  --card: #151517;
  --display: "Comfortaa", "Quicksand", system-ui, sans-serif;
  --text: "Quicksand", "Comfortaa", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.22, .9, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="light"] {
  --bg: #f1f0ea;
  --bg-2: #e6e4dc;
  --fg: #141415;
  --muted: #5e5d58;
  --line: rgba(20, 20, 21, .13);
  --card: #fbfaf6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 999; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' 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); }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 20px; z-index: 2000; background: var(--fg); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 3000; background: #050505; color: #ecebe6;
  display: grid; place-items: center; font-family: var(--display); letter-spacing: .04em; font-size: 14px;
  transition: clip-path 1s var(--ease-out), visibility 1s;
  clip-path: inset(0 0 0 0);
}
.preloader__brand { position: absolute; top: 34px; color: var(--accent-2); }
.preloader__mark { width: 160px; height: auto; filter: drop-shadow(0 0 60px rgba(153, 202, 70, .35)); animation: pulse 1.4s var(--ease) infinite alternate; }
.preloader__count { position: absolute; bottom: 34px; font-size: 40px; font-weight: 700; color: var(--accent); }
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes pulse { to { transform: scale(.84) rotate(-4deg); } }

/* ---------- Scroll progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 950; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.cursor { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; width: 0; height: 0; }
.cursor span {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1.5px solid var(--accent); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .3s;
  opacity: 0;
}
.cursor.is-on span { opacity: 1; }
.cursor.is-hover span { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(153, 202, 70, .15); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad); color: var(--fg);
  font-family: var(--display); font-weight: 600;
  transition: background .4s, padding .4s, transform .5s var(--ease);
}
.header.is-scrolled {
  padding-block: 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.logo img { display: block; height: 54px; width: auto; transition: height .4s; }
.header.is-scrolled .logo img { height: 42px; }
.header__actions { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 15px; }
.header__hello { display: inline-block; }
.header__hello .arrow { display: inline-block; color: var(--accent); transition: transform .3s var(--ease); }
.header__hello:hover .arrow { transform: translate(3px, -3px) rotate(45deg); }
.theme-toggle { font-weight: 600; }
.burger { width: 52px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease), width .4s var(--ease); }
.burger span:first-child { top: 4px; }
.burger span:last-child { top: 14px; width: 60%; left: auto; }
.burger:hover span:last-child { width: 100%; }
.burger[aria-expanded="true"] span { width: 100%; top: 9px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(18deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-18deg); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 800; background: var(--bg-2); overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px;
  padding: 140px var(--pad) 60px;
  clip-path: circle(0% at calc(100% - 60px) 48px);
  transition: clip-path .9s var(--ease-out);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 60px) 48px); }
.menu__shape { position: absolute; width: 60vmin; right: -10vmin; top: -8vmin; opacity: .25; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 100px); line-height: 1.08; letter-spacing: -.03em;
  transform: translateY(110%); transition: transform .8s var(--ease-out), color .3s;
}
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .25s; }
.menu__list a span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.menu__list a:hover { color: var(--accent); }
.menu__side { font-size: 15px; line-height: 2; position: relative; }
.menu__claim { font-family: var(--display); font-size: 24px; margin-bottom: 26px; line-height: 1.3; }
.menu__claim span { color: var(--accent); }
.menu__side a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 140px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg > * { will-change: transform; }
.glow { position: absolute; width: 100vmin; height: 100vmin; border-radius: 50%; top: -18%; left: 50%; margin-left: -50vmin; background: radial-gradient(circle, rgba(153, 202, 70, .2), transparent 62%); }
.hero__grid {
  position: absolute; inset: -20% 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent-2); opacity: .35; }
.circuit .nodes circle { fill: var(--accent); animation: node 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.circuit .nodes circle:nth-child(2) { animation-delay: .5s; } .circuit .nodes circle:nth-child(3) { animation-delay: 1s; }
.circuit .nodes circle:nth-child(4) { animation-delay: 1.5s; } .circuit .nodes circle:nth-child(5) { animation-delay: 2s; }
@keyframes node { 50% { transform: scale(1.8); opacity: .4; } }
.trace { stroke-dasharray: 8 10; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -180; } }

.layer { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; height: auto; user-select: none; }
.shape--bubble { width: min(58vmin, 580px); top: 10%; left: 4%; opacity: .4; animation: float 14s ease-in-out infinite alternate; }
.shape--drop { width: min(15vmin, 170px); top: 8%; right: 31%; filter: drop-shadow(0 30px 80px rgba(153, 202, 70, .35)); animation: float 11s ease-in-out infinite alternate-reverse; }
.shape--bubble-sm { width: min(11vmin, 120px); bottom: 10%; right: 22%; opacity: .9; animation: float 8s ease-in-out infinite alternate; }
.shape--drop-sm { width: min(7vmin, 70px); top: 20%; left: 40%; opacity: .45; transform: rotate(30deg); animation: float 9s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -24px; rotate: 3deg; } }

.hero__top {
  display: flex; justify-content: space-between; gap: 40px; align-items: flex-start;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.hero__tags { display: flex; gap: 60px; line-height: 2; }
.hero__tags li { transition: color .3s, transform .3s var(--ease); }
.hero__tags li:hover { color: var(--accent); transform: translateX(6px); }
.hero__contact { display: flex; flex-direction: column; line-height: 2; text-align: right; }
.hero__contact a:hover { color: var(--accent); }

.hero__title { margin: 40px 0 10px; line-height: 0; }
.wordmark { display: block; width: min(100%, 118vh); max-width: 1300px; height: auto; margin: 0 auto; overflow: visible; }
.wm { stroke-width: 2.4; stroke-linejoin: round; fill-opacity: 0; stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.wm--grey { stroke: var(--accent-2); fill: var(--accent-2); }
.wm--green { stroke: var(--accent); fill: var(--accent); }
.is-loaded .wm { animation: draw 2.2s var(--ease) forwards, fill 1s ease forwards 1.3s; }
.is-loaded .wm--green { animation-delay: .35s, 1.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; stroke-width: 0; } }

.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.hero__lead { font-family: var(--display); font-size: clamp(16px, 1.5vw, 21px); max-width: 520px; color: var(--muted); line-height: 1.5; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.scroll-cue span { width: 26px; height: 42px; border: 1.5px solid var(--muted); border-radius: 20px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* load-in for hero bits */
.anim-in { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.is-loaded .anim-in { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee, .footer__marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; }
.marquee__track {
  display: flex; gap: 40px; width: max-content; white-space: nowrap;
  font-family: var(--display); font-size: clamp(22px, 3vw, 42px); font-weight: 700; letter-spacing: -.02em;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track--slow { animation-duration: 48s; font-size: clamp(18px, 2.2vw, 28px); color: var(--muted); }
.marquee__track i { font-style: normal; color: var(--accent); display: inline-block; animation: spin 6s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Generic sections ---------- */
.section { padding: clamp(90px, 12vw, 170px) var(--pad); position: relative; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--accent); margin-bottom: 28px; }
.headline { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 82px); line-height: 1.06; letter-spacing: -.035em; max-width: 15ch; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.section__head { margin-bottom: clamp(50px, 7vw, 90px); position: relative; }
.section__head--split { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.works__intro { max-width: 34ch; color: var(--muted); }

/* split-word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 45ms); }
.split.is-in .w > span { transform: none; }

/* generic reveal */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Studio ---------- */
.studio__mark { position: absolute; right: var(--pad); top: clamp(60px, 9vw, 130px); width: clamp(140px, 19vw, 290px); height: auto; opacity: .9; animation: float 10s ease-in-out infinite alternate; }
.statement { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.7vw, 56px); line-height: 1.22; letter-spacing: -.02em; max-width: 23ch; position: relative; }
.statement .hl { color: var(--accent); font-weight: 700; }
.studio__body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; margin-top: 70px; color: var(--muted); }
.studio__body p { max-width: 42ch; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; font-family: var(--display); color: var(--fg); font-weight: 700; }
.values li { border-top: 1px solid var(--line); padding-top: 10px; display: flex; gap: 12px; transition: color .3s, border-color .3s; }
.values li:hover { color: var(--accent); border-color: var(--accent); }
.values b { color: var(--accent); font-weight: 500; font-size: 12px; padding-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 100px; border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(46px, 5.8vw, 90px); letter-spacing: -.05em; line-height: 1; }
.stat__label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 24ch; }

/* ---------- Services ---------- */
.section__shape { position: absolute; right: var(--pad); top: clamp(40px, 8vw, 110px); width: clamp(120px, 16vw, 240px); height: auto; opacity: .7; pointer-events: none; }
.services__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.service {
  padding: 40px 32px 44px; border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  position: relative; overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease), opacity 1s var(--ease-out) var(--d, 0s);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(153, 202, 70, .16), transparent 60%);
}
.service:hover { border-color: rgba(153, 202, 70, .5); }
.service:hover::before { opacity: 1; }
.service__num { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent); }
.service h3 { font-family: var(--display); font-size: 22px; line-height: 1.2; margin: 18px 0 16px; letter-spacing: -.02em; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.service li { font-size: 12px; font-weight: 600; border: 1px solid var(--line); padding: 4px 12px; border-radius: 100px; }

/* ---------- Approach ---------- */
.approach__line { height: 2px; background: var(--line); margin-bottom: 0; position: relative; overflow: hidden; }
.approach__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.approach__steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { padding: 30px 30px 0 0; counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 13px; }
.step h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; margin: 14px 0 14px; line-height: 1.05; }
.step p { color: var(--muted); font-size: 16px; max-width: 32ch; }
.step__art { display: block; width: 100%; max-width: 250px; height: auto; margin: 18px 0 6px; color: var(--accent-2); opacity: .85; transition: transform .6s var(--ease); }
.step__art .ac { stroke: var(--accent); }
.step__art .fill { fill: var(--accent); stroke: none; }
.step__art path, .step__art rect, .step__art circle { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease) calc(var(--d, 0s) + .3s); }
.step.is-in .step__art path, .step.is-in .step__art rect, .step.is-in .step__art circle { stroke-dashoffset: 0; }
.step:hover .step__art { transform: translateY(-6px); }

/* ---------- Works: stacked cards ---------- */
.stack { position: relative; }
.card {
  position: sticky; top: calc(110px + var(--i) * 14px);
  height: min(78vh, 680px); margin-bottom: 9vh;
}
.card:last-child { margin-bottom: 0; }
.card__inner {
  position: relative; height: 100%; display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(24px, 3vw, 50px);
  padding: clamp(22px, 3vw, 44px); border-radius: 28px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
  transform-origin: 50% 0; will-change: transform;
}
.card__inner::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.card__info { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.card__num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent); }
.card__num small { color: var(--muted); font-weight: 500; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 48px); line-height: 1.05; letter-spacing: -.035em; margin: 16px 0 18px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.card__tags li { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; border: 1px solid var(--line); }
.card__tags li:first-child { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.card__link { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 14px; }
.card__link span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform .4s var(--ease); }
.card__link:hover span { transform: rotate(45deg); }

.card__shot {
  position: relative; display: block; border-radius: 16px; overflow: hidden; background: #000;
  border: 1px solid var(--line); align-self: center; aspect-ratio: 16 / 10.6;
  clip-path: inset(12% 12% 12% 12% round 16px); transition: clip-path 1.2s var(--ease-out);
}
.card.is-in .card__shot { clip-path: inset(0 0 0 0 round 16px); }
.browser { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: rgba(20, 20, 22, .92); backdrop-filter: blur(6px); }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.browser i:first-child { background: #ff5f57; } .browser i:nth-child(2) { background: #febc2e; } .browser i:nth-child(3) { background: #28c840; }
.browser b { margin-left: 10px; font-size: 11px; font-weight: 600; color: #bbb; background: #2a2a2d; padding: 2px 12px; border-radius: 20px; }
.card__shot img { position: absolute; top: 30px; left: 0; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: top center; transform: scale(1.12); transition: transform 1.4s var(--ease-out), object-position 4s ease; }
.card.is-in .card__shot img { transform: scale(1); }
.card__shot:hover img { transform: scale(1.04); }

/* ---------- Clients ---------- */
.logos { display: flex; flex-direction: column; gap: 22px; margin-bottom: 90px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__row { overflow: hidden; }
.logos__track { display: flex; gap: 22px; width: max-content; animation: marquee 40s linear infinite; }
.logos__row--rev .logos__track { animation-direction: reverse; animation-duration: 46s; }
.logos:hover .logos__track { animation-play-state: paused; }
.logo-item {
  display: grid; place-items: center; width: clamp(180px, 18vw, 250px); height: clamp(100px, 9vw, 130px); padding: 22px 30px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.logo-item img { max-height: clamp(48px, 4.6vw, 68px); max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: .6; transition: opacity .4s, transform .4s var(--ease); }
.logo-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.logo-item:hover img { opacity: 1; transform: scale(1.05); }
[data-theme="light"] .logo-item img { filter: invert(1); }

.industries__list { display: flex; flex-wrap: wrap; gap: 0 14px; }
.industries__list li { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.2vw, 48px); letter-spacing: -.035em; line-height: 1.3; color: var(--muted); transition: color .3s; }
.industries__list li::after { content: " ✦"; color: var(--accent); font-size: .5em; vertical-align: middle; }
.industries__list li:hover { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); max-width: 1000px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); transition: color .3s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--accent); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq details p { color: var(--muted); padding: 0 0 28px; max-width: 70ch; animation: open .5s var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Footer ---------- */
.footer { padding: clamp(90px, 12vw, 170px) 0 0; border-top: 1px solid var(--line); }
.footer__cta { padding: 0 var(--pad) 60px; position: relative; overflow: hidden; }
.footer__shape { position: absolute; right: calc(var(--pad) + 2vw); top: 0; width: clamp(110px, 15vw, 230px); height: auto; pointer-events: none; animation: float 9s ease-in-out infinite alternate; }
.footer__title { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8.6vw, 140px); line-height: 1; letter-spacing: -.05em; max-width: 12ch; position: relative; }
.footer__title a { transition: color .4s; }
.footer__title a:hover { color: var(--accent); }
.footer__title a:hover .outline { -webkit-text-stroke-color: var(--accent); }

.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; padding: 80px var(--pad); }
.brief h3, .footer__cols h6 { font-family: var(--display); font-size: 14px; color: var(--accent); font-weight: 700; margin-bottom: 22px; }
.brief label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brief input, .brief select, .brief textarea {
  display: block; width: 100%; margin-top: 8px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg); font: 500 17px/1.4 var(--text); padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.brief select option { background: var(--bg-2); color: var(--fg); }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-color: var(--accent); }
.brief textarea { resize: vertical; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; border-radius: 100px;
  background: var(--fg); color: var(--bg); padding: 10px 10px 10px 22px;
  font-family: var(--display); font-size: 14px; font-weight: 700; transition: background .3s, color .3s;
}
.btn span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform .4s var(--ease); }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn:hover span { background: var(--on-accent); color: var(--accent); transform: rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.brief__note { font-size: 13px; color: var(--accent); margin-top: 14px; min-height: 1em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; font-size: 15px; }
.footer__cols li { margin-bottom: 8px; }
.footer__cols a { transition: color .3s; }
.footer__cols a:hover { color: var(--accent); }
.eco span { font-size: 12px; color: var(--muted); margin-right: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

.magnetic { transition: transform .35s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services__list { grid-template-columns: repeat(2, 1fr); }
  .approach__steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .studio__body { grid-template-columns: 1fr 1fr; }
  .values { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .card__inner { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 860px) {
  .card { height: auto; min-height: 0; top: calc(84px + var(--i) * 8px); margin-bottom: 6vh; }
  .card__inner { grid-template-columns: 1fr; gap: 18px; }
  .card__shot { order: -1; }
  .card p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card h3 { margin: 8px 0 12px; }
  .card__link { margin-top: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo img { height: 42px; }
  .header__hello, .theme-toggle__label { display: none; }
  .menu { grid-template-columns: 1fr; align-items: start; }
  .hero__top { flex-direction: column; gap: 20px; }
  .hero__contact { text-align: left; }
  .hero__tags { gap: 30px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .studio__mark, .section__shape { opacity: .25; }
  .shape--drop { top: auto; bottom: 30%; right: 6%; width: 22vw; }
  .shape--drop-sm { display: none; }
  .hero { justify-content: flex-start; gap: 0; }
  .hero__title { margin-top: auto; }
  .studio__body, .services__list, .approach__steps, .footer__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; margin-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .brief__row, .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .anim-in { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .wm { fill-opacity: 1; stroke-dashoffset: 0; stroke-width: 0; }
  .card__shot { clip-path: none; }
}
