/* =========================================================
   Asraful Hoque Portfolio
   Dark editorial theme · GSAP + Lenis
   ========================================================= */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0d0d0c;
  --ink-2: #141412;
  --ink-3: #1c1c19;
  --bone: #f1eee6;
  --bone-2: #d9d5ca;
  --mute: #8f8b82;
  --line: rgba(241, 238, 230, .12);
  --line-2: rgba(241, 238, 230, .22);
  --accent: #ff5a1f;
  --accent-2: #ff8a5c;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }

/* Slim custom scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(241, 238, 230, .28); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--ink); }
/* Firefox only: Chrome 121+ ignores the webkit rules above if these are set globally */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(241, 238, 230, .28) var(--ink); }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; background: var(--accent); color: var(--ink); border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .num { color: var(--accent); }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

/* split text */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; will-change: transform; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- scroll-driven background gradient ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx__b { position: absolute; display: block; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at center, var(--c) 0%, transparent 66%); }
.bgfx__b--1 { --c: rgba(255,90,31,.20); width: 90vmax; height: 90vmax; right: -35vmax; top: -30vmax; animation: float1 22s ease-in-out infinite alternate; }
.bgfx__b--2 { --c: rgba(201,52,24,.16); width: 80vmax; height: 80vmax; left: -40vmax; bottom: -45vmax; animation: float2 26s ease-in-out infinite alternate; }
.bgfx__b--3 { --c: rgba(241,238,230,.045); width: 60vmax; height: 60vmax; left: 20vw; top: 30vh; animation: float1 30s ease-in-out infinite alternate-reverse; }
@keyframes float1 { to { translate: -6vw 8vh; } }
@keyframes float2 { to { translate: 8vw -6vh; } }

