/* =========================================================
   Raja Hamza Asghar — monochrome portfolio
   ========================================================= */
:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #1b1b1b;
  --paper: #f3f2ee;
  --paper-2: #e8e6e0;
  --white: #ffffff;
  --mute-d: #8d8d8d;   /* muted text on dark */
  --mute-l: #5e5e5e;   /* muted text on light */
  --line-d: rgba(255,255,255,.12);
  --line-l: rgba(10,10,10,.14);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1440px;
  --ease: cubic-bezier(.65,.05,0,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--paper); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Light / dark section skins ---------- */
[data-theme="dark"] { background: var(--ink); color: var(--paper); --bg: var(--ink); --fg: var(--paper); --mute: var(--mute-d); --line: var(--line-d); --surface: #141414; --stroke: rgba(255,255,255,.5); --glow: rgba(255,255,255,.08); }
[data-theme="light"] { background: var(--paper); color: var(--ink); --bg: var(--paper); --fg: var(--ink); --mute: var(--mute-l); --line: var(--line-l); --surface: #ffffff; --stroke: rgba(10,10,10,.45); --glow: rgba(10,10,10,.07); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .8; margin-bottom: 22px;
}
.eyebrow .num { letter-spacing: .05em; opacity: .55; }
.eyebrow .line { width: 40px; height: 1px; background: currentColor; display: inline-block; }

.sec-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: .98; letter-spacing: -.025em;
}
.sec-title em, .cta__title em, .hero__title em, h3 em { font-weight: 400; color: inherit; opacity: .62; }
[data-theme="light"] .sec-title em, [data-theme="light"] h3 em { opacity: .55; }
.sec-sub { max-width: 520px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; opacity: .68; margin-top: 26px; }
.sec-head { margin-bottom: clamp(60px, 9vw, 130px); }
.sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sec-head--split .sec-sub { margin-top: 0; }

section { position: relative; }

/* split helpers */
.char, .word { display: inline-block; will-change: transform; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-inner { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 28px; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px) rotate(-45deg); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); background: transparent; }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); }
.btn--pill { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--xl { height: 68px; padding: 0 38px; font-size: 17px; }

.link-under { position: relative; font-size: 15px; padding-bottom: 4px; }
.link-under::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-under:hover::after { transform: scaleX(0); transform-origin: right; animation: underline-in .6s .35s var(--ease) forwards; }
@keyframes underline-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* rolling nav links */
.roll { display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4; }
.roll span { display: inline-block; position: relative; transition: transform .55s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-style: italic; font-family: var(--serif); }
.roll:hover span { transform: translateY(-100%); }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.loader__inner { width: min(560px, 82vw); }
.loader__logo { width: 100%; height: auto; fill: transparent; stroke: var(--paper); stroke-width: 5; stroke-linejoin: miter; }
.loader__meta { display: flex; justify-content: space-between; margin-top: 28px; opacity: .7; }
.loader__count b { font-weight: 500; display: inline-block; min-width: 3ch; text-align: right; }
.loader__bar { height: 1px; background: var(--line-d); margin-top: 14px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.loader__curtain { position: absolute; inset: 0; background: var(--paper); transform: translateY(100%); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  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)} }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 180; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #fff; display: grid; place-items: center; transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s; }
.cursor__label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; mix-blend-mode: difference; pointer-events: none; }
.progress i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff; mix-blend-mode: difference; transition: transform .6s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }
.topbar { border-bottom: 1px solid rgba(255,255,255,.14); font-size: 12.5px; transition: height .5s var(--ease), opacity .4s; overflow: hidden; height: 36px; }
.header.is-scrolled .topbar { height: 0; opacity: 0; border-color: transparent; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar__tag { display: inline-flex; align-items: center; gap: 10px; opacity: .8; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }
.topbar__links { display: flex; gap: 28px; opacity: .8; }
.topbar__links a:hover { opacity: .6; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .5s var(--ease); }
.header.is-scrolled .nav { height: 72px; }
.nav__logo svg { height: 30px; width: auto; fill: #fff; display: block; }
.nav__links { display: flex; gap: clamp(14px, 1.9vw, 32px); font-size: 15px; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__social { display: flex; gap: 6px; }
.nav__social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; transition: background .3s, color .3s; }
.nav__social a:hover { background: #fff; color: #000; }
.header .btn--pill { --bg: #fff; --fg: #000; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* fullscreen menu */
.menu { position: fixed; inset: 0; z-index: 90; pointer-events: none; color: var(--ink); visibility: hidden; transition: visibility 0s .9s; }
.menu.is-open { visibility: visible; transition: visibility 0s; }
.menu__bg { position: absolute; inset: 0; background: var(--paper); clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease); }
.menu.is-open { pointer-events: auto; }
.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu__in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 4vh, 40px); padding-top: 84px; padding-bottom: 24px; overflow-y: auto; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-l); }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: clamp(5px, 1.1vh, 10px) 0; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu.is-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .05s; } .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu__list li:nth-child(4) a { transition-delay: .15s; } .menu__list li:nth-child(5) a { transition-delay: .2s; } .menu__list li:nth-child(6) a { transition-delay: .25s; } .menu__list li:nth-child(7) a { transition-delay: .3s; } .menu__list li:nth-child(8) a { transition-delay: .35s; } .menu__list li:nth-child(9) a { transition-delay: .4s; }
.menu__list em { font-family: var(--serif); font-size: clamp(28px, min(7.6vw, 5.6vh), 54px); line-height: 1.08; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .5s .4s; }
.menu.is-open .menu__foot { opacity: .7; }

