/* Rosly Tavarez — portfolio · glass edition
   Simple and calm: off-white space, frosted glass, soft blurred colour and a few white sparkles.
   Each project has its own "drink" tint (--t1 light, --t2 deep) that glows through the glass.
   Type: Unbounded (wide display), Schibsted Grotesk (text). */

@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('../fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('../fonts/schibsted-grotesk-latin-wght-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --bg: #F2F4F6;
  --card: #F8F9FA;
  --ink: #33321F;
  --ink-2: #67665A;
  --ink-3: #9A998F;
  --line: rgba(51, 50, 31, .12);
  --t1: #A9CBFF; --t2: #3F7FF2;

  --display: 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(18px, 4vw, 56px);
  --max: 1360px;
  --head-h: 76px;
  --r: 24px;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-in: cubic-bezier(.7, 0, .84, 0);
  --e-io: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--t2); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--t1); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.i { flex: none; }
.label { font-size: 13px; letter-spacing: .02em; color: var(--ink-2); }
.caption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.h-section { font: 400 clamp(30px, 3.6vw, 52px)/1.12 var(--display); letter-spacing: -.02em; }

/* ───────── glass + colour ───────── */
.glass {
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px -26px rgba(40, 60, 90, .3);
  border-radius: var(--r);
}
.glass--strong { background: rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%); }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blobs b { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .95; animation: float 14s ease-in-out infinite alternate; }
.blobs b:nth-child(1) { width: 78%; aspect-ratio: 1; left: 4%; top: 14%; background: radial-gradient(circle at 40% 40%, var(--t2), transparent 70%); }
.blobs b:nth-child(2) { width: 60%; aspect-ratio: 1; right: -4%; top: 2%; background: radial-gradient(circle, var(--t1), transparent 70%); animation-duration: 11s; animation-delay: -4s; }
.blobs b:nth-child(3) { width: 58%; aspect-ratio: 1; left: 34%; bottom: -6%; background: radial-gradient(circle, var(--t2), transparent 68%); opacity: .7; animation-duration: 17s; animation-delay: -8s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, -5%) scale(1.08); } 100% { transform: translate(-5%, 4%) scale(.95); } }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: calc(18px * var(--s)); aspect-ratio: 1; background: #fff; filter: blur(.6px) drop-shadow(0 0 6px rgba(255,255,255,.9));
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .45; transform: scale(.78) rotate(12deg); } }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; font-size: 14px; text-decoration: none; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 6px 16px -10px rgba(40,60,90,.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .3s, transform .4s var(--e-out); white-space: nowrap; }
.chip:hover { background: #fff; transform: translateY(-1px); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-size: 15px; text-decoration: none; border-radius: 999px; background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: transform .4s var(--e-out), box-shadow .3s, background .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(51, 50, 31, .6); }
.btn .i { transition: transform .4s var(--e-out); }
.btn:hover .i { transform: translateX(4px); }
.btn--glass { background: rgba(255,255,255,.55); color: var(--ink); border-color: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 24px -16px rgba(40,60,90,.4); }
.btn--glass:hover { background: #fff; }

/* ───────── header ───────── */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); transition: transform .5s var(--e-out); }
.site-head.is-solid { background: rgba(242, 244, 246, .62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 rgba(255,255,255,.9); }
.site-head.is-hidden { transform: translateY(-110%); }
.mark { font: 400 15px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.site-nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.site-nav a, .site-nav button { font-size: 14px; text-decoration: none; padding: 8px 16px; border-radius: 999px; transition: background .3s; }
.site-nav a:hover, .site-nav button:hover { background: rgba(255,255,255,.75); }
.site-nav [aria-current] { background: #fff; box-shadow: 0 4px 12px -8px rgba(40,60,90,.4); }

/* ───────── glass folder ───────── */
.gfolder { position: absolute; display: block; }
.gfolder__tab { position: absolute; left: 7%; top: -7%; width: 34%; height: 12%; border-radius: 18px 18px 0 0; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); border-bottom: 0; }
.gfolder__back { position: absolute; inset: 0; border-radius: 6px 26px 26px 26px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.85); }
.gfolder .blobs { inset: 4% 0 0; border-radius: 26px; overflow: hidden; }
.gfolder__thumb { position: absolute; z-index: 1; left: 11%; right: 11%; top: 5%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #fff; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 18px 30px -18px rgba(40,60,90,.5); opacity: 0; filter: blur(10px); transform: translateY(14%) scale(.95); transition: transform .8s var(--e-out), opacity .45s, filter .6s; }
.gfolder__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gfolder__front { position: absolute; z-index: 2; inset: 16% 0 0 0; border-radius: 6px 26px 26px 26px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); transform-origin: 50% 100%; transition: transform .8s var(--e-out); }
.gfolder__label { position: absolute; left: 9%; top: 12%; font: 500 clamp(13px, 1.2vw, 16px)/1 var(--display); color: #fff; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0, 30, 80, .18); }

/* ───────── home hero ───────── */
.hero { max-width: var(--max); margin: 0 auto; min-height: 100svh; padding: calc(var(--head-h) + 6vh) var(--gutter) 8vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__name { font: 400 clamp(52px, 7.6vw, 118px)/1.02 var(--display); letter-spacing: -.035em; margin: 14px 0 26px; padding-bottom: .04em; }
.hero__tag { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__now { margin-top: 34px; font-size: 14.5px; color: var(--ink-3); max-width: 46ch; }
.hero__art { position: relative; aspect-ratio: 1 / 1.08; }
.hero__art .gfolder { inset: 10% 0 0 4%; }
.hero__orb { position: absolute; z-index: 1; right: 7%; top: 5%; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 40px -22px rgba(30, 60, 120, .55); border: 6px solid rgba(255,255,255,.8); }
.hero__orb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__art .gfolder__front { inset: 24% 0 0 0; }
.hero__art .gfolder__label { font-size: clamp(18px, 2.2vw, 30px); font-weight: 400; }

/* ───────── work: posters with glass folders (2 × 2) ───────── */
.work { max-width: var(--max); margin: 0 auto; padding: 10vh var(--gutter) 6vh; }
.work__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 6vh; }
.work__count { font-size: 14px; color: var(--ink-2); }
.posters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.poster__link { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: 28px; background: var(--card); text-decoration: none; overflow: clip; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 50px -40px rgba(40, 60, 90, .45); transition: transform .7s var(--e-out), box-shadow .5s; }
.poster__text { position: absolute; z-index: 3; left: 7%; top: 7%; right: 40%; display: grid; gap: 10px; }
.poster__title { font: 400 clamp(26px, 2.6vw, 40px)/1.12 var(--display); letter-spacing: -.02em; width: fit-content; padding-bottom: .04em; }
.poster__kicker { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.poster .gfolder { left: 32%; right: -7%; top: 40%; bottom: -8%; }
.poster__foot { position: absolute; z-index: 3; left: 7%; bottom: 7%; }
.poster__meta { font-size: 13px; color: var(--ink-3); }
.poster__link:hover, .poster__link:focus-visible, .poster.is-peek .poster__link { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 34px 60px -36px rgba(40, 60, 90, .55); }
.poster__link:hover .gfolder__thumb, .poster__link:focus-visible .gfolder__thumb, .poster.is-peek .gfolder__thumb { opacity: 1; filter: blur(0); transform: translateY(-46%) rotate(-2deg); }
.poster__link:hover .gfolder__front, .poster__link:focus-visible .gfolder__front, .poster.is-peek .gfolder__front { transform: translateY(5%); }
.poster__link:hover .chip { background: #fff; }

.soon { max-width: 640px; margin: clamp(40px, 8vh, 80px) auto 0; padding: 26px 30px; text-align: center; }
.soon__title { font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--display); margin: 8px 0 6px; letter-spacing: -.015em; }
.soon__desc { font-size: 15px; color: var(--ink-2); }

.intro { max-width: var(--max); margin: 0 auto; padding: 10vh var(--gutter) 14vh; display: grid; gap: 22px; justify-items: start; }
.intro__text { font: 300 clamp(24px, 3vw, 42px)/1.3 var(--display); letter-spacing: -.02em; max-width: 30ch; }

/* ───────── case study ───────── */
.cs__head { max-width: var(--max); margin: 0 auto; padding: calc(var(--head-h) + 5vh) var(--gutter) 6vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4vh 5vw; align-items: center; }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; color: var(--ink-2); margin-bottom: 40px; }
.backlink:hover { color: var(--ink); }
.cs__title { font: 400 clamp(46px, 6.8vw, 104px)/1.04 var(--display); letter-spacing: -.035em; margin: 14px 0 24px; width: fit-content; padding-bottom: .05em; text-wrap: balance; }
.cs__summary { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.cs__art { position: relative; aspect-ratio: 1 / .92; }
.cs__art .gfolder { inset: 10% 0 0 0; }
.cs__art .gfolder__label { font-size: clamp(16px, 1.8vw, 24px); font-weight: 400; }
.cs__meta { grid-column: 1 / -1; margin: 2vh 0 0; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cs__meta div { padding: 16px 18px; border-radius: 18px; }
.cs__meta dt { font-size: 12.5px; color: var(--ink-3); }
.cs__meta dd { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.cs__cover { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.cs__body { max-width: var(--max); margin: 0 auto; padding: 12vh var(--gutter) 6vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(28px, 5vw, 90px); }
.tl { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; }
.tl__inner { padding: 18px 14px; border-radius: 22px; }
.tl__inner > .label { padding: 0 8px 10px; }
.tl__track { height: 3px; border-radius: 3px; background: var(--line); margin: 0 8px 12px; position: relative; overflow: hidden; }
.tl__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--t1), var(--t2)); transform-origin: left; transform: scaleX(0); }
.tl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-size: 14.5px; color: var(--ink-3); transition: background .3s, color .3s; }
.tl__n { font-size: 11px; font-variant-numeric: tabular-nums; }
.tl a:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.tl a.is-done { color: var(--ink-2); }
.tl a.is-active { color: var(--ink); background: #fff; box-shadow: 0 6px 14px -10px rgba(40,60,90,.4); }
.tl a.is-active .tl__n { color: var(--t2); }

.cs__content { min-width: 0; }
.cs__sec { padding: 0 0 15vh; scroll-margin-top: calc(var(--head-h) + 24px); }
.cs__sec:last-child { padding-bottom: 4vh; }
.cs__sec > * + * { margin-top: 26px; }
.cs__num { color: var(--t2); margin-right: 4px; }
.cs__sec h2 { font: 400 clamp(26px, 2.8vw, 42px)/1.2 var(--display); letter-spacing: -.025em; max-width: 22ch; margin-top: 12px; padding-bottom: .04em; }
.cs__sec > p, .cs__sec > .list, .cs__sec > .quote { max-width: 66ch; }
.cs__sec p b, .list b { font-weight: 600; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.note { padding: 16px 20px; border-radius: 18px; font-size: 15px; max-width: 66ch; }

.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--ink-3); }
.facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }

.stats { margin: 44px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.stat { padding-top: 16px; border-top: 1px solid var(--line); }
.stat dt { font: 300 clamp(30px, 3vw, 52px)/1.1 var(--display); letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.stat dd { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.list { list-style: none; padding: 0; margin-left: 0; margin-right: 0; }
.list li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); }
.list li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--t1), var(--t2)); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.col { padding: 20px 20px 18px; border-radius: 22px; }
.col h4 { font: 400 17px/1.3 var(--display); margin-bottom: 8px; }
.col ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.col li { padding: 7px 0; border-top: 1px solid var(--line); line-height: 1.4; }

.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.persona { padding-top: 16px; border-top: 1px solid var(--line); }
.persona h4 { font: 400 26px/1.2 var(--display); letter-spacing: -.02em; margin: 6px 0 10px; }
.persona p:last-child { font-size: 15px; color: var(--ink-2); }

.quote { margin: 48px 0; padding: 4px 0 4px 26px; border-left: 3px solid; border-image: linear-gradient(var(--t1), var(--t2)) 1; }
.quote p { font: 300 clamp(21px, 2.1vw, 30px)/1.4 var(--display); letter-spacing: -.02em; }
.quote footer { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.palette { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch { display: block; aspect-ratio: 1; border-radius: 18px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.palette__name { display: block; margin-top: 8px; font-size: 14px; }
.palette code { font: 12px/1.4 var(--sans); color: var(--ink-3); }

/* figures in glass frames */
.fig { margin: 52px 0; }
.fig__btn { display: block; width: 100%; position: relative; cursor: zoom-in; text-align: left; padding: 8px; border-radius: 24px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 20px 40px -30px rgba(40,60,90,.45); transition: transform .6s var(--e-out), box-shadow .4s; }
.fig__btn:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(40,60,90,.5); }
.fig__frame { display: block; overflow: hidden; border-radius: 17px; background: #EEF1F4; }
.fig__frame img { width: 100%; height: 100%; object-fit: cover; }
.fig__hint { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--e-out); }
.fig__btn:hover .fig__hint, .fig__btn:focus-visible .fig__hint { opacity: 1; transform: none; }
.fig figcaption { margin-top: 12px; padding: 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 70ch; }
.fig--narrow { max-width: 340px; }
.fig--medium { max-width: 620px; }
.fig--cover { margin: 0; }
.fig--cover .fig__btn { padding: 10px; border-radius: 32px; width: min(100%, calc(78vh * var(--ar) + 20px)); margin-inline: auto; }
.fig--cover .fig__frame { border-radius: 24px; }
.figrow { display: grid; gap: 18px; margin: 52px 0; align-items: start; }
.figrow--2 { grid-template-columns: 1fr 1fr; }
.figrow--3 { grid-template-columns: repeat(3, 1fr); }
.figrow .fig { margin: 0; }
.phones { display: grid; gap: clamp(12px, 2vw, 24px); margin: 52px 0; align-items: start; }
.phones--4 { grid-template-columns: repeat(4, 1fr); }
.phones--2 { grid-template-columns: repeat(2, minmax(0, 300px)); }
.phones .fig { margin: 0; }
.phones .fig:nth-child(even) { margin-top: 40px; }
.fig--phone .fig__btn { padding: 7px; border-radius: 34px; }
.fig--phone .fig__frame { border-radius: 28px; }
.fig--phone .fig__frame img { object-position: top; }
.mood { margin: 52px 0; }
.mood__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mood .fig { margin: 0; }

.filecard { display: flex; align-items: stretch; margin: 44px 0; max-width: 620px; border-radius: 22px; overflow: clip; }
.filecard__open { flex: 1; display: flex; gap: 16px; align-items: center; padding: 14px; text-align: left; }
.filecard__thumb { width: 56px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 16px -10px rgba(0,0,0,.4); background: #fff; transition: transform .5s var(--e-out); }
.filecard__open:hover .filecard__thumb { transform: translateY(-4px) rotate(-3deg); }
.filecard__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.filecard__title { font: 400 16px/1.3 var(--display); }
.filecard__note { font-size: 13px; color: var(--ink-2); }
.filecard__dl { display: grid; place-items: center; width: 62px; border-left: 1px solid rgba(255,255,255,.9); text-decoration: none; transition: background .3s; }
.filecard__dl:hover { background: rgba(255,255,255,.8); }
.extlink { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.extlink span { font-size: 13px; color: var(--ink-2); }

.more { max-width: var(--max); margin: 0 auto; padding: 10vh var(--gutter) 12vh; }
.more__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 5vh; }
.more__nav { display: flex; gap: 8px; }
.more__list { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 30px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 28vw, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.more__list::-webkit-scrollbar { display: none; }
.more__list li { scroll-snap-align: start; }
.more__link { display: grid; gap: 6px; padding: 10px 10px 18px; text-decoration: none; border-radius: 26px; transition: transform .6s var(--e-out); }
.more__link:hover { transform: translateY(-6px); }
.more__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--card); margin-bottom: 8px; }
.more__img img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out), filter .6s; filter: saturate(.9); }
.more__link:hover .more__img img { transform: scale(1.04); filter: none; }
.more__title { font: 400 21px/1.25 var(--display); letter-spacing: -.02em; padding: 0 6px .04em; width: fit-content; }
.more__sum { font-size: 14px; color: var(--ink-2); padding: 0 6px; }

/* ───────── about ───────── */
.about { max-width: var(--max); margin: 0 auto; padding: calc(var(--head-h) + 6vh) var(--gutter) 10vh; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.about__title { font: 400 clamp(46px, 6.4vw, 98px)/1.04 var(--display); letter-spacing: -.035em; margin: 14px 0 28px; padding-bottom: .04em; }
.about__text > p + p { margin-top: 18px; }
.about__text p:not(.lead):not(.label) { max-width: 60ch; color: var(--ink-2); }
.about__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.about__art { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; }
.about__art .blobs { inset: -6%; overflow: hidden; border-radius: 40px; }
.about__photo { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; border: 8px solid rgba(255,255,255,.75); box-shadow: 0 30px 60px -36px rgba(30,60,120,.6); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__caption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 10px 24px -16px rgba(30,40,60,.45); }
.about__caption-name { font: 400 15px/1.2 var(--display); letter-spacing: -.01em; }
.about__caption-role { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.about__sec { margin-top: 16vh; }
.about__sec > .h-section { margin-bottom: 5vh; }
.xp { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.xp__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 4vw; padding: 24px 28px; border-radius: 24px; }
.xp__when { font-size: 14px; color: var(--ink-3); }
.xp__item h3 { font: 400 20px/1.3 var(--display); letter-spacing: -.015em; }
.xp__org { color: var(--t2); font-size: 15px; margin-top: 4px; }
.xp__item ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); max-width: 70ch; }
.xp__item li + li { margin-top: 6px; }
.about__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.card { padding: 26px; border-radius: 24px; }
.card h2 { font: 400 22px/1.2 var(--display); margin-bottom: 14px; }
.card .label { margin: 24px 0 8px; }
.card ul { padding-left: 18px; margin: 0; }
.card li + li { margin-top: 6px; }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { margin: 0 !important; font-size: 13.5px; padding: 6px 12px; }
.nf { max-width: var(--max); margin: 0 auto; padding: 30vh var(--gutter); }
.nf h1 { font: 400 clamp(40px, 6vw, 80px)/1.1 var(--display); margin-bottom: 20px; }

/* ───────── footer ───────── */
.site-foot { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 26px; }
.site-foot__card { position: relative; border-radius: 34px; background: var(--card); overflow: clip; padding: clamp(28px, 6vw, 80px); }
.site-foot__card .blobs b:nth-child(1) { left: 40%; top: 0; }
.site-foot__glass { position: relative; padding: clamp(28px, 5vw, 64px); border-radius: 28px; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; background: rgba(255,255,255,.25); }
.site-foot__big { font: 400 clamp(34px, 5.4vw, 80px)/1.08 var(--display); letter-spacing: -.035em; max-width: 12ch; position: relative; padding-bottom: .04em; }
.site-foot__mail { position: relative; font-size: clamp(16px, 1.4vw, 19px); text-decoration: none; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid #fff; transition: background .3s; }
.site-foot__mail:hover { background: #fff; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 26px 0 18px; }
.site-foot__nav a, .site-foot__nav button { font-size: 15px; text-decoration: none; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95); transition: background .3s; }
.site-foot__nav a:hover, .site-foot__nav button:hover { background: #fff; }
.site-foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--ink-3); }
.totop:hover { color: var(--ink); }

/* ───────── viewer ───────── */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(236, 240, 244, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .45s, backdrop-filter .45s; }
dialog.is-open::backdrop { background: rgba(236, 240, 244, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: none; }
.viewer[open] { display: grid; place-items: center; }
.viewer__panel { width: min(1180px, 92vw); height: min(88dvh, 1100px); display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border: 1px solid #fff; box-shadow: 0 40px 80px -40px rgba(30, 50, 80, .5); will-change: transform; }
.viewer.is-fs .viewer__panel { position: fixed; inset: 0; width: 100vw; height: 100dvh; border-radius: 0; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; }
.viewer__title { flex: 1; min-width: 0; font: 400 15px/1.3 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__actions { flex: none; display: flex; gap: 6px; align-items: center; }
.btn-close { width: 40px; height: 40px; font-size: 24px; line-height: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.6); transition: background .25s, rotate .4s var(--e-out); }
.btn-close:hover { background: #fff; rotate: 90deg; }
.viewer__body { overflow: auto; overscroll-behavior: contain; padding: clamp(12px, 3vw, 36px); display: grid; gap: 20px; justify-items: center; align-content: start; }
.viewer__body img { max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 40px -26px rgba(30,50,80,.5); background: #fff; }
.viewer__body.is-single { display: flex; align-items: center; justify-content: center; }
.viewer__body.is-single img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.viewer__body.is-doc img { width: min(100%, 860px); }
.viewer.is-fs .viewer__body.is-doc img { width: min(100%, 1100px); }

/* ───────── contact ───────── */
.contact { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: none; }
.contact[open] { display: grid; place-items: center; }
.contact__panel { position: relative; width: min(640px, 92vw); max-height: 92dvh; border-radius: 34px; background: var(--card); overflow: clip; padding: 22px; box-shadow: 0 40px 80px -40px rgba(30, 50, 80, .5); }
.contact__glass { position: relative; padding: clamp(24px, 4vw, 42px); border-radius: 26px; max-height: calc(92dvh - 44px); overflow: auto; background: rgba(255,255,255,.5); }
.contact__glass .btn-close { position: absolute; right: 14px; top: 14px; }
.contact h2 { font: 400 clamp(30px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.03em; margin: 10px 0 12px; padding-bottom: .04em; }
.contact__lede { color: var(--ink-2); max-width: 46ch; }
.contact__list { list-style: none; margin: 22px 0 0; padding: 0; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact__list a, .linklike { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; justify-self: start; border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__list a:hover, .linklike:hover { border-color: currentColor; }
.contact__k { font-size: 12.5px; color: var(--ink-3); }
.copy.is-done { background: #fff; }

/* ───────── transitions ───────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--e-in) both; }
::view-transition-new(root) { animation: vt-in .8s var(--e-out) both; }
::view-transition-group(*) { animation-duration: .75s; animation-timing-function: var(--e-io); }
@keyframes vt-out { to { opacity: 0; filter: blur(14px); transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(18px); transform: translateY(3vh); } to { opacity: 1; filter: none; transform: none; } }
.curtain { position: fixed; inset: 0; z-index: 90; background: rgba(242, 244, 246, .7); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); opacity: 0; pointer-events: none; visibility: hidden; }
html.is-entering .curtain { opacity: 1; visibility: visible; }

html.js [data-reveal="rise"], html.js [data-reveal="stagger"] > *, html.js [data-reveal="fig"] { visibility: hidden; }
html.js.reveal-ready [data-reveal="rise"], html.js.reveal-ready [data-reveal="stagger"] > *, html.js.reveal-ready [data-reveal="fig"] { visibility: visible; }
html.js .cs__title { visibility: hidden; }
html.js.reveal-ready .cs__title { visibility: visible; }

/* glass fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .gfolder__front, .viewer__panel { background: rgba(255,255,255,.82); }
}

/* ───────── responsive ───────── */
@media (max-width: 1000px) {
  .cs__body { grid-template-columns: minmax(0, 1fr); padding-top: 6vh; }
  .tl { position: sticky; top: calc(var(--head-h) - 6px); z-index: 20; margin: 0 0 5vh; transition: top .5s var(--e-out); }
  body.head-hidden .tl { top: 8px; }
  .tl__inner { padding: 8px; display: flex; flex-direction: column-reverse; gap: 6px; }
  .tl__inner > .label { display: none; }
  .tl__track { margin: 0 6px 2px; }
  .tl ol { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .tl ol::-webkit-scrollbar { display: none; }
  .tl a { white-space: nowrap; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; }
  .cs__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mark { font-size: 13px; }
  .site-nav a, .site-nav button { padding: 7px 10px; font-size: 13px; }
  .site-nav a[href$="#work"] { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--head-h) + 4vh); }
  .hero__art { max-width: 460px; width: 100%; justify-self: center; }
  .posters { grid-template-columns: 1fr; }
  .poster__link { aspect-ratio: 1 / 1.12; }
  .poster__text { right: 7%; }
  .poster .gfolder { left: 30%; top: 44%; }
  .cs__head { grid-template-columns: 1fr; }
  .cs__art { max-width: 420px; width: 100%; justify-self: center; }
  .figrow--2, .figrow--3 { grid-template-columns: 1fr; }
  .phones--4, .phones--2 { grid-template-columns: 1fr 1fr; }
  .palette { grid-template-columns: repeat(3, 1fr); }
  .mood__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .about__cols { grid-template-columns: 1fr; }
  .about__art { max-width: 420px; width: 100%; justify-self: center; margin-top: 30px; }
  .xp__item { grid-template-columns: 1fr; gap: 6px; }
  .viewer__actions .chip span { display: none; }
  .viewer__panel { width: 100vw; height: 100dvh; border-radius: 0; }
  .contact__list li { grid-template-columns: 1fr auto; }
  .contact__k { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(*) { animation: none !important; }
  html.js [data-reveal], html.js [data-reveal] > *, html.js .cs__title { visibility: visible !important; }
}
