/* =========================================================
   Eklavya Mishra — Portfolio
   ========================================================= */

:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --fg: #efece4;
  --muted: #8b8880;
  --line: rgba(239, 236, 228, 0.14);
  --accent: #ff4d1a;
  --accent-ink: #0b0b0a;
  --paper: #efece4;
  --ink: #0b0b0a;
  --ink-muted: #5d5b55;
  --ink-line: rgba(11, 11, 10, 0.16);

  --f-display: "Syne", "Arial Black", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img, svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(29px, 4.9vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.h2 .serif { text-transform: none; letter-spacing: -0.02em; color: var(--accent); }

.label {
  display: flex; gap: 12px; align-items: center;
  color: var(--muted);
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.label span { color: var(--accent); }

section { position: relative; padding: clamp(56px, 7.5vw, 112px) var(--gutter); }

/* ---------- split helpers ---------- */
.split-mask { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-inner { display: inline-block; }
.split-char { display: inline-block; will-change: transform; }
.split-word { display: inline-block; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
  background: var(--accent); color: var(--accent-ink);
}
.loader__row { display: flex; justify-content: space-between; align-items: center; }
.loader__count {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(120px, 30vw, 420px); line-height: 0.8; letter-spacing: -0.06em;
  align-self: flex-end;
}
.loader__count sup { font-size: 0.25em; vertical-align: top; margin-left: 0.05em; }
.loader__bar { width: min(40vw, 320px); height: 2px; background: rgba(11,11,10,.2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 95;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--fg);
    mix-blend-mode: difference;
    pointer-events: none;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s;
  }
  .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cursor.is-label {
    width: 96px; height: 96px; margin: -48px 0 0 -48px;
    background: var(--accent); mix-blend-mode: normal;
  }
  .cursor__label {
    font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--accent-ink);
    opacity: 0; transform: scale(.5); transition: opacity .3s, transform .45s var(--ease-out);
  }
  .cursor.is-label .cursor__label { opacity: 1; transform: none; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.menu-open .nav { mix-blend-mode: normal; color: var(--accent-ink); }
.nav__logo { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.04em; display: inline-flex; align-items: center; white-space: nowrap; }
.nav__logo span { font-size: 0.6em; align-self: flex-start; margin-top: -0.1em; }
.nav__mark { width: 1.05em; height: 1.05em; margin-right: 0.38em; flex: none; }
.nav__status { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3cff7a; box-shadow: 0 0 0 0 rgba(60,255,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60,255,122,0); } 100% { box-shadow: 0 0 0 0 rgba(60,255,122,0); } }
.nav__links { display: flex; gap: 24px; font-size: 13px; font-weight: 500; }
.nav__cta { padding: 9px 18px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; transition: background .3s, color .3s; }
.nav__cta:hover { background: #fff; color: #000; }
.nav__work { display: none; padding: 6px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; text-transform: uppercase; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* rolling link */
.link-roll { display: inline-block; overflow: hidden; line-height: 1.2; vertical-align: bottom; align-self: center; }
.link-roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease); }
.link-roll > span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
.link-roll:hover > span, .link-roll:focus-visible > span { transform: translateY(-100%); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links a {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(31px, 9.2vw, 63px); line-height: 1; letter-spacing: -0.04em;
  border-bottom: 1px solid rgba(11,11,10,.2); padding: 8px 0;
}
.menu__links .mono { margin-top: 10px; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- buttons ---------- */
.btn-circle {
  position: relative; flex-shrink: 0;
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; line-height: 1.3;
  overflow: hidden; isolation: isolate;
}
.btn-circle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--fg); transform: translateY(125%) scale(1.2);
  transition: transform .6s var(--ease);
}
.btn-circle:hover::before { transform: translateY(0) scale(1.2); }
.btn-circle svg { position: absolute; bottom: 22%; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.btn-circle > span { margin-top: -14px; }
.btn-circle:hover svg { transform: rotate(45deg); }
.btn-circle--lg { width: 160px; height: 160px; font-size: 12px; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: translateY(105%); transition: transform .5s var(--ease); border-radius: inherit;
}
.btn-pill:hover::before { transform: none; }
.btn-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.btn-pill:hover svg { transform: rotate(45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 96px; padding-bottom: var(--gutter);
  overflow: hidden;
}
.hero__blob {
  position: absolute; top: 0; left: 0; z-index: -1;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,77,26,.55), rgba(255,77,26,.12) 45%, transparent 70%);
  filter: blur(40px);
  transform: translate(40vw, -10vh);
  pointer-events: none;
}
.hero__meta { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: auto; padding-top: 4vh; }
.hero__meta-right { text-align: right; }

.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: min(9vw, 200px);
  line-height: 0.86; letter-spacing: -0.06em;
  text-transform: uppercase;
  margin: 6vh 0 4vh -0.04em;
}
.hero__line { display: block; }
.hero__line--2 { display: flex; align-items: flex-end; justify-content: flex-end; gap: 0.12em; }
.hero__serif {
  font-size: 0.26em; line-height: 1; text-transform: none; color: var(--accent);
  margin-bottom: 0.35em; letter-spacing: -0.01em;
}

.hero__bottom {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.hero__lede { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.1vw, 34px); line-height: 1.1; max-width: 24ch; letter-spacing: -0.035em; }
.hero__sub { color: var(--muted); margin-top: 14px; }
.hero__lede em { color: var(--accent); font-size: 1.12em; }
.hero__scroll { display: none; }

/* ---------- marquee ---------- */
.marquee {
  padding: 18px 0; overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  transform: rotate(-2deg) scale(1.04);
  margin: 24px 0;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group > * {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.9vw, 63px); line-height: 1; letter-spacing: -0.03em;
  padding: 0 0.3em; white-space: nowrap;
}
.marquee__group .serif { text-transform: none; font-size: clamp(30px, 4.6vw, 72px); }
.marquee__group b { font-size: clamp(16px, 2vw, 31px); font-weight: 400; }

/* ---------- intro ---------- */
.intro__text {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(18px, 2.9vw, 48px); line-height: 1.08; letter-spacing: -0.035em;
  max-width: 22ch;
}
.intro__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(44px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.intro__stat { padding: 20px 20px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.intro__stat + .intro__stat { border-left: 1px solid var(--line); padding-left: 20px; }
.intro__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(31px, 3.9vw, 63px); line-height: 1; letter-spacing: -0.05em; color: var(--fg); }

.intro__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.process { border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2vw, 32px); }
.process__head { color: var(--muted); margin-bottom: 8px; }
.process__list { list-style: none; }
.process__step {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.process__step:last-child { border-bottom: 0; padding-bottom: 0; }
.process__num { color: var(--accent); }
.process__step h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -0.04em; line-height: 1; text-transform: uppercase; margin-bottom: 6px; }
.process__step p { color: var(--muted); font-size: 14px; max-width: 38ch; }
.process__time { color: var(--muted); white-space: nowrap; }

.stack {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 72px); padding-top: 20px; border-top: 1px solid var(--line);
}
.stack__label { color: var(--accent); }
.stack__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.stack__list li { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); transition: background .3s, color .3s, border-color .3s; }
.stack__list li:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stack__label { font-size: 12px; font-weight: 400; }
.stack--ink { border-top-color: var(--ink-line); }
.stack--ink .stack__list li { border-color: var(--ink-line); color: var(--ink); }
.intro { padding-bottom: clamp(40px, 5vw, 72px); }
.intro + .exp { padding-top: clamp(40px, 5vw, 72px); }