/* ---------- HERO (one thing: a big centred portrait) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero { position: relative; height: 100svh; height: 100vh; min-height: 620px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(90% 75% at 50% 45%, transparent 50%, rgba(10,10,10,.75) 100%), linear-gradient(to bottom, transparent 78%, var(--ink) 100%); }
/* tall side-profile photo: fills the height, its black backdrop melts into the page */
.hero__portrait { position: absolute; left: 50%; bottom: -16vh; z-index: 2; height: 116vh; aspect-ratio: 1106 / 2000; transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 52% 46%, #000 84%, transparent 100%); mask-image: radial-gradient(closest-side at 52% 46%, #000 84%, transparent 100%); }
.hero__portrait-mask { width: 100%; height: 100%; clip-path: inset(100% 0 0 0); will-change: clip-path; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.08) brightness(1.05); }
.hero__glow { position: absolute; inset: 4% 12% 0; z-index: -1; background: radial-gradient(closest-side, rgba(255,255,255,.11), transparent 72%); filter: blur(30px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--bg); color: var(--fg); overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); width: 106vw; margin-left: -3vw; z-index: 4; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--serif); font-size: clamp(38px, 5.4vw, 86px); line-height: 1.1; white-space: nowrap; }
.marquee__row .o { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee__row i { font-style: normal; font-size: .4em; display: inline-block; animation: spin 6s linear infinite; }

/* ---------- ABOUT (pinned viewfinder reveal + ventures) ---------- */
.about { padding: 0 0 clamp(100px, 14vw, 200px); }
.about__intro { --ft: 16%; --fr: 38%; --fb: 16%; --fl: 38%; --fra: 14px;
  position: relative; height: 100vh; overflow: hidden; display: grid; place-items: end stretch; background: var(--paper); }
.about__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.about__frame { position: absolute; inset: 0; z-index: 1; clip-path: inset(var(--ft) var(--fr) var(--fb) var(--fl) round var(--fra)); will-change: clip-path; background: var(--paper-2); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: grayscale(1) contrast(1.05); transform: scale(1.3); transform-origin: 47% 34%; will-change: transform; }
.about__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.82) 0%, rgba(10,10,10,.55) 30%, transparent 62%); opacity: var(--shade, 0); }


