:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --fg: #f4f2ee;
  --muted: #8d8a85;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #2f6bff;
  --accent: var(--blue);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gut: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--blue); color: #fff; }
.star { width: 1em; height: 1em; fill: var(--blue); flex: none; }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 24px; padding: 14px var(--gut); background: rgba(10,10,10,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-transform: uppercase; font-size: 13px; line-height: 1; letter-spacing: .02em; background: var(--blue); color: #fff; padding: 8px 14px 8px 10px; border-radius: 4px; }
.logo .star { width: 26px; height: 26px; fill: #fff; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.logo:hover .star { transform: rotate(180deg); }
.menu { display: flex; justify-content: center; gap: clamp(20px, 4vw, 64px); font-size: 13px; }
.menu-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.menu a { display: block; font-weight: 600; line-height: 1.55; opacity: .85; transition: color .2s, opacity .2s; }
.menu a:hover, .menu a.on { color: var(--blue); opacity: 1; }
.btn { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); background: #000; padding: 11px 18px; border-radius: 6px; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fg); transition: transform .3s; }
.menu-toggle span:first-child { top: 15px; } .menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px var(--gut) 60px; overflow: hidden; }
.hero-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255,255,255,.05) calc(12.5% - 1px) 12.5%); mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 75%); }
.hero-star { position: absolute; top: 18%; right: 12%; font-size: clamp(60px, 10vw, 150px); animation: spin 18s linear infinite; opacity: .95; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { position: relative; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.035em; font-size: clamp(60px, 13.5vw, 230px); }
.hero-title > span { display: block; overflow: hidden; padding: 0 .1em .22em; margin: 0 -.1em -.22em; }
.hero-title > span > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; animation: rise 1.2s cubic-bezier(.16,1,.3,1) .25s forwards; }
.hero-title .l2 { font-weight: 400; text-transform: none; font-size: 1.02em; line-height: .95; }
.hero-title .l2 > span { animation-delay: .38s; }
.hero-title .l3 > span { animation-delay: .51s; }
.hero-sub { position: relative; margin-top: 36px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--bg-2); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.ticker-track .star { font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 100px); padding: clamp(80px, 12vw, 180px) var(--gut); max-width: 1400px; margin: 0 auto; align-items: center; }
.intro-text p { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.45; color: #cfccc6; margin-bottom: 1.1em; max-width: 30em; }
.intro-text .lead { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; color: var(--fg); font-weight: 700; letter-spacing: -.02em; }
.intro-text a { color: var(--fg); font-weight: 700; border-bottom: 2px solid var(--blue); }
.intro-text a:hover { color: var(--blue); }
.arrow { display: inline-block; color: var(--blue); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- sections ---------- */
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 24px; padding: 0 var(--gut) clamp(32px, 4vw, 60px); border-top: 1px solid var(--line); padding-top: 28px; }
.section-head .num { font-size: 13px; font-weight: 700; color: var(--blue); align-self: start; }
.section-head h2 { font-size: clamp(44px, 8vw, 128px); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.035em; }
.section-head h2 em { text-transform: none; }
.section-note { grid-column: 2; margin-top: 16px; color: var(--muted); max-width: 28em; }
.work, .feeds, .more-work, .cv { padding-bottom: clamp(80px, 10vw, 160px); }

/* ---------- featured ---------- */
.feature { padding: 0 var(--gut); margin-bottom: clamp(72px, 9vw, 140px); }
.slider { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border-radius: 6px; overflow: hidden; cursor: pointer; }
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.slides img.on { opacity: 1; }
.bars { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.bars button { flex: 1; height: 14px; display: flex; align-items: center; }
.bars button::before { content: ""; flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; }
.bars i { position: absolute; }
.bars button { position: relative; }
.bars button i { left: 0; top: 50%; margin-top: -1.5px; height: 3px; width: 0; background: #fff; border-radius: 2px; }
.bars button.on i { animation: fill 4.5s linear forwards; }
@keyframes fill { to { width: 100%; } }
.feature-meta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); padding-top: 26px; }
.feature-meta h3 { font-size: clamp(28px, 3.4vw, 50px); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; }
.feature-meta h3 strong { font-weight: 800; }
.feature-meta h3 a:hover strong { color: var(--accent); }
.feature-side p { color: #cfccc6; max-width: 34em; }
.tags { margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.more { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; border-bottom: 2px solid var(--accent); }
.more span { transition: transform .25s; }
a:hover .more span, .more:hover span { transform: translateX(6px); }

/* ---------- feeds ---------- */
.feed-row { display: grid; grid-template-columns: minmax(240px, 22%) 1fr; gap: 28px; align-items: center; padding: 28px var(--gut); border-top: 1px solid var(--line); transition: background .3s; }
.feed-row:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.feed-count { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 700; filter: brightness(1.4); }
.feed-name h3 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; margin: 8px 0 10px; }
.feed-name p { color: var(--muted); font-size: 15px; }
.feed-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.feed-track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.feed-track.rev { animation-direction: reverse; }
.feed-row:hover .feed-track { animation-play-state: paused; }
.feed-track img { height: clamp(220px, 26vw, 360px); width: auto; border-radius: 4px; background: var(--bg-2); }

/* ---------- more work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); padding: 0 var(--gut); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card h3 { margin-top: 16px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- cv ---------- */
.cv-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: clamp(24px, 4vw, 64px); padding: 0 var(--gut); }
.cv h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 16px; }
.cv ul { list-style: none; }
.cv li { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cv .exp li { display: grid; grid-template-columns: 80px 1fr; gap: 0 12px; }
.cv .exp li span:not(.when) { grid-column: 2; font-size: 14px; color: var(--muted); font-weight: 400; }
.cv .when { color: var(--muted); font-size: 14px; padding-top: 4px; }

/* ---------- footer ---------- */
.site-foot { position: relative; text-align: center; padding: 0 var(--gut) 40px; border-top: 1px solid var(--line); }
.foot-line { width: 1px; height: 120px; background: linear-gradient(transparent, var(--blue)); margin: 0 auto 24px; }
.logo.big { background: none; padding: 0; font-size: 64px; }
.logo.big .star { width: 64px; height: 64px; fill: var(--blue); animation: spin 18s linear infinite; }
.foot-call { margin-top: 28px; font-size: clamp(40px, 7vw, 110px); font-weight: 900; text-transform: uppercase; line-height: .88; letter-spacing: -.035em; }
.foot-call em { text-transform: none; color: var(--blue); }
.foot-mail { display: inline-block; margin-top: 34px; font-size: clamp(18px, 2.4vw, 32px); font-weight: 700; border-bottom: 2px solid var(--blue); word-break: break-all; }
.foot-mail:hover { color: var(--blue); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
.foot-sign { margin-top: 90px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.foot-copy { margin-top: 40px; font-size: 12px; color: var(--muted); }

/* ---------- project page ---------- */
.p-head { padding: 150px var(--gut) clamp(40px, 5vw, 70px); text-align: center; }
.back { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.back:hover { color: var(--fg); }
.p-cat { margin-top: 40px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 700; filter: brightness(1.3); }
.p-head h1 { margin-top: 14px; font-size: clamp(52px, 11vw, 190px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .86; }
.p-tag { margin-top: 20px; font-size: clamp(22px, 2.6vw, 38px); color: #cfccc6; }
.p-hero { padding: 0 var(--gut); }
.p-hero .f-item { width: 100%; border-radius: 6px; overflow: hidden; }
.p-hero img { width: 100%; max-height: 92vh; object-fit: cover; }
.feed .p-hero { display: none; }
.p-info { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 110px); padding: clamp(56px, 7vw, 110px) var(--gut); max-width: 1400px; margin: 0 auto; }
.p-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; align-content: start; }
.p-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.p-meta dd { font-weight: 600; font-size: 15px; line-height: 1.5; }
.p-text p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: #dcd9d3; margin-bottom: 1em; }
.p-text p:first-child { font-size: clamp(23px, 2.2vw, 32px); line-height: 1.3; color: var(--fg); }
.divider { display: flex; justify-content: center; padding-bottom: clamp(40px, 5vw, 70px); }
.divider .star { width: 26px; height: 26px; fill: var(--accent); }

.flow { padding: 0 var(--gut); display: grid; gap: clamp(10px, 1.2vw, 18px); }
.row { display: grid; gap: clamp(10px, 1.2vw, 18px); }
.row.r2 { grid-template-columns: 1fr 1fr; }
.row.r3 { grid-template-columns: 1fr 1fr 1fr; }
.f-item { display: block; width: 100%; background: var(--bg-2); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.f-item img { width: 100%; height: 100%; object-fit: cover; }

.masonry { columns: 4 260px; column-gap: 14px; padding: 0 var(--gut); }
.m-item { display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; background: var(--bg-2); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.m-item:hover img { transform: scale(1.03); }

.next { display: block; margin: clamp(80px, 10vw, 160px) var(--gut) 0; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); text-align: center; }
.next span { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.next strong { display: block; margin-top: 10px; font-size: clamp(44px, 9vw, 150px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .9; transition: color .3s; }
.next i { font-style: normal; display: inline-block; transition: transform .3s; }
.next:hover strong { color: var(--accent); filter: brightness(1.3); }
.next:hover i { transform: translateX(14px); }

/* ---------- lightbox ---------- */
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.96); display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; cursor: pointer; border-radius: 3px; }
#lightbox button { position: absolute; font-size: 28px; width: 56px; height: 56px; border-radius: 50%; color: #fff; transition: background .2s; }
#lightbox button:hover { background: rgba(255,255,255,.1); }
.lb-x { top: 14px; right: 14px; font-size: 40px !important; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; color: var(--muted); }

/* ---------- reveal ---------- */


/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-head { grid-template-columns: auto 1fr auto; align-items: center; }
  .btn { display: none; }
  .menu-toggle { display: block; grid-column: 3; }
  .menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 28px; padding: 90px var(--gut) 40px; background: var(--bg); font-size: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .menu-open .menu { opacity: 1; pointer-events: auto; }
  .menu-label { font-size: 11px; }
  .intro, .feature-meta, .p-info { grid-template-columns: 1fr; }
    .feed-row { grid-template-columns: 1fr; gap: 18px; }
  .cv-grid { grid-template-columns: 1fr; }
  .hero-star { top: 14%; right: 6%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .row.r3 { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; column-gap: 8px; }
  .m-item { margin-bottom: 8px; }
  .slider { aspect-ratio: 5 / 3; background: #050505; }
  .slides img { object-fit: contain; }
  .bars { bottom: 8px; }
  .p-meta { grid-template-columns: 1fr 1fr; }
  #lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb-prev, .lb-next { bottom: 6px; top: auto; }
  .lb-x { top: 6px; right: 6px; }
}

/* ================= motion & new pieces ================= */
body { opacity: 0; transition: opacity .6s ease; }
body.ready { opacity: 1; }
body.leaving { opacity: 0; transition-duration: .4s; }
body.lb-open { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1) var(--rd, 0s), transform 1.1s cubic-bezier(.16,1,.3,1) var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(18% 6% 0 6% round 10px); transition: clip-path 1.4s cubic-bezier(.16,1,.3,1) var(--rd, 0s); }
.reveal-img.in { clip-path: inset(0 0 0 0 round 6px); }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .14em .24em; margin: -.04em -.14em -.24em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.split.in .w > span { transform: none; }
.pan { will-change: transform; transform: scale(1.14); }
.card-img, .f-item, .p-hero .f-item { overflow: hidden; }

.hero { --hy: 0px; }
.hero-lines { transform: translateY(calc(var(--hy) * .5)); }
.hero-star { transition: translate .6s cubic-bezier(.16,1,.3,1); }
.hero-star.small { top: auto; bottom: 22%; right: auto; left: 10%; font-size: clamp(28px, 4vw, 60px); animation-direction: reverse; animation-duration: 12s; }
.hero-title { transition: translate .8s cubic-bezier(.16,1,.3,1); }
.hero-sub { opacity: 0; animation: fadeup 1s ease .9s forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 60px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--blue); animation: cue 2s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.ticker-track { will-change: transform; }

/* intro fan collage */
.fan { position: relative; height: clamp(420px, 44vw, 620px); }
.fan-card { position: absolute; width: 46%; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: transform 1s cubic-bezier(.16,1,.3,1), translate .2s linear; }
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card.c0 { left: 2%; top: 12%; transform: rotate(-9deg); z-index: 1; }
.fan-card.c1 { left: 28%; top: 0; transform: rotate(2deg); z-index: 3; }
.fan-card.c2 { left: 52%; top: 16%; transform: rotate(10deg); z-index: 2; }
.fan:hover .c0 { transform: rotate(-14deg) translateX(-30px); }
.fan:hover .c1 { transform: rotate(0) translateY(-20px) scale(1.04); }
.fan:hover .c2 { transform: rotate(15deg) translateX(30px); }
.fan-star { position: absolute; right: 4%; bottom: 4%; z-index: 4; font-size: 70px; }
.fan-star .star { animation: spin 14s linear infinite; }

/* sideways panning strip (Octopus) */
.pan-feature { padding: 0; }
.hpan { position: relative; }
.hpan-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hpan-track { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.hpan-item { height: clamp(220px, 46vh, 520px); flex: none; border-radius: 6px; overflow: hidden; background: var(--bg-2); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.hpan-item:hover { transform: translateY(-10px); }
.hpan-item img { width: 100%; height: 100%; object-fit: cover; }
.hpan-intro { width: clamp(280px, 30vw, 440px); flex: none; padding-right: 20px; }
.hpan-intro h3 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; margin: 12px 0 14px; }
.hpan-intro p { color: #cfccc6; font-size: 18px; }
.hpan-progress { position: absolute; left: var(--gut); right: var(--gut); bottom: 8vh; height: 2px; background: var(--line); }
.hpan-progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* experience "now" */
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #fff; background: var(--blue); padding: 3px 8px 3px 7px; border-radius: 99px; vertical-align: middle; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.cv .exp li { grid-template-columns: 120px 1fr; }

/* campaign groups on feed pages */
.chips { position: sticky; top: 74px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gut); margin-bottom: 30px; background: rgba(10,10,10,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: none; }
.chips a { flex: none; font-size: 13px; font-weight: 700; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; transition: background .25s, border-color .25s; }
.chips a:hover { background: var(--accent); border-color: var(--accent); }
.chips sup { font-weight: 500; opacity: .6; }
.group { padding-bottom: clamp(48px, 6vw, 90px); scroll-margin-top: 140px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 0 var(--gut) 24px; }
.group-head h2 { font-size: clamp(36px, 5.5vw, 84px); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
.group-head p { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.masonry .m-item:nth-child(4n+2) { --rd: .06s; } .masonry .m-item:nth-child(4n+3) { --rd: .12s; } .masonry .m-item:nth-child(4n) { --rd: .18s; }

/* project title + next */
.p-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .1em .2em; margin: -.04em -.1em -.2em; }
.p-title .w > span { display: inline-block; transform: translateY(110%); animation: rise 1.2s cubic-bezier(.16,1,.3,1) .2s forwards; }
.p-title .w:nth-child(2) > span { animation-delay: .3s; }
.next { position: relative; overflow: hidden; isolation: isolate; }
.next-peek { position: absolute; left: 50%; top: 50%; width: 260px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; transform: translate(-50%, -30%) rotate(-6deg) scale(.6); opacity: 0; transition: opacity .5s, transform .8s cubic-bezier(.16,1,.3,1); pointer-events: none; z-index: -1; }
.next:hover .next-peek { opacity: .55; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }

/* lightbox image swap */
#lightbox img.swap { animation: lbswap .5s cubic-bezier(.16,1,.3,1); }
@keyframes lbswap { from { opacity: 0; transform: translateX(var(--dx, 40px)) scale(.97); } }
#lightbox.open { animation: lbin .35s ease; }
@keyframes lbin { from { opacity: 0; } }

/* custom cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; }
.cursor span { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--blue); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; transition: width .4s cubic-bezier(.16,1,.3,1), height .4s cubic-bezier(.16,1,.3,1), margin .4s cubic-bezier(.16,1,.3,1), color .3s, opacity .3s, background .3s; }
.cursor.link span { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(47,107,255,.35); }
.cursor.big span { width: 86px; height: 86px; margin: -43px 0 0 -43px; color: #fff; }
.cursor.gone span, .lb-open .cursor span { opacity: 0; }
.btn, .more, .magnet, .logo { transition: translate .4s cubic-bezier(.16,1,.3,1), background .2s, border-color .2s, color .2s; }

@media (max-width: 900px) {
  .fan { height: 420px; }
  .hpan-intro { width: 78vw; }
  .hpan-item { height: 40vh; }
  .chips { top: 64px; }
  .cv .exp li { grid-template-columns: 1fr; }
  .cv .exp li span:not(.when) { grid-column: 1; }
}

/* ===== round 3 ===== */
/* Octopus drifting strip */
.oct .oct-head { padding: 0 0 28px; }
.oct-strip { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; margin: 0 calc(var(--gut) * -1); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.oct-strip.grabbing { cursor: grabbing; }
.oct-track { display: flex; gap: clamp(12px, 1.5vw, 22px); width: max-content; will-change: transform; padding: 6px 0; }
.oct-item { height: clamp(200px, 30vw, 420px); flex: none; border-radius: 6px; overflow: hidden; background: var(--bg-2); transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s; }
.oct-item:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(74,127,224,.25); }
.oct-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* playful stars */
.hero-star, .fan-star, .logo.big { cursor: pointer; }
.hero-star .star, .fan-star .star { transition: fill .3s; }
.hero-star:hover .star, .fan-star:hover .star { fill: #fff; }
.pop { animation: pop .6s cubic-bezier(.34,1.8,.5,1); }
@keyframes pop { 30% { scale: 1.45; } }
.spark { position: fixed; z-index: 150; pointer-events: none; margin: -9px 0 0 -9px; animation: spark .95s cubic-bezier(.16,1,.3,1) forwards; }
.spark .star { width: 100%; height: 100%; }
@keyframes spark { to { transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(.2); opacity: 0; } }
.hero-title .ch { display: inline-block; font-style: inherit; transition: color .4s; }
.hero-title .ch.jump { animation: jump .7s cubic-bezier(.34,1.6,.5,1); }
.hero-title .ch.blue { color: var(--blue); }
@keyframes jump { 35% { transform: translateY(-14%) rotate(-6deg); } }
.hero-title { cursor: default; }
.menu a .tw { display: inline-block; font-weight: inherit; color: var(--blue); transition: transform .6s cubic-bezier(.34,1.6,.5,1); }
.menu a:hover .tw { transform: rotate(180deg) scale(1.4); }
.ticker .star { transition: none; }

/* intro cards 3D tilt */
.fan { perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.fan > * { transform-style: preserve-3d; }
.fan { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; }
.fan-card.c1 { box-shadow: 0 40px 90px rgba(242,102,40,.25); }
.hero-star, .hero-star.small { animation: none; }

/* ===== website preview ===== */
.live-btn { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0 22px; padding: 11px 18px 11px 14px; border-radius: 99px; background: var(--accent); color: #111; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transition: translate .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, transform .4s; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: glow 2.4s ease-in-out infinite; }
.live-btn:hover { transform: scale(1.05); }
.p-head .live-btn { margin: 28px 0 0; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #111; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #111; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 10px transparent, 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); } }

#sitebox { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
#sitebox.open { pointer-events: auto; }
.sb-back { position: absolute; inset: 0; background: rgba(5,5,5,.9); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
#sitebox.open .sb-back { opacity: 1; }
.sb-win { position: absolute; inset: clamp(12px, 3vw, 48px); display: flex; flex-direction: column; background: #111; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7);
  clip-path: circle(0px at calc(var(--ox) - clamp(12px, 3vw, 48px)) calc(var(--oy) - clamp(12px, 3vw, 48px))); transition: clip-path .9s cubic-bezier(.76,0,.24,1); }
#sitebox.open .sb-win { clip-path: circle(150% at calc(var(--ox) - clamp(12px, 3vw, 48px)) calc(var(--oy) - clamp(12px, 3vw, 48px))); }
.sb-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.sb-dots { display: flex; gap: 6px; } .sb-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .sb-dots i:nth-child(2) { background: #febc2e; } .sb-dots i:nth-child(3) { background: #28c840; }
.sb-url { flex: 1; min-width: 0; text-align: center; color: var(--muted); background: #1b1b1b; border-radius: 6px; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-modes { display: flex; background: #1b1b1b; border-radius: 6px; padding: 3px; }
.sb-modes button { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sb-modes button.on { background: var(--accent); color: #111; }
.sb-open { font-weight: 700; white-space: nowrap; } .sb-open:hover { color: var(--accent); }
.sb-x { font-size: 28px; line-height: 1; width: 34px; height: 34px; border-radius: 50%; } .sb-x:hover { background: rgba(255,255,255,.1); }
.sb-stage { position: relative; flex: 1; display: flex; justify-content: center; background: #0d0d0d; }
.sb-stage iframe { width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s .2s, width .7s cubic-bezier(.76,0,.24,1); }
#sitebox.loaded iframe { opacity: 1; }
#sitebox.mob .sb-stage iframe { width: min(430px, 100%); border-inline: 1px solid var(--line); }
.sb-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; transition: opacity .4s; }
.sb-loading .star { width: 46px; height: 46px; fill: var(--accent); animation: spin 1.4s linear infinite; }
#sitebox.loaded .sb-loading { opacity: 0; }
@media (max-width: 700px) { .sb-modes, .sb-url { display: none; } .live-btn { margin-left: 0; } }

/* drifting strips under Frenzy & Decode */
.oct-strip.small { margin-top: clamp(12px, 1.5vw, 20px); }
.oct-strip.small .oct-item { height: clamp(120px, 14vw, 200px); }

/* hero letters: quick to blue, slow fade back to white */
.hero-title .ch { transition: color 1.2s ease; }
.hero-title .ch.blue { transition-duration: .25s; }

/* intro cards on phones: no scroll drift, three cards fanned evenly */
@media (max-width: 900px) {
  .fan { height: min(118vw, 460px); margin-top: 8px; }
  .fan-card, .fan-star { translate: none !important; }
  .fan-card { width: 46%; }
  .fan-card.c0 { left: 0; top: 14%; }
  .fan-card.c1 { left: 27%; top: 2%; }
  .fan-card.c2 { left: 54%; top: 16%; }
  .fan-star { right: 2%; bottom: 0; font-size: 54px; }
}

/* ===== phone intro deck ===== */
.deck-hint { display: none; }
@media (max-width: 900px) {
  .fan.deck { height: min(128vw, 500px); transform: none !important; perspective: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .fan.deck .fan-card { left: 50% !important; top: 46% !important; width: min(60vw, 290px); translate: none !important;
    transform: translate(-50%, -50%) var(--t, var(--pt)) !important; transition: transform .6s cubic-bezier(.2,.9,.25,1.15), box-shadow .6s, filter .6s; cursor: grab; }
  .fan.deck .fan-card img { pointer-events: none; }
  .fan.deck .p0 { --pt: rotate(-2deg); z-index: 4; box-shadow: 0 30px 70px rgba(0,0,0,.7); }
  .fan.deck .p1 { --pt: translateX(22%) translateY(3%) rotate(8deg) scale(.9); z-index: 3; filter: brightness(.7); }
  .fan.deck .p2 { --pt: translateX(-22%) translateY(4%) rotate(-10deg) scale(.84); z-index: 2; filter: brightness(.55); }
  .fan.deck .p3 { --pt: scale(.8); z-index: 1; opacity: 0; }
  .fan.deck .fan-card.dragging { transition: none; cursor: grabbing; }
  .fan.deck .fan-card.flying { transition: transform .3s cubic-bezier(.5,0,.75,0); }
  .fan.deck .fan-star { right: 4%; bottom: 14%; z-index: 5; }
  .fan.deck .deck-hint { display: flex; position: absolute; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
  .deck-dots { display: flex; gap: 6px; }
  .deck-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .4s, background .4s; }
  .deck-dots i.on { width: 20px; background: var(--blue); }
}

/* extra deck cards appear only in the phone deck */
.fan:not(.deck) .fan-card.extra { display: none; }

/* balanced hero: line sizes are set by fitHero(); keep the rhythm even */
.hero-title { text-align: center; }
.hero-title .l1, .hero-title .l3 { line-height: .84; letter-spacing: -.04em; }
.hero-title .l2 { line-height: 1; margin-block: .02em -.04em; letter-spacing: -.01em; }
.hero-title > span { white-space: nowrap; }

/* contact icon buttons */
.contact-icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.ci { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border: 1px solid var(--line); border-radius: 99px; text-align: left; transition: border-color .3s, background .3s, translate .4s cubic-bezier(.16,1,.3,1); }
.ci-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1a1a1a; color: var(--fg); transition: background .3s, color .3s, transform .5s cubic-bezier(.34,1.6,.5,1); }
.ci-ico svg { width: 22px; height: 22px; }
.ci-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ci-txt b { font-size: 14px; font-weight: 800; }
.ci-txt small { font-size: 12px; color: var(--muted); }
.ci:hover { border-color: transparent; background: #161616; }
.ci:hover .ci-ico { transform: rotate(-10deg) scale(1.08); color: #fff; }
.ci-mail:hover .ci-ico { background: var(--blue); }
.ci-ig:hover .ci-ico { background: radial-gradient(circle at 30% 110%, #fdc468 0%, #f7792d 30%, #e1306c 60%, #833ab4 100%); }
.ci-wa:hover .ci-ico { background: #25d366; }
@media (max-width: 600px) { .contact-icons { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; } }

/* ===== index menu (phone + computer) ===== */
.head-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.menu-toggle { display: none !important; }
.idx-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 99px; background: #000; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; transition: background .3s, border-color .3s, color .3s; }
.idx-btn:hover { background: var(--blue); border-color: var(--blue); }
.idx-word { display: grid; height: 1.3em; overflow: hidden; }
.idx-word i { font-style: normal; grid-area: 1 / 1; transition: transform .5s cubic-bezier(.76,0,.24,1); }
.idx-word i + i { transform: translateY(110%); }
.idx-open .idx-word i:first-child { transform: translateY(-110%); }
.idx-open .idx-word i + i { transform: none; }
.idx-burger { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); transition: background .3s; }
.idx-burger b { position: absolute; left: 7px; right: 7px; height: 2px; border-radius: 2px; background: #000; transition: transform .5s cubic-bezier(.76,0,.24,1), opacity .3s, right .3s; }
.idx-burger b:nth-child(1) { top: 8px; } .idx-burger b:nth-child(2) { top: 12px; right: 11px; } .idx-burger b:nth-child(3) { top: 16px; }
.idx-btn:hover .idx-burger b:nth-child(2) { right: 7px; }
.idx-open .idx-burger b:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.idx-open .idx-burger b:nth-child(2) { opacity: 0; transform: scaleX(0); }
.idx-open .idx-burger b:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
.idx-open .idx-btn { background: var(--fg); color: #000; border-color: var(--fg); }
.idx-open .idx-btn .idx-burger { background: #000; }
.idx-open .idx-btn .idx-burger b { background: var(--fg); }

.idx { position: fixed; inset: 0; z-index: 45; background: #0d0d0d; overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at var(--ox, 95%) var(--oy, 30px)); visibility: hidden; transition: clip-path .8s cubic-bezier(.76,0,.24,1), visibility 0s .8s; }
.idx-open .idx { clip-path: circle(150% at var(--ox, 95%) var(--oy, 30px)); visibility: visible; transition: clip-path .9s cubic-bezier(.76,0,.24,1), visibility 0s; }
.idx-open { overflow: hidden; }
.site-head { z-index: 50; }
.idx-open .site-head { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head .menu, .site-head .btn { transition: opacity .3s; }
.idx-open .site-head .menu, .idx-open .site-head .btn { opacity: 0; pointer-events: none; }
.idx-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 100px); min-height: 100%; padding: calc(90px + env(safe-area-inset-top, 0px)) var(--gut) 40px; }
.idx-label { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.idx-list { display: flex; flex-direction: column; }
.idx-item { position: relative; display: grid; grid-template-columns: 44px auto 1fr; align-items: baseline; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s cubic-bezier(.16,1,.3,1), color .3s, padding .4s cubic-bezier(.16,1,.3,1); }
.idx-open .idx-item, .idx-open .idx-sections a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .045s), calc(.25s + var(--i) * .045s), 0s, 0s; }
.idx-num { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.idx-name { font-size: clamp(30px, 4.6vw, 68px); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; grid-column: 2 / 3; }
.idx-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; justify-self: end; align-self: center; text-align: right; }
.idx-thumb { display: none; }
.idx-item:hover, .idx-item.on { color: var(--accent); }
.idx-item:hover { padding-left: 14px; }
.idx-item.on .idx-num::after { content: " ●"; color: var(--accent); }
.idx-side { display: flex; flex-direction: column; gap: 8px; }
.idx-sections { display: flex; flex-direction: column; margin-bottom: 30px; }
.idx-sections a { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s cubic-bezier(.16,1,.3,1), color .3s; }
.idx-sections a:hover { color: var(--blue); }
.idx-contacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.idx-contacts a { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.idx-contacts .ci-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1a1a1a; transition: background .3s, transform .5s cubic-bezier(.34,1.6,.5,1); }
.idx-contacts .ci-ico svg { width: 18px; height: 18px; }
.idx-contacts a:hover .ci-ico { color: #fff; transform: rotate(-10deg); }
.idx-contacts .ci-mail:hover .ci-ico { background: var(--blue); }
.idx-contacts .ci-ig:hover .ci-ico { background: radial-gradient(circle at 30% 110%, #fdc468 0%, #f7792d 30%, #e1306c 60%, #833ab4 100%); }
.idx-contacts .ci-wa:hover .ci-ico { background: #25d366; }
.idx-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.idx-foot .star { width: 16px; height: 16px; }
.idx-preview { position: fixed; left: 0; top: 0; width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; pointer-events: none; z-index: 3;
  opacity: 0; scale: .7; transition: opacity .3s, scale .4s cubic-bezier(.34,1.6,.5,1); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.idx-preview.show { opacity: 1; scale: 1; }

@media (max-width: 900px) {
  .site-head .menu { display: none !important; }
  .head-right .btn { display: none; }
  .idx-inner { grid-template-columns: 1fr; padding-top: calc(84px + env(safe-area-inset-top, 0px)); gap: 36px; }
  .idx-item { grid-template-columns: 26px 54px 1fr; align-items: center; gap: 2px 12px; padding: 10px 0; }
  .idx-thumb { display: block; grid-row: 1 / 3; grid-column: 2; width: 54px; height: 54px; object-fit: cover; border-radius: 6px; transition: transform .4s; }
  .idx-num { grid-row: 1 / 3; }
  .idx-name { grid-column: 3; font-size: clamp(24px, 7vw, 34px); }
  .idx-cat { grid-column: 3; justify-self: start; text-align: left; font-size: 10px; }
  .idx-item:hover { padding-left: 0; }
  .idx-item:active .idx-thumb { transform: scale(.92) rotate(-4deg); }
  .idx-preview { display: none; }
}

/* ===== index menu v2: contact first, calmer type, small hovers ===== */
.idx-inner { grid-template-columns: minmax(280px, 1fr) 1.5fr; align-items: start; padding-bottom: 24px; }
.idx-contact { display: flex; flex-direction: column; }
.idx-hello { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.idx-hello em { color: var(--blue); }
.idx-contacts { gap: 8px; margin-bottom: 34px; }
.idx-contacts a { gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px;
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s; }
.idx-open .idx-contacts a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s), calc(.25s + var(--i) * .06s), 0s, 0s; }
.idx-contacts a:hover { background: #161616; border-color: transparent; }
.idx-ct { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.idx-ct b { font-size: 14px; }
.idx-ct small { font-size: 12px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx-go { color: var(--muted); transition: transform .3s, color .3s; }
.idx-contacts a:hover .idx-go { transform: translate(3px, -3px); color: var(--fg); }
.idx-sections { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.idx-sections a { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }

.idx-item { grid-template-columns: 34px 1fr auto 18px; align-items: center; gap: 4px 14px; padding: 12px 0; }
.idx-name { font-size: clamp(18px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: center; grid-column: 2; }
.idx-cat { font-size: 11px; grid-column: 3; }
.idx-arrow { grid-column: 4; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
/* small hover: a tiny thumbnail slides open beside the name, an arrow appears */
.idx-thumb { display: inline-block !important; width: 0; height: 1.4em; margin-right: 0; border-radius: 4px; object-fit: cover; opacity: 0;
  transition: width .45s cubic-bezier(.16,1,.3,1), margin .45s cubic-bezier(.16,1,.3,1), opacity .3s; }
.idx-item:hover .idx-thumb, .idx-item:focus-visible .idx-thumb { width: 1.9em; margin-right: .45em; opacity: 1; }
.idx-item:hover .idx-arrow, .idx-item:focus-visible .idx-arrow { opacity: 1; transform: none; }
.idx-item:hover { padding-left: 0; color: var(--accent); }
.idx-preview { display: none !important; }
.idx-foot { position: static; padding: 0 var(--gut) 28px; margin: 0; }

@media (max-width: 900px) {
  .idx-inner { grid-template-columns: 1fr; gap: 30px; }
  .idx-hello { font-size: 26px; }
  .idx-item { grid-template-columns: 26px 1fr 18px; grid-template-rows: auto auto; gap: 2px 12px; padding: 10px 0; }
  .idx-num { grid-row: 1 / 3; }
  .idx-name { grid-column: 2; font-size: 20px; }
  .idx-cat { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; font-size: 10px; }
  .idx-arrow { grid-column: 3; grid-row: 1 / 3; opacity: .5; transform: none; }
  /* phones: the small thumbnail is always visible */
  .idx-thumb { width: 1.9em; margin-right: .45em; opacity: 1; }
  .idx-item:active { background: #151515; }
}

/* the menu scrolls on its own (smooth-scroll is paused while it is open) */
.idx { -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.idx-open .site-head { background: linear-gradient(#0d0d0d 72%, rgba(13,13,13,0)); }


/* ===== intro deck v2 (phone + computer) ===== */
.fan.stack { transform: none !important; perspective: none; height: clamp(460px, 46vw, 620px); touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.fan.stack .fan-card { left: 50% !important; top: 45% !important; width: clamp(230px, 24vw, 330px) !important; translate: none !important; transition: none !important;
  will-change: transform; cursor: grab; box-shadow: 0 26px 60px rgba(0,0,0,.55); touch-action: pan-y; }
.fan.stack .fan-card.extra { display: block; }
.fan.stack .fan-card.grab { cursor: grabbing; }
.fan.stack .fan-card img { pointer-events: none; -webkit-user-drag: none; }
.fan.stack .shade { position: absolute; inset: 0; background: #0a0a0a; opacity: 0; pointer-events: none; }
.fan.stack .fan-star { translate: none !important; right: 8%; bottom: 14%; z-index: 30; }
.stack-hint { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.stack-hint .deck-dots { display: flex; gap: 6px; }
.stack-hint .deck-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .4s, background .4s; }
.stack-hint .deck-dots i.on { width: 20px; background: var(--blue); }
.fan.stack:focus-visible { box-shadow: 0 0 0 2px var(--blue); border-radius: 12px; }
@media (max-width: 900px) {
  .fan.stack { height: min(130vw, 510px); }
  .fan.stack .fan-card { width: min(60vw, 290px) !important; }
  .fan.stack .fan-star { right: 4%; bottom: 16%; }
}

/* tools with app icons */
.cv ul.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cv ul.tools li { display: flex; align-items: center; gap: 12px; font-size: clamp(15px, 1.25vw, 18px); }
.tool-ico { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: -.01em; background: #1a1a1a; transition: transform .4s cubic-bezier(.34,1.6,.5,1); }
.tool-ico svg { width: 20px; height: 20px; }
.tool-figma { background: #1e1e1e; }
.tool-figma svg { width: 14px; height: 21px; }
.tool-resolve { background: #161b22; }
.cv ul.tools li:hover .tool-ico { transform: rotate(-8deg) scale(1.1); }
@media (max-width: 380px) { .cv ul.tools { grid-template-columns: 1fr; } }

/* menu section links: clear tap feedback */
.idx-sections a { position: relative; padding: 2px 0; }
.idx-sections a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.idx-sections a:hover::after, .idx-sections a.tapped::after { transform: scaleX(1); }
.idx-sections a.tapped { color: var(--blue); }

/* a lone card in "More work" sits at a comfortable width instead of half the grid */
.cards:has(> .card:only-child) { grid-template-columns: minmax(0, 760px); }
