@font-face{font-family:'Montserrat';font-weight:400;font-style:normal;font-display:swap;src:url('../assets/3c581d2dcb307f.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-weight:400;font-style:normal;font-display:swap;src:url('../assets/9bb9eacc4f07c6.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-weight:700;font-style:normal;font-display:swap;src:url('../assets/5bfe5454268cfb.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-weight:700;font-style:normal;font-display:swap;src:url('../assets/fca0dea4217033.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-weight:400;font-style:italic;font-display:swap;src:url('../assets/ce60f3b07b14ca.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-weight:400;font-style:italic;font-display:swap;src:url('../assets/eecab25d75665a.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
/* nad.world: built from the portfolio deck's design. Montserrat, purple + yellow, one colour per project. */
:root {
  --purple: #692AA7; --yellow: #FFDD00; --ink-on-yellow: #2A0F45;
  --gutter: clamp(16px, 5vw, 96px);
  --maxw: 1600px;
  --t-display: clamp(60px, 9.4vw, 160px);
  --t-h1: clamp(46px, 7vw, 104px);
  --t-h2: clamp(28px, 3vw, 44px);
  --t-statement: clamp(26px, 3.2vw, 50px);
  --t-lead: clamp(18px, 1.5vw, 22px);
  --t-body: 17px;
  --t-label: 13px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: 'Montserrat', system-ui, sans-serif; font-size: var(--t-body); line-height: 1.6;
  background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--yellow); color: var(--ink-on-yellow); padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

/* labels: the deck's small tracked caps, kept for metadata only */
.meta dt, .sec-note, .statement-label, .bcol h3, figcaption, .g-title, .open, .next-label, .foot-links span,
.contact-list span, .kicker, .card-year, .cv-y { font-size: var(--t-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--fg);
  transition: transform .45s var(--ease), background-color .3s ease, box-shadow .3s ease; }
.site-header.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 96px; transition: height .35s var(--ease); }
.site-header.solid .head-row { height: 72px; }
.logo { display: block; width: 74px; height: 34px; color: var(--fg); }
.logo svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a { position: relative; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--fg); padding: 6px 0; transition: color .25s ease; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a[aria-current="page"], .nav a:hover { color: var(--acc); }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.logo svg { transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-6deg) scale(1.06); }

/* ---------------------------------------------------------------- buttons */
.cover-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-block; padding: 14px 26px; border: 2px solid var(--acc); background: var(--acc); color: var(--ink-on-yellow);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; border-radius: 4px; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20, 4, 40, .22); }
.btn.ghost:hover { border-color: var(--fg); box-shadow: none; }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
.btn.copy.done { border-color: var(--acc); color: var(--acc); }