/* viewfinder */
.vf { position: absolute; z-index: 2; top: var(--ft); right: var(--fr); bottom: var(--fb); left: var(--fl); pointer-events: none; color: var(--ink); }
.vf__c { position: absolute; width: 26px; height: 26px; border: 0 solid currentColor; }
.vf__c--tl { top: -16px; left: -16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf__c--tr { top: -16px; right: -16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf__c--bl { bottom: -16px; left: -16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf__c--br { bottom: -16px; right: -16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf__top, .vf__bot { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; opacity: .7; }
.vf__top { bottom: calc(100% + 28px); }
.vf__bot { top: calc(100% + 28px); }
.vf__rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; animation: rec 1.4s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.vf__side { display: none; }
.about__panel { position: absolute; z-index: 3; left: var(--gutter); right: 52%; bottom: 18vh; }
/* desktop: frame opens from a window on the right; the subject already sits on the right of the photo */
@media (min-width: 821px) {
  .about__frame img { object-position: 72% 24%; transform-origin: 72% 30%; }
  .about__frame::after { background: linear-gradient(to right, rgba(10,10,10,.78) 0%, rgba(10,10,10,.45) 42%, transparent 68%); }
  .about__corner--tl { left: var(--gutter) !important; }
}
.about__headline { display: block; text-align: left; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 84px); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.acards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: clamp(22px, 3.4vh, 38px); container-type: inline-size; }
.acard { display: flex; flex-direction: column; gap: 10px; min-height: 124px; padding: clamp(10px, 2.6cqi, 16px) clamp(10px, 2.6cqi, 16px) clamp(12px, 2.8cqi, 18px); border-radius: 16px; border: 1px solid rgba(10,10,10,.12); background: rgba(255,255,255,.7); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.acard .mono { opacity: .5; }
.acard b { font-family: var(--serif); font-weight: 400; font-size: clamp(13.5px, 3.4cqi, 22px); line-height: 1.12; margin-top: auto; }
.acard small { font-size: 12.5px; line-height: 1.45; opacity: .7; }
@container (max-width: 380px) { .acard small { display: none; } }
.nm { display: inline-block; white-space: nowrap; }
.nx { display: inline; }
.lx { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: pre; }
.js .lx { max-width: 0; opacity: 0; }
.about__headline em { opacity: .6; }
.ah { display: inline-block; will-change: transform; }
.about__corner { position: absolute; z-index: 3; color: var(--ink); opacity: .6; }
.about__corner--tl { top: 110px; left: 52%; }
.about__corner--br { bottom: 34px; right: var(--gutter); }

.about__body { padding-top: clamp(90px, 11vw, 170px); }
.about__cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.statement { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 56px); line-height: 1.12; letter-spacing: -.015em; position: sticky; top: 120px; }
.statement .word { opacity: .14; }
.about__text p { font-size: clamp(16.5px, 1.25vw, 19.5px); line-height: 1.72; color: var(--mute-l); margin-bottom: 24px; }
.about__text strong { color: var(--ink); font-weight: 500; }
.about__text .btn { margin-top: 12px; }

.ventures { margin-top: clamp(110px, 13vw, 200px); }
.ventures__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.ventures__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 76px); line-height: 1; letter-spacing: -.02em; }
.ventures__title em { opacity: .55; }
.ventures__sub { max-width: 380px; color: var(--mute-l); font-size: 16px; }

/* expanding panels: the active company opens wide, the others fold into tall spines */
.vx { display: flex; gap: 12px; height: clamp(460px, 70vh, 620px); }
.vx__p { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 22px; background: var(--ink); color: var(--paper); padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; cursor: pointer; isolation: isolate; outline: none;
  transition: flex-grow .9s var(--ease), background .5s; }
.vx__p.is-active { flex-grow: 3.2; }
.vx__p::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 20%), rgba(255,255,255,.09), transparent 60%); }
.vx__p::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.vx__p:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--paper); }
.vx__mark { position: absolute; right: -4%; bottom: -10%; z-index: -1; font-family: var(--serif); font-size: clamp(180px, 22vw, 340px); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); transition: transform 1.1s var(--ease), opacity .6s; pointer-events: none; }
.vx__p:not(.is-active) .vx__mark { transform: translateX(30%); opacity: .4; }
.vx__top { display: flex; justify-content: space-between; gap: 10px; opacity: .6; white-space: nowrap; }
.vx__vert { position: absolute; left: clamp(22px, 2.4vw, 36px); bottom: clamp(22px, 2.4vw, 36px); writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-size: clamp(28px, 2.6vw, 44px); line-height: 1; white-space: nowrap; transition: opacity .4s, transform .8s var(--ease); }
.vx__p.is-active .vx__vert { opacity: 0; transform: rotate(180deg) translateY(-20px); }
.vx__body { margin-top: auto; width: min(560px, 46vw); opacity: 0; transform: translateY(24px); transition: opacity .35s, transform .6s var(--ease); pointer-events: none; }
.vx__p.is-active .vx__body { opacity: 1; transform: none; transition: opacity .6s .35s, transform .9s .3s var(--ease); pointer-events: auto; }
.vx__market { display: block; opacity: .6; margin-bottom: 16px; }
.vx__body h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.4vw, 96px); line-height: .92; letter-spacing: -.035em; white-space: nowrap; }
.vx__body h4 em { opacity: .55; }
.vx__body p { margin-top: 18px; max-width: 440px; font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.6; color: rgba(243,242,238,.7); }
.vx__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.vx__chips li { padding: 6px 11px; border-radius: 100px; border: 1px solid rgba(255,255,255,.22); font-size: 10px; }
.vx__link { display: inline-flex; gap: 10px; align-items: center; margin-top: 26px; padding: 12px 18px; border-radius: 100px; background: var(--paper); color: var(--ink); }
.vx__link i { font-style: normal; transition: transform .5s var(--ease); }
.vx__p:hover .vx__link i { transform: translate(3px, -3px); }

.certs { margin-top: clamp(90px, 10vw, 150px); }
.certs__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 46px); margin-bottom: 26px; }
.certs__row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.certs__row li { padding: 22px 20px 26px 0; border-right: 1px solid var(--line-l); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.35; display: flex; flex-direction: column; gap: 26px; }
.certs__row li + li { padding-left: 20px; }
.certs__row li:last-child { border-right: 0; }
.certs__row li span { opacity: .45; }

