/* ==========================================================================
   Madhuresh Mishra — Portfolio
   Built from the Figma file "Portfolio" (Design System + Website pages)
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2-variations"),
       url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (from Figma variables) ---------- */
:root {
  --bg: #0b0d10;
  --surface: #171b22;
  --surface-2: #1f242d;
  --text: #f4f6f8;
  --muted: #8e9aa8;
  --primary: #dc7c37;
  --primary-hover: #e8914f;
  --grad: linear-gradient(120deg, #ffb46e 0%, #f3903f 38%, #e06a2b 72%, #c9531f 100%);
  --grad-hover: linear-gradient(120deg, #ffc58c 0%, #f8a159 40%, #ec7a37 75%, #d55f25 100%);
  --grad-text: linear-gradient(100deg, #ffc283 0%, #f39542 45%, #e2682b 100%);
  --on-primary: #0b0d10;
  --success: #4cc38a;
  --border: rgba(244, 246, 248, 0.1);
  --border-strong: rgba(244, 246, 248, 0.22);
  --hairline: rgba(244, 246, 248, 0.08);

  --radius-pill: 999px;
  --pad-x: 64px;
  --content: 1312px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* Out Expo */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-instant: 120ms;
  --t-quick: 200ms;
  --t-base: 350ms;
  --t-card: 500ms;
  --t-slow: 600ms;

  --header-h: 80px;
  color-scheme: dark;
}
/* The site is designed dark-only; keep the same palette in every theme. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b0d10; } }
:root[data-theme="dark"] { --bg: #0b0d10; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 999px; font-weight: 500; transition: top var(--t-quick); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--content) + var(--pad-x) * 2); margin-inline: auto; padding-inline: var(--pad-x); }
.icon { width: 20px; height: 20px; flex: none; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--22 { width: 22px; height: 22px; }

/* ---------- Type scale ---------- */
.t-display { font-size: clamp(56px, 8.333vw, 120px); font-weight: 500; line-height: 0.94; letter-spacing: -0.04em; }
.t-h1 { font-size: clamp(48px, 5.556vw, 80px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; }
.t-h2 { font-size: clamp(40px, 3.889vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.t-h3 { font-size: clamp(24px, 2.778vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.022em; }
.t-h4 { font-size: clamp(20px, 1.944vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -0.014em; }
.t-h5 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.008em; }
.t-body-20 { font-size: clamp(16px, 1.389vw, 20px); line-height: 1.55; letter-spacing: -0.004em; color: var(--muted); }
.t-body-18 { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; letter-spacing: -0.002em; color: var(--muted); }
.t-body-16 { font-size: 16px; line-height: 1.6; color: var(--muted); }
.t-body-14 { font-size: 14px; line-height: 1.55; color: var(--muted); }
.t-label-16 { font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.002em; }
.t-label-14 { font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -0.001em; }
.t-caps { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--primary); }
.accent:not(:has(.wi)):not(:has(.char)), .accent .wi, .hero__name .dot .char, .grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--text);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 20px 15px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.002em;
  color: var(--btn-fg);
  white-space: nowrap;
  transition: gap var(--t-base) var(--ease-out), padding var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out), scale var(--t-instant) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* the sweep */
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-base) var(--ease-out);
}
.btn .icon { transition: transform var(--t-base) var(--ease-out); }
.btn:active { scale: 0.98; }

.btn--primary { --btn-fg: var(--on-primary); background: var(--grad); box-shadow: 0 6px 18px -8px rgba(232, 112, 46, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn--primary::before { background: var(--grad-hover); }
.btn--primary::after, .btn--solid-sm::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%); transform: translateX(-120%); pointer-events: none; }
.btn--secondary { border: 1px solid var(--border-strong); padding: 14px 19px 14px 23px; }
.btn--secondary::before { background: var(--grad); }
.btn--solid-sm { --btn-fg: var(--on-primary); background: var(--grad); padding: 11px 18px 11px 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn--solid-sm::before { background: var(--grad-hover); }
.btn--ghost { padding: 8px 0; overflow: visible; }
.btn--ghost::before { display: none; }
.btn--ghost::after {
  content: ""; position: absolute; left: 0; bottom: 4.5px; height: 1.5px; width: calc(100% - 30px);
  background: var(--grad); border-radius: 1px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.btn--block { width: 100%; justify-content: center; }

@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 12px 30px -6px rgba(236, 112, 45, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  .btn--primary:hover::after, .btn--solid-sm:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); }
  .btn--secondary:hover { box-shadow: 0 10px 26px -8px rgba(236, 112, 45, 0.5); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn:hover .icon--up-right { transform: translate(2px, -2px); }
  .btn:hover .i-download { transform: translateY(2px); }
  .btn:hover .i-mail, .btn:hover .i-copy, .btn:hover .i-grid { transform: scale(1.08); }
  .btn--primary:hover::before, .btn--solid-sm:hover::before { transform: scaleX(1); }
  .btn--secondary:hover { --btn-fg: var(--on-primary); border-color: var(--primary); }
  .btn--secondary:hover::before { transform: scaleX(1); }
  
  .btn--ghost:hover { --btn-fg: var(--primary); }
  .btn--ghost:hover::after { transform: scaleX(1); }
}

/* Text link — hover turns orange, underline draws in */
.tlink { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; line-height: 1.6; color: var(--text); transition: color var(--t-base) var(--ease-out); }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.tlink .icon { transition: transform var(--t-base) var(--ease-out); }
.tlink--sm { font-size: 14px; }
@media (hover: hover) {
  .tlink:hover { color: var(--primary); }
  .tlink:hover::after { transform: scaleX(1); }
  .tlink:hover .icon--up-right { transform: translate(2px, -2px); }
}

/* Icon / social buttons — orange fill grows from the centre */
.icon-btn {
  position: relative; isolation: isolate; overflow: hidden;
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), transform var(--t-instant);
}
.icon-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform var(--t-base) var(--ease-out); }
.icon-btn:active { transform: scale(0.96); }
@media (hover: hover) {
  .icon-btn:hover { color: var(--on-primary); border-color: var(--primary); box-shadow: 0 6px 18px rgba(220, 124, 55, 0.35); }
  .icon-btn:hover::before { transform: scale(1); }
}

/* Tags */
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: 14px; line-height: 1.55; color: var(--muted); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Eyebrow / section heading */
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow__index { color: var(--primary); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.section-head__left { display: flex; flex-direction: column; gap: 20px; }
.section-head__desc { max-width: 478px; }
.section-head__desc--right { text-align: right; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: rgba(11, 13, 16, 0.62);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark__mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.wordmark__svg { width: 32px; height: 32px; overflow: visible; filter: drop-shadow(0 3px 10px rgba(243, 144, 63, 0.35)); }
/* the M draws itself on every page, then its square full stop (the same one that ends the name) keeps turning */
.wordmark__m { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wm-draw 1.3s var(--ease-out) 0.2s forwards; }
.wordmark__dot { transform-box: fill-box; transform-origin: center; animation: wm-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s backwards; }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@keyframes wm-redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes wm-pop { 0% { transform: translateY(-140%) scale(0.4); } 60% { transform: translateY(0) scale(1.15, 0.85); } 100% { transform: none; } }
@keyframes wm-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wordmark__name { font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.002em; }
@media (hover: hover) { .wordmark:hover .wordmark__m { animation: wm-redraw 0.9s var(--ease-out) both; } .wordmark:hover .wordmark__dot { animation: wm-spin 0.9s var(--ease-out) 0.3s both; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--muted); transition: color var(--t-quick) ease; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5.5px; height: 1.5px; border-radius: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.nav__link[aria-current="page"]::after { left: 28px; }
@media (hover: hover) {
  .nav__link:hover { color: var(--primary); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.menu-btn { display: none; position: relative; isolation: isolate; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; place-items: center; color: var(--text); border: 1px solid var(--border-strong); }
.menu-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform var(--t-base) var(--ease-out); }
.menu-btn:active::before { transform: scale(1); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
.mobile-menu__head { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.mobile-menu__close { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.mobile-menu__nav { flex: 1; padding: 32px 20px 0; overflow-y: auto; }
.mobile-menu__item { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.mobile-menu__item[aria-current="page"] { color: var(--text); }
.mobile-menu__item span.num { font-size: 14px; font-weight: 500; color: var(--muted); width: 19px; }
.mobile-menu__item[aria-current="page"] span.num { color: var(--primary); }
.mobile-menu__label { display: flex; align-items: baseline; gap: 14px; font-size: 40px; font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.mobile-menu__foot { padding: 0 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu__foot a.mail { font-size: 14px; color: var(--muted); }
.mobile-menu__contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: 64px 0 80px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.glow--orange { width: 1508px; height: 1368px; left: calc(54.2% - 374px); top: -314px; background: radial-gradient(closest-side, rgba(220, 124, 55, 0.87) 0%, rgba(220, 124, 55, 0.833) 12%, rgba(220, 124, 55, 0.723) 25%, rgba(220, 124, 55, 0.555) 38%, rgba(220, 124, 55, 0.365) 50%, rgba(220, 124, 55, 0.2) 62%, rgba(220, 124, 55, 0.089) 75%, rgba(220, 124, 55, 0.032) 88%, rgba(220, 124, 55, 0) 100%); }
.glow--ember { width: 1220px; height: 1120px; left: calc(72.2% - 330px); top: 50px; background: radial-gradient(closest-side, rgba(178, 77, 26, 0.289) 0%, rgba(178, 77, 26, 0.274) 12%, rgba(178, 77, 26, 0.232) 25%, rgba(178, 77, 26, 0.173) 38%, rgba(178, 77, 26, 0.111) 50%, rgba(178, 77, 26, 0.06) 62%, rgba(178, 77, 26, 0.027) 75%, rgba(178, 77, 26, 0.01) 88%, rgba(178, 77, 26, 0) 100%); }
.glow--warm { width: 1224px; height: 1084px; left: -612px; top: 320px; background: radial-gradient(closest-side, rgba(220, 124, 55, 0.619) 0%, rgba(220, 124, 55, 0.583) 12%, rgba(220, 124, 55, 0.486) 25%, rgba(220, 124, 55, 0.355) 38%, rgba(220, 124, 55, 0.226) 50%, rgba(220, 124, 55, 0.124) 62%, rgba(220, 124, 55, 0.058) 75%, rgba(220, 124, 55, 0.023) 88%, rgba(220, 124, 55, 0) 100%); opacity: 0.7; }
.glow--top { width: 948px; height: 728px; left: calc(20.8% - 264px); top: -384px; background: radial-gradient(closest-side, rgba(255, 217, 178, 0.031) 0%, rgba(255, 217, 178, 0.029) 12%, rgba(255, 217, 178, 0.024) 25%, rgba(255, 217, 178, 0.018) 38%, rgba(255, 217, 178, 0.011) 50%, rgba(255, 217, 178, 0.006) 62%, rgba(255, 217, 178, 0.003) 75%, rgba(255, 217, 178, 0.001) 88%, rgba(255, 217, 178, 0) 100%); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(244, 246, 248, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(244, 246, 248, 0.04) 1px, transparent 1px);
  background-size: 96px 88px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 40%, transparent 100%);
}
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(66.7% 43.5% at 10.7% 53.9%, rgba(11, 13, 16, 0) 0%, rgba(11, 13, 16, 0.45) 50%, #0b0d10 85%); }
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay; 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='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.hero__main { display: flex; flex-direction: column; gap: 44px; }
.hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 14px; max-width: 648px; }
.status-pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: var(--radius-pill);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 71%);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.status-pill::before { /* gradient hairline border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px 1px rgba(76, 195, 138, 0.56); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--success); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.hero__name { font-size: clamp(64px, 8.333vw, 120px); font-weight: 500; line-height: 0.94; letter-spacing: -0.04em; white-space: nowrap; }
.hero__name .line { display: block; }
.hero__name .grad { background: linear-gradient(180deg, #fff 0%, rgba(245, 246, 248, 0.96) 55%, rgba(245, 246, 248, 0.58) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__name { position: relative; }
.hero__name .char { display: inline-block; backface-visibility: hidden; }

.hero__name .dot { display: inline-block; margin-left: 0.06em; }
.hero__dot { display: inline-block; width: 0.135em; height: 0.135em; border-radius: 0.012em; background: var(--grad); box-shadow: 0 0 0.12em rgba(243, 144, 63, 0.35); vertical-align: baseline; }
/* warm light behind the name that flickers on with the letters, then fades away */
.hero__flare { position: absolute; left: -6%; top: -18%; width: 78%; height: 136%; pointer-events: none; opacity: 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 176, 110, 0.32), rgba(243, 144, 63, 0.12) 55%, rgba(243, 144, 63, 0) 100%); }
.hero__role { font-size: clamp(20px, 1.944vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -0.014em; white-space: pre; }

.portrait { position: relative; flex: none; width: 420px; height: 540px; border-radius: 28px; overflow: hidden; background: var(--surface); display: flex; align-items: flex-end; padding: 20px; transform-style: preserve-3d; }
.portrait__img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.portrait__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(180deg, rgba(11, 13, 16, 0) 0%, rgba(11, 13, 16, 0.55) 100%); }
.portrait__rim { position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(244, 246, 248, 0.12); pointer-events: none; }
.portrait__shine { position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.12), transparent 40%); opacity: 0; transition: opacity var(--t-base); pointer-events: none; }
.portrait:hover .portrait__shine { opacity: 1; }
.caption-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: var(--radius-pill); background: rgba(11, 13, 16, 0.55); border: 1px solid rgba(244, 246, 248, 0.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 13px; font-weight: 500; color: rgba(244, 246, 248, 0.92); white-space: pre; }
.caption-pill svg { color: var(--primary); }

.hero__divider { height: 1px; background: var(--hairline); transform-origin: left; }
.hero__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.hero__intro { max-width: 560px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.hero__buttons { display: flex; align-items: center; gap: 12px; }
.hero__links { display: flex; align-items: center; gap: 28px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 28px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee__item { font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -0.014em; white-space: nowrap; }
.marquee__star { font-size: 22px; line-height: 1.3; color: var(--primary); display: inline-block; animation: spin 8s linear infinite; }
.marquee:hover .marquee__track, .marquee:hover .marquee__star { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { position: relative; }
.section--surface { background: var(--surface); }
.selected-work { padding: 160px 0; }
.selected-work .container { display: flex; flex-direction: column; gap: 72px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.project-col { display: flex; flex-direction: column; gap: 120px; }
.project-col--offset { padding-top: 200px; }
.center-row { display: flex; justify-content: center; }

/* Project card */
.p-card { display: flex; flex-direction: column; gap: 24px; }
.p-card__media { position: relative; display: block; aspect-ratio: 640 / 576; border-radius: 24px; overflow: hidden; background: var(--surface); outline: 1.5px solid transparent; outline-offset: -1.5px; transition: outline-color var(--t-card) var(--ease-out), box-shadow var(--t-card) var(--ease-out); transform: translateZ(0); }
.p-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.p-card__pill { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 18px; border-radius: var(--radius-pill); background: var(--grad); color: var(--on-primary); font-size: 14px; font-weight: 500; line-height: 1.4; opacity: 0; transform: translateY(18px); transition: opacity var(--t-card) var(--ease-out), transform var(--t-card) var(--ease-out); }
.p-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.p-card__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-card__title-row { display: flex; align-items: baseline; gap: 14px; }
.p-card__index { font-size: 14px; font-weight: 500; color: var(--primary); }
.p-card__title { font-size: clamp(24px, 2.778vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.022em; transition: color var(--t-card) var(--ease-out); }
.p-card__arrow { position: relative; isolation: isolate; overflow: hidden; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: border-color var(--t-card) var(--ease-out), color var(--t-card) var(--ease-out); }
.p-card__arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform var(--t-card) var(--ease-out); }
.p-card__arrow .icon { transition: transform var(--t-card) var(--ease-out); }
@media (hover: hover) {
  .p-card:hover .p-card__media { outline-color: var(--primary); box-shadow: 0 24px 48px -8px rgba(220, 124, 55, 0.22); }
  .p-card:hover .p-card__media img { scale: 1.06; }
  .p-card:hover .p-card__pill { opacity: 1; transform: none; }
  .p-card:hover .p-card__title { color: var(--primary); }
  .p-card:hover .p-card__arrow { border-color: var(--primary); color: var(--on-primary); }
  .p-card:hover .p-card__arrow::before { transform: scale(1); }
  .p-card:hover .p-card__arrow .icon { transform: rotate(45deg); }
}

/* About intro */
.about-intro { padding: 140px 0; }
.about-intro .container { display: flex; align-items: baseline; gap: 96px; }
.about-intro__statement { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.about-intro__body { width: 480px; flex: none; padding-top: 44px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* Disciplines */
.disciplines { padding: 160px 0 80px; }
.disciplines .container { display: flex; flex-direction: column; gap: 64px; }
.d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 32px 32px 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.d-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(220, 124, 55, 0.14), transparent 60%); opacity: 0; transition: opacity var(--t-base); pointer-events: none; }
@media (min-width: 1101px) { .d-card { min-height: 285px; } .d-card:nth-child(-n+3) { min-height: 311px; } }
.d-card__num { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--primary); margin-bottom: 56px; }
@media (hover: hover) {
  .d-card:hover { border-color: rgba(220, 124, 55, 0.45); transform: translateY(-4px); }
  .d-card:hover::before { opacity: 1; }
}

/* Gallery preview + gallery card */
.gallery-preview { padding: 140px 0 160px; }
.gallery-preview .container { display: flex; flex-direction: column; gap: 64px; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.g-card { display: flex; flex-direction: column; gap: 16px; }
.g-card__media { position: relative; display: block; aspect-ratio: 416 / 374; border-radius: 20px; overflow: hidden; background: var(--surface); outline: 1px solid transparent; outline-offset: -1px; transition: outline-color var(--t-card) var(--ease-out), box-shadow var(--t-card) var(--ease-out); transform: translateZ(0); }
.g-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.g-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 15, 0) 45%, rgba(10, 13, 15, 0.7) 100%); opacity: 0; transition: opacity var(--t-card) var(--ease-out); }
.g-card__pill { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 9px 16px; border-radius: var(--radius-pill); background: var(--text); color: var(--on-primary); font-size: 14px; font-weight: 500; line-height: 1.4; opacity: 0; transform: translateY(18px); transition: opacity var(--t-card) var(--ease-out), transform var(--t-card) var(--ease-out); }
.g-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.g-card__title { font-size: 16px; font-weight: 500; line-height: 1.4; transition: color var(--t-card) var(--ease-out); }
.g-card__arrow { transition: transform var(--t-card) var(--ease-out), color var(--t-card) var(--ease-out); }
@media (hover: hover) {
  .g-card:hover .g-card__media { outline-color: rgba(220, 124, 55, 0.9); box-shadow: 0 24px 48px -8px rgba(220, 124, 55, 0.22); }
  .g-card:hover .g-card__media img { scale: 1.05; }
  .g-card:hover .g-card__media::after { opacity: 1; }
  .g-card:hover .g-card__pill { opacity: 1; transform: none; }
  .g-card:hover .g-card__title, .g-card:hover .g-card__arrow { color: var(--primary); }
  .g-card:hover .g-card__arrow { transform: rotate(45deg); }
}

/* Experience */
.experience { padding: 140px 0 160px; }
.experience .container { display: flex; flex-direction: column; gap: 56px; }
.x-list { display: flex; flex-direction: column; }
.x-row { border-top: 1px solid var(--border); }
.x-row:last-child { border-bottom: 1px solid var(--border); }
.x-row__head { width: 100%; display: flex; align-items: flex-start; gap: 48px; padding: 36px 0; text-align: left; }
.x-row__logo { width: 176px; height: 72px; flex: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }

.x-row__logo img { max-height: 40px; width: auto; }
.x-row__logo .freelance { font-size: 14px; font-weight: 500; color: var(--muted); }
.x-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.x-row__side { width: 220px; flex: none; padding-top: 7px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.x-row__dates { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); white-space: nowrap; }
.x-row__toggle { position: relative; isolation: isolate; overflow: hidden; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.x-row__toggle::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform var(--t-base) var(--ease-out); }
.x-row__toggle .icon { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
.x-row.is-open .x-row__toggle { border-color: var(--primary); color: var(--on-primary); }
.x-row.is-open .x-row__toggle::before { transform: scale(1); }
.x-row.is-open .x-row__toggle .icon { transform: rotate(45deg); }
.x-row__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out); }
.x-row.is-open .x-row__panel { grid-template-rows: 1fr; opacity: 1; }
.x-row__panel > div { overflow: hidden; }
.x-row__details { padding: 8px 268px 40px 224px; display: flex; flex-direction: column; gap: 10px; }
.x-row__details li { position: relative; padding-left: 22px; }
.x-row__details li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
@media (hover: hover) {
  .x-row__head:hover .x-row__toggle { border-color: var(--primary); color: var(--on-primary); }
  .x-row__head:hover .x-row__toggle::before { transform: scale(1); }
  .x-row__head:hover .t-h5 { color: var(--primary); }
}
.x-row__head .t-h5 { transition: color var(--t-base) var(--ease-out); }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Contact CTA */
.cta { position: relative; overflow: hidden; padding: 128px 0; background: radial-gradient(83.3% 41.7% at 50% 12.5%, rgba(219, 125, 56, 0.16) 0%, rgba(219, 125, 56, 0) 100%), var(--bg); isolation: isolate; }
.cta .container { display: flex; flex-direction: column; gap: 48px; }
.cta__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.cta__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(76, 195, 138, 0.6); }
.cta__headline .word { display: inline-block; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cta__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 124, 55, 0.12), transparent 60%); left: var(--gx, 70%); top: var(--gy, 40%); transform: translate(-50%, -50%); pointer-events: none; z-index: -1; transition: left 600ms var(--ease-out), top 600ms var(--ease-out); }

/* Footer */
.site-footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: var(--bg); }
.site-footer .container { display: flex; flex-direction: column; gap: 72px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; }
.footer__identity { display: flex; flex-direction: column; gap: 12px; }
.footer__cols { display: flex; gap: 80px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--border); }
.footer__social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__col .footer__social { margin-top: 6px; }
.footer__social .icon-btn { width: 44px; height: 44px; }

/* ---------- Cursor + progress ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 60; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
.cursor__trail span { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--grad); will-change: transform; }
.cursor__blob { position: fixed; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; will-change: transform; }
.cursor__skin { position: absolute; inset: 0; will-change: transform; }
.cursor__blob-inner { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 196, 136, 0.55), rgba(232, 108, 44, 0.35) 55%, rgba(201, 83, 31, 0.15) 100%); border: 1.5px solid rgba(255, 170, 100, 0.85); box-shadow: 0 0 24px rgba(240, 130, 60, 0.35); transition: transform 450ms var(--ease-out), background 300ms, border-color 300ms, opacity 300ms; }
.cursor__dot { position: fixed; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 180, 110, 0.9); will-change: transform; transition: width 250ms var(--ease-out), height 250ms var(--ease-out), margin 250ms var(--ease-out), opacity 200ms, background 250ms; }
.cursor__burst { position: fixed; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid #f3903f; pointer-events: none; }
.cursor.is-link .cursor__blob-inner { transform: scale(0.35); opacity: 0.0; }
.cursor.is-link .cursor__dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--grad); box-shadow: 0 0 16px rgba(240, 130, 60, 0.9), 0 0 0 4px rgba(243, 144, 63, 0.25); }
.cursor.is-view .cursor__dot, .cursor.is-text .cursor__dot { opacity: 0; }
.cursor.is-view .cursor__blob-inner { transform: scale(0.4); opacity: 0; }
/* "view" state: a small frosted-glass disc, a gradient hairline that draws itself around it, and a one-word label */
.cursor__view {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 125%, rgba(243, 144, 63, 0.32), rgba(243, 144, 63, 0) 62%), rgba(13, 15, 19, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 50px -16px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: scale(0.35);
  transition: transform 700ms var(--ease-out), opacity 220ms ease, scale 250ms var(--ease-out);
}
.cursor__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.cursor__ring circle { fill: none; stroke-width: 1.25; }
.cursor__ring-track { stroke: rgba(255, 255, 255, 0.14); }
.cursor__ring-draw { stroke: url(#cursor-grad); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; transition: stroke-dashoffset 300ms ease; }
.cursor__view-label { display: inline-flex; align-items: center; gap: 4px; color: #fff; }
.cursor__view-text { display: inline-flex; overflow: hidden; padding: 1px 0; font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; }
.cursor__view-text span { display: inline-block; transform: translateY(110%); transition: transform 600ms var(--ease-out) calc(120ms + var(--i, 0) * 30ms); }
.cursor__view-icon { display: grid; color: #f6a35c; opacity: 0; transform: translate(-5px, 5px); transition: opacity 300ms ease 260ms, transform 600ms var(--ease-out) 260ms; }
.cursor__view-icon .icon { grid-area: 1 / 1; width: 14px; height: 14px; }
.cursor__i-expand, .cursor.is-expand .cursor__i-arrow { display: none; }
.cursor.is-expand .cursor__i-expand { display: block; }
.cursor.is-view .cursor__view { opacity: 1; transform: none; }
.cursor.is-view .cursor__ring-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-out) 120ms; }
.cursor.is-view .cursor__view-text span { transform: none; }
.cursor.is-view .cursor__view-icon { opacity: 1; transform: none; }
.cursor.is-view.is-down .cursor__view { scale: 0.9; }
/* the cursor itself says "View", so the in-card pills step aside on mouse devices */
.has-cursor .p-card__pill, .has-cursor .g-card__pill { display: none; }
.cursor.is-text .cursor__blob-inner, .cursor.is-text .cursor__trail { opacity: 0; }
.cursor.is-down .cursor__blob-inner { transform: scale(0.8); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

/* ---------- Reveal (JS adds .js to <html>) ---------- */
.js [data-reveal], .js [data-split], .js [data-intro] { opacity: 0; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wi { display: inline-block; will-change: transform; }
.js .hero__name .grad { background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.js .hero__name .grad .char { background: linear-gradient(180deg, #fff 0%, rgba(245, 246, 248, 0.97) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.06em; }
.js .hero__name .line + .line .grad .char { background-image: linear-gradient(180deg, rgba(245, 246, 248, 0.95) 0%, rgba(245, 246, 248, 0.58) 100%); }
.js .hero [data-hero] { opacity: 0; }

/* Page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 300ms ease-out both; }
::view-transition-new(root) { animation: vt-in 300ms ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
body.is-leaving main, body.is-leaving .site-footer { opacity: 0; transition: opacity 280ms ease-out; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --pad-x: 48px; }
  .portrait { width: 360px; height: 463px; }
  .about-intro .container { gap: 64px; }
  .about-intro__body { width: 400px; }
  .x-row__details { padding-right: 0; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .site-header .btn--solid-sm { display: none; }
  .portrait { width: 320px; height: 412px; }
  .hero__bottom { flex-direction: column; }
  .hero__actions { align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head__desc--right { text-align: left; }
  .about-intro .container { flex-direction: column; gap: 24px; }
  .about-intro__body { width: auto; padding-top: 0; max-width: 640px; }
  .d-grid { grid-template-columns: 1fr 1fr; }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .x-row__details { padding-left: 0; }
  .footer__top { flex-direction: column; }
}
@media (max-width: 900px) {
  .hero__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  :root { --pad-x: 20px; --header-h: 72px; }
  .site-header { background: rgba(11, 13, 16, 0.62); }
  .hero { padding: 28px 0 56px; }
  .glow--orange { width: 948px; height: 908px; left: calc(30% - 264px); top: 36px; background: radial-gradient(closest-side, rgba(220, 124, 55, 0.75) 0%, rgba(220, 124, 55, 0.71) 12%, rgba(220, 124, 55, 0.6) 25%, rgba(220, 124, 55, 0.446) 38%, rgba(220, 124, 55, 0.286) 50%, rgba(220, 124, 55, 0.156) 62%, rgba(220, 124, 55, 0.071) 75%, rgba(220, 124, 55, 0.027) 88%, rgba(220, 124, 55, 0) 100%); }
  .glow--ember { width: 784px; height: 744px; left: calc(51% - 242px); top: 278px; background: radial-gradient(closest-side, rgba(178, 77, 26, 0.177) 0%, rgba(178, 77, 26, 0.166) 12%, rgba(178, 77, 26, 0.138) 25%, rgba(178, 77, 26, 0.101) 38%, rgba(178, 77, 26, 0.064) 50%, rgba(178, 77, 26, 0.036) 62%, rgba(178, 77, 26, 0.017) 75%, rgba(178, 77, 26, 0.007) 88%, rgba(178, 77, 26, 0) 100%); }
  .glow--warm { width: 784px; height: 744px; left: -402px; top: 658px; background: radial-gradient(closest-side, rgba(220, 124, 55, 0.553) 0%, rgba(220, 124, 55, 0.52) 12%, rgba(220, 124, 55, 0.432) 25%, rgba(220, 124, 55, 0.315) 38%, rgba(220, 124, 55, 0.201) 50%, rgba(220, 124, 55, 0.111) 62%, rgba(220, 124, 55, 0.053) 75%, rgba(220, 124, 55, 0.021) 88%, rgba(220, 124, 55, 0) 100%); }
  .glow--top { display: none; }
  .hero__main { gap: 22px; }
  .hero__top, .hero__copy { display: contents; }
  .status-pill { align-self: flex-start; padding: 7px 14px 7px 12px; font-size: 12px; gap: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
  .live-dot { width: 7px; height: 7px; }
  .hero__name { font-size: 64px; line-height: 0.94; letter-spacing: -0.04em; }
  .hero__role { font-size: 20px; line-height: 1.3; }
  /* photo right under the name, a little shorter than the original 350:440 */
  .portrait { width: 100%; height: auto; aspect-ratio: 350 / 395; border-radius: 24px; padding: 14px; }
  .portrait__img { object-position: 50% 28%; }
  .caption-pill { font-size: 12px; padding: 7px 12px 7px 10px; gap: 6px; }
  .hero__divider { display: none; }
  .hero__bottom { display: contents; }
  .hero__intro { font-size: 16px; line-height: 1.6; }
  .hero__actions { display: contents; }
  .hero__buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__buttons .btn { justify-content: center; }
  .hero__links { gap: 28px; }
  .marquee { padding: 18px 0; }
  .marquee__group { gap: 20px; padding-right: 20px; }
  .marquee__item { font-size: 22px; line-height: 1.3; }
  .marquee__star { font-size: 16px; }
  .selected-work { padding: 88px 0 0; }
  .selected-work .container { gap: 32px; }
  .section-head__left { gap: 12px; }
  .section-head { gap: 12px; }
  .section-head__desc { font-size: 16px; }
  .project-grid { display: flex; flex-direction: column; gap: 56px; }
  .project-col { display: contents; }
  .p-card { gap: 18px; }
  .p-card__media { aspect-ratio: 350 / 315; border-radius: 20px; }
  .p-card__pill { left: 14px; bottom: 14px; opacity: 1; transform: none; }
  .p-card__title { font-size: 24px; line-height: 1.22; }
  .p-card__arrow { width: 44px; height: 44px; }
  .p-card .t-body-18 { font-size: 16px; }
  .center-row .btn { width: 100%; justify-content: center; }
  .about-intro { padding: 88px 0; margin-top: 32px; }
  .about-intro__statement .t-h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; }
  .about-intro__statement { gap: 24px; }
  .disciplines { padding: 88px 0 0; }
  .disciplines .container { gap: 32px; }
  .d-grid { grid-template-columns: 1fr; gap: 0; }
  .d-card { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 20px 0; gap: 8px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
  .d-card__num { margin: 0; grid-row: 1; align-self: center; }
  .d-card .t-h5 { font-size: 16px; line-height: 1.4; grid-row: 1; }
  .d-card .t-body-16 { font-size: 14px; line-height: 1.55; grid-column: 1 / -1; }
  .gallery-preview { padding: 88px 0 0; }
  .gallery-preview .container { gap: 32px; }
  .g-grid { grid-template-columns: 1fr; gap: 32px; }
  .g-grid--home .g-card:nth-child(2), .g-grid--home .g-card:nth-child(6) { display: none; }
  .g-card__pill { display: none; }
  .experience { padding: 88px 0; margin-top: 88px; }
  .experience .container { gap: 32px; }
  .x-row__head { flex-direction: column; gap: 16px; padding: 28px 0; }
  .x-row__logo { width: 156px; height: 60px; }
  .x-row__side { width: auto; padding: 0; flex-direction: row; align-items: center; justify-content: space-between; align-self: stretch; order: 1; }
  .x-row__main { order: 2; }
  .x-row__details { padding: 0 0 28px; }
  .x-list--static .x-row__panel { grid-template-rows: 1fr; opacity: 1; }
  .x-list--static .x-row__toggle { display: none; }
  .x-list--static .x-row__head { pointer-events: none; padding-bottom: 16px; }
  .actions-row .btn--secondary { width: 100%; justify-content: center; }
  .cta { padding: 80px 0; }
  .cta .container { gap: 32px; }
  .cta__headline { font-size: 56px; }
  .cta__actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer { padding: 56px 0 40px; }
  .site-footer .container { gap: 48px; }
  .footer__cols { flex-wrap: wrap; gap: 32px 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: no translate / scale / blur / marquee, short fades only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark__m { stroke-dashoffset: 0; animation: none !important; }
  .wordmark__dot { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .marquee__track { animation: none; }
  .p-card:hover .p-card__media img, .g-card:hover .g-card__media img { scale: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; }
}

/* ==========================================================================
   Inner pages — shared
   ========================================================================== */
.page-intro { position: relative; padding: 120px 0 96px; overflow: hidden; isolation: isolate; }
.page-intro .container { display: flex; flex-direction: column; gap: 32px; }
.page-intro__glow { position: absolute; z-index: -1; width: 1000px; height: 760px; right: -320px; top: -360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 124, 55, 0.16), rgba(220, 124, 55, 0.05) 55%, transparent); pointer-events: none; }
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker__accent { color: var(--primary); font-weight: 600; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.intro-row .t-body-20 { max-width: 620px; }
.gallery-page .intro-row .t-body-20 { max-width: 640px; }
.tags--end { justify-content: flex-end; }
.tag--filled { background: var(--surface-2); border-color: transparent; }
.tag--accent { background: rgba(220, 124, 55, 0.14); border-color: transparent; color: var(--primary); }

/* ---------- Work ---------- */
.work-list { padding: 0 0 120px; }
.work-row { display: flex; align-items: center; gap: 80px; padding: 72px 0; border-top: 1px solid var(--border); }
.work-row:nth-child(even) { flex-direction: row-reverse; }
.work-media { position: relative; flex: none; width: 53.4%; aspect-ratio: 700 / 630; border-radius: 28px; overflow: hidden; background: var(--surface); outline: 1px solid transparent; outline-offset: -1px; transition: outline-color var(--t-card) var(--ease-out), box-shadow var(--t-card) var(--ease-out); transform: translateZ(0); }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.work-media .p-card__pill { left: 28px; bottom: 28px; padding: 12px 16px 12px 20px; }
.work-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.work-info__index { display: flex; align-items: baseline; gap: 16px; }
.work-info__index .num { font-size: 16px; font-weight: 500; color: var(--primary); }
.work-info__index .cat { font-size: 14px; font-weight: 500; color: var(--muted); }
.work-info h2 { transition: color var(--t-card) var(--ease-out); }
.meta-table { width: 100%; }
.meta-table div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.55; }
.meta-table dt { color: var(--muted); }
.meta-table dd { margin: 0; color: var(--text); text-align: right; }
@media (hover: hover) {
  .work-row:hover .work-media { outline-color: rgba(220, 124, 55, 0.8); box-shadow: 0 24px 56px -12px rgba(220, 124, 55, 0.2); }
  .work-row:hover .work-media img { scale: 1.06; }
  .work-row:hover .work-media .p-card__pill { opacity: 1; transform: none; }
  .work-row:hover .work-info h2 { color: var(--primary); }
}
.banner-wrap { padding: 0 0 140px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; isolation: isolate; }
.banner::before { content: ""; position: absolute; z-index: -1; width: 860px; height: 860px; right: -340px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 124, 55, 0.89) 0%, rgba(220, 124, 55, 0.854) 12%, rgba(220, 124, 55, 0.748) 25%, rgba(220, 124, 55, 0.579) 38%, rgba(220, 124, 55, 0.384) 50%, rgba(220, 124, 55, 0.21) 62%, rgba(220, 124, 55, 0.093) 75%, rgba(220, 124, 55, 0.033) 88%, rgba(220, 124, 55, 0) 100%); opacity: 0.1; transition: opacity var(--t-slow); }
.banner:hover::before { opacity: 0.2; }
.banner__copy { display: flex; flex-direction: column; gap: 12px; }

/* ---------- About ---------- */
.about-hero { padding: 120px 0; position: relative; overflow: hidden; isolation: isolate; }
.about-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 96px; }
.about-hero__copy { flex: 1; max-width: 716px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.about-hero__lead { font-size: clamp(18px, 1.389vw, 20px); line-height: 1.55; letter-spacing: -0.004em; color: var(--text); }
.about-portrait { position: relative; flex: none; width: 500px; aspect-ratio: 500 / 660; border-radius: 28px; overflow: hidden; background: var(--surface); }
.about-portrait img { position: absolute; left: 0; top: -3%; width: 100%; height: 106%; max-width: none; object-fit: cover; }
.about-portrait__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(11, 13, 16, 0), #000); }
.about-portrait .status-pill { position: absolute; left: 20px; bottom: 20px; color: #fff; }
.facts { padding: 0 0 140px; }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 32px 32px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact:first-child { padding-left: 0; }
.fact__num { font-size: clamp(48px, 5.556vw, 80px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-section { padding: 140px 0; }
.x-section .container { display: flex; flex-direction: column; gap: 48px; }
.edu { padding: 140px 0 80px; }
.edu .container, .skills .container { display: flex; flex-direction: column; gap: 48px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.edu-card { display: flex; flex-direction: column; gap: 14px; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.edu-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.edu-card__school { font-size: 16px; font-weight: 500; line-height: 1.4; }
@media (hover: hover) { .edu-card:hover { border-color: rgba(220, 124, 55, 0.45); transform: translateY(-4px); } }
.skills { padding: 80px 0 130px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t-base) var(--ease-out); }
.skill-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(220, 124, 55, 0.12), transparent 60%); opacity: 0; transition: opacity var(--t-base); pointer-events: none; }
.skill-card .tag { transition: color var(--t-quick), background-color var(--t-quick); }
@media (hover: hover) {
  .skill-card:hover { border-color: rgba(220, 124, 55, 0.4); }
  .skill-card:hover::before { opacity: 1; }
  .skill-card .tag:hover { color: var(--text); background: rgba(220, 124, 55, 0.2); }
}
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Contact ---------- */
.contact-main { position: relative; overflow: hidden; isolation: isolate; padding: 120px 0 140px; background: radial-gradient(60% 50% at 85% 10%, rgba(219, 125, 56, 0.1), rgba(219, 125, 56, 0) 100%), var(--bg); }
.contact-main .container { display: flex; align-items: flex-start; gap: 96px; }
.contact-copy { flex: 1; min-width: 0; max-width: 576px; display: flex; flex-direction: column; gap: 32px; }
.c-details { display: flex; flex-direction: column; }
.c-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.c-row__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--text); }
.c-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-row__value { font-size: 16px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }

.c-row--social { padding-top: 24px; gap: 12px; }
.c-row--social .t-caps { margin-right: 8px; }
.form-card { position: relative; flex: none; width: 640px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { display: flex; gap: 4px; font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.field-label .req { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: 14px; font-weight: 500; line-height: 1.4; transition: color var(--t-quick), background-color var(--t-quick), border-color var(--t-quick); }
.chip input:checked + span { background: rgba(220, 124, 55, 0.14); border-color: var(--primary); color: var(--primary); }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: hover) { .chip:hover span { border-color: var(--primary); } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.input { width: 100%; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font: inherit; font-size: 16px; line-height: 1.6; transition: border-color var(--t-quick), box-shadow var(--t-quick); outline: none; }
.input::placeholder { color: var(--muted); }
textarea.input { min-height: 168px; resize: vertical; }
.input:hover { border-color: rgba(244, 246, 248, 0.36); }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(219, 125, 56, 0.22); }
.field.is-invalid .input { border-color: #f26d6d; box-shadow: none; }
.field__error { display: none; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; line-height: 1.5; color: #f26d6d; }
.field__error .icon { width: 14px; height: 14px; }
.field.is-invalid .field__error { display: flex; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.submit-row .btn { cursor: pointer; }
.form-note { font-size: 12px; color: var(--muted); }
.form-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.form-overlay { position: absolute; inset: 0; border-radius: inherit; background: rgba(11, 13, 16, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms; z-index: 2; }
.form-overlay.is-visible { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
.form-dialog { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 36px 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); text-align: center; transform: scale(0.98); transition: transform 250ms var(--ease-out); }
.form-overlay.is-visible .form-dialog { transform: none; }
.form-dialog [data-state] { display: none; width: 100%; flex-direction: column; align-items: center; gap: 16px; }
.form-dialog[data-show="sending"] [data-state="sending"], .form-dialog[data-show="sent"] [data-state="sent"], .form-dialog[data-show="failed"] [data-state="failed"] { display: flex; }
.sending-btn { width: 100%; justify-content: center; opacity: 0.85; pointer-events: none; }
.sending-btn .icon { animation: spin 0.9s linear infinite; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(77, 194, 138, 0.16); color: var(--success); }
.success-icon.is-error { background: rgba(242, 109, 109, 0.16); color: #f26d6d; }
.success-icon .icon { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .intro-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tags--end { justify-content: flex-start; }
  .work-row, .work-row:nth-child(even) { flex-direction: column; align-items: stretch; gap: 32px; }
  .work-media { width: 100%; }
  .about-hero .container { flex-direction: column-reverse; align-items: flex-start; gap: 48px; }
  .about-portrait { width: min(500px, 100%); }
  .facts .container { grid-template-columns: 1fr 1fr; gap: 0; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact { padding-bottom: 32px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .contact-main .container { flex-direction: column; gap: 56px; }
  .form-card { width: 100%; }
}
@media (max-width: 767px) {
  .page-intro { padding: 48px 0 40px; }
  .page-intro .container { gap: 20px; }
  .page-intro .t-display, .about-hero .t-display, .contact-copy .t-display { font-size: 64px; }
  .page-intro__glow { width: 560px; height: 480px; right: -220px; top: -220px; }
  .work-list { padding-bottom: 88px; }
  .work-row { padding: 40px 0; gap: 24px; }
  .work-media { border-radius: 20px; }
  .work-media .p-card__pill { left: 14px; bottom: 14px; opacity: 1; transform: none; padding: 10px 14px 10px 18px; }
  .work-info { gap: 18px; }
  .work-info h2.t-h1 { font-size: 40px; }
  .work-info .btn { width: 100%; justify-content: center; }
  .banner-wrap { padding-bottom: 88px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; border-radius: 24px; gap: 16px; }
  .banner .t-h3 { font-size: 24px; }
  .about-hero { padding: 40px 0 0; }
  .about-hero .container { flex-direction: column; gap: 20px; }
  .about-hero__copy { display: contents; }
  .about-hero__copy > .kicker { order: 1; } .about-hero__copy > h1 { order: 2; } .about-portrait { order: 3; } .about-hero__copy > p { order: 4; } .about-hero__copy > .about-hero__actions { order: 5; }
  .about-portrait { width: 100%; aspect-ratio: 350 / 440; border-radius: 24px; }
  .about-portrait .status-pill { left: 12px; bottom: 12px; font-size: 12px; text-transform: none; letter-spacing: 0; }
  .about-hero__actions { display: flex; flex-direction: column; width: 100%; gap: 12px; }
  .about-hero__actions .btn { justify-content: center; }
  .facts { padding: 20px 0 0; }
  .facts .container { gap: 12px; }
  .fact, .fact + .fact, .fact:first-child, .fact:nth-child(3) { padding: 16px; border: 0; border-radius: 16px; background: var(--surface); gap: 4px; }
  .fact__num { font-size: 40px; }
  .fact .t-body-16 { font-size: 13px; line-height: 1.5; }
  .x-section { padding: 64px 0; margin-top: 64px; }
  .x-section .container, .edu .container, .skills .container { gap: 20px; }
  .edu { padding: 64px 0 0; }
  .edu-grid { grid-template-columns: 1fr; gap: 12px; }
  .edu-card { padding: 20px; border-radius: 20px; gap: 8px; }
  .edu-card .t-h4 { font-size: 22px; line-height: 1.3; }
  .skills { padding: 64px 0 80px; }
  .skill-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-card { padding: 20px; gap: 14px; }
  .contact-main { padding: 48px 0 88px; }
  .contact-main .container { gap: 32px; }
  .contact-copy { gap: 20px; }
  .c-row { gap: 14px; padding: 16px 0; }
  .c-row > .btn { display: none; }
  .c-row__icon { width: 40px; height: 40px; border-radius: 10px; }
  .c-row__value { font-size: 14px; }
  .form-card { padding: 28px 20px; border-radius: 24px; gap: 20px; }
  .form-card .t-h4 { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
  .submit-row { flex-direction: column-reverse; align-items: stretch; }
  .submit-row .btn { justify-content: center; }
  .form-dialog { padding: 28px 20px; }
}
.about-portrait:hover .portrait__shine { opacity: 1; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.accent-caps { color: var(--primary); }
.cs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 40px; }
.tlink--back .icon { order: -1; }
@media (hover: hover) { .tlink--back:hover .icon { transform: translateX(-3px); } }
.cs-hero { padding: 72px 0 80px; }
.cs-hero .container { display: flex; flex-direction: column; gap: 40px; }
.cs-eyebrow { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.cs-title { font-size: clamp(64px, 11.667vw, 168px); font-weight: 500; line-height: 0.92; letter-spacing: -0.045em; background: linear-gradient(180deg, #fff 0%, rgba(245, 246, 248, 0.92) 60%, rgba(245, 246, 248, 0.62) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.04em; }
.cs-subtitle { max-width: 1000px; font-size: clamp(28px, 3.889vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.cs-hero__details { display: flex; align-items: flex-start; justify-content: space-between; gap: 96px; padding-top: 24px; }
.cs-facts { width: 520px; flex: none; }
.cs-facts--wide { width: 620px; }
.cs-facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--border); }
.cs-facts dt { font-size: 14px; line-height: 1.55; color: var(--muted); flex: none; }
.cs-facts dd { margin: 0; font-size: 16px; line-height: 1.6; text-align: right; }
.cs-summary { max-width: 675px; font-size: clamp(18px, 1.389vw, 20px); line-height: 1.55; letter-spacing: -0.004em; }
.cs-band { position: relative; overflow: hidden; display: flex; justify-content: center; }
.cs-band img { width: 100%; max-width: 1440px; height: auto; }
.cs-band__cap { display: none; }
@media (max-width: 767px) {
  .cs-band--cap { flex-direction: column; }
  .cs-band__cap { display: block; width: 100%; margin: 0; padding-top: 4px; padding-bottom: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
}

.cs-section { padding-top: 144px; }
.cs-section .container > * + * { margin-top: 56px; }
.cs-row { display: flex; gap: 64px; align-items: flex-start; }
.cs-label { width: 280px; flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.cs-label__index { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--primary); }
.cs-content { flex: 1; min-width: 0; max-width: 968px; display: flex; flex-direction: column; gap: 28px; }
.cs-content > :not(.cs-h2):not(.cs-box):not(.cs-pdw) { max-width: 760px; }
.cs-p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.cs-p--muted { color: var(--muted); }
.cs-p--text { color: var(--text); }
.cs-p strong { color: var(--text); font-weight: 500; }
.cs-lead { font-size: clamp(18px, 1.389vw, 20px); line-height: 1.55; color: var(--text); }
.cs-lead .accent, .cs-p .accent { font-weight: 500; }
.cs-h3 { font-size: clamp(22px, 1.944vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -0.014em; margin-top: 8px; }
.cs-list { display: flex; flex-direction: column; gap: 14px; }
.cs-list > li { position: relative; padding-left: 30px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--text); }
.cs-list > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; border-radius: 1px; background: var(--grad); }
.cs-list--muted > li { color: var(--muted); }
.cs-list strong { color: var(--text); font-weight: 500; }
.cs-list .cs-list-muted { color: var(--muted); }
.cs-sublist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cs-sublist li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.cs-sublist li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.cs-box { max-width: 860px; display: flex; flex-direction: column; gap: 24px; padding: 36px 40px; border-radius: 24px; background: rgba(220, 124, 55, 0.14); border: 1px solid rgba(219, 125, 56, 0.45); position: relative; overflow: hidden; isolation: isolate; }
.cs-box::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(500px circle at var(--mx, 0%) var(--my, 0%), rgba(255, 170, 100, 0.16), transparent 50%); }
.cs-box p { font-size: clamp(18px, 1.528vw, 22px); font-weight: 500; line-height: 1.35; letter-spacing: -0.008em; }
.cs-box--sm { padding: 28px 32px; border-radius: 20px; }
.cs-vis { margin: 0; }
.cs-vis__d img, .cs-vis__m img, .cs-vis__scroll img { width: 100%; height: auto; display: block; }
.cs-vis__d { border-radius: 24px; overflow: hidden; }
.cs-vis__m, .cs-vis__scroll { display: none; }
.cs-vis--wide .cs-vis__d { border-radius: 0; }
/* process stages on phones: a real list, arrows centred between the steps */
.stages { list-style: none; margin: 0; padding: 16px; border-radius: 24px; background: #181b23; border: 1px solid rgba(244, 246, 248, 0.1); display: flex; flex-direction: column; }
.stages__step { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 999px; background: #1f252e; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--text); }
.stages__step + .stages__step { margin-top: 34px; }
.stages__step + .stages__step::before { content: ''; position: absolute; left: 50%; top: -26px; width: 16px; height: 18px; margin-left: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18' fill='none' stroke='%239BA0AC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v14M2.5 10.5 8 16l5.5-5.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.stages__num { color: #d77f42; font-variant-numeric: tabular-nums; }
.stages__step--final { background: #dc7b36; color: #111318; box-shadow: 0 8px 24px rgba(220, 123, 54, 0.25); }
.stages__step--final .stages__num { color: #111318; }
/* Ecomally "The problem" visual on phones: five questions + one order claimed twice */
.eq { display: flex; flex-direction: column; gap: 16px; }
.eq-card { padding: 22px 20px 6px; border-radius: 24px; background: #181b23; border: 1px solid rgba(220, 123, 54, 0.35); }
.eq-card__eyebrow { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eq-card__brand { color: #d77f42; }
.eq-list { list-style: none; margin: 0; padding: 0; }
.eq-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 16px 0; border-top: 1px solid rgba(244, 246, 248, 0.1); }
.eq-list__n { font-size: 14px; line-height: 1.6; color: #d77f42; font-variant-numeric: tabular-nums; }
.eq-list__q { font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--text); }
.eo-card { padding: 20px 16px; border-radius: 24px; background: #1e252e; border: 1px solid rgba(244, 246, 248, 0.1); }
.eo-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 16px; }
.eo-card__label { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eo-card__chip { padding: 7px 12px; border-radius: 999px; background: #111518; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); white-space: nowrap; }
.claims { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.claim { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #14181d; border: 1px solid transparent; }
.claim__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e1792e; }
.claim__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.claim__name { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--text); }
.claim__detail { font-size: 13px; line-height: 1.45; color: var(--muted); }
.claim__tag { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(220, 123, 54, 0.16); color: #e08a4d; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.claim--actual { border-color: rgba(79, 195, 140, 0.35); }
.claim--actual .claim__dot { background: #4fc38c; }
.claim--actual .claim__tag { background: rgba(79, 195, 140, 0.14); color: #5bc792; }
.eo-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.eo-bar__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.eo-bar__row strong { flex: none; font-size: 18px; font-weight: 500; color: var(--text); }
.eo-bar__track { display: block; height: 8px; border-radius: 999px; background: #2f323c; overflow: hidden; }
.eo-bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #8f5b38, #dc7b36); transform-origin: left center; }
.eo-bar--real .eo-bar__fill { background: #4cc28a; }
.eo-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.eo-badge { padding: 6px 12px; border-radius: 999px; background: #da7d34; color: #111318; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
/* Blink "Who it's for" on phones: stacked cards */
.ucards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ucard { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border-radius: 20px; background: #181b23; border: 1px solid rgba(244, 246, 248, 0.1); }
.ucard__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(220, 123, 54, 0.16); color: #e08a4d; font-size: 14px; font-variant-numeric: tabular-nums; }
.ucard__who { margin-top: 16px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ucard__need { margin-top: 8px; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }

.cs-decision__label { width: 280px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.cs-decision__big { font-size: clamp(48px, 5.556vw, 80px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-decision__big.is-word { font-size: clamp(36px, 3.889vw, 56px); line-height: 1.04; }
.cs-decision__title { font-size: clamp(24px, 2.778vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.022em; }
.cs-content.cs-content--tight { gap: 24px; }
.cs-pdw { max-width: 860px; }
.cs-pdw div { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 20px 0; border-top: 1px solid var(--border); }
.cs-pdw dt { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.cs-pdw dd { margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--muted); }
.cs-pdw .is-decision dt { color: var(--primary); }
.cs-pdw .is-decision dd { color: var(--text); }
.cs-subhead .cs-content { gap: 16px; }
.cs-subhead__title { font-size: clamp(22px, 1.944vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -0.014em; color: var(--primary); }

.cs-next { padding: 160px 0 140px; }
.next-card { display: flex; align-items: center; gap: 56px; padding: 24px 56px 24px 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); transition: background-color var(--t-card) var(--ease-out), border-color var(--t-card) var(--ease-out), box-shadow var(--t-card) var(--ease-out); }
.next-card__thumb { position: relative; width: 400px; flex: none; aspect-ratio: 400 / 360; border-radius: 20px; overflow: hidden; }
.next-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.next-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.next-card__title { font-size: clamp(40px, 5.556vw, 80px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; transition: color var(--t-card) var(--ease-out); }
@media (hover: hover) {
  .next-card:hover { background: var(--surface-2); border-color: rgba(220, 124, 55, 0.6); box-shadow: 0 24px 56px -12px rgba(220, 124, 55, 0.16); }
  .next-card:hover .next-card__thumb img { scale: 1.07; }
  .next-card:hover .next-card__title { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .next-card:hover .btn--primary::before { transform: scaleX(1); }
  .next-card:hover .btn .icon { transform: translateX(3px); }
}

/* Game Badlo — poker felt theme */
body.theme-felt main { background: #06140f; }
.theme-felt .cs-label__index, .theme-felt .cs-subhead__title { color: #d9ae5b; }
.theme-felt .cs-list > li::before { background: linear-gradient(90deg, #f0cf86, #d9ae5b); }
.felt-hero { position: relative; overflow: hidden; isolation: isolate; padding: 40px 0 0; background: radial-gradient(90% 60% at 50% 0%, #0f3a2b 0%, #082119 45%, #06140f 75%); }
.felt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: radial-gradient(rgba(217, 174, 91, 0.18) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.felt-hero .cs-bar { padding-top: 0; padding-inline: 0; }
.felt-hero .cs-hero { padding: 32px 0 0; }
.felt-hero .cs-eyebrow { color: #d9ae5b; }
.felt-hero .cs-facts div { border-color: rgba(217, 173, 92, 0.2); }
.felt-tables { display: flex; gap: 32px; padding: 72px 0 120px; }
.felt-tables figure { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.felt-tables figure:nth-child(1) { padding-top: 80px; }
.felt-tables figure:nth-child(3) { padding-top: 40px; }
.felt-tables figure:nth-child(4) { padding-top: 120px; }
.felt-table { border-radius: 24px; overflow: hidden; border: 1px solid rgba(217, 173, 92, 0.5); background: #0c2a21; aspect-ratio: 280 / 495; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out), border-color 600ms; }
.felt-table img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .felt-tables figure:hover .felt-table { transform: translateY(-10px) rotate(-1deg); border-color: #d9ae5b; box-shadow: 0 40px 80px -20px rgba(217, 174, 91, 0.35); } }

@media (max-width: 1100px) {
  .cs-hero__details { flex-direction: column; gap: 32px; }
  .cs-facts, .cs-facts--wide { width: 100%; }
  .cs-row { flex-direction: column; gap: 20px; }
  .cs-label, .cs-decision__label { width: auto; padding-top: 0; }
  .cs-row--body .cs-label, .cs-subhead .cs-label { display: none; }
  .cs-decision__label { flex-direction: row; align-items: baseline; gap: 14px; }
  .next-card { flex-direction: column; align-items: stretch; padding: 20px; gap: 24px; }
  .next-card__thumb { width: 100%; }
  .felt-tables { flex-wrap: wrap; }
  .felt-tables figure { flex: 1 1 40%; }
}
@media (max-width: 767px) {
  .cs-bar { padding-top: 20px; }
  .cs-hero { padding: 32px 0 48px; }
  .cs-hero .container { gap: 20px; }
  .cs-title { font-size: 64px; line-height: 0.96; }
  .cs-subtitle { font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; }
  .cs-hero__details { padding-top: 8px; gap: 20px; }
  .cs-facts div { flex-direction: column; gap: 2px; padding: 12px 0; }
  .cs-facts dd { text-align: left; font-size: 15px; }
  .cs-summary { font-size: 16px; line-height: 1.6; }
  .cs-section { padding-top: 88px; }
  .cs-section .container > * + * { margin-top: 32px; }
  .cs-content { gap: 20px; }
  .cs-h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; }
  .cs-vis__d { display: none; }
  .cs-vis__m { display: flex; flex-direction: column; gap: 16px; }
  .cs-vis__scroll { display: block; overflow-x: auto; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cs-vis__scroll::-webkit-scrollbar { display: none; }
  .cs-vis__scroll img { width: auto; height: 260px; max-width: none; border-radius: 16px; }
  .cs-box { padding: 24px 20px; border-radius: 20px; }
  .cs-pdw div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .cs-pdw dt { padding-top: 0; }
  .cs-decision__big { font-size: 40px; }
  .cs-decision__big.is-word { font-size: 32px; }
  .cs-next { padding: 88px 0; }
  .next-card { border-radius: 24px; padding: 14px; gap: 20px; }
  .next-card__text { gap: 14px; padding: 0 6px 8px; }
  .next-card__title { font-size: 40px; }
  .next-card .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .felt-tables { padding: 32px 0 64px; gap: 16px; }
  .felt-tables figure, .felt-tables figure:nth-child(n) { flex: 1 1 calc(50% - 8px); padding-top: 0; }
  .felt-tables figure:nth-child(even) { padding-top: 32px; }
  .felt-table { border-radius: 16px; }
}

/* ==========================================================================
   Gallery index
   ========================================================================== */
.show-m { display: none; }
.gallery-page .page-intro { padding-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.filter-chip {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text);
  transition: color var(--t-quick) var(--ease-out), background-color var(--t-quick) var(--ease-out), border-color var(--t-quick) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.filter-chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 50% 120%, rgba(243, 144, 63, 0.35), transparent 60%); opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.filter-chip.is-active { background: rgba(220, 124, 55, 0.14); border-color: var(--primary); color: var(--primary); box-shadow: 0 6px 20px -8px rgba(220, 124, 55, 0.55); }
.filter-chip.is-active::before { opacity: 1; }
.filter-chip:active { scale: 0.97; }
@media (hover: hover) { .filter-chip:not(.is-active):hover { border-color: var(--primary); color: var(--primary-hover); } }

.gallery-all { padding-bottom: 160px; }
.g-card.is-hidden { display: none; }
.g-grid--all.is-filtered > .g-card.is-offset { position: relative; top: var(--g-offset, 96px); }
.g-grid--all.is-filtered.has-offset { padding-bottom: var(--g-offset, 96px); }
@media (min-width: 1101px) {
  .g-grid--all:not(.is-filtered) > .g-card:nth-child(3n+2) { position: relative; top: 96px; }
  .g-grid--all:not(.is-filtered) { padding-bottom: 96px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .g-grid--all:not(.is-filtered) > .g-card:nth-child(2n) { position: relative; top: 64px; }
  .g-grid--all:not(.is-filtered) { padding-bottom: 64px; }
}

/* ==========================================================================
   Gallery project pages
   ========================================================================== */
.pj-top { position: relative; isolation: isolate; overflow: clip; }
.pj-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 40px; }
.pj-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.tlink--muted { color: var(--muted); }
.pj-crumb__sep { color: rgba(244, 246, 248, 0.22); }
.pj-crumb__current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-pager { display: flex; align-items: center; gap: 12px; flex: none; }
.pj-pager .t-label-14 { font-variant-numeric: tabular-nums; }
.icon-btn--40 { width: 40px; height: 40px; }
.pj-head { padding: 72px 0 56px; }
.pj-head .container { display: flex; flex-direction: column; gap: 32px; }
.pj-title { overflow-wrap: anywhere; }
.pj-summary { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.pj-summary .t-body-20 { max-width: 640px; }
.pj-meta { display: flex; gap: 48px; margin: 0; flex: none; }
.pj-meta div { display: flex; flex-direction: column; gap: 6px; }
.pj-meta dd { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.002em; white-space: nowrap; }

.pj-cover { padding-bottom: 120px; }
.pj-cover__frame { position: relative; aspect-ratio: 1312 / 1181; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transform: translateZ(0); }
.pj-cover__frame img { width: 100%; height: 100%; object-fit: cover; }

.pj-screens { padding-bottom: 120px; }
.pj-screens .container { display: flex; flex-direction: column; gap: 56px; }
.pj-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 48px; border-top: 1px solid var(--border); }

/* screen + caption */
.shot { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.shot__cap { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.shot__index { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--primary); font-variant-numeric: tabular-nums; }
.shot__name { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -0.002em; }
.shot__open {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.shot__open::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform var(--t-base) var(--ease-out); }
.shot__open .icon { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }

/* browser frame */
.browser {
  display: block; width: 100%; text-align: left; border-radius: 12px; overflow: hidden;
  background: #1e1f22; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: translate 700ms var(--ease-out), box-shadow 700ms var(--ease-out), border-color 400ms var(--ease-out);
}
.browser__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 18px; background: linear-gradient(180deg, #323337, #28292c); border-bottom: 1px solid rgba(0, 0, 0, 0.55); }
.browser__dots { display: flex; gap: 8px; width: 52px; flex: none; }
.browser__dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px #e0443e; }
.browser__dots i:nth-child(2) { background: #febc2e; box-shadow: inset 0 0 0 0.5px #dea123; }
.browser__dots i:nth-child(3) { background: #28c840; box-shadow: inset 0 0 0 0.5px #1aab29; }
.browser__addr { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 6px 16px 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.06); color: #c9ccd2; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.browser__addr span { overflow: hidden; text-overflow: ellipsis; }
.browser__lock { flex: none; opacity: 0.85; }
.browser__spacer { width: 52px; flex: none; }
.browser__screen { position: relative; display: block; aspect-ratio: 1310 / 818; overflow: hidden; background: #fff; }
.browser__img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1.1s var(--ease-out); }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }

/* iPhone frame */
.shot-phones { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 16px; }
.shot--m { width: 420px; max-width: 100%; gap: 24px; align-items: center; }
.shot--m .shot__cap { align-self: stretch; }
.iphone {
  position: relative; display: block; width: 396px; max-width: 100%; aspect-ratio: 396 / 810;
  border-radius: 16.16% / 7.9%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38), 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: translate 700ms var(--ease-out), box-shadow 700ms var(--ease-out), rotate 700ms var(--ease-out);
}
.iphone__screen { position: absolute; left: 4.545%; top: 1.852%; width: 90.91%; height: 96.296%; border-radius: 13.89% / 6.41%; overflow: hidden; background: #000; }
.iphone__img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1.1s var(--ease-out); }
.iphone__glass { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.iphone__island { position: absolute; top: 1.41%; left: 50%; width: 31.1%; height: 4.23%; translate: -50% 0; border-radius: 999px; background: #000; }
.iphone__frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.shot-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 32px; }
.shot--a { gap: 20px; align-items: center; }
.shot--a .shot__cap { align-self: stretch; }
.shot--a .iphone { width: 99%; }

/* full-page strips */
.pj-full { padding-bottom: 140px; }
.pj-full .container { display: flex; flex-direction: column; gap: 40px; }
.strips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 32px; }
.strip { width: calc(min(304px, (100% - 96px) / 4) * var(--k, 1)); max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.strip__page { display: block; width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: translate 700ms var(--ease-out), border-color 400ms var(--ease-out), box-shadow 700ms var(--ease-out); }
.strip__page img { width: 100%; height: auto; }

@media (hover: hover) {
  .shot__open:hover { color: var(--on-primary); border-color: var(--primary); box-shadow: 0 6px 18px rgba(220, 124, 55, 0.35); }
  .shot__open:hover::before { transform: scale(1); }
  .shot__open:hover .icon { transform: scale(1.12); }
  .browser:hover { translate: 0 -6px; border-color: rgba(220, 124, 55, 0.65); box-shadow: 0 44px 90px -16px rgba(0, 0, 0, 0.55), 0 30px 70px -30px rgba(236, 112, 45, 0.45); }
  .browser:hover .browser__img, .iphone:hover .iphone__img { scale: 1.02; }
  .iphone:hover { translate: 0 -8px; rotate: -1.2deg; box-shadow: 0 46px 80px -10px rgba(0, 0, 0, 0.5), 0 30px 70px -30px rgba(236, 112, 45, 0.5); }
  .shot:has(.browser:hover) .shot__name, .shot:has(.iphone:hover) .shot__name { color: var(--primary); }
  .strip__page:hover { translate: 0 -6px; border-color: rgba(220, 124, 55, 0.65); box-shadow: 0 30px 60px -20px rgba(236, 112, 45, 0.4); }
}
.shot__name { transition: color var(--t-base) var(--ease-out); }

/* previous / next project */
.pj-nav { padding-bottom: 140px; }
.pj-nav .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pj-nav__card { display: flex; align-items: center; gap: 24px; padding: 24px 32px 24px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); transition: background-color var(--t-card) var(--ease-out), border-color var(--t-card) var(--ease-out), box-shadow var(--t-card) var(--ease-out); }
.pj-nav__card--next { padding: 24px 24px 24px 32px; }
.pj-nav__icon { position: relative; isolation: isolate; overflow: hidden; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--text); display: grid; place-items: center; transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out); }
.pj-nav__icon::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform var(--t-base) var(--ease-out); }
.pj-nav__icon .icon { transition: transform var(--t-base) var(--ease-out); }
.pj-nav__thumb { flex: none; width: 120px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.pj-nav__thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
.pj-nav__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pj-nav__card--next .pj-nav__text { align-items: flex-end; text-align: right; }
.pj-nav__title { font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -0.05em; transition: color var(--t-card) var(--ease-out); }
@media (hover: hover) {
  .pj-nav__card:hover { background: var(--surface-2); border-color: rgba(220, 124, 55, 0.6); box-shadow: 0 24px 56px -16px rgba(220, 124, 55, 0.2); }
  .pj-nav__card:hover .pj-nav__icon { color: var(--on-primary); border-color: var(--primary); }
  .pj-nav__card:hover .pj-nav__icon::before { transform: scale(1); }
  .pj-nav__card--prev:hover .pj-nav__icon .icon { transform: translateX(-3px); }
  .pj-nav__card--next:hover .pj-nav__icon .icon { transform: translateX(3px); }
  .pj-nav__card:hover .pj-nav__thumb img { scale: 1.08; }
  .pj-nav__card:hover .pj-nav__title { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.pj-back { display: flex; justify-content: center; padding-bottom: 120px; }

/* ---------- Lightbox ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; padding: 28px 40px; background: rgba(7, 8, 10, 0.97); }
.lb[hidden] { display: none; }
.lb__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lb__title { font-size: 16px; font-weight: 500; line-height: 1.4; }
.lb__sub { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lb__right { display: flex; align-items: center; gap: 16px; }
.lb__count { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb__close { width: 44px; height: 44px; background: var(--surface-2); }
.lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 12px 0; touch-action: pan-y; }
.lb__nav { width: 56px; height: 56px; }
.lb__frame { position: relative; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.lb { --lbh: 100vh; }
@supports (height: 100dvh) { .lb { --lbh: 100dvh; } }
.lb__frame--d { width: min(1040px, calc(100vw - 400px), calc((var(--lbh) - 260px) * 1.6)); aspect-ratio: 1.6; }
.lb__frame--m { height: min(680px, calc(var(--lbh) - 260px)); aspect-ratio: 390 / 844; border-radius: 28px; }
.lb__vp { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; border-radius: inherit; }
.lb__vp:focus-visible { outline: none; }
.lb__frame:has(.lb__vp:focus-visible) { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(220, 124, 55, 0.5); }
.lb__frame.is-app .lb__vp { overflow: hidden; }
.lb__img { display: block; width: 100%; height: auto; max-width: none; }
.lb__frame.is-app .lb__img { height: 100%; object-fit: cover; object-position: top; }
.lb__scrollhint { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(11, 13, 16, 0.84); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; transition: opacity 300ms ease, translate 400ms var(--ease-out); }
.lb__scrollhint.is-hidden, .lb__frame.is-app .lb__scrollhint { opacity: 0; translate: -50% 10px; }
.lb__swipe { display: none; }
.lb__thumbs { display: flex; justify-content: center; gap: 12px; padding: 12px 4px 4px; overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumb { flex: none; width: 96px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--surface); opacity: 0.6; transition: opacity 200ms ease, border-color 200ms ease, translate 300ms var(--ease-out); }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lb__thumb.is-active { border-color: var(--primary); opacity: 1; }
@media (hover: hover) { .lb__thumb:hover { opacity: 1; translate: 0 -2px; } }
.lb__hint { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Gallery + projects: responsive ---------- */
@media (max-width: 1100px) {
  .pj-summary { flex-direction: column; align-items: flex-start; gap: 32px; }
  .shot-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shot-phones { gap: 40px; }
  .pj-nav__thumb { display: none; }
  .lb__frame--d { width: min(1040px, calc(100vw - 240px), calc((var(--lbh) - 260px) * 1.6)); }
  .lb__stage { gap: 20px; }
}
@media (max-width: 767px) {
  .hide-m { display: none !important; }
  .show-m { display: inline; }
  .gallery-page .page-intro { padding-bottom: 32px; }
  .filters { gap: 8px; margin-top: 24px; }
  .gallery-all { padding-bottom: 96px; }

  .pj-bar { padding-top: 24px; }
  .pj-crumb .tlink { font-size: 16px; }
  .pj-crumb__sep, .pj-crumb__current, .pj-pager .icon-btn { display: none; }
  .pj-pager .t-label-14 { font-size: 16px; font-weight: 400; }
  .pj-head { padding: 20px 0 24px; }
  .pj-head .container { gap: 24px; }
  .pj-title { font-size: 64px; }
  .pj-summary { gap: 24px; }
  .pj-meta { gap: 28px; }
  .pj-meta dd { font-size: 14px; }
  .pj-cover { padding-bottom: 72px; }
  .pj-cover__frame { border-radius: 20px; }
  .pj-screens { padding-bottom: 64px; }
  .pj-screens .container { gap: 32px; }
  .pj-sec-head { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 0; border-top: 0; }
  .pj-sec-head .t-h2 { font-size: 40px; }
  .shot { gap: 16px; }
  .shot__index, .shot__tag { display: none; }
  .shot__cap { min-height: 28px; }
  .shot__open { width: 28px; height: 28px; background: none; border: 0; color: var(--muted); }
  .shot__open .icon { width: 20px; height: 20px; }
  .shot-grid { grid-template-columns: 1fr; gap: 32px; }
  .browser__bar { height: 44px; padding: 0 14px; }
  .browser__spacer { width: 0; }
  .browser__dots { width: auto; }
  .shot-phones { justify-content: center; padding-top: 8px; }
  .shot--m { width: 100%; }
  .shot--m .shot__cap { justify-content: center; }
  .shot--m .shot__name { flex: none; }
  .shot--m .shot__open, .shot--a .shot__open { display: none; }
  .shot--m .iphone { width: min(300px, 100%); }
  .shot-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .shot--a { gap: 12px; }
  .pj-full { display: none; }
  .pj-nav { padding-bottom: 72px; }
  .pj-nav .container { gap: 12px; }
  .pj-nav__card, .pj-nav__card--next { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 16px; border-radius: 16px; }
  .pj-nav__card--next .pj-nav__text { align-items: flex-start; text-align: left; }
  .pj-nav__card--next .pj-nav__icon { order: -1; }
  .pj-nav__icon { width: auto; height: auto; border: 0; color: var(--primary); overflow: visible; margin-bottom: 4px; }
  .pj-nav__icon::before { display: none; }
  .pj-nav__text { gap: 8px; }
  .pj-nav__title { font-size: 16px; letter-spacing: -0.01em; line-height: 1.35; }
  .pj-back { display: none; }

  .lb { padding: 20px; }
  .lb__close { width: 44px; height: 44px; }
  .lb__stage { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: auto auto; align-content: center; align-items: center; justify-items: center; gap: 24px 8px; }
  .lb__frame { grid-column: 1 / -1; grid-row: 1; }
  .lb__nav--prev { grid-column: 1; grid-row: 2; }
  .lb__swipe { display: block; grid-column: 2; grid-row: 2; font-size: 15px; color: var(--muted); }
  .lb__nav--next { grid-column: 3; grid-row: 2; }
  .lb__frame--d { width: calc(100vw - 40px); }
  .lb__frame--m { height: min(560px, calc(var(--lbh) - 360px)); border-radius: 24px; }
  .lb__thumbs { justify-content: flex-start; padding-top: 8px; }
  .lb__scrollhint { bottom: 10px; padding: 6px 12px; font-size: 12px; }
  .lb__thumb { width: 76px; height: 48px; }
  .lb__hint { margin-top: 16px; font-size: 13px; }
}

/* 404 */
.nf { min-height: calc(100vh - var(--header-h) - 120px); display: flex; align-items: center; }
.nf .container { gap: 28px; }
.nf .t-display { max-width: 980px; }
.cursor__trail { transition: opacity 250ms ease; }
.cursor.is-view .cursor__trail { opacity: 0; }

/* ==========================================================================
   Phones & tablets (no mouse): touch glow, living portrait, gentle sheens
   ========================================================================== */
.touch-fx { position: fixed; inset: 0; z-index: 99; pointer-events: none; overflow: hidden; contain: strict; }
.touch-fx__glow { position: absolute; left: 0; top: 0; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 184, 120, 0.42) 0%, rgba(240, 120, 50, 0.2) 36%, rgba(236, 112, 45, 0) 70%); opacity: 0; transform: scale(0.6); will-change: transform, opacity; }
.touch-fx__ring { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1.5px solid rgba(255, 168, 96, 0.9); box-shadow: 0 0 18px rgba(243, 144, 63, 0.45); }

@media (hover: none), (pointer: coarse) {
  /* the portrait breathes: a slow float and a soft zoom */
  .hero .portrait, .about-portrait { animation: portrait-float 6.5s ease-in-out 2.2s infinite alternate; }
  .hero .portrait__img, .about-portrait > img { animation: portrait-zoom 14s ease-in-out 2.2s infinite alternate; }
  /* primary buttons catch the light now and then */
  .btn--primary::after, .btn--solid-sm::after { animation: btn-sheen 4.2s ease-in-out 1.5s infinite; }
  /* experience rows: give the plus a little nudge when a row opens */
  .x-row__head:active .x-row__toggle { transform: scale(0.92); }
}
@keyframes portrait-float { 0% { translate: 0 0; rotate: 0deg; } 100% { translate: 0 -10px; rotate: -0.8deg; } }
@keyframes portrait-zoom { 0% { scale: 1; } 100% { scale: 1.07; } }
@keyframes btn-sheen { 0%, 64% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .hero .portrait, .about-portrait, .hero .portrait__img, .about-portrait > img, .btn--primary::after, .btn--solid-sm::after { animation: none !important; }
  .touch-fx { display: none; }
}

/* ---------- Phones & tablets: keep rendering cheap (Safari on iPhone struggles with live blur and blend modes) ---------- */
@media (hover: none), (pointer: coarse) {
  .grain { display: none; }
  .site-header { background: rgba(11, 13, 16, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .status-pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 71%), rgba(23, 27, 34, 0.7); }
  .caption-pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 13, 16, 0.62); }
  .cta__glow { transition: none; left: 50%; top: 50%; }
}

/* phone row: "Call" on phones, "Copy" on computers */
.c-row__call { display: none; }
@media (hover: none), (pointer: coarse) { .c-row__call { display: inline-flex; } .c-row__copy { display: none; } }

/* ---------- About: tools (from the Figma "Tools" frame) ---------- */
.tools { padding: 30px 0 86px; }
.tools .container { display: flex; flex-direction: column; gap: 74px; }
.tools__head { display: grid; grid-template-columns: 42.53% minmax(0, 1fr); column-gap: 10.82%; align-items: start; }
.tools__head .t-h2 { padding-top: 0; }
.tools__desc { max-width: 584px; padding-top: 10px; font-size: 18px; font-weight: 500; line-height: 1.44; letter-spacing: -0.03em; color: #8b9aa9; }
.tools__groups { display: grid; grid-template-columns: 42.53% minmax(0, 1fr); column-gap: 10.82%; }
.tools__group { display: flex; flex-direction: column; gap: 26px; }
.tools__title { font-size: 20px; font-weight: 500; line-height: 1.44; letter-spacing: -0.03em; color: #fff; }
.tools__list { display: flex; flex-direction: column; gap: 26px; }
.tools__row-items { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 50px; }
.tool-chip { display: flex; align-items: center; gap: 15px; }
.tool-chip__badge {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.tool-chip__badge::before { /* gradient hairline, same as the "Available" pill */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tool-chip__badge img { display: block; max-width: none; transition: transform var(--t-base) var(--ease-out); }
.tool-chip__name { font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -0.001em; color: #fff; white-space: nowrap; }
@media (hover: hover) {
  .tool-chip:hover .tool-chip__badge { transform: translateY(-3px); box-shadow: 0 10px 24px -8px rgba(236, 112, 45, 0.55), 0 0 0 1px rgba(243, 144, 63, 0.55); }
  .tool-chip:hover .tool-chip__badge img { transform: scale(1.12); }
}
@media (hover: none), (pointer: coarse) { .tool-chip__badge { -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 1100px) {
  .tools__head { grid-template-columns: 1fr; row-gap: 20px; }
  .tools__desc { padding-top: 0; max-width: 584px; }
  .tools__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .tools__row-items { gap: 22px 32px; }
}
@media (max-width: 900px) {
  .tools__groups { grid-template-columns: 1fr; row-gap: 48px; }
}
@media (max-width: 767px) {
  .tools { padding: 8px 0 72px; }
  .tools .container { gap: 36px; }
  .tools__head .t-h2 { font-size: 40px; }
  .tools__desc { font-size: 16px; letter-spacing: -0.02em; }
  .tools__groups { row-gap: 40px; }
  .tools__group { gap: 20px; }
  .tools__title { font-size: 18px; }
  /* one tidy two-column list on phones */
  .tools__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .tools__row, .tools__row-items { display: contents; }
  .tool-chip { gap: 10px; min-width: 0; }
  .tool-chip__badge { width: 40px; height: 40px; }
  .tool-chip__badge img { transform: scale(0.9); }
  .tool-chip__name { white-space: normal; }
}
/* skills now hold five cards: three on top, two wider below */
@media (min-width: 1101px) {
  .skill-grid { grid-template-columns: repeat(6, 1fr); }
  .skill-card { grid-column: span 2; }
  .skill-card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1100px) {
  .tool-groups { grid-template-columns: 1fr; }
  .tools { padding-bottom: 104px; }
}
@media (max-width: 767px) {
  .tools { padding-bottom: 72px; }
  .tools .container { gap: 28px; }
  .tool-group { padding: 18px; border-radius: 20px; gap: 16px; }
  .tool-grid, .tool-group--ai .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool { padding: 14px; }
  .tool__name { font-size: 15px; }
  .tool__what { font-size: 12px; }
}