/* ---------------------------------------------------------------- home: cover */
.cover { position: relative; overflow: hidden; min-height: min(100svh, 1000px); display: flex; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; min-height: inherit; }
.cover-text { padding: 160px 0 96px; position: relative; z-index: 2; }
.kicker { color: var(--yellow); font-size: 17px; letter-spacing: .2em; }
.display { font-size: var(--t-display); font-weight: 700; letter-spacing: -.035em; line-height: .95; color: var(--yellow); margin: 16px 0 0 -.04em; }
.name { font-size: clamp(30px, 3vw, 48px); font-weight: 700; letter-spacing: -.02em; margin-top: 48px; padding-top: 36px; position: relative; }
.name::before { content: ''; position: absolute; top: 0; left: 0; width: 120px; height: 6px; background: var(--fg); }
.role { font-size: var(--t-lead); color: var(--mut); margin-top: 6px; }
.collage { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 112px 0 -140px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px); mask-image: linear-gradient(to bottom, transparent 0, #000 72px); }
.ccol { display: flex; flex-direction: column; gap: 24px; --base: 0px; transform: translate3d(var(--mx, 0px), calc(var(--base) + var(--my, 0px)), 0); will-change: transform; }
.ccol:last-child { --base: 120px; }
.collage img { border-radius: 12px; box-shadow: 0 18px 40px rgba(28, 6, 54, .45); }

/* ---------------------------------------------------------------- home: hello + work */
.hello { border-top: 1px solid var(--line); padding: 72px 0; }
.hello-row { display: flex; gap: 40px; align-items: center; }
.avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.big { width: 260px; height: 260px; }
.hello-title { font-size: clamp(40px, 5vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hello-title.xl { font-size: clamp(48px, 7vw, 104px); }
.roles { margin-top: 18px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.9; color: var(--mut); max-width: 70ch; }
.roles b { color: var(--fg); }
.work { padding: 32px 0 120px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-title { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.sec-title.big { font-size: clamp(40px, 5vw, 72px); }
.sec-note { color: var(--mut); }
.sec-text { max-width: 62ch; color: var(--mut); margin: -16px 0 32px; font-size: var(--t-lead); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.card a { display: block; text-decoration: none; color: #fff; }
.card-img { display: block; overflow: hidden; border-radius: 14px; box-shadow: 0 18px 40px rgba(28, 6, 54, .35); background: var(--bg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card-img img { transition: transform .9s var(--ease); }
.card a:hover .card-img { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(28, 6, 54, .5); }
.card a:hover .card-img img { transform: scale(1.035); }
.card-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; margin-top: 18px; }
.card-num { color: var(--yellow); font-weight: 700; font-size: 18px; }
.card-title { font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.01em; line-height: 1.25; }
.card-year { color: rgba(255, 255, 255, .74); }
.card-num { transition: transform .4s var(--ease); display: inline-block; }
.card a:hover .card-num { transform: translateX(4px); }

/* ---------------------------------------------------------------- project: hero */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.hero-text { padding: 160px 0 96px; }
.hero-cut .hero-shots { align-self: end; }
.hero-float .hero-shots { align-self: center; padding: 140px 0 96px; }
.pnum { color: var(--acc); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.pnum span { color: var(--mut); }
.hero-text { container-type: inline-size; }
.hero h1 { font-size: min(var(--t-h1), calc(100cqi / (var(--lw, 8) * .66))); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-top: 10px; }
.sub { font-size: clamp(20px, 1.8vw, 26px); color: var(--mut); margin-top: 12px; line-height: 1.35; }
.lead { font-size: var(--t-lead); line-height: 1.55; margin-top: 32px; max-width: 46ch; }
.meta { margin-top: 36px; max-width: 560px; }
.meta div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; align-items: baseline; }
.meta dt { color: var(--mut); }
.meta dd { font-weight: 700; font-size: 18px; line-height: 1.35; }
.hero-shots { display: flex; justify-content: center; align-items: flex-end; gap: var(--gap); width: 100%; margin-left: auto; }
.shot img { width: 100%; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .28)); }
.shot figcaption { margin-bottom: 12px; color: var(--fg); }
.hero-float .hero-shots { align-items: flex-start; }
.hero-float .shot figcaption { margin: 16px 0 0; }

/* ---------------------------------------------------------------- project: blocks */
.block { padding: clamp(56px, 7vw, 112px) 0; border-top: 1px solid var(--line); }
.brief .sec-title { margin-bottom: 40px; }
.statement-label { color: var(--acc); }
.statement { font-size: var(--t-statement); font-weight: 700; letter-spacing: -.022em; line-height: 1.2; margin: 14px 0 56px; max-width: 30ch; }
.bcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 64px; }
.bcol { border-top: 2px solid var(--line); padding-top: 22px; max-width: 68ch; }
.bcol h3 { color: var(--acc); margin-bottom: 14px; }
.bcol p + p { margin-top: .8em; }

/* long pages as numbered sections */
.scroller { display: flex; gap: 72px; overflow-x: auto; padding: 4px 4px 24px; margin: 0 -4px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.sgroup { flex: none; }
.g-title { margin-bottom: 14px; color: var(--fg); }
.track { display: flex; gap: 24px; align-items: flex-start; position: relative; padding-top: 40px; }
.track::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--line); }
.part { flex: none; position: relative; }
.part::before { content: ''; position: absolute; top: -30px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.pn { position: absolute; top: -40px; left: 14px; color: var(--acc); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.part img { border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); max-width: 80vw; }
.open { display: inline-block; margin-top: 18px; color: var(--fg); text-underline-offset: 5px; }

/* page tops */
.crops { display: grid; gap: 32px; }
.crops-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crops-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crop figcaption { margin-bottom: 12px; color: var(--fg); }
.crop img { width: 100%; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .2); }


/* rows of screens */
.row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--gap); }
.rowfig { max-width: 100%; }
.rowfig img { width: 100%; box-shadow: 0 14px 34px rgba(0, 0, 0, .2); }
.rowfig figcaption, .pair figcaption, .icon figcaption, .small figcaption { margin-top: 14px; color: var(--fg); }

/* Pierre Fabre: desktop + mobile pair */
.pair { display: flex; align-items: flex-end; gap: 48px; margin-inline: auto; }
.pair img { width: 100%; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .22)); }