/* ---------- SKILLS (constellation that settles into 4 columns) ---------- */
.skills { position: relative; overflow: hidden; }
.skills__pin { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 104px 0 44px; }
.skills__pin > .wrap { position: relative; z-index: 1; }
.skills__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.skills .sec-head { margin-bottom: clamp(30px, 5vh, 56px); }
.skills .sec-title { font-size: clamp(44px, 6vw, 100px); }
.skillset { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.sk { position: relative; padding: 24px 0 0 22px; border-left: 1px solid var(--line-d); }
.sk:first-child { border-left: 0; padding-left: 0; }
.sk__head { margin-bottom: 20px; }
.sk__n { display: block; color: var(--mute-d); margin-bottom: 12px; }
.sk__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 40px); line-height: 1; letter-spacing: -.02em; }
.sk__title em { opacity: .5; }
.sk__count { display: block; margin-top: 10px; color: var(--mute-d); }
.sk__list { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.sk__list li { position: relative; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-d); background: #0d0d0d; font-family: var(--serif); font-size: clamp(14px, 1.05vw, 17px); line-height: 1.2; white-space: nowrap; transition: background .35s, color .35s, border-color .35s; will-change: transform; }
.sk__list li:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sk--ai .sk__list li { border-style: dashed; }
.sk--ai .sk__title::after { content: "New"; display: inline-block; vertical-align: top; margin: .2em 0 0 .4em; padding: 4px 8px; border-radius: 100px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- RESULTS (stack) ---------- */
.results { padding: clamp(100px, 14vw, 200px) 0 clamp(60px, 8vw, 120px); }
.stack { position: relative; }
.stack__card { position: sticky; top: 120px; min-height: 62vh; margin-bottom: 40px; border-radius: 22px; padding: clamp(28px, 4vw, 60px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.stack__card--light { background: var(--fg); color: var(--bg); border-color: transparent; }
.stack__top { display: flex; justify-content: space-between; opacity: .6; }
.stack__card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -.025em; margin-top: 60px; position: relative; z-index: 1; }
.stack__card p { max-width: 560px; font-size: clamp(16px, 1.35vw, 20px); opacity: .7; margin-top: 30px; position: relative; z-index: 1; }
.stack__card strong { font-weight: 500; opacity: 1; }
.stack__big { position: absolute; right: -2%; bottom: -14%; font-family: var(--serif); font-size: clamp(200px, 34vw, 520px); line-height: 1; color: transparent; -webkit-text-stroke: 1px currentColor; opacity: .14; pointer-events: none; }

/* ---------- SERVICES (3D orbit: four service cards circle the portrait) ---------- */
.services { overflow: hidden; }
.orb__pin { --R: min(29vw, 410px); --cw: clamp(230px, 18vw, 270px); position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 62%, #1a1a1a 0%, var(--ink) 70%); }
.orb__head { position: absolute; z-index: 5; top: 100px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; pointer-events: none; }
.orb__head .sec-title { font-size: clamp(30px, 3.4vw, 56px); max-width: 6.2em; }
.orb__head > div { max-width: 28vw; }
.orb__head .sec-sub { margin-top: 0; max-width: min(300px, 26vw); font-size: 14.5px; text-align: right; }

/* huge outlined service name behind everything */
.orb__bgword { position: absolute; z-index: 0; left: 0; right: 0; top: 56%; transform: translateY(-50%); text-align: center; pointer-events: none; }
.orb__bgword span { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%) scale(.96); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 11vw; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.11); opacity: 0; filter: blur(6px); transition: opacity .8s, transform 1.2s var(--ease-out), filter .8s; }
.orb__bgword span.is-on { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); }

.orb { position: absolute; inset: 0; z-index: 2; perspective: 3200px; perspective-origin: 50% 60%; }
.orb__tilt { position: absolute; left: 50%; top: 59%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-5deg); }
.orb__ring { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }

/* the orbit path, lying flat under the cards */
.orb__track { position: absolute; left: calc(var(--R) * -1.06); top: calc(var(--R) * -1.06); width: calc(var(--R) * 2.12); height: calc(var(--R) * 2.12); border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16); transform: translateY(calc(var(--cw) * .62)) rotateX(90deg); }
.orb__track::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); }