/* ---------- services (light panel) ---------- */
.services {
  background: var(--paper); color: var(--ink);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
}
.services .label { color: var(--ink-muted); }
.services__head { display: grid; grid-template-columns: 1fr 2fr; align-items: start; margin-bottom: clamp(32px, 4vw, 64px); }
.services__head .h2 { justify-self: end; text-align: right; }
.services__list { border-top: 1px solid var(--ink-line); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px 1.2fr 1fr 48px; align-items: center; gap: 20px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--ink-line);
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.service__num { color: var(--ink-muted); transition: color .5s; }
.service__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.6vw, 42px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.service__desc { color: var(--ink-muted); max-width: 42ch; transition: color .5s; }
.service__arrow { font-size: 28px; justify-self: end; transition: transform .6s var(--ease), color .5s; }
@media (hover: hover) {
  .service:hover { color: var(--paper); padding-left: 24px; padding-right: 24px; }
  .service:hover::before { transform: scaleY(1); transform-origin: top; }
  .service:hover .service__num, .service:hover .service__desc { color: #b9b6ad; }
  .service:hover .service__arrow { transform: rotate(45deg); color: var(--accent); }
}

/* ---------- work ---------- */
.work { padding: 0; background: var(--bg); }
.work__pin { min-height: 100vh; padding: clamp(64px, 7vw, 100px) 0 var(--gutter); display: flex; flex-direction: column; overflow: hidden; }
.work__head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); }
.work__head .label { margin-bottom: 0; }
.work__progress { width: min(30vw, 280px); height: 2px; background: var(--line); }
.work__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.work__track {
  display: flex; align-items: stretch; gap: clamp(16px, 2vw, 28px);
  padding: clamp(28px, 3.5vw, 44px) var(--gutter) 0;
  width: max-content; flex: 1;
}
.work__intro { width: min(26vw, 360px); display: flex; flex-direction: column; justify-content: space-between; padding-right: 2vw; }
.work__intro sup { font-size: 14px; color: var(--muted); vertical-align: top; letter-spacing: 0; }
.work__intro p { color: var(--muted); max-width: 32ch; font-size: 15px; }
.work__intro .work__gh { display: inline-block; margin-top: 10px; color: var(--fg); border-bottom: 1px solid var(--accent); }
.work__end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: min(22vw, 300px); }
.work__end-q { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; text-align: center; }