/* ---------- grain + progress + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='3' 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;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; display: none; mix-blend-mode: normal; }
.cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor__ring {
  position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(241,238,230,.45); display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--bone); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
}
html:not(.js) .loader { display: none; }
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.loader__name { display: flex; flex-direction: column; font-size: clamp(40px, 9vw, 140px); font-weight: 700; line-height: .9; letter-spacing: -.04em; }
.loader__name span:last-child { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.loader__count { font-family: var(--f-mono); font-size: clamp(36px, 7vw, 110px); line-height: 1; letter-spacing: -.04em; }
.loader__bar { margin-top: 28px; height: 2px; background: rgba(13,13,12,.15); }
.loader__bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent::before { background: var(--bone); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--bone); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }
.btn--small { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--lg { --h: 64px; padding: 0 36px; font-size: 17px; }
.btn--block { width: 100%; }
.btn > span { position: relative; }

.chip {
  display: inline-flex; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(13,13,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.02em; }
.nav__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: -.04em;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-12deg); border-radius: 50%; }
.nav__links { display: flex; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20,20,18,.5); }
.nav__links a { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--bone-2); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--bone); }
.nav__links a.is-active { background: var(--bone); color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.nav__status i, .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(61,220,132,.55)} 70%{box-shadow:0 0 0 10px rgba(61,220,132,0)} 100%{box-shadow:0 0 0 0 rgba(61,220,132,0)} }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--bone); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 36px; clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(40px, 11vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; border-bottom: 1px solid var(--line); padding: 6px 0; }
.menu__links small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.menu__foot { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--bone-2); }
.menu__social { display: flex; gap: 20px; }

/* ---------- layout ---------- */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 6.5vw, 104px) var(--gutter); }
.section--tight { padding-bottom: 32px; }
.section__head { margin-bottom: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.section__head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; }
.section__sub { max-width: 520px; color: var(--bone-2); }
.title { font-size: clamp(44px, 7.6vw, 124px); font-weight: 700; line-height: .92; letter-spacing: -.05em; }
.title .serif { color: var(--accent); font-size: 1.05em; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); padding: 112px var(--gutter) 48px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  max-width: none;
}
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; left: 50%; top: 40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,31,.22) 0%, rgba(255,90,31,.06) 35%, transparent 65%);
  transform: translate(-50%, -50%); pointer-events: none; filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 10%, transparent 70%);
}
.hero__top { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hero__title {
  position: relative; margin: clamp(28px, 5vh, 64px) 0 clamp(28px, 4vh, 56px);
  font-size: clamp(54px, 12.8vw, 230px); font-weight: 700; line-height: .86; letter-spacing: -.06em;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .line--indent { text-align: right; padding-right: .02em; }
.hero__title .c--dash { margin: 0 .03em; }
.hero__title .line--sub { font-size: .62em; line-height: 1.05; margin-top: .14em; padding-left: .04em; }
.hero__title .line--sub .serif { color: var(--accent); }
.hero__title .serif { color: var(--accent); font-size: 1.04em; letter-spacing: -.02em; }
.hero__pic {
  display: inline-block; vertical-align: middle; width: 1.7em; height: .78em; margin: 0 .06em 0 0;
  border-radius: 999px; overflow: hidden; position: relative; top: -.05em; background: var(--ink-3);
}
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.15); }
.hero__bottom { position: relative; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: end; }
.hero__lead { max-width: 460px; font-size: clamp(16px, 1.35vw, 19px); color: var(--bone-2); }
.hero__rotator { display: flex; flex-direction: column; gap: 8px; }
.rotator { position: relative; height: 1.3em; overflow: hidden; font-size: clamp(22px, 2.2vw, 32px); font-family: var(--f-serif); font-style: italic; color: var(--bone); }
.rotator__word { position: absolute; left: 0; top: 0; white-space: nowrap; }
html:not(.js) .rotator__word + .rotator__word { transform: translateY(110%); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--bone), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--ink); transform: rotate(-1.5deg) scale(1.03); margin: 12px 0; }
.marquee__track { display: flex; width: max-content; }
.marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(32px, 5vw, 72px); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.marquee__item span:nth-child(4n+3) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.marquee__item b { font-size: .45em; color: var(--accent); }
html:not(.anim) .marquee__track { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__statement { font-size: clamp(28px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; max-width: 1200px; }
.about__statement .word { display: inline-block; }
.about__grid { margin-top: clamp(44px, 6vw, 88px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.about__stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.stat__num { font-size: clamp(48px, 6vw, 88px); font-weight: 700; letter-spacing: -.05em; line-height: 1; min-width: 3.2ch; }
.stat__label { color: var(--bone-2); max-width: 260px; font-size: 15px; }
.about__copy { display: flex; flex-direction: column; gap: 20px; color: var(--bone-2); font-size: 18px; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- services: sticky index + stacking cards ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(280px, .8fr) 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.svc-aside .title { font-size: clamp(48px, 6.4vw, 104px); }
.svc-aside__lead { color: var(--bone-2); max-width: 360px; }
.svc-nav { border-top: 1px solid var(--line); margin-top: 6px; }
.svc-nav li { border-bottom: 1px solid var(--line); }
.svc-nav a { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.02em; color: var(--mute); transition: color .4s var(--ease), padding .5s var(--ease); }
.svc-nav a span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; font-weight: 400; }
.svc-nav a::after { content: "→"; margin-left: auto; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease); color: var(--accent); }
.svc-nav a:hover { color: var(--bone); }
.svc-nav li.is-active a { color: var(--bone); padding-left: 14px; }
.svc-nav li.is-active a span { color: var(--accent); }
.svc-nav li.is-active a::after { opacity: 1; transform: none; }
.svc-nav li.is-active a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.svc-progress { display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.svc-progress b { color: var(--bone); font-weight: 500; }
.svc-progress__bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.svc-progress__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.25); }
.svc-aside .btn { align-self: flex-start; margin-top: 6px; }

.stack { display: flex; flex-direction: column; gap: 28px; }
.svc {
  --top: 110px;
  position: sticky; top: calc(var(--top) + var(--i, 0) * 22px);
  min-height: min(620px, calc(100svh - 160px)); padding: clamp(28px, 3.4vw, 52px); border-radius: 28px;
  background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  transform-origin: 50% 0; will-change: transform; overflow: hidden;
  box-shadow: 0 -24px 60px rgba(0,0,0,.35);
}
.svc:nth-child(1) { --i: 0; }
.svc:nth-child(2) { --i: 1; }
.svc:nth-child(3) { --i: 2; }
.svc:nth-child(4) { --i: 3; }
.svc:nth-child(5) { --i: 4; }
.svc:nth-child(6) { --i: 5; }
.svc::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.svc--bone { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.svc--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.svc--line { background: var(--ink-2); border-color: var(--line-2); }
.svc__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; flex-wrap: wrap; }
.svc__num { opacity: .7; }
.svc__badge { padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; font-size: 11px; }
.svc__icon { width: 64px; height: 64px; margin-top: 10px; }
.svc__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc__icon .fill { fill: currentColor; }
.svc:not(.svc--bone):not(.svc--accent) .svc__icon { color: var(--accent); }
.svc__title { font-size: clamp(34px, 4.4vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: .95; max-width: 14ch; }
.svc__desc { font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; opacity: .85; }
.svc__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: auto; padding-top: 10px; }
.svc__label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.svc__list li { padding: 10px 0; border-top: 1px solid rgba(127,127,127,.3); display: flex; gap: 10px; font-size: 15px; }
.svc__list li::before { content: "↗"; }
.svc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(127,127,127,.45); font-size: 13px; }

/* ---------- featured (horizontal) ---------- */
.featured { position: relative; }
.featured__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 84px 0 32px; }
.featured__head { padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.featured__head .eyebrow { width: 100%; }
.featured__head .title { font-size: clamp(48px, 7.5vw, 120px); }
.featured__hint { margin-left: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.featured__track { display: flex; gap: clamp(16px, 2.4vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.fcard { width: clamp(300px, 38vw, 600px); flex: 0 0 auto; }
.fcard__link { display: block; }
.fcard__media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); position: relative; }
.fcard__new { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bone); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.fcard__link:hover .fcard__media img { transform: scale(1.02); }
.fcard__meta { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.fcard__title { margin-top: 6px; font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; transition: color .3s; }
.fcard__link:hover .fcard__title { color: var(--accent); }
.fcard__desc { margin-top: 6px; color: var(--bone-2); max-width: 440px; font-size: 15px; }
.fcard--end { width: clamp(280px, 30vw, 440px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: 40px; border-radius: var(--radius); border: 1px dashed var(--line-2); aspect-ratio: 4 / 3.6; align-self: flex-start; }
.fcard--end p { font-size: clamp(32px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.fcard--end .serif { color: var(--accent); }

/* ---------- project index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--bone-2); transition: all .35s var(--ease); }
.filter sup { font-family: var(--f-mono); font-size: 10px; color: var(--accent); }
.filter:hover { border-color: var(--bone); color: var(--bone); }
.filter.is-active { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.plist { border-top: 1px solid var(--line); }
.prow { border-bottom: 1px solid var(--line); overflow: hidden; }
.prow.is-hidden { display: none; }
.prow a {
  position: relative; display: grid; grid-template-columns: 60px 1.4fr 1fr 140px 40px; align-items: center; gap: 20px;
  padding: 28px 0; transition: padding .5s var(--ease), color .3s;
}
.prow a::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); z-index: -1; }
.prow a { isolation: isolate; }
.prow a:hover { color: var(--ink); padding-left: 20px; padding-right: 20px; }
.prow a:hover::before { transform: scaleY(1); }
.prow a:hover .prow__type, .prow a:hover .prow__stack, .prow a:hover .prow__n { color: rgba(13,13,12,.65); }
.prow__n { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.prow__name { font-size: clamp(26px, 3.4vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.prow__type { color: var(--bone-2); font-size: 15px; }
.prow__stack { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.prow__arrow { font-size: 24px; text-align: right; transition: transform .5s var(--ease); }
.prow a:hover .prow__arrow { transform: rotate(45deg); }
.prow__thumb { display: none; }
.preview {
  position: fixed; top: 0; left: 0; z-index: 50; width: 360px; aspect-ratio: 4 / 3; pointer-events: none;
  margin: -135px 0 0 -180px; opacity: 0; transform: scale(.6);
}
.preview__inner { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.index__more { margin-top: 28px; color: var(--bone-2); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.step { padding: 32px 28px 32px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.step h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.04em; }
.step p { color: var(--bone-2); font-size: 15px; }

/* ---------- experience ---------- */
.exp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.exp__label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 26px; }
.exp__label--gap { margin-top: 52px; }
.timeline { position: relative; padding-left: 32px; display: flex; flex-direction: column; gap: 40px; }
.timeline__line { position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
html:not(.anim) .timeline__line i { transform: scaleY(1); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -33px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--accent); }
.tl__date { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.tl__role { margin-top: 6px; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.tl__org { margin-top: 4px; color: var(--bone); font-family: var(--f-serif); font-style: italic; font-size: 20px; }
.tl__desc { margin-top: 10px; color: var(--bone-2); font-size: 15px; max-width: 520px; }
.tools { display: grid; gap: 24px; }
.tools__group { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.tools__name { font-family: var(--f-serif); font-style: italic; font-size: 22px; }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: background .3s, color .3s; }
.tools li:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; padding: 36px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; transition: transform .6s var(--ease), border-color .4s;
}
.plan:hover { transform: translateY(-8px); border-color: var(--line-2); }
.plan--hot { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.plan--hot .plan__desc, .plan--hot .plan__list li { color: rgba(13,13,12,.75); }
.plan--hot .plan__list li { border-color: rgba(13,13,12,.12); }
.plan__badge { position: absolute; top: -13px; right: 28px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan__head h3 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.plan__time { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.plan__price { font-size: clamp(64px, 6vw, 92px); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.plan__price sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; margin-right: 4px; font-weight: 500; }
.plan__desc { color: var(--bone-2); font-size: 15px; }
.plan__list { flex: 1; margin-bottom: 10px; }
.plan__list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--bone-2); display: flex; gap: 10px; }
.plan__list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan--hot .btn--accent::before { background: var(--ink); }
.plan--hot .btn--accent:hover { color: var(--bone); }

/* ---------- gallery: infinite dual marquee ---------- */
.gallery { overflow: hidden; padding-bottom: clamp(56px, 6.5vw, 104px); }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.gallery__note { max-width: 340px; color: var(--bone-2); }
.gallery__rows { display: flex; flex-direction: column; gap: 16px; transform: rotate(-2deg) scale(1.04); }
.gallery__row { display: flex; width: max-content; will-change: transform; }
.gallery__set { display: flex; gap: 16px; padding-right: 16px; flex: 0 0 auto; }
.gallery figure { position: relative; width: clamp(240px, 24vw, 380px); aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; background: var(--ink-3); flex: 0 0 auto; }
.gallery__row:nth-child(2) figure { width: clamp(200px, 19vw, 300px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); transition: filter .6s, transform 1s var(--ease); }
.gallery figure:hover img { filter: none; transform: scale(1.06); }
html:not(.anim) .gallery__row { animation: marquee 40s linear infinite; }
html:not(.anim) .gallery__row[data-dir="-1"] { animation-direction: reverse; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__grid .section__head { position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary i { position: relative; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 1px solid var(--line-2); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa p { padding: 0 50px 26px 0; color: var(--bone-2); }

/* ---------- contact ---------- */
.contact__title { margin: 20px 0 clamp(36px, 5vw, 72px); font-size: clamp(46px, 9.4vw, 164px); font-weight: 700; line-height: .9; letter-spacing: -.055em; }
.contact__title .line { display: block; }
.contact__title .serif { color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 26px; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.contact__intro { color: var(--bone-2); margin-bottom: 26px; font-size: 18px; }
.contact__rows { border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.crow:hover { padding-left: 10px; }
.crow__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.crow__v { font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; overflow-wrap: anywhere; }
.crow__a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .35s var(--ease); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-4px); }

.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.5vw, 48px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--bone); font: inherit; font-size: 17px; outline: none; border-radius: 0; resize: vertical; appearance: none;
  transition: border-color .3s;
}
.field select option { background: var(--ink-2); color: var(--bone); }
.field--select::after { content: "▾"; position: absolute; right: 4px; bottom: 12px; color: var(--mute); pointer-events: none; }
.field span { position: absolute; left: 0; top: 24px; color: var(--mute); pointer-events: none; transition: transform .35s var(--ease), color .3s, font-size .35s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span { transform: translateY(-20px) scale(.78); color: var(--accent); }
.pills { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { width: 100%; margin-bottom: 12px; color: var(--mute); font-size: 15px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; transition: all .3s var(--ease); }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { align-self: flex-start; }
.form__status { min-height: 1.4em; font-size: 15px; color: var(--bone-2); }
.form__status.ok { color: #3ddc84; }
.form__status.err { color: var(--accent-2); }

/* ---------- footer ---------- */
.footer { position: relative; padding: 60px var(--gutter) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__mail { font-size: clamp(20px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.footer__mail:hover { color: var(--accent); }
.footer__up { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 22px; transition: background .3s, color .3s; }
.footer__up:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.footer__big { display: flex; justify-content: space-between; gap: .12em; margin: 50px 0 30px; font-size: clamp(40px, 12.6vw, 240px); font-weight: 800; letter-spacing: -.07em; line-height: .8; color: var(--bone); overflow: hidden; }
.footer__big span { display: block; padding-bottom: .06em; }
.footer__big span:last-child { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.04em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--mute); padding-top: 20px; border-top: 1px solid var(--line); }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a:hover { color: var(--bone); }

/* ---------- animation initial states (only when GSAP runs) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .svc-layout { grid-template-columns: minmax(240px, .7fr) 1.6fr; gap: 40px; }
  .svc__title { font-size: clamp(32px, 4vw, 56px); }
}
@media (max-width: 1100px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: relative; top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; align-items: end; }
  .svc-aside .eyebrow, .svc-aside .title { grid-column: 1; }
  .svc-aside__lead { grid-column: 2; grid-row: 2; }
  .svc-nav, .svc-progress { display: none; }
  .svc-aside .btn { grid-column: 2; grid-row: 3; justify-self: start; }
  .svc { --top: 96px; min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 20px; }
  .stat { grid-template-columns: 1fr; gap: 8px; border-top: 1px solid var(--line); }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .section__head { position: static; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__status { display: none; }
  .hero__bottom { grid-template-columns: 1fr 1fr; }
  .hero__cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav .btn--small { display: none; }
  .nav__logo-text { display: none; }
  .hero { padding-top: 100px; }
  .hero { min-height: auto; padding-top: 104px; }
  .hero__title { margin: 48px 0 40px; font-size: clamp(44px, 13.4vw, 120px); }
  .hero__pic { width: 1.25em; }
  .hero__title .line--indent { text-align: left; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__scroll { display: none; }
  .hero__clock { display: none; }
  .exp__cols { grid-template-columns: 1fr; }
  .faq__grid .section__head { position: static; }
  .svc-aside { display: flex; }
  .svc { position: relative; top: auto; min-height: 0; box-shadow: none; }
  .svc__cols { grid-template-columns: 1fr; gap: 20px; }
  .featured__pin { height: auto; padding: 56px 0 24px; }
  .about__stats { grid-template-columns: 1fr; gap: 0; }
  .stat { grid-template-columns: auto 1fr; gap: 20px; border-top: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .featured__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .featured__track::-webkit-scrollbar { display: none; }
  .fcard { width: 82vw; scroll-snap-align: center; }
  .fcard--end { width: 74vw; }
  .featured__hint { margin-left: 0; }
  .prow a { grid-template-columns: 34px 1fr auto; gap: 6px 14px; padding: 20px 0; }
  .prow a:hover { padding-left: 0; padding-right: 0; }
  .prow__type { grid-column: 2; grid-row: 2; font-size: 14px; }
  .prow__stack { display: none; }
  .prow__n { grid-row: 1 / span 2; align-self: start; padding-top: 8px; }
  .prow__arrow { grid-row: 1 / span 2; grid-column: 3; }
  .prow__thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 14px; margin-top: 12px; }
  .preview { display: none; }
  .plans { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .gallery figure { width: 62vw; }
  .gallery__row:nth-child(2) figure { width: 48vw; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-right: 0; border-top: 1px solid var(--line); }
  .stat { grid-template-columns: 1fr; gap: 6px; }
  .tools__group { grid-template-columns: 1fr; gap: 10px; }
  .crow { grid-template-columns: 1fr auto; }
  .crow__k { grid-column: 1 / -1; }
  .plan { padding: 28px 22px; }
  .qa p { padding-right: 0; }
  .marquee { padding: 18px 0; }
  .loader__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .bgfx__b { animation: none; }
}