/* portrait plane in the middle (counter-rotated so it always faces you) */
.orb__me { position: absolute; height: min(74vh, 680px); aspect-ratio: 1106 / 2000; left: calc(min(74vh, 680px) * -.2765); top: calc(min(74vh, 680px) * -.79); margin: 0;
  -webkit-mask-image: radial-gradient(closest-side at 50% 45%, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 45%, #000 70%, transparent 100%); }
.orb__me img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* service cards on the ring */
.oc { position: absolute; width: var(--cw); left: calc(var(--cw) / -2); top: calc(var(--cw) * -.62); padding: 18px 18px 20px; border-radius: 20px;
  background: rgba(22,22,22,.86); border: 1px solid rgba(255,255,255,.12); color: var(--paper);
  transition: background .6s, color .6s, border-color .6s; }
.oc.is-front { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.oc__top { display: flex; justify-content: space-between; opacity: .55; }
.oc__icon { width: 30px; height: 30px; margin: 14px 0 12px; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.oc.is-front .oc__icon { stroke-dashoffset: 0; }
.oc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 36px); line-height: 1; letter-spacing: -.02em; }
.oc h3 em { opacity: .55; }
.oc p { margin-top: 10px; font-size: 13px; line-height: 1.5; opacity: .72; }
.oc:not(.is-front) .oc__tags, .oc:not(.is-front) p { display: none; }
.oc__tags { display: none; }
.oc__tags li { padding: 5px 9px; border-radius: 100px; border: 1px solid currentColor; opacity: .5; font-size: 9.5px; }
.oc__cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; height: 42px; padding: 0 18px; border-radius: 100px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 13.5px; }
.oc:not(.is-front) .oc__cta { background: var(--paper); color: var(--ink); }
.oc__cta i { font-style: normal; transition: transform .5s var(--ease); }
.oc__cta:hover i { transform: translateX(5px); }

.orb__nav { position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; gap: 22px; color: var(--mute-d); }
.orb__nav b { color: var(--paper); font-weight: 500; }
.orb__bar { flex: 1; height: 1px; background: var(--line-d); position: relative; }
.orb__bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* ---------- JOURNEY ---------- */
.journey { padding: clamp(100px, 14vw, 200px) 0; }
.timeline { position: relative; padding-left: 0; }
.timeline__line { position: absolute; left: 32%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: var(--fg); transform-origin: top; transform: scaleY(0); }
.tl { display: grid; grid-template-columns: 32% 1fr; padding: clamp(36px, 5vw, 70px) 0; border-top: 1px solid var(--line); position: relative; }
.tl::before { content: ""; position: absolute; left: 32%; top: clamp(50px, 6vw, 86px); width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg); transition: background .4s; }
.tl.is-on::before { background: var(--fg); box-shadow: 0 0 0 6px var(--glow); }
.tl__year { font-family: var(--serif); font-size: clamp(56px, 8vw, 132px); line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--stroke); transition: color .6s, -webkit-text-stroke-color .6s; }
.tl.is-on .tl__year { color: var(--fg); }
.tl__year small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; -webkit-text-stroke: 0; color: var(--mute); margin-top: 14px; }
.tl__body { padding-left: clamp(30px, 5vw, 80px); max-width: 640px; }
.tl__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.1; }
.tl__body p { margin-top: 14px; font-size: clamp(16px, 1.3vw, 19px); color: var(--mute); }

/* ---------- PROCESS (he places each step; right column: big step copy + graph) ---------- */
.process { overflow: hidden; }
.process__pin { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #050505; }
.pf__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.pf__copy { position: absolute; z-index: 2; left: 58%; right: var(--gutter); top: 108px; }
.pf__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-d); }
.pf__bar .eyebrow { margin: 0; }
.pf__dots { display: flex; gap: 6px; }
.pf__dots i { width: 26px; height: 2px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.pf__dots i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.pf__dots i.is-on::after { transform: scaleX(1); }

.pf__states { position: relative; margin-top: 26px; min-height: 260px; }
.pn { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.pn > * { opacity: 0; transform: translateY(26px); transition: opacity .35s ease, transform .5s var(--ease); }
.pn.is-on > * { opacity: 1; transform: none; transition: opacity .7s ease, transform 1s var(--ease-out); }
.pn.is-on > :nth-child(1) { transition-delay: .25s; } .pn.is-on > :nth-child(2) { transition-delay: .33s; } .pn.is-on > :nth-child(3) { transition-delay: .41s; }
.pn__n { display: block; color: var(--mute-d); margin-bottom: 14px; }
.pn h3, .pn .sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 80px); line-height: .98; letter-spacing: -.03em; }
.pn h3 em { opacity: .55; }
.pn p { margin-top: 18px; max-width: 420px; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.65; color: rgba(243,242,238,.68); }

.pf__rank { position: absolute; z-index: 2; left: 58%; right: var(--gutter); top: calc(63% - 74px); display: flex; justify-content: space-between; align-items: flex-end; }
.pf__rank .mono { color: var(--mute-d); padding-bottom: 8px; }
.pf__rank small { font-size: inherit; opacity: .7; }
.pf__rank b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 66px); line-height: 1; letter-spacing: -.04em; }

.pf__ms { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pm { position: absolute; left: 0; top: 0; transform: translate(-13px, -13px); }
.pm i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 500 9.5px var(--mono); font-style: normal; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 0 30px rgba(255,255,255,.35); transform: scale(0); transition: transform .8s var(--ease-out); }
.pm.is-on i { transform: scale(1); }

/* ---------- WORK ---------- */
.work { padding: clamp(100px, 14vw, 200px) 0; }
.work__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.case { display: block; }
.case:nth-child(2) { margin-top: 90px; }
.case:nth-child(3) { margin-top: 180px; }
.case__img { overflow: hidden; border-radius: 10px; aspect-ratio: 4/5; background: var(--paper-2); }
.case__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.12); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.case:hover .case__img img { filter: grayscale(0); transform: scale(1.02); }
.case__meta { display: flex; justify-content: space-between; margin: 20px 0 10px; color: var(--mute-l); }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.12; }