/* lawyer: homepage anatomy */
.anatomy { counter-reset: none; }
.an-row { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.an-row:first-child { border-top: 0; padding-top: 0; }
.an-row img { border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.an-text h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.015em; margin: 14px 0 12px; }
.an-text li { padding-left: 24px; position: relative; font-size: var(--t-lead); line-height: 1.5; margin-top: 6px; }
.an-text li::before { content: '‣'; position: absolute; left: 0; font-weight: 700; color: var(--acc); }
.badge { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: var(--bg); font-weight: 700; align-items: center; justify-content: center; }

/* help: icon + small screens */
.helpgrid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; }
.smalls { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.small img { border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.icon img { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .3)); }
.small-note { margin-top: 32px; color: var(--mut); font-size: 15px; }

/* in-context photo, baked fade into the dark ground */
.photo { background: var(--bg); color: var(--fg); }
.photo-inner { position: relative; max-width: 1920px; margin-inline: auto; }
.photo-inner img { margin-left: auto; }
.photo .sec-title { position: absolute; top: clamp(32px, 6vw, 96px); left: var(--gutter); z-index: 2; }

/* next project */
.next { display: block; background: var(--bg); color: var(--fg); text-decoration: none; }
.next-inner { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: clamp(56px, 8vw, 120px) 0; align-items: end; }
.next-label { grid-column: 1 / -1; color: var(--mut); }
.next-title { font-size: clamp(36px, 6vw, 96px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.next-year { color: var(--mut); font-weight: 700; font-size: 18px; }
.next-title { transition: transform .6s var(--ease); }
.next:hover .next-title { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.next .u { --uh: 4px; }

/* ---------------------------------------------------------------- about + contact */
.about-hero, .contact { padding: 160px 0 96px; }
.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .lead { max-width: 60ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.contact .display { font-size: clamp(64px, 10vw, 150px); }
.contact .lead { max-width: 40ch; }
.contact-list li, .foot-links li { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 2px; }
.contact-list span, .foot-links span { color: var(--mut); }
.contact-list a, .contact-list .plain { font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -.015em; text-decoration: none; overflow-wrap: anywhere; justify-self: start; }
.contact-list a:hover, .foot-links a:hover { color: var(--acc); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg); color: var(--fg); padding-top: clamp(64px, 8vw, 120px); }
.site-footer.compact { padding-top: 0; }
.site-footer.compact .foot-base { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; }
.foot-title { font-size: clamp(44px, 6vw, 96px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--yellow); }
.foot-text { margin-top: 20px; color: var(--mut); font-size: var(--t-lead); max-width: 36ch; }
.foot-links a { font-size: 22px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; justify-self: start; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 72px; padding: 24px 0 32px; font-size: 14px; color: var(--mut); }
.foot-base a { text-underline-offset: 4px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .crops-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .cards > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .head-row { height: 76px; }
  .cover-grid, .hero-grid, .contact-grid, .foot-grid, .cv-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-text { padding: 120px 0 24px; }
  .collage { margin: 0 0 -40px; height: 380px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .ccol:last-child { --base: 60px; }
  .hero-text { padding: 120px 0 24px; }
  .hero-float .hero-shots { padding: 24px 0 72px; }
  .hero-cut .hero-shots { padding-top: 24px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .cards > :first-child { grid-column: auto; }
  .crops-2, .crops-3 { grid-template-columns: minmax(0, 1fr); }
  .an-row { grid-template-columns: minmax(0, 1fr); }
  .about-hero, .contact { padding: 120px 0 72px; }
  .avatar.big { width: 180px; height: 180px; }
  .hello-row { flex-direction: column; align-items: flex-start; }
  .photo .sec-title { position: static; padding: 48px var(--gutter) 24px; }
  .pair { gap: 20px; }
}
@media (max-width: 560px) {
  .nav a { font-size: 13px; letter-spacing: .06em; }
  .logo { width: 60px; height: 28px; }
  .meta div { grid-template-columns: 110px 1fr; }
  .scroller { gap: 48px; }
  .smalls { gap: 28px; }
}

/* ================================================================ v2: archive, résumé, viewer, motion */
.card-img img { width: 100%; }

/* animated underline for text links */
.u, a.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 0 var(--uh, 2px) no-repeat; transition: background-size .45s var(--ease); padding-bottom: .06em; }
a.ul { text-decoration: none; }
a:hover > .u, a:hover .u, a.ul:hover, a.ul:focus-visible { background-size: 100% var(--uh, 2px); }

/* project page reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 45; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; }

/* archived projects */
.pnum.arch { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.archive { padding: 0 0 120px; }
.archive .sec-head { border-top: 1px solid var(--line); padding-top: 48px; margin-bottom: 8px; }
.arc-list li { border-bottom: 1px solid var(--line); }
.arc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 22px 8px; text-decoration: none; color: var(--fg);
  transition: background-color .3s ease, padding .45s var(--ease); border-radius: 6px; }
.arc-row:hover { background: rgba(255, 255, 255, .07); padding-left: 20px; }
.arc-year { font-weight: 700; color: var(--acc); font-size: 18px; }
.arc-title { font-weight: 700; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.015em; line-height: 1.25; }
.arc-kind { color: var(--mut); font-size: 15px; text-align: right; }
.arc-preview { position: fixed; left: 0; top: 0; width: 300px; height: auto; border-radius: 10px; pointer-events: none; z-index: 60;
  box-shadow: 0 24px 50px rgba(10, 2, 24, .5); opacity: 0; transition: opacity .25s ease; }
.arc-preview.show { opacity: 1; }

/* viewer triggers */
.vz { display: block; cursor: zoom-in; border-radius: inherit; color: inherit; }
.shot .vz img, .pair .vz img { transition: transform .5s var(--ease), filter .5s var(--ease); }
.shot .vz:hover img, .pair .vz:hover img { transform: translateY(-4px); }
.crop .vz, .rowfig .vz, .an-row .vz { overflow: hidden; border-radius: 10px; }
.crop .vz img, .rowfig .vz img, .an-row .vz img { transition: transform .7s var(--ease), box-shadow .5s ease; }
.crop .vz:hover img, .rowfig .vz:hover img, .an-row .vz:hover img { transform: scale(1.02); }
.rowfig .vz { box-shadow: 0 14px 34px rgba(0, 0, 0, .2); border-radius: var(--r, 10px); }
.rowfig img { box-shadow: none; }
.photo-link { cursor: zoom-in; }
.open.vz { display: inline-block; text-decoration: none; cursor: zoom-in; }

/* long-page track: drag to scroll, edge fades, active section */
.scroller { cursor: grab; scroll-snap-type: none; overscroll-behavior-x: contain; }
.scroller.dragging { cursor: grabbing; user-select: none; }
.scroller.dragging .vz { cursor: grabbing; }
.scroller.scrollable:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent); }
.scroller.scrollable:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 96px), transparent); }
.scroller.scrollable.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px); mask-image: linear-gradient(to right, transparent, #000 64px); }
.part::before { transition: transform .4s var(--ease), box-shadow .4s ease; }
.pn { transition: color .3s ease, opacity .3s ease; opacity: .6; }
.part.on::before { transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 25%, transparent); }
.part.on .pn { opacity: 1; }
.part .vz { border-radius: 8px; }

