/* ============ tokens ============ */
@font-face { font-family: "Cabinet"; src: url(fonts/cabinet.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bone: #f4f3f1; --bone-2: #ecebe8; --paper: #fff;
  --ink: #0d0d0d; --ink-soft: #565452; --muted: #8c8a86; --line: #d7d5d1;
  --accent: #c2567a;
  --g-ig: linear-gradient(135deg, #feda75 0%, #fa7e1e 28%, #d62976 55%, #962fbf 78%, #4f5bd5 100%);
  --g-brand: linear-gradient(135deg, #ffc3d3 0%, #f27a9b 50%, #c2406b 100%);
  --g-prop: linear-gradient(135deg, #9ee7df 0%, #37b3c2 50%, #1f6f93 100%);
  --g-contact: linear-gradient(135deg, #d9ccff 0%, #9b7bff 50%, #5b3fd6 100%);
  --g-tt: linear-gradient(135deg, #25f4ee 0%, #111 50%, #fe2c55 100%);
  --g-cv: linear-gradient(135deg, #ffe39a 0%, #f4b544 50%, #d9822b 100%);
  --g-hover: linear-gradient(135deg, #f27a9b 0%, #d62976 45%, #9b7bff 100%);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Cabinet", "Arial", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bone: #080808; --bone-2: #161616; --paper: #121212;
  --ink: #f4f3f1; --ink-soft: #b2b0ac; --muted: #7d7b77; --line: #2a2a2a;
  --accent: #ff8fb1;
  color-scheme: dark;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; transition: background-color .5s, color .5s; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.lead { max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: var(--ink-soft); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.accent { color: var(--accent); }
.grow { flex: 1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 99px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

/* grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-4%) } 60% { transform: translate(-4%,-1%) } 80% { transform: translate(3%,3%) } }

/* page curtain (JS lifts it; CSS failsafe hides it if JS never runs) */
.curtain { display: none; }
.js .curtain {
  display: block; position: fixed; inset: 0; z-index: 150; background: var(--ink); pointer-events: none;
  animation: curtain-failsafe 0s 3s forwards;
}
.js .curtain.is-ctl { animation: none; }
@keyframes curtain-failsafe { to { visibility: hidden; } }

/* preloader */
.preloader { position: fixed; inset: 0; z-index: 160; background: var(--bone); color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.preloader__name { font-family: var(--display); font-size: clamp(3rem, 12vw, 11rem); line-height: .9; letter-spacing: -.04em; text-align: center; }
.preloader__count { position: absolute; right: 24px; bottom: 16px; font-family: var(--display); font-size: clamp(3rem, 9vw, 8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--g-ig); transform-origin: left; transform: scaleX(0); }

/* split text */
.split-line { display: block; }
.w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: 0 .05em .12em; margin: 0 -.05em -.12em; }
.ch { display: inline-block; transform-origin: 0 100%; }

/* smooth scroll + theme view-transition */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ============ custom cursor ============ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 170; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s;
  }
  .has-cursor .cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .has-cursor .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--ink); }
  .cursor__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); opacity: 0; transition: opacity .3s; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ============ controls ============ */
/* all buttons are solid ink with bone text; hover floods them with the accent gradient */
.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bone); overflow: hidden; isolation: isolate;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,.55); transition: color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.icon-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--g-hover); transform: scale(0); transition: transform .55s var(--ease); }
.icon-btn:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(214, 41, 118, .6); }
.icon-btn:hover::before { transform: scale(1); }

/* hamburger that morphs into a cross */
.burger { position: relative; width: 18px; height: 13px; }
.burger i { position: absolute; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease), width .5s var(--ease), opacity .3s; }
.burger i:nth-child(1) { top: 0; width: 100%; }
.burger i:nth-child(2) { top: 5.7px; width: 70%; }
.burger i:nth-child(3) { top: 11.4px; width: 45%; }
.burger-btn:hover .burger i { width: 100%; }
[aria-expanded="true"] .burger i:nth-child(1) { top: 5.7px; width: 100%; transform: rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: translateX(8px); }
[aria-expanded="true"] .burger i:nth-child(3) { top: 5.7px; width: 100%; transform: rotate(-45deg); }
.burger-btn[aria-expanded="true"] { transform: rotate(180deg); }

.btn-ghost {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.7rem; border-radius: 999px;
  background: var(--ink); color: var(--bone); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; box-shadow: 0 10px 26px -14px rgba(0,0,0,.6);
  transition: color .45s var(--ease), box-shadow .5s var(--ease);
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g-hover); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-ghost:hover { color: #fff; box-shadow: 0 16px 34px -14px rgba(214, 41, 118, .65); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn-ghost svg { transition: transform .45s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-ghost--lg { padding: 1rem 2rem; font-size: 14px; }

/* coloured icon chips */
.ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: var(--ink); box-shadow: 0 6px 18px -8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ico--lg { width: 56px; height: 56px; }
.ico--sm { width: 26px; height: 26px; box-shadow: none; }
.ico--ig { background: var(--g-ig); }
.ico--brand { background: var(--g-brand); }
.ico--prop { background: var(--g-prop); }
.ico--contact { background: var(--g-contact); }
.ico--tt { background: var(--g-tt); }
.ico--cv { background: var(--g-cv); }

.kg-frame { border: 1px solid var(--ink); background: var(--paper); border-radius: clamp(28px, 4.5vw, 64px); overflow: hidden; }

/* ============ header / menu / footer ============ */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bone) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .5s var(--ease), background-color .5s; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { z-index: 130; transform: none; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; --ink: #f4f3f1; --bone: #0d0d0d; color: #f4f3f1; }
.page-home .site-header { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open.page-home .site-header { position: fixed; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1400px; margin-inline: auto; padding-inline: 20px; }
.site-header__actions { display: flex; gap: 12px; }
.brand { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; display: inline-block; }
@media (min-width: 640px) { .site-header__in { padding-inline: 32px; } }

.menu { position: fixed; inset: 0; z-index: 120; background: #0d0d0d; color: #f4f3f1; display: flex; flex-direction: column; padding: 0 20px 24px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 64px; flex: none; }
.menu__list { margin: auto 0; padding-block: 32px; position: relative; z-index: 2; }
.menu__list a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.menu__list .ico { grid-row: 1 / 3; }
.menu__title { font-size: clamp(2rem, 7vw, 5.2rem); line-height: 1; transition: transform .6s var(--ease); }
.menu__sub { grid-column: 2; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.menu__list a:hover .menu__title { transform: translateX(16px); }
.menu__list a:hover .ico { transform: rotate(-12deg) scale(1.12); }
.menu__preview { position: fixed; left: 0; top: 0; z-index: 1; width: 240px; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; pointer-events: none; opacity: 0; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: rgba(255,255,255,.65); }
.menu__foot a:hover { color: #fff; }
@media (min-width: 640px) { .menu { padding-inline: 32px; } .menu__list a { column-gap: 1.6rem; } }
@media (max-width: 900px), (hover: none) { .menu__preview { display: none; } }

.site-footer { margin-top: 140px; border-top: 1px solid var(--line); }
.footer-marquee { display: block; border-bottom: 1px solid var(--line); transition: color .4s; }
.footer-marquee .marquee__track { font-size: clamp(3rem, 9vw, 8rem); padding-block: 18px; }
.footer-marquee:hover { color: var(--accent); }
.site-footer__in { display: flex; flex-direction: column; gap: 24px; max-width: 1200px; margin-inline: auto; padding: 48px 20px; }
.footer-name { font-size: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-soft); }
.footer-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.footer-links a:hover { background-size: 100% 1px; color: var(--ink); }
@media (min-width: 640px) { .site-footer__in { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-inline: 32px; } }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; align-items: center; gap: .5em; will-change: transform; line-height: 1.05; }
.marquee__track i { font-style: normal; font-size: .45em; color: var(--accent); }
.marquee__track.is-css { animation: marquee-x var(--dur, 30s) linear infinite; }
@keyframes marquee-x { to { transform: translate3d(-50%, 0, 0); } }
.marquee--big { border-block: 1px solid var(--line); margin-top: 24px; }
.marquee--big .marquee__track { font-size: clamp(3.5rem, 11vw, 10rem); padding-block: 16px; }
.marquee--big span:nth-of-type(2n) { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* ============ shared page blocks ============ */
.page-hero { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-hero .eyebrow { color: var(--ink-soft); margin-bottom: 20px; }
.page-hero__title { font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.04em; }
.page-hero .lead { margin-top: 24px; }
.section-title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; letter-spacing: -.03em; }

.clip { overflow: hidden; border-radius: var(--radius); background: var(--bone-2); }
.clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clip:hover img { transform: scale(1.04); }
[data-lb] { cursor: zoom-in; }

.cta { padding-top: clamp(96px, 14vw, 180px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cta__big { font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95; letter-spacing: -.03em; max-width: 14ch; }

/* ============ home ============ */
.home { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .55; }
[data-theme="dark"] .aurora { opacity: .3; }
.aurora i { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50%; }
.aurora i:nth-child(1) { left: -10%; top: -14%; background: #ffc8a2; animation: drift 22s ease-in-out infinite; }
.aurora i:nth-child(2) { right: -12%; top: -10%; background: #f7a8c4; animation: drift 26s ease-in-out -6s infinite reverse; }
.aurora i:nth-child(3) { left: -8%; bottom: -18%; background: #c9b8ff; animation: drift 24s ease-in-out -12s infinite; }
.aurora i:nth-child(4) { right: -10%; bottom: -16%; background: #9fe0dc; animation: drift 28s ease-in-out -3s infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1) } 33% { transform: translate(6vw,4vh) scale(1.1) } 66% { transform: translate(-4vw,6vh) scale(.92) } }


.home__stage { position: relative; }
.home__lines, .node { display: none; }
.hero-id { text-align: center; padding: 104px 24px 0; }
.avatar-wrap { position: relative; width: 150px; margin-inline: auto; }
/* oval = 2:3 box with 50% radius; the photo is 2:3 too, so the whole frame fits inside the oval */
.avatar {
  position: relative; z-index: 2; display: block; width: 150px; aspect-ratio: 2/3; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--ink); background: var(--bone-2); isolation: isolate;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.avatar:hover img { transform: scale(1.06); }
/* ellipse ring hugging the oval: 230x300 box around a 150x225 avatar, text flows via SMIL startOffset */
.ring { position: absolute; left: -26.65%; top: 0; margin-top: -25%; width: 153.3%; max-width: none; height: auto; z-index: 1; pointer-events: none; overflow: visible; }
.ring text { font-size: 10.5px; letter-spacing: .12em; fill: var(--ink-soft); font-family: var(--sans); }
.ring__glyphs text { text-anchor: middle; letter-spacing: 0; }
.ring .ring__measure { visibility: hidden; text-anchor: start; }
.cv-peek {
  position: absolute; left: 50%; bottom: calc(100% - 60px); z-index: 3; width: 260px; padding: 26px 24px 24px; text-align: left;
  pointer-events: none; opacity: 0; transform: translate(-50%, 40px) rotate(-4deg); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.cv-peek__deg { margin-top: 12px; font-size: 1.125rem; line-height: 1.15; }
.cv-peek__link { margin-top: 14px; text-decoration: underline; text-underline-offset: 4px; letter-spacing: .1em; }
.avatar-wrap:hover .cv-peek { opacity: 1; transform: translate(-50%, 0) rotate(0); }
.hero-name { margin-top: 64px; font-size: clamp(3rem, 13vw, 4.2rem); line-height: .9; letter-spacing: -.035em; }
.hero-id .eyebrow { margin-top: 14px; letter-spacing: .16em; justify-content: center; }
.hero-lead { max-width: 17rem; margin: 12px auto 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.hero-id .btn-ghost { margin-top: 20px; }

.home__list { max-width: 24rem; margin: 48px auto 0; padding: 0 24px 64px; }
.home__list li { border-bottom: 1px solid var(--line); }
.home__list li:last-child { border: 0; }
.home__list a { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.home__list .grow { display: flex; flex-direction: column; }
.home__list .display { font-size: 15px; }
.home__list a > svg { color: var(--muted); transition: transform .4s var(--ease); }
.home__list a:hover > svg { transform: translate(3px, -3px); }

@media (min-width: 900px) {
  .home__list { display: none; }
  .home__stage { max-width: 1180px; height: 100dvh; min-height: 700px; margin-inline: auto; }
  .home__board { position: absolute; inset: 48px 32px; }
  .home__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .hl__line { fill: none; stroke-width: 1.4; stroke-linecap: round; transition: stroke-width .45s var(--ease); }
  .hl__end { transition: transform .45s var(--ease); transform-box: fill-box; transform-origin: center; }
  .hl.is-hot .hl__line { stroke-width: 2.6; }
  .hl.is-hot .hl__end { transform: scale(1.6); }
  .hero-id { position: absolute; left: 50%; top: 50%; width: 22rem; padding: 0; transform: translate(-50%, -46%); }
  .avatar-wrap, .avatar { width: 128px; }
  .hero-name { margin-top: 52px; font-size: 3.3rem; }
  .node { display: block; position: absolute; width: 11rem; transform: translate(-50%, -28px); z-index: 5; }
  .node__link { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .node__title { margin-top: 12px; font-size: 16px; }
  .node__sub { margin-top: 2px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
  .node__link:hover .ico { transform: translateY(-4px) rotate(-8deg) scale(1.12); box-shadow: 0 18px 40px -12px rgba(214, 41, 118, .6); }
  .node__fan { position: absolute; left: 50%; top: 28px; width: 0; height: 0; z-index: 1; pointer-events: none; }
  .node__fan img {
    position: absolute; left: -58px; top: -78px; width: 116px; height: 156px; max-width: none; object-fit: cover; border-radius: 18px;
    border: 1px solid var(--ink); opacity: 0; transform: scale(.4); box-shadow: 0 24px 48px -20px rgba(0,0,0,.45);
    transition: transform .7s var(--ease), opacity .4s;
  }
  .node { --fy: 150px; }
  .node.is-bottom { --fy: -150px; }
  .node:hover .node__fan img { opacity: 1; }
  .node:hover .node__fan img:nth-child(1) { transform: translate(-112px, var(--fy)) rotate(-14deg); }
  .node:hover .node__fan img:nth-child(2) { transform: translate(0, calc(var(--fy) * 1.12)) rotate(0); transition-delay: .05s; }
  .node:hover .node__fan img:nth-child(3) { transform: translate(112px, var(--fy)) rotate(14deg); transition-delay: .1s; }
}
@media (min-width: 1200px) and (min-height: 860px) {
  .avatar-wrap, .avatar { width: 150px; }
  .hero-name { font-size: 4rem; margin-top: 60px; }
}

/* ============ cv ============ */
.cv { display: grid; gap: 40px; padding-top: 56px; }
.avatar--static { width: 170px; }
.cv__name { margin-top: 24px; font-size: clamp(2.8rem, 6vw, 3.4rem); line-height: .95; letter-spacing: -.03em; }
.cv__side .eyebrow { margin-top: 12px; }
.cv__side .small { margin-top: 6px; }
.cv__side .btn-ghost { margin-top: 24px; }
.cv__intro { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-soft); transition: border-color .3s, color .3s, transform .4s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.chip--fill { background: var(--bone-2); border-color: transparent; }
.cv__row { display: grid; align-items: start; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.cv__row .chips { margin-top: 0; }
.cv__h { font-size: 1.125rem; }
.cv__line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 16px; }
.cv__list { margin-top: 12px; display: grid; gap: 6px; color: var(--ink-soft); font-size: 15px; }
.cv__list li { padding-left: 18px; position: relative; }
.cv__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--g-brand); }
.cv__langs { display: grid; gap: 6px; font-size: 15px; }
@media (min-width: 640px) { .cv__row { grid-template-columns: 160px 1fr; gap: 32px; } }
@media (min-width: 1000px) {
  .cv { grid-template-columns: 290px 1fr; gap: 64px; padding-top: 88px; }
  .cv__side { position: sticky; top: 100px; align-self: start; }
}

/* ============ instagram dome ============ */
.page-instagram { overflow: hidden; }
.page-instagram .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.dome { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.dome__stage { position: absolute; inset: 0; perspective: calc(var(--r, 600px) * 2); cursor: grab; overflow: hidden; }
.dome__stage.is-drag { cursor: grabbing; }
.dome__sphere { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.dome__tile { position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) / -2); width: var(--w); height: var(--h); backface-visibility: hidden; padding: 6px; }
.dome__tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; pointer-events: none; background: var(--bone-2); transition: transform .5s var(--ease); }
.dome__tile:hover img { transform: scale(1.06); }
.dome__fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 42%, var(--bone) 82%); }
.dome__hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); text-align: center; z-index: 3; pointer-events: none; white-space: nowrap; padding: 12px 22px 10px; border-radius: 24px; background: color-mix(in srgb, var(--bone) 72%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dome__hint p { font-size: 14px; letter-spacing: .22em; color: var(--ink-soft); }
.dome__handle { pointer-events: auto; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.dome__handle:hover { color: var(--ink); }
.grid-fallback { position: absolute; inset: 80px 16px 16px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

/* ============ brand ============ */
/* compact brand block: name + text on top, every photo of the brand in one grid underneath */
.brand-block { padding-top: clamp(72px, 9vw, 120px); }
.brand__head { display: grid; gap: 16px; margin-bottom: 28px; }
.brand__title { font-size: clamp(3rem, 6.2vw, 6.5rem); line-height: .9; letter-spacing: -.04em; margin-top: 10px; }
@media (min-width: 900px) { .brand__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 36px; } }

/* ============ properties ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-block: 1px solid var(--line); padding-block: 28px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stat__n { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chapter { margin-top: clamp(96px, 12vw, 160px); }
.chapter__cover { position: relative; height: 88dvh; min-height: 480px; overflow: hidden; margin-inline: clamp(8px, 2vw, 24px); border-radius: clamp(24px, 4vw, 48px); background: var(--bone-2); isolation: isolate; }
.chapter__img { position: absolute; inset: -12% 0; }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.chapter__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), transparent 55%); pointer-events: none; }
.chapter__label { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 56px); z-index: 2; color: #fff; pointer-events: none; }
.chapter__title { font-size: clamp(3.2rem, 12vw, 10rem); line-height: .88; letter-spacing: -.045em; margin: 8px 0 14px; }
.chapter__body { display: grid; gap: 40px; margin-top: 48px; }
/* no orphan photos: build.py tags leftovers (.is-half = 2-up row on desktop, .is-wide-m = full-width on phones) */
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.masonry__item { aspect-ratio: 3/4; border-radius: 20px; }
.masonry__item.is-wide-m { grid-column: 1 / -1; aspect-ratio: 4/5; }
.phone { position: relative; width: min(280px, 70vw); margin-top: 32px; aspect-ratio: 9/16; border-radius: 36px; overflow: hidden; border: 8px solid #0d0d0d; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone__sound { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: #111; transition: transform .3s var(--ease), background .3s; }
.phone__sound[aria-pressed="true"] { background: var(--accent); color: #fff; }
.phone__sound:hover { transform: scale(1.1); }
@media (min-width: 640px) {
  .masonry { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .masonry__item, .masonry__item.is-wide-m { grid-column: span 2; aspect-ratio: 3/4; }
  .masonry__item.is-half { grid-column: span 3; aspect-ratio: 4/5; }
  .masonry__item.is-solo { grid-column: 3 / span 2; }
}
@media (min-width: 1000px) {
  .chapter__body { grid-template-columns: 300px 1fr; gap: 56px; }
  .chapter__info { position: sticky; top: 100px; align-self: start; }
}

/* ============ contact ============ */
.big-mail { display: inline-block; position: relative; font-size: clamp(1.9rem, 7.4vw, 6.4rem); line-height: 1; letter-spacing: -.035em; padding-bottom: 12px; overflow-wrap: anywhere; }
.big-mail::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--g-contact); transform: scaleX(.12); transform-origin: left; transition: transform .8s var(--ease); }
.big-mail:hover::after { transform: scaleX(1); }
.contact-list { margin-top: 56px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i l a" "i v a"; align-items: center; column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row .ico { grid-area: i; }
.contact-row .eyebrow { grid-area: l; }
.contact-row__v { grid-area: v; font-size: clamp(1rem, 2vw, 1.35rem); transition: transform .6s var(--ease); }
.contact-row > svg { grid-area: a; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
a.contact-row:hover .contact-row__v { transform: translateX(10px); }
a.contact-row:hover > svg { transform: translate(4px, -4px) rotate(45deg); color: var(--ink); }
a.contact-row:hover .ico { transform: scale(1.12) rotate(-10deg); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
@media (min-width: 760px) { .contact-row { grid-template-columns: auto 180px 1fr auto; grid-template-areas: "i l v a"; } }

/* ============ lightbox ============ */
.lb { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__scrim { position: absolute; inset: 0; background: rgba(8,8,8,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb__img { position: relative; max-width: min(92vw, 1100px); max-height: 84dvh; width: auto; height: auto; border-radius: 22px; box-shadow: 0 40px 100px -30px #000; user-select: none; }
.lb__btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.35); transition: background .3s, color .3s; }
.lb__btn:hover { background: #fff; color: #111; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; margin-top: -26px; }
.lb__next { right: 16px; top: 50%; margin-top: -26px; }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; } }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* touch screens have no hover: buttons show the gradient fill right away */
@media (hover: none) {
  .btn-ghost, .icon-btn { color: #fff; box-shadow: 0 12px 28px -14px rgba(214, 41, 118, .6); }
  .btn-ghost::before { transform: translateY(0); }
  .icon-btn::before { transform: scale(1); }
}

/* 4 photos per row for brand grids (build.py grid_class4 tags the leftovers) */
@media (min-width: 640px) {
  .masonry--4 { grid-template-columns: repeat(12, 1fr); }
  .masonry--4 .masonry__item, .masonry--4 .masonry__item.is-wide-m { grid-column: span 3; aspect-ratio: 3/4; }
  .masonry--4 .masonry__item.is-third { grid-column: span 4; }
  .masonry--4 .masonry__item.is-pair-a { grid-column: 4 / span 3; }
  .masonry--4 .masonry__item.is-pair-b { grid-column: 7 / span 3; }
  .masonry--4 .masonry__item.is-solo { grid-column: 5 / span 4; }
}