/* ---------- INDUSTRIES (live search: a query types itself, the result opens) ---------- */
.industries { overflow: hidden; }
.ls__pin { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding: 96px 0 64px; }
.ls__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(48% 58% at 50% 60%, transparent 62%, #000 100%); mask-image: radial-gradient(48% 58% at 50% 60%, transparent 62%, #000 100%); }
.ls__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.ls__head .sec-title { font-size: clamp(30px, 3.2vw, 54px); }
.ls__head .eyebrow { margin-bottom: 12px; }
.ls__head .sec-sub { margin-top: 0; max-width: 320px; font-size: 14.5px; text-align: right; color: var(--mute-d); opacity: 1; }

.ls { position: relative; z-index: 2; align-self: center; width: min(820px, calc(100% - 2 * var(--gutter))); margin: 22px auto 0; }
.ls__bar { display: flex; align-items: center; gap: 16px; height: clamp(64px, 8vh, 80px); padding: 0 26px; border-radius: 100px; background: #151515; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.ls__mag { width: 24px; height: 24px; flex-shrink: 0; opacity: .7; }
.ls__label { color: var(--mute-d); white-space: nowrap; padding-right: 16px; border-right: 1px solid var(--line-d); }
.ls__q { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 36px); white-space: nowrap; overflow: hidden; }
.ls__caret { width: 2px; height: 1.2em; font-size: clamp(22px, 2.4vw, 36px); background: var(--paper); margin-left: -10px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ls__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 26px; }
.ls__tabs button { position: relative; overflow: hidden; padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line-d); color: var(--mute-d); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background .5s, color .5s, border-color .5s; }
.ls__tabs button:hover { color: var(--paper); border-color: rgba(255,255,255,.35); }
.ls__tabs li.is-on button { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.ls__results { position: relative; min-height: 290px; }
.lr { position: absolute; inset: 0 0 auto 0; padding: clamp(22px, 2.6vw, 34px); border-radius: 22px; background: var(--paper); color: var(--ink);
  opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .45s ease, transform .9s var(--ease-out); }
.lr > * { transition: opacity .5s ease, transform .8s var(--ease-out); }
.lr:not(.is-on) > * { opacity: 0; transform: translateY(10px); }
.lr.is-on > :nth-child(2) { transition-delay: .06s; } .lr.is-on > :nth-child(3) { transition-delay: .12s; } .lr.is-on > :nth-child(4) { transition-delay: .18s; } .lr.is-on > :nth-child(5) { transition-delay: .24s; }
.lr.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lr__meta { display: flex; justify-content: space-between; color: var(--mute-l); }
.lr h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; letter-spacing: -.025em; margin-top: 16px; }
.lr h3 em { opacity: .55; }
.lr p { margin-top: 14px; max-width: 640px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--mute-l); }
.lr__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lr__chips li { padding: 6px 11px; border-radius: 100px; border: 1px solid var(--line-l); font-size: 10px; }
.lr__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 14.5px; }
.lr__links a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lr__links a:hover { opacity: .6; }

.ls__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; gap: 22px; color: var(--mute-d); }
.ls__foot b { color: var(--paper); font-weight: 500; }
.ls__bar2 { flex: 1; height: 1px; background: var(--line-d); position: relative; }
.ls__bar2 i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* ---------- GALLERY ---------- */
.gallery { padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.gallery__head { text-align: center; margin-bottom: 80px; }
.gallery__title { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 13vw, 220px); line-height: .9; letter-spacing: -.04em; }
.gallery__title em { opacity: .6; }
.gallery__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.gcol { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 24px); will-change: transform; }
.gcol:nth-child(2) { margin-top: 120px; }
.gcol:nth-child(4) { margin-top: 60px; }
.gi { position: relative; overflow: hidden; border-radius: 8px; }
.gi img { transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.gi:hover img { transform: scale(1.04); }
.gcol .gi--wide img { aspect-ratio: auto; }
.gi figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(10,10,10,.55); color: #f3f2ee; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--serif); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.3; }
.gi figcaption .mono { display: block; font-family: var(--mono); font-size: 9.5px; opacity: .6; margin-bottom: 4px; }
.gi figcaption b { font-weight: 500; font-style: italic; }
.gcol img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 25%; border-radius: 8px; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease); }
.gcol img:hover { filter: grayscale(0); }
.gallery__foot { text-align: center; margin-top: 60px; }
.gquote { aspect-ratio: 3/4; border-radius: 8px; background: var(--fg); color: var(--bg); padding: clamp(20px, 2.4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; }
.gquote p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 40px); line-height: 1.15; }
.gquote .mono { opacity: .55; font-style: normal; }
.gquote--dark { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }


/* ---------- FAQ ---------- */
.faq { padding: clamp(100px, 14vw, 200px) 0; }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); }
.faq__left { position: sticky; top: 120px; align-self: start; }
.faq .sec-title { font-size: clamp(44px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--fg); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 30px); line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .4s, transform .5s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; transform: translate(-50%,-50%); transition: transform .5s var(--ease); }
.qa summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.qa[open] summary i { background: var(--fg); color: var(--bg); transform: rotate(180deg); }
.qa[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 60px 32px 0; color: var(--mute); font-size: 17px; max-width: 720px; }

