/* ==========================================================================
   ARIF — Portfolio core styles
   Tokens · Base · Chrome (nav, cursor, loader, transitions) · Components
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #19191c;
  --fg: #f2eee6;
  --fg-2: #c8c3b9;
  --muted: #85817a;
  --line: rgba(242, 238, 230, 0.1);
  --line-2: rgba(242, 238, 230, 0.2);
  --accent: #ff4d1c;
  --accent-2: #ff8a5c;
  --violet: #7a5cff;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --pad: clamp(16px, 3.2vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #0a0a0b; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* custom cursor replaces the native one on fine pointers */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; }
em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label--accent { color: var(--accent); }
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.h-xl { font-size: clamp(52px, 10vw, 184px); letter-spacing: -0.055em; line-height: 0.88; }
.h-lg { font-size: clamp(42px, 6.6vw, 116px); letter-spacing: -0.05em; line-height: 0.92; }
.h-md { font-size: clamp(32px, 4.2vw, 68px); letter-spacing: -0.04em; line-height: 0.98; }
.h-sm { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--fg-2); letter-spacing: -0.01em; max-width: 34ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.container { padding-inline: var(--pad); }
.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: clamp(48px, 7vw, 110px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 220px 1fr; align-items: start; }
  .section-head .label { padding-top: 0.9em; }
}
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Split text ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.08em; margin: 0 -0.06em -0.08em; }
.w > .wi { display: inline-block; will-change: transform; }
.js [data-split]:not(.is-split) { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.arr { width: 14px; height: 14px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #0a0a0b; }
.btn--solid::before { background: var(--fg); }
.btn--light { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--light::before { background: var(--accent); }
.btn--light:hover { color: #0a0a0b; border-color: var(--accent); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn-text {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}
.btn-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
}
.btn-text:hover::after { transform-origin: left; transform: scaleX(1); }

.roll { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2em; vertical-align: top; }
.roll > span { display: block; transition: transform 0.55s var(--ease-out); }
.roll > span::after { content: attr(data-t); display: block; }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-1.2em); }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></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(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: fixed;
  left: 0; top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: var(--fg); mix-blend-mode: difference; transition: opacity 0.3s; }
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(242, 238, 230, 0.45);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), background 0.45s var(--ease-out), border-color 0.45s;
}
.cursor__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0b;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: rgba(242, 238, 230, 0.8); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot, .cursor.is-text .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { width: 4px; height: 28px; border-radius: 2px; background: var(--fg); border-color: transparent; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-h);
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.7s var(--ease-out), background 0.5s, backdrop-filter 0.5s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(10, 10, 11, 0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav__logo { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -0.04em; }
.nav__logo b { font-weight: 600; }
.nav__logo .label { font-size: 10.5px; }
.nav__mark { width: 26px; height: 26px; align-self: center; }
.nav__links { display: none; gap: 34px; font-size: 15px; }
.nav__links a { position: relative; color: var(--fg-2); transition: color 0.3s; }
.nav__links a sup { font-family: var(--font-mono); font-size: 9px; margin-left: 3px; color: var(--muted); }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%);
}
.nav__right { display: flex; align-items: center; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.status i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #3ddc84; animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.nav .status, .nav .btn { display: none; }
.burger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 500;
  background: rgba(10,10,11,.35); backdrop-filter: blur(10px);
}
.burger__lines { width: 16px; height: 8px; position: relative; }
.burger__lines::before, .burger__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.burger__lines::before { top: 0; }
.burger__lines::after { top: 6.5px; }
.menu-open .burger__lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .burger__lines::after { top: 3.25px; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav .status { display: inline-flex; }
  .nav .btn { display: inline-flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(56px, 16vw, 120px); font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  padding-block: 6px; border-bottom: 1px solid var(--line);
}
.menu__links a span:first-child { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.menu__links .w > .wi { transform: translateY(110%); transition: transform 0.9s var(--ease-out); }
.menu-open .menu__links .w > .wi { transform: translateY(0); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9800;
  background: var(--bg);
  display: grid; grid-template-rows: 1fr auto;
  padding: var(--pad);
  color: var(--fg);
}
.loader__word {
  align-self: center;
  justify-self: center;
  font-size: clamp(80px, 22vw, 360px);
  font-weight: 500; letter-spacing: -0.045em; line-height: 0.8;
  display: flex; overflow: hidden;
}
.loader__word span { display: inline-block; transform: translateY(100%); }
.loader__bar { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.loader__count { font-size: clamp(48px, 9vw, 140px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums; }
.loader__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.no-js .loader, .loader.is-done { display: none; }

/* ---------- Page transition ---------- */
.ptrans { position: fixed; inset: 0; z-index: 9700; pointer-events: none; }
.ptrans__panel { position: absolute; inset: 0; background: var(--fg); transform: translateY(100%); }
.ptrans__panel:nth-child(2) { background: var(--accent); }
.ptrans__panel:nth-child(3) { background: var(--bg-2); display: grid; place-items: center; }
.ptrans__title { font-size: clamp(40px, 7vw, 110px); font-weight: 500; letter-spacing: -0.05em; overflow: hidden; }
.ptrans__title span { display: inline-block; }
html.is-entering .ptrans__panel:nth-child(3) { transform: translateY(0); }
html.is-entering::after { content: ""; position: fixed; inset: 0; z-index: 9690; background: var(--bg-2); }

/* ---------- Reveal helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }
.img-reveal { overflow: hidden; }
.js .img-reveal > * { transform: scale(1.25); clip-path: inset(100% 0 0 0); }
.js .img-reveal.is-in > * { transform: scale(1); clip-path: inset(0 0 0 0); transition: transform 1.6s var(--ease-out), clip-path 1.3s var(--ease); }

/* ==========================================================================
   HOME — Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 40px) var(--pad) 28px;
  overflow: hidden;
  isolation: isolate;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fallback {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 60% at 75% 40%, rgba(255, 77, 28, 0.32), transparent 60%),
    radial-gradient(50% 60% at 20% 70%, rgba(122, 92, 255, 0.28), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0) 55%, var(--bg) 100%);
}
.hero__top { display: flex; justify-content: space-between; gap: 32px; align-items: start; flex-wrap: wrap; }
.hero__intro { display: flex; gap: 16px; align-items: flex-start; max-width: 470px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--fg-2); }
.hero__intro strong { color: var(--fg); font-weight: 500; }
.hero__badge { position: relative; width: 132px; height: 132px; flex-shrink: 0; display: none; }
.hero__badge > svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { font-family: var(--font-mono); font-size: 9.2px; letter-spacing: 0.32em; text-transform: uppercase; fill: var(--fg-2); }
.hero__badge .arrow { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #0a0a0b; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .hero__badge { display: block; } }
.hero__title {
  align-self: end;
  font-size: clamp(60px, 11.6vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-top: 48px;
}
.hero__title em { color: var(--accent); padding-right: 0.06em; letter-spacing: -0.03em; }
.hero__title .row { display: block; white-space: nowrap; }
.hero__title .row--indent { padding-left: 0.9em; }
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-2);
}
.hero__bottom > div { display: flex; flex-direction: column; gap: 4px; }
.hero__bottom b { color: var(--fg); font-weight: 500; }
.hero__scroll { align-items: flex-end; text-align: right; }
.hero__scroll .line { width: 1px; height: 36px; background: var(--line-2); position: relative; overflow: hidden; margin-top: 6px; }
.hero__scroll .line::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--fg); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (min-width: 900px) { .hero__bottom { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 28px;
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(36px, 5.6vw, 92px);
  font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  white-space: nowrap;
}
.marquee__item:nth-child(even) { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--fg-2); }
.marquee__star { width: clamp(22px, 2.6vw, 40px); height: auto; color: var(--accent); flex-shrink: 0; }
.marquee--accent { background: var(--accent); color: #0a0a0b; border: 0; }
.marquee--accent .marquee__item:nth-child(even) { color: rgba(10,10,11,.75); }
.marquee--accent .marquee__star { color: #0a0a0b; }

/* ---------- Manifesto ---------- */
.manifesto { display: grid; gap: 40px; }
@media (min-width: 900px) { .manifesto { grid-template-columns: 220px 1fr; } .manifesto > .label { align-self: start; padding-top: 1.4em; } }
.manifesto__text {
  font-size: clamp(30px, 4.3vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 19ch;
}
.manifesto__text em { color: var(--accent); }
.js .manifesto__text .mw { opacity: 0.14; transition: none; }
.manifesto__foot { display: grid; gap: 28px; margin-top: 56px; max-width: 980px; }
@media (min-width: 900px) { .manifesto__foot { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- Showcase (horizontal work) ---------- */
.showcase { position: relative; padding-top: clamp(80px, 10vw, 140px); }
.showcase__pin { position: relative; overflow: hidden; }
.showcase__head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: 0 var(--pad) clamp(32px, 4vw, 56px);
}
.showcase__count { font-family: var(--font-mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.showcase__count b { color: var(--fg); font-weight: 400; }
.showcase__track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.showcase__track::-webkit-scrollbar { display: none; }
.showcase__progress { margin: clamp(28px, 4vw, 48px) var(--pad) 0; height: 1px; background: var(--line); position: relative; }
.showcase__progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) {
  .showcase__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .showcase__track { overflow: visible; scroll-snap-type: none; will-change: transform; }
}

.pcard {
  flex: 0 0 auto;
  width: min(86vw, 520px);
  scroll-snap-align: start;
  position: relative;
}
@media (min-width: 900px) { .pcard { width: clamp(480px, min(52vw, calc((100vh - 360px) * 1.6)), 920px); } }
.pcard__link { display: block; }
.pcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transform: translateZ(0);
}
.pcard__chrome {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: rgba(14, 14, 16, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.pcard__chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.pcard__chrome span {
  margin-inline: auto; transform: translateX(-20px);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  padding: 3px 14px; border-radius: 6px; background: rgba(255,255,255,.05);
}
.pcard__shot {
  position: absolute; inset: 34px 0 0 0;
  overflow: hidden;
}
.pcard__shot img {
  position: relative; z-index: 1;
  width: 100%; height: auto; min-height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 6s cubic-bezier(.45,.05,.35,1);
}
.pcard__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(40px, 6vw, 96px); font-weight: 600; letter-spacing: -0.05em;
  background: radial-gradient(120% 90% at 30% 20%, var(--c2, #333), var(--c1, #111));
  color: rgba(255,255,255,.9);
}
.pcard__view {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500;
  transform: translateY(14px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.pcard:hover .pcard__view { transform: none; opacity: 1; }
.pcard__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: baseline; padding-top: 18px; }
.pcard__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pcard__title { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.04em; font-weight: 500; }
.pcard__sector { font-size: 13px; color: var(--fg-2); text-align: right; }
.pcard__tagline { grid-column: 2 / -1; color: var(--muted); font-size: 15px; max-width: 52ch; }
.pcard--end {
  display: grid; place-items: center;
  width: min(86vw, 420px);
}
@media (min-width: 900px) { .pcard--end { width: clamp(360px, 30vw, 520px); } }
.pcard--end a {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center; text-align: center; gap: 0;
  font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -0.04em; font-weight: 500; line-height: 1;
  transition: background 0.6s var(--ease-out), color 0.6s var(--ease-out), border-color .6s;
}
.pcard--end a:hover { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }

/* ---------- Capabilities ---------- */
.caps__list { border-top: 1px solid var(--line); }
.cap { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cap__head {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center;
  text-align: left; padding: clamp(22px, 2.6vw, 36px) 0;
  transition: color 0.5s var(--ease-out), padding 0.6s var(--ease-out);
}
.cap__head::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: var(--fg); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) {
  .cap__head:hover { color: var(--bg); padding-left: 16px; }
  .cap__head:hover::before { transform: scaleY(1); }
  .cap__head:hover .cap__tags { color: rgba(10,10,11,.6); }
}
.cap__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.cap__title { font-size: clamp(28px, 4.2vw, 68px); letter-spacing: -0.045em; font-weight: 500; line-height: 1; }
.cap__tags { display: none; font-size: 14px; color: var(--muted); transition: color 0.5s; }
.cap__icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center; opacity: .7;
  transition: transform 0.6s var(--ease-out);
}
.cap.is-open .cap__icon { transform: rotate(45deg); }
@media (min-width: 900px) {
  .cap__head { grid-template-columns: 80px 1fr auto 44px; }
  .cap__tags { display: block; }
}
.cap__body { height: 0; overflow: hidden; }
.cap__inner {
  display: grid; gap: 28px;
  padding: 8px 0 clamp(28px, 3vw, 44px);
}
@media (min-width: 900px) { .cap__inner { grid-template-columns: 80px 1.1fr 1fr; } .cap__inner > :first-child { grid-column: 2; } }
.cap__inner p { font-size: clamp(17px, 1.4vw, 21px); color: var(--fg-2); max-width: 46ch; }
.cap__inner ul { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip--accent { border-color: rgba(255, 77, 28, .5); color: var(--accent-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; justify-content: space-between;
  min-height: 300px;
}
@media (min-width: 700px) { .stat { padding: 36px 28px 40px; border-left: 1px solid var(--line); } .stat:nth-child(2n+1) { border-left: 0; padding-left: 0; } }
@media (min-width: 1100px) { .stat:nth-child(2n+1) { border-left: 1px solid var(--line); padding-left: 28px; } .stat:first-child { border-left: 0; padding-left: 0; } }
.stat__num { font-size: clamp(64px, 7vw, 128px); letter-spacing: -0.06em; line-height: 0.85; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.45em; letter-spacing: -0.03em; color: var(--accent); margin-left: 4px; }
.stat p { color: var(--fg-2); max-width: 30ch; }

/* ---------- ROI calculator ---------- */
.calc {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
}
@media (min-width: 1000px) { .calc { grid-template-columns: 1.1fr 1fr; } }
.calc__panel { background: var(--bg-2); padding: clamp(24px, 3.4vw, 52px); }
.calc__tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 36px; position: relative; }
.calc__tab { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color 0.4s; }
.calc__tab.is-active { color: #0a0a0b; }
.calc__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--fg); transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out); }
.calc__fields { display: grid; gap: 30px; }
.calc__mode[hidden] { display: none; }
.field-range { display: grid; gap: 12px; }
.field-range__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--fg-2); }
.field-range__top output { font-family: var(--font-mono); color: var(--fg); font-size: 14px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p));
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: -9px;
  background: var(--fg); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--fg);
  transition: transform 0.3s var(--ease-out);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 3px solid var(--bg-2); }
.calc__result { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.calc__result::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,28,.35), transparent 65%); pointer-events: none;
}
.calc__big { font-size: clamp(56px, 7.4vw, 124px); letter-spacing: -0.06em; line-height: 0.85; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; }
.calc__big span { color: var(--accent); }
.calc__break { display: grid; gap: 10px; font-size: 14px; color: var(--fg-2); position: relative; }
.calc__break div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.calc__break b { font-family: var(--font-mono); font-weight: 400; color: var(--fg); }
.calc__note { font-size: 12px; color: var(--muted); position: relative; }

/* ---------- Process (stacking cards) ---------- */
.process__stack { display: grid; gap: 24px; }
.pstep {
  position: sticky; top: calc(var(--nav-h) + 12px);
  min-height: min(60vh, 520px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.6vw, 56px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  overflow: hidden;
  transform-origin: 50% 0;
}
.pstep:nth-child(2) { background: #141416; }
.pstep:nth-child(3) { background: #18181a; }
.pstep:nth-child(4) { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.pstep:nth-child(4) .label, .pstep:nth-child(4) p { color: rgba(10,10,11,.72); }
.pstep:nth-child(4) .chip { border-color: rgba(10,10,11,.3); color: #0a0a0b; }
.pstep__top { display: flex; justify-content: space-between; gap: 20px; }
.pstep__num { font-size: clamp(120px, 22vw, 360px); letter-spacing: -0.07em; line-height: 0.75; font-weight: 500; opacity: .1; position: absolute; right: clamp(16px, 3vw, 48px); bottom: clamp(10px, 2vw, 30px); pointer-events: none; }
.pstep:nth-child(4) .pstep__num { opacity: .16; }
.pstep__title { font-size: clamp(44px, 6.4vw, 108px); letter-spacing: -0.055em; line-height: .9; font-weight: 500; align-self: center; }
.pstep__body { display: grid; gap: 24px; position: relative; }
@media (min-width: 900px) { .pstep__body { grid-template-columns: 1fr 1fr; align-items: end; } }
.pstep__body p { font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.02em; line-height: 1.25; color: var(--fg-2); max-width: 26ch; }
.pstep:nth-child(4) .pstep__body p { color: rgba(10,10,11,.8); }
.pstep__body ul { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Toolkit ---------- */
.toolkit { display: flex; flex-wrap: wrap; gap: 10px; }
.toolkit .chip { height: 48px; padding: 0 22px; font-size: 16px; color: var(--fg); }
.toolkit .chip:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- CTA ---------- */
.cta { position: relative; padding-block: clamp(120px, 16vw, 240px); text-align: center; overflow: hidden; }
.cta__title { font-size: clamp(52px, 10vw, 180px); letter-spacing: -0.06em; line-height: .88; font-weight: 500; }
.cta__title em { color: var(--accent); }
.cta__btn {
  margin: clamp(40px, 5vw, 72px) auto 0;
  width: clamp(150px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: #0a0a0b;
  font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta__btn::before { content: ""; position: absolute; inset: 0; background: var(--fg); border-radius: 50%; transform: scale(0); transition: transform .7s var(--ease-out); z-index: -1; }
.cta__btn:hover::before { transform: scale(1); }
.cta__glow { position: absolute; left: 50%; top: 55%; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,77,28,.18), transparent 60%); pointer-events: none; z-index: -1; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(64px, 8vw, 120px) var(--pad) 0; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__grid--5 { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer__mail { font-size: clamp(24px, 2.5vw, 40px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; display: inline-block; overflow-wrap: anywhere; }
.footer__mail:hover { color: var(--accent); }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer__col .label { margin-bottom: 8px; }
.footer__col a { color: var(--fg-2); width: fit-content; }
.footer__col a:hover { color: var(--fg); }
.footer__word {
  font-size: clamp(120px, 31vw, 560px);
  font-weight: 600; letter-spacing: -0.075em; line-height: 0.74;
  margin-top: clamp(48px, 7vw, 100px);
  display: flex; justify-content: space-between;
  user-select: none;
  color: var(--fg);
  overflow: hidden;
  padding-bottom: 0.02em;
}
.footer__word span { display: inline-block; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; }

/* ==========================================================================
   Inner pages — shared
   ========================================================================== */
.page-hero { padding: calc(var(--nav-h) + clamp(64px, 10vw, 140px)) var(--pad) clamp(48px, 6vw, 90px); position: relative; }
.page-hero__title { font-size: clamp(64px, 14vw, 260px); letter-spacing: -0.07em; line-height: 0.82; font-weight: 500; }
.page-hero__title sup { font-family: var(--font-mono); font-size: 0.11em; letter-spacing: 0; vertical-align: top; color: var(--accent); margin-left: 0.15em; position: relative; top: 0.6em; }
.page-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px;
  transition: background .35s, color .35s, border-color .35s;
}
.filter sup { font-family: var(--font-mono); font-size: 10px; opacity: .6; }
.filter:hover { border-color: var(--fg); color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.view-toggle button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.view-toggle button.is-active { background: var(--bg-3); color: var(--fg); }

.wlist { border-top: 1px solid var(--line); }
.wrow {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center;
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: opacity .5s var(--ease-out);
}
.wrow__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.wrow__name { font-size: clamp(36px, 6vw, 104px); letter-spacing: -0.055em; line-height: .95; font-weight: 500; transition: transform .7s var(--ease-out), color .4s; display: inline-flex; gap: .25em; align-items: baseline; }
.wrow__name em { font-size: .42em; color: var(--muted); letter-spacing: -0.02em; transition: color .4s; }
.wrow__sector { display: none; color: var(--fg-2); font-size: 14px; }
.wrow__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s, color .4s, transform .6s var(--ease-out), border-color .4s; }
.wrow__tags { display: none; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 1000px) {
  .wrow { grid-template-columns: 60px 1fr 260px 240px 44px; }
  .wrow__sector { display: block; }
  .wrow__tags { display: flex; }
}
.wlist:hover .wrow { opacity: .35; }
.wlist .wrow:hover { opacity: 1; }
.wrow:hover .wrow__name { transform: translateX(18px); }
.wrow:hover .wrow__name em { color: var(--accent); }
.wrow:hover .wrow__arrow { background: var(--accent); border-color: var(--accent); color: #0a0a0b; transform: rotate(-45deg); }
.wrow.is-filtered { display: none; }
.wlist.is-intro .wrow { transition: none; }
.wlist.is-intro:hover .wrow { opacity: 1; }
.wpreview {
  position: fixed; left: 0; top: 0; z-index: 700; pointer-events: none;
  width: clamp(320px, 30vw, 520px); aspect-ratio: 16/10;
  border-radius: 14px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .35s, transform .6s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  background: var(--bg-3);
}
.wpreview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wpreview__inner { position: absolute; inset: 0; transition: transform .6s var(--ease-out); }
.wpreview__inner > div { height: 100%; position: relative; }
.wpreview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wgrid { display: none; grid-template-columns: 1fr; gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 32px); }
@media (min-width: 800px) { .wgrid { grid-template-columns: 1fr 1fr; } }
.is-grid .wgrid { display: grid; }
.is-grid .wlist { display: none; }
.wgrid .pcard { width: auto; }
.wgrid .pcard:nth-child(even) { margin-top: 0; }
@media (min-width: 800px) { .wgrid .pcard:nth-child(even) { transform: translateY(120px); } .wgrid { padding-bottom: 120px; } }

/* ---------- Case study ---------- */
.cs-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 100px)) var(--pad) 0; }
.cs-back { display: flex; width: fit-content; gap: 8px; align-items: center; color: var(--fg-2); font-size: 14px; margin-bottom: 36px; }
.cs-hero > .label { display: flex; }
.about-hero .page-hero__title { line-height: 0.92; }
.cs-back:hover { color: var(--fg); }
.cs-title { font-size: clamp(64px, 13vw, 240px); letter-spacing: -0.07em; line-height: .84; font-weight: 500; }
.cs-sub { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.035em; line-height: 1.1; max-width: 28ch; margin-top: 28px; color: var(--fg-2); }
.cs-sub em { color: var(--fg); }
.cs-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px); padding-top: 24px;
}
@media (min-width: 900px) { .cs-meta { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.cs-meta div { display: grid; gap: 6px; font-size: 15px; }
.cs-frame { margin: clamp(40px, 5vw, 80px) var(--pad) 0; }
.cs-frame .pcard__media { aspect-ratio: 16/9.4; border-radius: 22px; }
.cs-frame .pcard__shot { inset: 34px 0 0 0; }
.cs-frame .pcard__shot img { min-height: 100%; }
.cs-body { display: grid; gap: 64px; }
@media (min-width: 900px) { .cs-block { display: grid; grid-template-columns: 220px 1fr; gap: 40px; } }
.cs-block h2 { font-size: clamp(34px, 4.4vw, 72px); letter-spacing: -0.05em; line-height: .98; max-width: 18ch; margin-bottom: 28px; }
.cs-block p { font-size: clamp(18px, 1.5vw, 22px); color: var(--fg-2); max-width: 58ch; }
.cs-block p + p { margin-top: 18px; }
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 14px; align-content: start; min-height: 240px; transition: background .5s; }
.feature:hover { background: var(--bg-2); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,77,28,.12); color: var(--accent); margin-bottom: 18px; font-family: var(--font-mono); font-size: 13px; }
.feature h3 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.feature p { color: var(--fg-2); font-size: 15px; }
.values { display: grid; gap: 0; border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .value { grid-template-columns: 220px 1fr 1fr; gap: 40px; } }
.value__k { font-size: clamp(40px, 4.4vw, 72px); letter-spacing: -0.055em; line-height: .9; font-weight: 500; color: var(--accent); }
.value h3 { font-size: 24px; letter-spacing: -0.03em; }
.value p { color: var(--fg-2); }

.lab { border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--bg-2); }
.lab__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lab__devices { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.lab__devices button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.lab__devices button.is-active { background: var(--fg); color: var(--bg); }
.lab__stage { height: min(82vh, 860px); display: grid; place-items: center; padding: 22px; background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.012) 12px 24px), var(--bg); }
.lab__screen { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; transition: width .8s var(--ease), height .8s var(--ease), border-radius .8s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lab__screen { display: grid; grid-template: 1fr / 1fr; }
.lab__screen > * { grid-area: 1 / 1; }
.lab__screen iframe { width: 100%; height: 100%; border: 0; }
.lab__load { background: var(--bg-2); }
.lab__screen.is-tablet { width: 820px; max-width: 100%; border-radius: 24px; }
.lab__screen.is-mobile { width: 390px; max-width: 100%; border-radius: 36px; border-width: 8px; border-color: #222; }
.lab__load { display: grid; place-items: center; gap: 16px; text-align: center; color: var(--fg-2); }

.next-project { display: block; padding: clamp(80px, 10vw, 160px) var(--pad); border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.next-project .label { justify-content: center; }
.next-project__name { font-size: clamp(64px, 14vw, 260px); letter-spacing: -0.07em; line-height: .85; font-weight: 500; margin-top: 20px; transition: color .5s; }
.next-project:hover .next-project__name { color: var(--accent); }
.next-project__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s; }
.next-project__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.35) saturate(1.2); transform: scale(1.2); }
.next-project:hover .next-project__bg { opacity: 1; }

/* ---------- About ---------- */
.about-hero { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .about-hero { grid-template-columns: 1.4fr 1fr; } }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(120% 80% at 70% 10%, rgba(255,77,28,.55), transparent 55%), radial-gradient(90% 70% at 10% 90%, rgba(122,92,255,.45), transparent 60%), var(--bg-3);
  border: 1px solid var(--line);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(180px, 26vw, 420px); line-height: 1; color: rgba(242,238,230,.92); letter-spacing: -0.04em; }
.portrait__tag { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(242,238,230,.8); }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(transparent, rgba(5, 8, 8, 0.6)); pointer-events: none; }
.portrait__tag { z-index: 1; }
.about-meta { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 34px; font-size: 15px; color: var(--fg-2); }
.about-meta > span { display: grid; gap: 8px; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers > div { display: grid; gap: 12px; align-content: start; padding: 30px 0 30px 24px; border-left: 1px solid var(--line); }
.numbers > div:nth-child(odd) { border-left: 0; padding-left: 0; }
@media (min-width: 900px) { .numbers > div:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 24px; } .numbers > div:first-child { border-left: 0; padding-left: 0; } }
.numbers b { font-size: clamp(48px, 5.6vw, 92px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.88; font-variant-numeric: tabular-nums; }
.numbers small { font-size: 0.42em; color: var(--accent); margin: 0 3px; letter-spacing: -0.02em; }
.numbers > div > span { color: var(--fg-2); font-size: 14px; }
.journey { list-style: none; border-top: 1px solid var(--line); }
.journey li { display: grid; gap: 8px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 900px) { .journey li { grid-template-columns: 220px 1.1fr 1fr; } }
.journey__k { font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.journey h3 { font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -0.045em; line-height: 1; }
.journey p { color: var(--fg-2); max-width: 46ch; }
@media (min-width: 1100px) { .principles.principles--six { grid-template-columns: repeat(3, 1fr); } }
.principles--six .principle { min-height: 290px; }
.principles--six .principle h3 { font-size: clamp(26px, 2.3vw, 36px); }
.status.is-off i { background: #f5a524; box-shadow: none; }
.status.is-off i::after { border-color: #f5a524; }
.hero__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-2); margin-top: 2px; }
.hours-card { display: grid; gap: 10px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.hours-card__top { display: flex; align-items: center; gap: 14px; }
.hours-card__top img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.hours-card__top b { display: block; font-weight: 500; }
.hours-card p { color: var(--muted); font-size: 13.5px; }
.bio { display: grid; gap: 40px; }
@media (min-width: 900px) { .bio { grid-template-columns: 220px 1fr; } }
.bio__text { font-size: clamp(26px, 3vw, 46px); letter-spacing: -0.04em; line-height: 1.12; max-width: 26ch; }
.bio__text em { color: var(--accent); }
.bio__cols { display: grid; gap: 28px; margin-top: 48px; color: var(--fg-2); font-size: 18px; max-width: 980px; }
@media (min-width: 900px) { .bio__cols { grid-template-columns: 1fr 1fr; } }
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { background: var(--bg); padding: clamp(28px, 3.4vw, 52px); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.principle::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at var(--mx, 50%) var(--my, 50%), rgba(255,77,28,.14), transparent 60%); opacity: 0; transition: opacity .5s; }
.principle:hover::before { opacity: 1; }
.principle h3 { font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -0.05em; position: relative; }
.principle p { color: var(--fg-2); max-width: 40ch; position: relative; }
.skills { display: grid; gap: 40px; }
@media (min-width: 900px) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skills h3 { font-size: 15px; font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); letter-spacing: .06em; }
.skills li { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; padding: 6px 0; }

/* ---------- Contact ---------- */
.planner { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); overflow: hidden; }
@media (min-width: 1000px) { .planner { grid-template-columns: 1.5fr 1fr; } }
.planner__main { background: var(--bg-2); padding: clamp(24px, 3.4vw, 56px); min-height: 640px; display: flex; flex-direction: column; }
.planner__side { background: var(--bg); padding: clamp(24px, 3.4vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.planner__steps { display: flex; gap: 6px; margin-bottom: 40px; }
.planner__steps span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.planner__steps span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.planner__steps span.is-done::after { transform: scaleX(1); }
.pstage { display: none; flex: 1; flex-direction: column; gap: 28px; }
.pstage.is-active { display: flex; animation: stageIn .8s var(--ease-out); }
@keyframes stageIn { from { opacity: 0; transform: translateY(24px); } }
.pstage h2 { font-size: clamp(34px, 3.8vw, 60px); letter-spacing: -0.05em; line-height: 1; }
.pstage h2 em { color: var(--accent); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 18px; border-radius: 14px; border: 1px solid var(--line-2);
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.choice label b { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.choice label small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.choice label:hover { border-color: var(--fg-2); }
.choice input:checked + label { border-color: var(--accent); background: rgba(255,77,28,.08); }
.choice input:checked + label b::after { content: " ✓"; color: var(--accent); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill label { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); transition: all .3s; }
.pill label:hover { border-color: var(--fg); color: var(--fg); }
.pill input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.fgrid { display: grid; gap: 14px; }
@media (min-width: 700px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .full { grid-column: 1 / -1; } }
.finput { position: relative; }
.finput input, .finput textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 26px 0 12px; font-size: 18px; outline: none; border-radius: 0;
  transition: border-color .3s;
}
.finput textarea { min-height: 120px; resize: vertical; }
.finput label { position: absolute; left: 0; top: 26px; color: var(--muted); font-size: 18px; pointer-events: none; transition: all .35s var(--ease-out); }
.finput input:focus, .finput textarea:focus { border-color: var(--accent); }
.finput input:focus + label, .finput input:not(:placeholder-shown) + label,
.finput textarea:focus + label, .finput textarea:not(:placeholder-shown) + label { top: 2px; font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.finput.is-error input { border-color: #ff5d5d; }
.planner__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 36px; }
.brief { display: grid; gap: 0; border-top: 1px solid var(--line); }
.brief div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.brief dt { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.brief dd { color: var(--fg); }
.brief dd.empty { color: var(--muted); }
.estimate { padding: 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.estimate__big { font-size: 38px; letter-spacing: -0.05em; font-weight: 500; margin-top: 8px; }
.estimate p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.success { display: none; flex: 1; flex-direction: column; justify-content: center; gap: 24px; }
.success.is-active { display: flex; animation: stageIn .8s var(--ease-out); }
.success__check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #0a0a0b; }
.contact-direct { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 800px) { .contact-direct { grid-template-columns: repeat(3, 1fr); } }
.contact-direct a { background: var(--bg); padding: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; transition: color .3s, padding .5s var(--ease-out); }
@media (min-width: 800px) { .contact-direct a { padding: 32px 28px; } .contact-direct a:first-child { padding-left: 0; } }
.contact-direct a:hover { color: var(--accent); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; transition: transform .5s var(--ease-out); color: var(--accent); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--fg-2); max-width: 64ch; font-size: 17px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); position: relative; overflow: hidden; isolation: isolate; }
.nf__code { font-size: clamp(140px, 34vw, 560px); letter-spacing: -0.08em; line-height: .8; font-weight: 600; }
.nf__code em { color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

/* Case study — problem / fix */
.cs-brief { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .cs-brief { grid-template-columns: 1fr 1fr; } }
.cs-brief__col { background: var(--bg); padding: clamp(28px, 3.4vw, 52px); display: grid; gap: 22px; align-content: start; }
.cs-brief__col p { font-size: clamp(26px, 2.6vw, 42px); letter-spacing: -0.04em; line-height: 1.1; max-width: 20ch; }
.cs-brief__col:last-child p { color: var(--fg); }
.cs-brief__col:first-child p { color: var(--fg-2); }
