/* arkdevs — site styles.
   Brand (tools/source/brand): black #111111, red #E10600 on the swoosh and accents only,
   Sora for type. Dot-matrix is the product texture: the hero display, icons and covers. */

@font-face { font-family: 'Sora'; src: url('../fonts/sora-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/sora-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #111111;
  --surface: #171717;
  --surface2: #1c1c1c;
  --surface3: #242424;
  --line: #262626;
  --line2: #383838;
  --text: #f5f5f5;
  --text2: #a3a3a3;
  --text3: #6b6b6b;
  --dot-off: #262626;
  --accent: #e10600;
  --on-accent: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --sans: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dots-h: radial-gradient(circle, var(--line2) 1.1px, transparent 1.6px) 0 50% / 8px 4px repeat-x;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 999px; transform: translateY(-200%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 400; }
.small { font-size: 12px; }
.dim { color: var(--text3); }
.red { color: var(--accent); }
.hide-sm { }

/* ---------------------------------------------------------------- type */
.display { font-size: clamp(40px, 6.2vw, 116px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.h1 { font-size: clamp(40px, 6.4vw, 108px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.h2 { font-size: clamp(32px, 4.6vw, 74px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.h3 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.h4 { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.display em, .h1 em, .h2 em { font-style: normal; color: var(--text3); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--text2); max-width: 46ch; letter-spacing: -.005em; }
.lead-xl { font-size: clamp(19px, 1.9vw, 27px); max-width: 40ch; margin-top: clamp(20px, 3vw, 36px); }
.eyebrow { color: var(--text2); display: flex; align-items: center; gap: 10px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot-num { font-weight: 600; font-size: clamp(56px, 7.5vw, 128px); line-height: .95; letter-spacing: -.05em; display: block; }
.prose { display: grid; gap: 20px; max-width: 64ch; color: var(--text2); }
.prose .lead { color: var(--text); max-width: none; }
.prose .h4 { color: var(--text); margin-top: 16px; }

/* ---------------------------------------------------------------- buttons & links */
.btn { --b: var(--text); position: relative; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 28px; border-radius: 999px; background: var(--b); color: var(--bg); font-weight: 600; font-size: 16px; letter-spacing: -.01em; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); will-change: transform; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover { color: var(--on-accent); }
.btn:hover::before { transform: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-label { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.btn-label::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn-label { transition: transform .5s var(--ease); }
.btn:hover .btn-label { transform: translateY(-100%); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.link-u { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u .arr { transition: transform .5s var(--ease); }
.link-u:hover .arr { transform: translateX(3px); }

/* ---------------------------------------------------------------- chrome */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter); transition: transform .6s var(--ease), background .4s, backdrop-filter .4s; }
.nav::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 4px; background: var(--dots-h); opacity: 0; transition: opacity .4s; }
.nav.is-scrolled { background: rgba(17, 17, 17, .78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.nav.is-scrolled::after { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; color: var(--text); }
.logo-svg { height: 32px; width: auto; overflow: visible; }
.lg-sw { transform-box: fill-box; transform-origin: 0% 50%; }
.logo:hover .lg-sw { animation: swoosh .8s var(--ease) both; }
.glyph .off { fill: var(--dot-off); }
.glyph .on { fill: var(--text); }
.glyph .red { fill: var(--accent); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { position: relative; display: block; padding: 8px 14px; border-radius: 999px; color: var(--text2); font-size: 15px; transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--accent); color: var(--on-accent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(225, 6, 0, .6); animation: pulse 2s infinite; }
.nav-cta:hover .pulse { background: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0); visibility: visible; }
.menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu li a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-size: clamp(36px, 10vw, 64px); letter-spacing: -.04em; line-height: 1.1; font-weight: 600; transform: translateY(100%); transition: transform .8s var(--ease); }
.menu li a .mono { color: var(--accent); }
.menu.is-open li a { transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open li:nth-child(4) a { transition-delay: .18s; }
.menu-foot { display: flex; flex-direction: column; gap: 8px; color: var(--text2); }
.menu-foot a { color: var(--text); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.grain { position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }

/* cursor (fine pointers only; JS adds .has-cursor) */
.cursor { display: none; }
.has-cursor .cursor { display: block; opacity: 0; position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor-ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, box-shadow .4s; }
.cursor-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: inset 0 0 0 1px #fff; }
.cursor.has-label { mix-blend-mode: normal; }
.cursor.has-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--text); box-shadow: none; }
.cursor.has-label .cursor-label { opacity: 1; }
.cursor.has-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { transform: scale(.85); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

/* loader & page transition */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: none; }
.js .loader { display: grid; place-items: center; animation: loader-failsafe 0s 4s forwards; }
.js.from-nav .loader, .js.seen .loader { display: none; }
.loader-mark { color: var(--text); }
.loader-svg { width: clamp(96px, 12vw, 150px); height: auto; overflow: visible; }
.loader-svg .lg-a { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader-svg .lg-sw { transform: scaleX(0); }
.loader-count { position: absolute; right: var(--gutter); bottom: 28px; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.02em; line-height: 1; }
.wipe { position: fixed; inset: 0; z-index: 450; pointer-events: none; background: var(--bg) radial-gradient(circle, #262626 1.6px, transparent 2px) 0 0 / 14px 14px; transform: scaleY(0); transform-origin: 50% 100%; }
.js.from-nav .wipe { transform: scaleY(1); transform-origin: 50% 0; }

/* ---------------------------------------------------------------- motion states */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }
.js.no-motion [data-reveal] { opacity: 1; transform: none; }
.js.no-motion [data-split] { visibility: visible; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-in { display: block; will-change: transform; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 8px); padding-bottom: clamp(28px, 5vh, 56px); overflow: hidden; }
.hero-bar { display: flex; justify-content: space-between; gap: 16px; color: var(--text2); padding-block: 8px 0; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px #3ddc84; animation: blink-soft 2.4s infinite; }
.hero-matrix { position: relative; flex: 1 1 auto; min-height: 22vh; margin-block: clamp(8px, 2.4vh, 28px); }
.hero-matrix canvas, .nf canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { display: grid; gap: clamp(20px, 3vw, 40px); }
.hero-side { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.hero-side .lead { max-width: 46ch; }
.hero-side .cta-row { margin-top: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text3); }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(var(--text3), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: scroll-line 1.8s var(--ease-in-out) infinite; }

/* ---------------------------------------------------------------- marquee */
.marquee { position: relative; overflow: hidden; padding-block: 18px; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { border-top: 0; }
.mq-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.is-rev .mq-track { animation-direction: reverse; }
.mq-row { display: flex; align-items: center; flex: none; }
.mq-item { padding-inline: clamp(18px, 2.4vw, 36px); font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.03em; color: var(--text2); white-space: nowrap; }
.mq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); flex: none; }
.mq-row .mq-dot:nth-of-type(3n) { background: var(--accent); }
.marquee-big { padding-block: 26px; }
.marquee-big .mq-item { font-weight: 600; font-size: clamp(36px, 5vw, 80px); letter-spacing: -.04em; color: var(--text); }

/* ---------------------------------------------------------------- sections */
.sec { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.sec-tight { padding-block: clamp(40px, 6vw, 80px); }
.sec-head { margin-bottom: clamp(40px, 5vw, 72px); display: grid; gap: 0; position: relative; }
.sec-head .lead { margin-top: clamp(18px, 2vw, 28px); }
.sec-head > .link-u { margin-top: 24px; justify-self: start; color: var(--text2); }
.sec-head > .link-u:hover { color: var(--text); }
.idx { color: var(--text2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.two-col .sec-head { margin-bottom: 0; }

.intro .statement { font-size: clamp(28px, 3.9vw, 62px); line-height: 1.14; letter-spacing: -.035em; font-weight: 600; max-width: 24ch; }
.statement .w { color: var(--text); }
.js:not(.no-motion) .statement .w { color: var(--text3); }
.intro-foot { margin-top: clamp(32px, 4vw, 56px); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.svc:nth-child(3n) { border-right: 0; }
.svc-link { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(24px, 2.6vw, 40px); padding-top: clamp(28px, 3vw, 44px); transition: background .5s var(--ease); overflow: hidden; }
.svc-link::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .06), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.svc-link:hover::before { opacity: 1; }
.svc-link:hover { background: var(--surface); }
.svc-num { color: var(--text3); position: absolute; top: clamp(24px, 2.6vw, 40px); right: clamp(24px, 2.6vw, 40px); }
.svc-glyph { width: 64px; height: 64px; margin-bottom: clamp(24px, 4vw, 56px); }
.svc-link p, .svc-row p { color: var(--text2); }
.svc-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--text2); transition: color .3s, gap .4s var(--ease); }
.svc-link:hover .svc-more { color: var(--text); gap: 14px; }
.svc-link:hover .glyph .on, .svc-row a:hover .glyph .on, .mini-svc a:hover .glyph .on { animation: blink .6s calc(var(--i) * 40ms) var(--ease) both; }

/* horizontal work */
.hscroll { overflow: hidden; }
.hscroll-track { display: flex; gap: clamp(16px, 2vw, 32px); padding-inline: var(--gutter); width: max-content; }
.panel { width: min(66vw, 940px); flex: none; }
.panel-link { display: grid; gap: 22px; }
.panel-media .visual { aspect-ratio: 16 / 9; max-height: 56vh; }
.panel-info { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; row-gap: 8px; align-items: baseline; }
.panel-info .panel-idx { grid-row: span 3; color: var(--text3); }
.panel-info p { color: var(--text2); max-width: 60ch; }
.panel-end { width: min(40vw, 520px); }
.panel-all { aspect-ratio: 4 / 5; max-height: min(56vh, calc(min(66vw, 940px) * .5625)); display: flex; flex-direction: column; justify-content: space-between; padding: 36px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line2); transition: background .5s var(--ease); }
.panel-all:hover { background: var(--surface); }
.panel-all .h3 { display: flex; align-items: center; gap: 12px; }

/* visuals & covers */
.visual { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #0b0b0b; box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; transform: translateZ(0); }
.visual > * { transition: transform 1.2s var(--ease); }
a:hover .visual > .cover-art, a:hover .visual > img { transform: scale(1.035); }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art .o { fill: #1b1b1b; }
.cover-art .l { fill: var(--text); }
.cover-art .s { fill: #333; animation: twinkle 3.2s var(--d) infinite; }
.cover-art .r { fill: var(--accent); }
a:hover .cover-art .l { animation: sweep 1s var(--d) var(--ease) both; }
.visual-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-logo .cover-art { opacity: .35; }
.visual-logo-img { position: absolute; left: 50%; top: 50%; width: 34%; max-width: 240px; transform: translate(-50%, -50%); border-radius: 22.5%; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
a:hover .visual-logo-img { transform: translate(-50%, -50%) scale(1.05); }
.visual-phones { display: flex; justify-content: center; align-items: center; background: #0b0b0b radial-gradient(circle, #1e1e1e 1.4px, transparent 1.8px) 0 0 / 14px 14px; }
.phone { position: absolute; width: 27%; aspect-ratio: 1170 / 1992; border-radius: clamp(14px, 2.2vw, 34px); overflow: hidden; box-shadow: 0 0 0 clamp(3px, .45vw, 6px) #1b1b1b, 0 40px 90px rgba(0, 0, 0, .9); background: #000; transition: transform 1.2s var(--ease); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-0 { transform: translate(-78%, 7%) rotate(-7deg); z-index: 1; }
.phone-1 { transform: translate(0, -2%); z-index: 2; }
.phone-2 { transform: translate(78%, 7%) rotate(7deg); z-index: 1; }
a:hover .phone-0, .case-visual:hover .phone-0 { transform: translate(-88%, 4%) rotate(-10deg); }
a:hover .phone-1, .case-visual:hover .phone-1 { transform: translate(0, -5%); }
a:hover .phone-2, .case-visual:hover .phone-2 { transform: translate(88%, 4%) rotate(10deg); }

/* stats */
.stats { padding-block: clamp(64px, 9vw, 130px); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat p { color: var(--text2); margin-top: 16px; max-width: 22ch; }
.stats-case .dot-num { font-size: clamp(48px, 6vw, 104px); }

/* product rows */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); position: relative; }
.row a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .8fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 44px) 0; position: relative; }
.row-name { transition: transform .6s var(--ease), color .4s; }
.row-desc { color: var(--text2); transition: color .4s; }
.row-meta { color: var(--text3); }
.row-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line2); transition: background .4s, color .4s, transform .6s var(--ease); }
.row a:hover .row-name { transform: translateX(14px); }
.row a:hover .row-desc { color: var(--text); }
.row a:hover .row-arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.row-preview { position: absolute; top: 0; left: 0; width: 300px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); z-index: 5; background: #0b0b0b; box-shadow: 0 30px 60px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line); transition: opacity .35s, transform .5s var(--ease); }
.row-preview .cover-art { position: absolute; }
.row a:hover .row-preview { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* process */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.process-side { position: sticky; top: calc(var(--nav-h) + 40px); }
.steps-wrap { position: relative; padding-left: 40px; }
.steps { display: grid; gap: 0; }
.steps-line { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(var(--line2) 0 2px, transparent 2px 7px); }
.steps-fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-block: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { content: ''; position: absolute; left: -40px; top: calc(clamp(24px, 3vw, 44px) + 12px); width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line2); transition: box-shadow .4s, background .4s; }
.step.is-on::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(225, 6, 0, .2); }
.step-n { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; padding-top: 6px; color: var(--text3); transition: color .4s; }
.step.is-on .step-n { color: var(--text); }
.step p { color: var(--text2); margin-top: 8px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 6vw, 110px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.02em; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); transition: background .4s, transform .5s var(--ease); }
.qa-icon::before, .qa-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.qa-icon::after { transform: rotate(90deg); }
.qa[open] .qa-icon { background: var(--text); color: var(--bg); transform: rotate(180deg); }
.qa[open] .qa-icon::after { transform: rotate(0); }
.qa summary:hover .qa-icon { box-shadow: inset 0 0 0 1px var(--text); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-body p { color: var(--text2); padding-bottom: 28px; max-width: 62ch; }

/* cta */
.cta-band { border-top: 1px solid var(--line); }
.cta-inner .h2 { max-width: 16ch; }
.cta-inner .lead { margin-top: 24px; }
.cta-row .link-u { color: var(--text2); }

/* page hero */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(40px, 6vw, 88px); }
.crumbs { color: var(--text3); margin-bottom: clamp(32px, 5vw, 64px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line2); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text2); }

.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.svc-hero-glyph { display: grid; place-items: center; }
.glyph-xl { width: min(100%, 340px); height: auto; }
.glyph-xl .on { animation: glyph-in 1.2s calc(.4s + var(--i) * 45ms) var(--ease) both; }
.glyph-xl .red { animation: pulse-fill 2s 1.6s infinite; }

.svc-list { border-top: 1px solid var(--line); }
.svc-row a { display: grid; grid-template-columns: 48px 72px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease); }
.svc-row a:hover { padding-left: 16px; }
.svc-row .svc-num { position: static; }
.svc-row .glyph { width: 72px; height: 72px; }
.svc-row .row-arrow { transition: background .4s, transform .6s var(--ease); }
.svc-row a:hover .row-arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.svc-row-main p { margin-top: 8px; max-width: 48ch; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.points-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.point { padding: clamp(24px, 2.6vw, 40px) clamp(20px, 2.4vw, 36px) clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.point + .point { padding-left: 0; }
.points > .point:not(:nth-child(3n + 1)) { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.points-2 > .point:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
.points-2 > .point:nth-child(2n) { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.point-n { color: var(--accent); }
.point p { color: var(--text2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--text2); white-space: nowrap; }
.chip-lg { font-size: 13px; padding: 10px 18px; color: var(--text); transition: background .3s, color .3s; }
.chip-lg:hover { background: var(--text); color: var(--bg); }

.mini-svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mini-svc a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s; }
.mini-svc a:hover { background: var(--surface); }
.mini-svc .glyph { width: 36px; height: 36px; flex: none; }
.mini-svc .arr { margin-left: auto; color: var(--text3); }

/* work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { height: 40px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--text2); font-size: 14px; transition: background .3s, color .3s, box-shadow .3s; }
.filter:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text3); }
.filter.is-on { background: var(--text); color: var(--bg); box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.card.is-out { display: none; }
.card-link { display: grid; gap: 20px; }
.card-body { display: grid; gap: 10px; }
.card-body p:not(.card-meta) { color: var(--text2); }
.card-meta { display: flex; justify-content: space-between; color: var(--text3); }
.card .chips { margin-top: 6px; }
.card .h4 { transition: color .3s; }
.card-link:hover .h4 { color: var(--accent); }

/* case */
.case-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.case-visual .visual { aspect-ratio: 16 / 8; }
.case-visual .visual-phones { aspect-ratio: 16 / 9; }
.case-visual .visual-wide { aspect-ratio: 920 / 394; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: clamp(32px, 4vw, 56px); }
.meta h2 { color: var(--text3); margin-bottom: 10px; font-weight: 400; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.shot { display: grid; gap: 12px; }
.shot img { border-radius: clamp(16px, 2vw, 28px); box-shadow: 0 0 0 1px var(--line); }
.shot figcaption { color: var(--text3); text-transform: none; letter-spacing: 0; }
.next { padding-block: clamp(40px, 6vw, 96px); }
.next-link { position: relative; display: grid; gap: 12px; padding-block: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); overflow: hidden; }
.next-link .mono { color: var(--text2); position: relative; z-index: 1; }
.next-name { position: relative; z-index: 1; font-size: clamp(44px, 8.5vw, 150px); line-height: 1; letter-spacing: -.05em; font-weight: 600; transition: transform .8s var(--ease); }
.next-link:hover .next-name { transform: translateX(2vw); }
.next-art { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.next-art .cover-art { position: absolute; }
.next-link:hover .next-art { opacity: .5; }

/* about */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.founder-mark { width: 72px; height: 72px; color: var(--text); overflow: visible; }
.founder > div { display: grid; gap: 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.form { display: grid; gap: 28px; }
.field-set { border: 0; padding: 0; margin: 0; }
.field-set legend { color: var(--text2); margin-bottom: 16px; padding: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick-item { position: relative; }
.pick-item input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pick-item span { display: inline-flex; height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--text2); transition: background .3s, color .3s, box-shadow .3s; }
.pick-item:hover span { color: var(--text); box-shadow: inset 0 0 0 1px var(--text3); }
.pick-item input:checked + span { background: var(--text); color: var(--bg); box-shadow: none; }
.pick-item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--text2); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; padding: 12px 0; font-size: 19px; color: var(--text); transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239b9b9b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { background: var(--surface2); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field input.is-bad, .field textarea.is-bad { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { color: var(--text2); }
.form-status.is-ok { color: #3ddc84; }
.form-status.is-err { color: var(--accent); }
.contact-side { display: grid; gap: 12px; }
.contact-card { padding: 24px 26px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.contact-card h2 { color: var(--text3); font-weight: 400; }
.contact-card .h4 { word-break: break-word; }

/* 404 */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); padding-bottom: 60px; }
.nf canvas { position: relative; width: 100%; height: 34vh; margin-bottom: 40px; }
.nf .lead { margin-top: 24px; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-top: clamp(80px, 10vw, 160px); overflow: hidden; }
.footer-cta { margin-bottom: clamp(64px, 8vw, 120px); }
.footer-big { display: inline-block; font-size: clamp(48px, 9.5vw, 170px); line-height: 1; letter-spacing: -.055em; font-weight: 600; position: relative; }
.footer-big::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .045em; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease); }
.footer-big:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-col h2 { color: var(--text3); font-weight: 400; margin-bottom: 18px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text2); transition: color .3s; }
.footer-col a:hover { color: var(--text); }
.footer-col .logo { color: var(--text); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--text2); max-width: 32ch; }
.footer-col address { margin-top: 24px; line-height: 1.8; color: var(--text2); }
.clock { color: var(--text); }
.footer-mark { color: var(--text); padding-block: clamp(8px, 2vw, 24px); }
.footer-logo { width: 100%; height: auto; overflow: visible; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; color: var(--text3); border-top: 1px solid var(--line); margin-top: 24px; }
.to-top:hover { color: var(--text); }

/* ---------------------------------------------------------------- keyframes */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, .6); } 70% { box-shadow: 0 0 0 10px rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }
@keyframes swoosh { 0% { transform: scaleX(1); } 35% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes pulse-fill { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 0% { opacity: 1; } 30% { opacity: .15; } 60% { opacity: 1; } }
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes glyph-in { from { opacity: 0; transform: scale(.2); transform-origin: center; transform-box: fill-box; } to { opacity: 1; transform: none; transform-box: fill-box; } }
@keyframes twinkle { 0%, 100% { fill: #333; } 50% { fill: #5a5a5a; } }
@keyframes sweep { 0% { fill: var(--text); } 35% { fill: var(--accent); } 100% { fill: var(--text); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scroll-line { to { top: 100%; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(-2%, -4%); } }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc:nth-child(2n) { border-right: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .row-meta { display: none; }
  .svc-row a { grid-template-columns: 40px 64px minmax(0, 1fr) auto; }
  .svc-row .chips { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav nav, .nav-cta { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .hero-matrix { min-height: 26vh; }
  .scroll-hint { display: none; }
  .two-col, .process-grid, .faq-grid, .contact-grid, .svc-hero-grid { grid-template-columns: 1fr; }
  .process-side { position: static; }
  .svc-hero-glyph { justify-items: start; }
  .glyph-xl { width: 180px; }
  .points { grid-template-columns: 1fr 1fr; }
  .points > .point:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .points > .point:nth-child(2n) { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hscroll { overflow: visible; }
  .hscroll-track { flex-direction: column; width: auto; gap: 56px; }
  .panel, .panel-end { width: 100%; }
  .panel-all { aspect-ratio: auto; max-height: none; min-height: 220px; }
  .panel-info { grid-template-columns: 1fr; }
  .panel-info .panel-idx { grid-row: auto; }
  .row-preview { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .svc-grid, .cards, .points, .points-2 { grid-template-columns: 1fr; }
  .svc { border-right: 0 !important; }
  .points > .point, .points-2 > .point { padding-left: 0 !important; border-left: 0 !important; padding-right: 0; }
  .row a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .row-desc { grid-column: 1; grid-row: 2; font-size: 15px; }
  .row-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .svc-row a { grid-template-columns: 56px 1fr auto; }
  .svc-row .svc-num { display: none; }
  .svc-row .glyph { width: 56px; height: 56px; }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .step-n { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .stats-3 { grid-template-columns: 1fr; }
  .phone { width: 30%; }
  .btn { height: 52px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
  .js .loader, .wipe { display: none !important; }
}
@media (hover: none) {
  .row-preview { display: none; }
}