/* ---------- CTA ---------- */
.cta { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__in { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 120px; padding-bottom: 120px; pointer-events: none; }
.cta__in a { pointer-events: auto; }
.cta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8.6vw, 150px); line-height: .95; letter-spacing: -.035em; max-width: 1200px; }
.cta__sub { max-width: 560px; margin-top: 30px; color: var(--mute); font-size: clamp(16px, 1.3vw, 19px); }
.cta__btns { display: flex; gap: 16px; margin-top: 50px; flex-wrap: wrap; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { position: relative; padding-top: clamp(80px, 9vw, 130px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer__logo { height: 44px; width: auto; fill: var(--fg); margin-bottom: 26px; }
.footer__about p { max-width: 400px; color: var(--mute); }
.footer h4 { margin-bottom: 22px; opacity: .55; font-weight: 400; }
.footer li { margin-bottom: 10px; }
.footer li a { position: relative; transition: opacity .3s; }
.footer li a:hover { opacity: .55; }
.footer__social { display: flex; gap: 16px; margin-top: 14px; }
.footer__social a { text-decoration: underline; text-underline-offset: 4px; }
.footer__word { font-family: var(--serif); font-size: clamp(44px, 10.6vw, 200px); line-height: .85; letter-spacing: -.045em; white-space: nowrap; text-align: center; padding: 0 var(--gutter); }
.footer__word em { opacity: .45; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--mute); }
.footer__bottom b { font-weight: 500; color: var(--fg); }
.totop:hover { color: var(--fg); }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.wa svg { width: 26px; height: 26px; }
.wa::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: wa-pulse 2.4s ease-out infinite; mix-blend-mode: difference; }
@keyframes wa-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }

/* initial states for JS reveals (only if JS + motion ok) */
.js .fade-up { opacity: 0; transform: translateY(40px); }
.js .reveal-img { clip-path: inset(0 0 100% 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .skillset { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .sk:nth-child(3) { border-left: 0; padding-left: 0; }
  .nav__links { display: none; }
  .burger { display: block; }
  .work__list { grid-template-columns: 1fr 1fr; }
  .case:nth-child(3) { margin-top: 0; }
  .certs__row { grid-template-columns: repeat(3, 1fr); }
  .certs__row li { border-bottom: 1px solid var(--line-l); padding-left: 0 !important; padding-right: 16px; }
  .certs__row li + li { padding-left: 0; }
  .certs__row li { border-right: 0; }
}
@media (max-width: 820px) {
  .pf__copy { left: var(--gutter); right: var(--gutter); top: 84px; }
  .pf__bar { padding-bottom: 10px; }
  .pf__states { position: fixed; position: absolute; margin: 0; left: 0; right: 0; top: calc(100svh - 84px - 178px); min-height: 0; }
  .pn h3, .pn .sec-title { font-size: 30px !important; }
  .pn__n { margin-bottom: 6px; }
  .pn p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; max-width: none; padding-right: 60px; }
  .pf__rank { left: var(--gutter); right: var(--gutter); top: calc(58% - 52px); }
  .pf__rank b { font-size: 34px; }
  .pf__rank small { display: none; }
  .ls__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ls__pin { justify-content: flex-start; padding-top: 90px; }
  .ls__head .sec-sub { display: none; }
  .ls { margin-top: 20px; }
  .ls__bar { padding: 0 16px; gap: 10px; height: 58px; }
  .ls__label { display: none; }
  .ls__q, .ls__caret { font-size: 19px; }
  .ls__tabs { margin: 12px 0 16px; gap: 6px; }
  .ls__tabs button { padding: 7px 10px; font-size: 9.5px; }
  .lr p { font-size: 14px; }
  .lr__chips li:nth-child(n+7) { display: none; }
  .orb__pin { --R: 38vw; --cw: 220px; min-height: 640px; }
  .orb__head { top: 86px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .orb__head .sec-sub { display: none; }
  .orb__head > div { max-width: none; }
  .orb__head .sec-title { max-width: none; font-size: 34px; }
  .orb__tilt { top: 64%; }
  .orb__me { height: 44vh; left: calc(44vh * -.2765); top: calc(44vh * -.92); }
  .oc { padding: 16px; }
  .oc p { font-size: 12.5px; }
  .oc__tags { display: none; }
  .orb__bgword span { font-size: 15vw; }
  .hero { height: auto; min-height: 0; padding-top: 88px; }
  .hero__portrait { position: relative; left: auto; bottom: auto; transform: none; height: auto; width: 100%; margin: 0; }
  .header .btn--pill { display: none; }
  .about__headline { font-size: clamp(34px, 10vw, 52px) !important; }
  .about__headline { white-space: normal; }
  .about__panel { left: var(--gutter); bottom: 6vh; }
  .acards { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .acard { min-height: 92px; padding: 12px 12px 14px; }
  .about__intro { --fb: 36%; }
  .about__corner--tl, .about__corner--br { display: none; }
  .about__intro { height: 100vh; height: 100svh; }
  .vf__side { display: none; }
  .about__corner--tl { top: 90px; }
  .about__cols { grid-template-columns: 1fr; }
  .statement { position: relative; top: 0; }
  .vx { flex-direction: column; height: auto; }
  .vx__p, .vx__p.is-active { flex: none; min-height: 0; }
  .vx__vert { display: none; }
  .vx__body, .vx__p .vx__body { opacity: 1; transform: none; width: 100%; margin-top: 60px; pointer-events: auto; }
  .vx__body h4 { white-space: normal; font-size: 46px; }
  .vx__p:not(.is-active) .vx__mark { transform: none; opacity: 1; }
  .certs__row { grid-template-columns: 1fr 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__left { position: relative; top: 0; }
  .skillset { grid-template-columns: 1fr; }
  .sk, .sk:first-child { border-left: 0; padding: 26px 0; border-bottom: 1px solid var(--line-d); }
  .sk__list { flex-direction: row; flex-wrap: wrap; }
  .skills__pin { min-height: 0; padding: 100px 0 80px; }
  .timeline__line { left: 6px; }
  .tl { grid-template-columns: 1fr; padding-left: 36px; }
  .tl::before { left: 6px; top: clamp(44px, 6vw, 86px); }
  .tl__body { padding-left: 0; margin-top: 20px; }
  .work__list { grid-template-columns: 1fr; }
  .case:nth-child(n) { margin-top: 0; }
  .gallery__cols { grid-template-columns: 1fr 1fr; }
  .gcol { display: contents; }
  .gi--wide { grid-column: 1 / -1; }
  .gi figcaption { left: 6px; right: 6px; bottom: 6px; padding: 7px 9px; font-size: 12px; }
  .gi figcaption .mono { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .stack__card { top: 90px; min-height: 70vh; }
  .qa__a p { padding-right: 0; }
  .footer__bottom { padding-bottom: 96px; }
}
@media (max-width: 480px) {
  .btn--xl { height: 58px; padding: 0 28px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; }
  .marquee { padding: 18px 0; }
  .certs__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .fade-up { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
  .hero__portrait-mask { clip-path: none; }
  .statement .word { opacity: 1; }
}

/* short desktop screens: keep the live-search result card inside the pinned view */
@media (min-width: 821px) and (max-height: 780px) {
  .ls__pin { padding-top: 84px; }
  .ls__head .sec-title { font-size: clamp(30px, 3.4vw, 52px); }
  .ls__tabs { margin: 12px 0 14px; }
  .lr { padding: 20px 24px; }
  .lr h3 { margin-top: 10px; }
  .lr p { font-size: 14.5px; margin-top: 10px; }
  .lr__chips li:nth-child(n+9) { display: none; }
  .lr__chips li:last-child { display: inline-block; }
}
/* no small line beside the eyebrow text */
.eyebrow .line { display: none; }

/* full menu now lists every page: two columns on wide screens, smaller type */
.menu__list em { font-size: clamp(20px, min(5.4vw, 3.5vh), 34px); }
.menu__list a { padding: clamp(4px, .9vh, 9px) 0; transition-delay: 0s; }
.menu__in { justify-content: flex-start; }
@media (min-width: 900px) {
  .menu__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 110px); }
  .menu__list em { font-size: clamp(22px, min(2.6vw, 4.4vh), 40px); }
  .menu__in { justify-content: center; }
}

/* ---------- footer (rebuilt) ---------- */
.footer { padding-top: clamp(70px, 8vw, 120px); border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px 60px; flex-wrap: wrap; padding-bottom: clamp(44px, 5vw, 76px); margin-bottom: clamp(44px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.footer__say { font-family: var(--serif); font-size: clamp(34px, 5.2vw, 84px); line-height: 1; letter-spacing: -.025em; max-width: 14ch; }
.footer__say em { opacity: .58; }
.footer__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__grid { grid-template-columns: 2.1fr 1fr 1fr 1.5fr 1.6fr; gap: clamp(28px, 3vw, 54px); padding-bottom: clamp(40px, 5vw, 70px); align-items: start; }
.footer__home { display: inline-block; margin-bottom: 26px; transition: opacity .3s; }
.footer__home:hover { opacity: .6; }
.footer__logo { display: block; height: 46px; margin-bottom: 0; }
.footer__about p { max-width: 380px; font-size: 15.5px; line-height: 1.65; }
.footer__social { margin-top: 24px; gap: 8px; flex-wrap: wrap; }
.footer__social a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .35s, color .35s, border-color .35s; }
.footer__social a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.footer h4 { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); opacity: 1; color: var(--mute); }
.footer li { margin-bottom: 11px; font-size: 15.5px; line-height: 1.4; }
.footer li a { display: inline-block; overflow-wrap: anywhere; }
.footer__addr { color: var(--mute); }
.footer__bottom { margin-top: 0; align-items: center; }
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cta, .footer__cta .btn { width: 100%; }
  .footer__cta .btn { justify-content: space-between; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.footer__cta .btn--ghost { --fg: var(--paper); --bg: var(--ink); }