.card { width: clamp(260px, 27vw, 420px); flex-shrink: 0; }
.card__link { display: flex; flex-direction: column; height: 100%; gap: 14px; }
.card__art {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.1; width: 100%;
  border-radius: 20px;
  background: var(--bg-2);
  transition: border-radius .6s var(--ease);
}
.card__art > * { transition: transform 1s var(--ease-out); }
.card:hover .card__art { border-radius: 120px 20px 20px 20px; }
.card__info { display: grid; gap: 8px; }
.card__info .mono { color: var(--muted); }
.card__info h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 26px); letter-spacing: -0.04em; line-height: 1; text-transform: uppercase; }
.card__info p { color: var(--muted); max-width: 44ch; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags li { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* card art: orbit */
.art-orbit { background: radial-gradient(circle at 50% 50%, #2a1206, #0f0f0d 70%); display: grid; place-items: center; }
.art-orbit .ring { position: absolute; border: 1px solid rgba(255,77,26,.45); border-radius: 50%; }
.art-orbit .r1 { width: 36%; aspect-ratio: 1; animation: spin 10s linear infinite; }
.art-orbit .r2 { width: 58%; aspect-ratio: 1; border-style: dashed; animation: spin 18s linear infinite reverse; }
.art-orbit .r3 { width: 82%; aspect-ratio: 1; border-color: rgba(239,236,228,.12); animation: spin 30s linear infinite; }
.art-orbit .ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.art-orbit .r3::after { background: var(--fg); box-shadow: none; width: 6px; height: 6px; top: -3px; }
.art-orbit .core { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(31px, 3.9vw, 63px); color: var(--accent); letter-spacing: -0.05em; }
.card:hover .art-orbit .core { transform: scale(1.2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* card art: AI search */
.art-search { background: linear-gradient(160deg, #13201e, #0d1211); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 10%; }
.search { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.search__icon { color: #5ee6c8; font-size: 20px; }
.search__text { font-size: clamp(12px, 1vw, 15px); color: #cfe9e3; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #5ee6c8; vertical-align: -0.2em; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search__lines { display: grid; gap: 10px; }
.search__lines i { display: block; height: 10px; border-radius: 6px; background: rgba(94,230,200,.18); transform-origin: left; animation: type 3.2s var(--ease-out) infinite; }
.search__lines i:nth-child(1) { width: 92%; }
.search__lines i:nth-child(2) { width: 76%; animation-delay: .25s; }
.search__lines i:nth-child(3) { width: 84%; animation-delay: .5s; }
.search__lines i:nth-child(4) { width: 48%; animation-delay: .75s; }
@keyframes type { 0% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
.card:hover .search { transform: translateY(-8px); }

/* card art: cyber */
.art-cyber { background: linear-gradient(#0a0015, #25003d 60%, #3a0050); perspective: 400px; display: grid; place-items: center; }
.art-cyber .floor {
  position: absolute; left: -50%; right: -50%; bottom: -30%; height: 80%;
  background-image: linear-gradient(rgba(255,0,200,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,0,200,.6) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: rotateX(70deg);
  animation: floor 2s linear infinite;
}
@keyframes floor { to { background-position: 0 40px; } }
.art-cyber .sun { position: absolute; top: 18%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(#ffe066, #ff2e88); box-shadow: 0 0 80px rgba(255,46,136,.6); }
.art-cyber .cyber__word { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 42px); line-height: .85; letter-spacing: -0.04em; text-align: center; color: #fff; mix-blend-mode: difference; }
.card:hover .art-cyber .sun { transform: translateY(-12px) scale(1.08); }

/* card art: unsplash */
.art-unsplash { background: #f4f4f2; display: grid; place-items: center; }
.art-unsplash .masonry { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; }
.art-unsplash .masonry__col { display: flex; flex-direction: column; gap: 8px; transition: transform 1s var(--ease-out); }
.art-unsplash .masonry__col:nth-child(2) { margin-top: -18%; }
.art-unsplash .masonry i { display: block; border-radius: 8px; flex-shrink: 0; }
.art-unsplash .masonry__col:nth-child(1) i:nth-child(1) { height: 42%; background: linear-gradient(160deg, #9bb7c9, #3e5a6e); }
.art-unsplash .masonry__col:nth-child(1) i:nth-child(2) { height: 30%; background: linear-gradient(160deg, #e8c39e, #b0683c); }
.art-unsplash .masonry__col:nth-child(1) i:nth-child(3) { height: 40%; background: linear-gradient(160deg, #a7c4a0, #45623f); }
.art-unsplash .masonry__col:nth-child(2) i:nth-child(1) { height: 34%; background: linear-gradient(160deg, #2b2d42, #8d99ae); }
.art-unsplash .masonry__col:nth-child(2) i:nth-child(2) { height: 46%; background: linear-gradient(160deg, #f6d6c8, #d9826b); }
.art-unsplash .masonry__col:nth-child(2) i:nth-child(3) { height: 36%; background: linear-gradient(160deg, #cdd7e1, #6c7f93); }
.art-unsplash .masonry__col:nth-child(3) i:nth-child(1) { height: 28%; background: linear-gradient(160deg, #d8d2c4, #7d7462); }
.art-unsplash .masonry__col:nth-child(3) i:nth-child(2) { height: 44%; background: linear-gradient(160deg, #1f3b2d, #6f9c7d); }
.art-unsplash .masonry__col:nth-child(3) i:nth-child(3) { height: 38%; background: linear-gradient(160deg, #f2e2b3, #c9a14a); }
.art-unsplash .unsplash__word { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.3vw, 55px); letter-spacing: -0.04em; color: #111; background: #fff; padding: .1em .35em; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.card:hover .art-unsplash .masonry__col:nth-child(odd) { transform: translateY(-10%); }
.card:hover .art-unsplash .masonry__col:nth-child(2) { transform: translateY(10%); }
.card:hover .art-unsplash .unsplash__word { transform: scale(1.06); }

/* ---------- experience ---------- */
.exp .h2 { margin-bottom: clamp(16px, 2vw, 28px); }
.exp__lede { color: var(--muted); max-width: 60ch; margin-bottom: clamp(32px, 4vw, 64px); }
.exp__list { border-top: 1px solid var(--line); }
.exp__row {
  display: grid; grid-template-columns: 180px 1fr 180px; gap: 24px; align-items: start;
  padding: clamp(20px, 2.2vw, 32px) 0; border-bottom: 1px solid var(--line);
}
.exp__date { color: var(--muted); padding-top: 10px; line-height: 1.6; }
.exp__date b { color: var(--fg); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.exp__row h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 37px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; text-transform: uppercase; }
.exp__row h3 .serif { text-transform: none; color: var(--accent); }
.exp__row p { color: var(--muted); max-width: 60ch; }
.exp__role { justify-self: end; margin-top: 10px; }
.case { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case dt { color: var(--accent); margin-bottom: 8px; }
.case dd { color: var(--muted); }
.case a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.quote { border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 20px; }
.quote blockquote { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; }
.quote figcaption { color: var(--muted); }

/* ---------- pricing ---------- */
.pricing .h2 { margin-bottom: clamp(32px, 4vw, 64px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 24px;
}
.plan--featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.plan__badge { background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; font-size: 11px; text-transform: uppercase; }
.plan h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.04em; text-transform: uppercase; line-height: 1; }
.plan__who { color: var(--muted); }
.plan__price { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 3.2vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.plan__price .mono { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); text-transform: uppercase; vertical-align: middle; }
.plan__time { color: var(--accent); }
.plan__list { display: grid; gap: 10px; align-content: start; padding: 16px 0 8px; border-top: 1px solid var(--line); flex: 1; }
.plan__list li { color: var(--muted); padding-left: 20px; position: relative; }
.plan__list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 3px; }
.plan .btn-pill { align-self: flex-start; }
.pricing__note { color: var(--muted); margin-top: 24px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq__head { position: sticky; top: clamp(88px, 10vw, 120px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(18px, 2vw, 26px) 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.03em; line-height: 1.15; }
.faq__icon { font-family: var(--f-mono); font-size: 24px; color: var(--accent); transition: transform .4s var(--ease); flex-shrink: 0; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { color: var(--muted); max-width: 70ch; padding-bottom: clamp(18px, 2vw, 26px); }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: min(7vw, 130px); line-height: 0.9; letter-spacing: -0.06em;
  margin-bottom: 20px;
}
.contact__sub { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 46ch; margin-bottom: clamp(28px, 3.5vw, 48px); }
.contact__direct { color: var(--muted); margin-bottom: 14px; }
.contact__line { display: block; }
.contact__line .serif { text-transform: none; color: var(--accent); letter-spacing: -0.03em; }

.brief { max-width: 820px; display: grid; gap: 14px; margin-bottom: clamp(44px, 6vw, 84px); }
.brief__q { color: var(--muted); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--fg); }
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.brief__row { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin: 16px 0 8px; }
.brief__input {
  font: inherit; font-size: 16px; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; outline: none; transition: border-color .3s;
}
.brief__input::placeholder { color: var(--muted); }
.brief__input:focus { border-color: var(--accent); }
.brief__send { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-pill--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-pill--ghost:hover { color: var(--bg); }

.contact__links { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact__email {
  position: relative; text-align: left;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(16px, 2.8vw, 44px); letter-spacing: -0.04em; line-height: 1;
}
.contact__email-text { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 4px; }
.contact__email:hover .contact__email-text { background-size: 100% 2px; }
.contact__copied { position: absolute; left: 0; top: -28px; color: var(--accent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease-out); }
.contact__email.is-copied .contact__copied { opacity: 1; transform: none; }
.contact__socials { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }

/* ---------- footer ---------- */
.footer { padding: 0 var(--gutter) var(--gutter); overflow: hidden; }
.footer__big {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: 9vw; line-height: 0.8; letter-spacing: -0.06em;
  color: var(--bg-2); -webkit-text-stroke: 1px rgba(239,236,228,.12);
  margin: 0 0 24px -0.04em; white-space: nowrap;
}
.footer__big .serif { text-transform: none; color: var(--accent); -webkit-text-stroke: 0; font-size: 0.5em; vertical-align: top; }
.footer__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.footer__row a { color: var(--fg); }

/* ---------- JS-driven initial states ---------- */
.js [data-fade] { opacity: 0; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .case { grid-template-columns: 1fr; gap: 14px; }
  .plans { grid-template-columns: 1fr; max-width: 640px; }
  .exp__row { grid-template-columns: 160px 1fr; }
  .exp__role { display: none; }
}

@media (max-width: 899px) {
  .nav { grid-template-columns: auto 1fr auto auto; gap: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__work { display: block; }
  .nav__burger { display: block; }
  .nav__status { justify-self: center; font-size: 10px; }

  .hero { min-height: 0; padding-top: 110px; }
  .hero__meta { font-size: 10px; margin-bottom: 0; padding-top: 0; }
  .hero__title { margin: 48px 0 32px -0.04em; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero .btn-circle { width: 100px; height: 100px; justify-self: end; margin-top: -20px; }

  .intro__top { grid-template-columns: 1fr; }
  .intro__text { max-width: none; }
  .intro__grid { grid-template-columns: repeat(2, 1fr); }
  .intro__stat { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
  .intro__stat + .intro__stat { padding-left: 16px; }
  .intro__stat:nth-child(3) { border-left: 0; padding-left: 0; }

  .services__head { grid-template-columns: 1fr; }
  .services__head .h2 { justify-self: start; text-align: left; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .service { grid-template-columns: 40px 1fr 32px; gap: 8px 16px; }
  .service__desc { grid-column: 2 / 3; }
  .service__arrow { grid-row: 1; grid-column: 3; font-size: 22px; }

  .work__pin { min-height: 0; overflow: visible; }
  .work__progress { display: none; }
  .work__track { flex-direction: column; width: auto; gap: 40px; }
  .work__intro { width: auto; gap: 20px; padding: 0; }
  .card { width: 100%; }
  .work__end { width: auto; flex-direction: row; justify-content: space-between; }
  .work__end-q { text-align: left; }
  .quotes { grid-template-columns: 1fr; }

  .exp__row { grid-template-columns: 1fr; gap: 8px; }
  .exp__date { padding-top: 0; }

  .brief__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav__status { display: none; }
  .nav { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav__work { justify-self: end; }
  .hero__meta { flex-direction: column; gap: 8px; }
  .hero__meta-right { text-align: left; }
  .hero__serif { display: none; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__stat, .intro__stat + .intro__stat { border-left: 0; padding-left: 0; }
  .contact__socials { flex-wrap: wrap; gap: 18px; }
}

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