/* custom cursor label (mouse only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.cursor span { display: block; transform: translate(14px, 14px) scale(.4); opacity: 0; padding: 7px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--ink-on-yellow); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20, 4, 40, .3); transition: transform .3s var(--ease), opacity .2s ease; }
.cursor.show span { transform: translate(14px, 14px) scale(1); opacity: 1; }
.lb-open .cursor { display: none; }

/* ---------------------------------------------------------------- résumé sheet (mirrors the PDF CV) */
.resume { border-top: 0; padding-top: 24px; }
.sheet { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(20, 4, 40, .35); }
.sheet-aside { background: var(--bg); color: var(--fg); padding: clamp(28px, 3.4vw, 48px); }
.aside-in { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 28px; }
.sh-name { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.sh-role { color: var(--yellow); font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: -18px; }
.sh-quote { position: relative; font-size: 18px; font-weight: 700; line-height: 1.4; padding: 0 0 26px 26px; border-bottom: 1px solid var(--line); }
.sh-quote::before { content: '“'; position: absolute; left: 0; top: -.15em; font-size: 40px; line-height: 1; color: var(--mut); }
.sh-contact div { padding: 10px 0; }
.sh-contact dt, .sh-h { font-size: var(--t-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.sh-contact dd { font-weight: 700; overflow-wrap: anywhere; }
.sh-contact a { color: var(--fg); }
.langs li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.langs span { color: var(--mut); }
.sh-h { margin-bottom: -14px; }
.sh-dl { align-self: flex-start; margin-top: 8px; }
.sheet-main { background: var(--bg); color: var(--fg); padding: clamp(28px, 4vw, 64px); }
.sh-sec + .sh-sec { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.sh-title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; }
.tl { position: relative; padding-left: 34px; }
.tl::before, .tl::after { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl::after { background: var(--acc); transform: scaleY(var(--p, 1)); transform-origin: top; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 8px; }
.tl-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc);
  transition: background-color .4s ease, transform .4s var(--ease); z-index: 1; }
.tl-item.lit::before { background: var(--acc); transform: scale(1.15); }
.tl-when { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 700; color: var(--acc); }
.tl-where { color: var(--mut); font-weight: 400; }
.tl-org { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; }
.tl-role { color: var(--mut); }
.tl-pts { margin-top: 12px; max-width: 72ch; }
.tl-pts li { position: relative; padding-left: 20px; margin-top: 6px; line-height: 1.55; font-size: 16px; }
.tl-pts li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--acc); }
.tl-proj { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 14px; font-size: 15px; }
.tl-proj span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.tl-proj a { color: var(--acc); font-weight: 700; }
.sub-h, .chip-h { font-size: var(--t-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin: 24px 0 14px; }
.chip-h:first-of-type { margin-top: 0; }
.interns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.interns li { border-top: 2px solid var(--line); padding-top: 14px; }
.interns .tl-org { font-size: 18px; }
.interns .tl-role { font-size: 15px; }
.small-clients { color: var(--mut); font-size: 14px; margin-top: 4px; }
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edu-card { background: #F5F0FC; border-radius: 12px; padding: 20px 22px; transition: transform .4s var(--ease), box-shadow .4s ease; }
.edu-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 20, 110, .12); }
.edu-card h4 { font-size: 18px; font-weight: 700; }
.edu-where, .edu-when { color: var(--mut); font-size: 14px; }
.edu-what { font-weight: 700; margin: 12px 0 2px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: #F5F0FC; color: var(--acc); font-weight: 700; font-size: 15px;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease); }
.chips li:hover { background: var(--acc); color: #fff; transform: translateY(-2px); }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s ease, transform .35s var(--ease); }
.tool:hover { border-color: var(--acc); transform: translateY(-2px); }
.tool span { color: var(--mut); font-size: 14px; }
.about-text { min-width: 0; }

/* contact: live region */
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- full-screen viewer */
.lb { position: fixed; inset: 0; z-index: 100; color: #fff; --acc: var(--yellow); }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; background: rgba(14, 6, 24, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-stage { position: absolute; inset: 0 0 var(--barh, 76px) 0; overflow: auto; display: flex; padding: var(--pad, 40px); overscroll-behavior: contain; outline: none; scrollbar-color: rgba(255,255,255,.35) transparent; }
.lb-img { margin: auto; flex: none; max-width: none; border-radius: 6px; background: rgba(255, 255, 255, .04); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; user-select: none; -webkit-user-drag: none; }
.lb.can-zoom .lb-img { cursor: zoom-in; }
.lb.zoomed .lb-img { cursor: zoom-out; }
.lb.panning .lb-img { cursor: grabbing; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: var(--barh, 76px); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad, 40px); border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(14, 6, 24, .7); }
.lb-cap { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.lb-count { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .7); margin-right: 8px; font-variant-numeric: tabular-nums; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: var(--yellow); color: var(--ink-on-yellow); border-color: var(--yellow); }
.lb-btn:active { transform: scale(.92); }
.lb-btn[hidden] { display: none; }
.lb-load { position: absolute; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; opacity: 0; transition: opacity .2s ease; }
.lb-load::after { content: ''; position: absolute; inset: 0; width: 30%; background: var(--yellow); animation: lbload 1s ease-in-out infinite; }
.lb.loading .lb-load { opacity: 1; }
@keyframes lbload { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
html.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- scroll reveal (only for content that starts below the fold, JS only) */
.reveal { transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.pre:not(.in) { opacity: 0; transform: translateY(28px); transition: none; }

/* ---------------------------------------------------------------- one orchestrated entrance per page */
.display .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.display .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .display .line > span { animation: lineUp 1s var(--ease) both; }
  .display .line:nth-child(2) > span { animation-delay: .1s; }
  .cover-text .kicker, .cover-text .name, .cover-text .role, .cover-text .cover-links,
  .hero-text > *, .about-text > *, .about-grid > .avatar, .contact-grid > div > :not(h1), .contact-list { animation: rise .9s var(--ease) both; }
  .cover-text .name { animation-delay: .35s; } .cover-text .role { animation-delay: .42s; } .cover-text .cover-links { animation-delay: .5s; }
  .name::before { animation: draw .9s .45s var(--ease) both; transform-origin: left; }
  .hero-text > :nth-child(2) { animation-delay: .06s; } .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; } .hero-text > :nth-child(5) { animation-delay: .24s; } .hero-text > :nth-child(6) { animation-delay: .3s; }
  .about-text > :nth-child(2) { animation-delay: .08s; } .about-text > :nth-child(3) { animation-delay: .16s; } .about-text > :nth-child(4) { animation-delay: .24s; }
  .contact-list { animation-delay: .3s; }
  .hero-shots .shot { animation: riseShot 1.1s .2s var(--ease) both; }
  .hero-shots .shot + .shot { animation-delay: .32s; }
  .collage { animation: fadeUp 1.4s .25s var(--ease) both; }
}
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes riseShot { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu, .interns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .aside-in { position: static; }
  .arc-row { grid-template-columns: 64px minmax(0, 1fr); }
  .arc-kind { grid-column: 2; text-align: left; }
  .lb-cap { white-space: normal; font-size: 14px; }
}
@media (max-width: 560px) {
  .lb-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .lb-ctrl { justify-content: flex-end; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tl { padding-left: 28px; }
  .tl-item::before { left: -28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .lb-load::after { animation: none; }
}

.contact-list span.plain { color: var(--fg); text-transform: none; letter-spacing: -.015em; }
.scroller + .scroller { margin-top: clamp(40px, 5vw, 72px); }
.chips li { max-width: 100%; overflow-wrap: anywhere; }
