/* ismail.ozyurt.dev — v2
   Dark room for the work, paper tickets for each project.
   Fonts: Archivo + Inter (SIL OFL, self-hosted in assets/fonts). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/archivo-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/archivo-latin-ext-wght-normal.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: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/archivo-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/archivo-latin-wght-normal.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-ext-wght-normal.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-wght-normal.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; }

:root {
  --ink: #07080B; --ink-2: #0B0C10; --panel: #0D1016; --panel-2: #0A0C11; --raise: #1A1F29;
  --line: #1E232C; --line-2: #232934; --line-3: #2A303B; --line-4: #3A414D;
  --text: #EDEFF2; --text-2: #C3CAD6; --text-3: #9AA3B2; --text-4: #D5DAE3;
  --paper: #F4F4F0; --paper-ink: #0B0C10; --paper-2: #3D414A;
  --pink: #FF2E7E; --blue: #2B50F0; --lime: #D9FF4A; --rose: #FF6FA5;
  --disp: "Archivo", "Arial Black", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(16px, 3.4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --c: var(--lime);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, ol, ul, dl, dd { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 12px 16px; border-radius: 10px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.disp { font-family: var(--disp); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .88; }
.kicker { font-weight: 600; font-size: 13px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.lime { color: var(--lime); }
.rose { color: var(--rose); }
kbd { display: inline-block; min-width: 24px; padding: 0 6px; border: 1px solid var(--line-4); border-bottom-width: 2px; border-radius: 6px; font: 600 12px/1.7 var(--sans); text-align: center; color: var(--text); }

/* ---------- colour strip & header ---------- */

.strip { display: flex; height: 6px; }
.strip span { flex: 1; }
.strip-rail { height: 10px; align-items: flex-start; }
.strip-rail span { height: 5px; transition: height .3s var(--ease); }
.strip-rail span.on { height: 10px; }

.top { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding-top: 10px; text-decoration: none; }
.brand-name { font-family: var(--disp); font-weight: 900; font-size: 19px; letter-spacing: -.02em; text-transform: uppercase; }
.brand-sub { font-weight: 600; font-size: 14px; color: var(--text-3); }
.brand:hover .brand-name { color: var(--lime); }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--lime); }
.top-nav .pill-light { padding: 0 18px; background: var(--text); color: var(--ink); font-weight: 700; }
.top-nav .pill-light:hover { background: var(--lime); color: var(--ink); }

.rail { order: 3; display: flex; gap: 2px; width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail a { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 44px; border-radius: 10px; font-family: var(--disp); font-weight: 800; font-size: 14px; color: var(--text-3); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.rail a:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rc); }
.rail a[aria-current="page"] { background: var(--rc); color: var(--ink); }
@media (min-width: 1120px) { .rail { order: 0; width: auto; overflow: visible; } }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-light { background: var(--text); color: var(--ink); }
.btn-light:hover { background: var(--lime); }
.btn-ghost { border-color: var(--text); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-c { background: var(--c); color: var(--ink); }
.btn-sm { min-height: 48px; padding: 0 20px; border-color: var(--line-4); color: var(--text); font-weight: 600; font-size: 15px; }
.btn-sm:hover { border-color: var(--text); }
.btn-ink { background: var(--paper-ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue); }
.btn-ink-ghost { border-color: var(--paper-ink); color: var(--paper-ink); font-weight: 600; }

/* ---------- headline plates (pink & blue copies, slightly out of register) ---------- */

.plates { --px: 6px; --py: 5px; text-shadow: var(--px) var(--py) 0 rgba(255, 46, 126, .8), calc(var(--px) * -1) calc(var(--py) * -.8) 0 rgba(43, 80, 240, .8); transition: text-shadow .6s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .js .plates { animation: register 1.15s var(--ease) .1s backwards; }
  .hero-title:hover { --px: 11px; --py: 8px; }
}
@keyframes register {
  0% { text-shadow: 38px 24px 0 rgba(255, 46, 126, 0), -38px -20px 0 rgba(43, 80, 240, 0); }
  35% { text-shadow: 22px 15px 0 rgba(255, 46, 126, .85), -22px -12px 0 rgba(43, 80, 240, .85); }
}
@keyframes lift { from { opacity: 0; translate: 0 44px; } }

/* ---------- index: hero ---------- */

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; container-type: inline-size; }
.hero-title { font-size: clamp(56px, 9vw, 148px); line-height: .84; letter-spacing: -.05em; }
@supports (font-size: 1cqi) { .hero-title { font-size: clamp(48px, min(9vw, 96cqi / var(--tw, 4.8)), 148px); } }
.lede { max-width: 580px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); }
.hero-art { flex: 1 1 480px; min-width: 0; position: relative; height: clamp(360px, 42vw, 600px); }
.hb { position: absolute; width: 38%; border-radius: 26px; background: var(--c); display: flex; align-items: center; justify-content: center; }
.hb img { height: 84%; width: auto; max-width: none; aspect-ratio: 600 / 1300; object-fit: cover; border-radius: clamp(16px, 2vw, 26px); border: clamp(4px, .5vw, 7px) solid #000; }
.hb-1 { left: 0; top: 10%; height: 80%; }
.hb-1 img { transform: rotate(-5deg); }
.hb-2 { left: 31%; top: 0; height: 92%; z-index: 1; }
.hb-2 img { height: 86%; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.hb-3 { right: 0; top: 16%; height: 80%; }
.hb-3 img { transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .js .hb { animation: lift .9s var(--ease) backwards; }
  .js .hb-1 { animation-delay: .1s; } .js .hb-2 { animation-delay: .25s; } .js .hb-3 { animation-delay: .4s; }
  .hb img { transition: transform .6s var(--ease); }
  .hero-art:hover .hb-1 img { transform: rotate(-9deg) translateX(-6px); }
  .hero-art:hover .hb-3 img { transform: rotate(9deg) translateX(6px); }
}

/* marquee of project names */
.band { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding: 14px 0; }
.band-track { display: flex; width: max-content; align-items: center; font-family: var(--disp); font-weight: 900; font-size: clamp(22px, 2.4vw, 34px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.band-track > * { padding-right: 28px; }
.band-track i { font-style: normal; font-size: .55em; }
@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: marquee 60s linear infinite; }
  .band:hover .band-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* how to look around */
.guide { padding-block: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.guide ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-3); border-radius: 22px; overflow: hidden; }
.guide li { display: flex; gap: 16px; padding: 20px 22px; background: var(--ink); }
.guide-n { font-size: 30px; line-height: 1; color: var(--lime); }
.guide li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.guide b { font-size: 16px; }
.guide li > span:last-child > span { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.guide a { color: var(--text); text-decoration-color: var(--lime); text-underline-offset: 3px; }

/* ---------- index: the work ---------- */

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.sec-head-t { display: flex; flex-direction: column; gap: 10px; }
.sec-title { font-size: clamp(40px, 5vw, 76px); letter-spacing: -.045em; }
.sec-note { max-width: 420px; font-size: 16px; line-height: 1.5; color: var(--text-3); }
.work { padding-bottom: clamp(64px, 8vw, 112px); }
.work .sec-head { padding-top: 22px; border-top: 4px solid var(--text); }
.work .sec-title { font-size: clamp(44px, 5.6vw, 84px); line-height: .86; }

.filters { display: none; flex-wrap: wrap; gap: 8px; }
.js .filters { display: flex; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-4); background: transparent; color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }

.group + .group { margin-top: 48px; }
.group > .kicker { margin-bottom: 16px; }
.grid { display: grid; gap: 22px; }
.grid-feat { grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); }
.grid-more { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }

/* reveal on scroll (translate, so hover transforms still compose) */
.reveal { transition: opacity .7s var(--ease), translate .7s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.in) { opacity: 0; translate: 0 28px; }
}

/* project cards: a colour block with the screens, then a paper ticket */
.card { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--paper); color: var(--paper-ink); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .7s var(--ease), translate .7s var(--ease); }
.card:hover, .card:focus-visible { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 26px 48px rgba(0, 0, 0, .5), 0 0 0 2px var(--c); }
.card:focus-visible { outline-offset: 4px; }
.card-media { position: relative; display: flex; align-items: center; justify-content: center; height: 250px; background: var(--c); overflow: hidden; }
.card-feat .card-media { height: clamp(290px, 30vw, 360px); }
.card-num { position: absolute; left: 14px; bottom: -2px; font-family: var(--disp); font-weight: 900; font-size: 120px; line-height: .8; letter-spacing: -.06em; color: rgba(7, 8, 11, .16); }
.card-feat .card-num { font-size: 150px; }
.ph { position: relative; height: 84%; width: auto; max-width: none; aspect-ratio: 600 / 1300; object-fit: cover; border-radius: 16px; border: 5px solid #000; transition: transform .5s var(--ease); }
.card-feat .ph { border-radius: 22px; border-width: 6px; }
.ph-a { margin-right: -18px; transform: rotate(-4deg); }
.ph-b { z-index: 1; height: 92%; transform: rotate(3deg); box-shadow: 0 24px 40px rgba(0, 0, 0, .35); }
.card:hover .ph-a { transform: rotate(-8deg) translateX(-10px); }
.card:hover .ph-b { transform: rotate(6deg) translateX(10px); }
.card-media .flat { position: relative; width: auto; max-width: 86%; max-height: 84%; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.card:hover .flat { transform: rotate(-1.5deg) scale(1.03); }

.stamp { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; border: 2.5px solid var(--ink); outline: 1.5px solid var(--ink); outline-offset: -8px; color: var(--ink); font-family: var(--disp); font-weight: 800; font-size: 11px; line-height: 1.1; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-12deg); }
.stamp b { font-weight: 900; font-size: 21px; letter-spacing: -.01em; }
.p-hero-art .stamp { left: 22px; top: 22px; width: 104px; height: 104px; }
@media (max-width: 640px) { .stamp { width: 82px; height: 82px; font-size: 10px; } .stamp b { font-size: 18px; } }

.label { position: relative; display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 18px; border-top: 2px dashed rgba(11, 12, 16, .3); }
.label::before, .label::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); }
.label::before { left: -12px; }
.label::after { right: -12px; }
.label-top { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-2); }
.label-top .sw { flex: none; width: 12px; height: 12px; background: var(--c); outline: 1.5px solid var(--paper-ink); }
.label-type { margin-left: auto; }
.label-name { font-size: 26px; line-height: .92; letter-spacing: -.03em; }
.card-feat .label-name { font-size: clamp(30px, 3vw, 44px); }
.label-line { font-size: 15px; line-height: 1.55; color: var(--paper-2); }
.card-feat .label-line { font-size: 16px; }
.label-tech { font-size: 13px; line-height: 1.6; font-weight: 600; }
.label-k { display: inline-block; margin-right: 8px; padding: 1px 6px; border: 1.5px solid var(--paper-ink); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; vertical-align: 1px; }
.label-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1.5px solid var(--paper-ink); }
.barcode { flex: none; width: 76px; height: 24px; background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 4px, var(--paper-ink) 4px 5px, transparent 5px 8px, var(--paper-ink) 8px 11px, transparent 11px 12px, var(--paper-ink) 12px 13px, transparent 13px 16px); }
.label-meta { font-size: 13px; font-weight: 600; color: var(--paper-2); }
.go { margin-left: auto; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .3s var(--ease); }
.card:hover .go { transform: translateX(6px); }
@media (max-width: 420px) { .barcode { display: none; } }

/* the person behind the work (paper) */
.person { background: var(--paper); color: var(--paper-ink); }
.person-in { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 56px; padding-block: clamp(48px, 6vw, 88px); }
.person-img { flex: 0 0 auto; width: clamp(160px, 18vw, 240px); height: auto; aspect-ratio: 674 / 720; object-fit: cover; border: 1.5px solid var(--paper-ink); box-shadow: -8px -6px 0 rgba(255, 46, 126, .85), 10px 9px 0 rgba(43, 80, 240, .85); margin: 8px; }
.person-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.person .kicker { color: var(--paper-2); }
.person h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: .9; }
.person-copy > p:not(.kicker) { max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--paper-2); }

/* footer */
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 7vw, 96px) 40px; }
.foot-title { font-size: clamp(56px, 8.4vw, 128px); line-height: .84; letter-spacing: -.05em; }
.legal { padding-bottom: 40px; font-size: 13px; color: var(--text-3); }

/* ---------- project page ---------- */

.p-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.p-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; container-type: inline-size; }
.p-hero .kicker .c { color: var(--c); }
/* --tw = width of the longest word in em (written by build.mjs), so the title fills its column without breaking a word */
.p-title { --px: 5px; --py: 4px; font-size: clamp(40px, 6.2vw, 104px); line-height: .86; letter-spacing: -.05em; overflow-wrap: break-word; }
@supports (font-size: 1cqi) { .p-title { font-size: clamp(28px, min(15cqi, 96cqi / var(--tw, 5)), 112px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--c); font-weight: 600; font-size: 13px; }
.facts { margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line-2); }
.facts div { padding: 14px 16px 0 0; }
.facts dt { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin-top: 6px; font-weight: 600; font-size: 16px; }

.p-hero-art { flex: 1 1 460px; min-width: 0; position: relative; height: clamp(420px, 42vw, 620px); border-radius: 28px; background: var(--c); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.big-num { position: absolute; left: 22px; bottom: 4px; font-family: var(--disp); font-weight: 900; font-size: clamp(120px, 15vw, 210px); line-height: .8; letter-spacing: -.06em; color: rgba(7, 8, 11, .14); }
.phone { flex: none; aspect-ratio: 600 / 1300; border-radius: 44px; background: #000; padding: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.phone img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 34px; }
.p-hero-art .phone-front { position: relative; height: 86%; transform: translateX(-14%) rotate(-3deg); }
.p-hero-art .phone-back { position: absolute; right: 10%; top: 13%; height: 70%; padding: 8px; border-radius: 36px; transform: rotate(7deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.p-hero-art .phone-back img { border-radius: 28px; }
.p-hero-art > .flat { position: relative; width: auto; max-width: 88%; max-height: 84%; border-radius: 16px; border: 1.5px solid var(--ink); background: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: no-preference) {
  .js .p-hero-art > .phone, .js .p-hero-art > .flat { animation: lift 1s var(--ease) .2s backwards; }
  .js .p-hero-art > .phone-back { animation-delay: .38s; }
  .js .p-hero-art .stamp { animation: stampin .5s var(--ease) .9s backwards; }
}
@keyframes stampin { from { opacity: 0; scale: 1.6; } }
@media (max-width: 560px) {
  .p-hero-art .phone-front { transform: translateX(-10%) rotate(-3deg); }
  .p-hero-art .phone-back { right: 6%; }
}

/* screens */
.screens { background: var(--panel); border-block: 1px solid var(--line); }
.screens > .wrap { padding-block: clamp(48px, 6vw, 96px); }
.g-ctrl { display: none; align-items: center; gap: 10px; }
.js .g-ctrl { display: flex; }
.g-count { margin-right: 6px; font-weight: 700; font-size: 15px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.g-btn { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-4); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.g-btn:hover { border-color: var(--text); transform: scale(1.06); }
.g-btn-c { border-color: var(--c); background: var(--c); color: var(--ink); }

.gallery { display: flex; flex-direction: column; gap: 40px; }
.shot { display: grid; gap: 24px; }
.shot-stage { display: flex; align-items: center; justify-content: center; min-height: clamp(440px, 48vw, 700px); padding: clamp(20px, 3vw, 44px); border-radius: 28px; background: var(--c); }
.shot-stage .phone { height: clamp(400px, 44vw, 620px); }
.shot-stage .flat { width: 100%; border-radius: 16px; border: 1.5px solid var(--ink); background: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.is-flat .shot-stage { min-height: 0; }
.shot-cap { display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }
.shot-n { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.shot-cap h3 { font-size: clamp(26px, 3vw, 44px); line-height: .92; letter-spacing: -.03em; overflow-wrap: break-word; }
@supports (font-size: 1cqi) { .shot-cap h3 { font-size: clamp(22px, min(9.5cqi, 96cqi / var(--tw, 5)), 44px); } }
.shot-cap p:last-child { font-size: 18px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 900px) { .shot { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 48px; } }

.thumbs { display: none; }
.js .gallery { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "cap" "thumbs"; gap: 24px; }
.js .shot { display: none; }
.js .shot.is-on { display: contents; }
.js .shot-stage { grid-area: stage; }
.js .shot-cap { grid-area: cap; }
.js .thumbs { position: relative; grid-area: thumbs; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px; }
@media (min-width: 900px) {
  .js .gallery { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "stage cap" "stage thumbs"; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 26px; }
  .js .shot-cap { align-self: start; padding-top: 8px; }
  .js .thumbs { flex-direction: column; overflow: visible; align-self: start; }
}
.thumb { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; min-width: 210px; min-height: 66px; padding: 7px 12px; border-radius: 16px; border: 1.5px solid var(--line-2); background: transparent; color: var(--text); text-align: left; cursor: pointer; scroll-snap-align: start; transition: border-color .2s, background-color .2s; }
.thumb:hover { border-color: var(--text-3); }
.thumb[aria-pressed="true"] { border-color: var(--c); background: var(--raise); }
.thumb img { flex: none; width: 24px; height: 52px; object-fit: cover; object-position: top; border-radius: 6px; background: #000; }
.is-flat .thumb img { width: 92px; }
.thumb > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.thumb b { font-size: 15px; }
.thumb > span > span { font-size: 13px; color: var(--text-3); }
@media (min-width: 900px) { .thumb { width: 100%; min-width: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .shot.is-on .shot-stage > * { animation: swap .5s var(--ease); }
  .js .shot.is-on .shot-cap { animation: rise-in .5s var(--ease); }
}
@keyframes swap { from { opacity: 0; translate: 28px 0; rotate: 2deg; } }
@keyframes rise-in { from { opacity: 0; translate: 0 12px; } }

.deck-hint { display: none; margin-top: 28px; font-size: 14px; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .js .deck-hint { display: block; } }

/* stack */
.stack { padding-top: clamp(56px, 7vw, 104px); }
.layers { list-style: none; padding: 0; border: 1px solid var(--line-3); border-radius: 24px; overflow: hidden; }
.layer { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 22px 24px; background: var(--panel); }
.layer:nth-child(even) { background: var(--panel-2); }
.layer + .layer { border-top: 1px solid var(--line); }
.layer-h { flex: 0 0 210px; display: flex; align-items: baseline; gap: 12px; }
.layer-i { font-family: var(--disp); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--c); }
.layer-name { font-size: 20px; line-height: 1.1; letter-spacing: -.01em; }
.layer-b { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 10px; background: var(--text); color: var(--ink); font-weight: 700; font-size: 14px; }
.layer-b p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* what I did */
.did { padding-top: clamp(56px, 7vw, 104px); }
.did .sec-title { margin-bottom: 32px; }
.did-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px 40px; }
.did-list li { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 3px solid var(--c); }
.did-n { font-family: var(--disp); font-weight: 900; font-size: 30px; line-height: 1; color: var(--c); }
.did-list p { font-size: 17px; line-height: 1.6; color: var(--text-4); }
.team { margin-top: 36px; padding: 18px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); font-size: 15px; line-height: 1.6; color: var(--text-2); }
.team b { color: var(--text); }
.ctx { margin-top: 20px; }
.ctx a { display: inline-block; padding-block: 11px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ctx a:hover { color: var(--c); }

/* where to next */
.next { padding-block: clamp(64px, 8vw, 120px) clamp(48px, 6vw, 80px); }
.next-card { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--nc); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.next-card:hover { transform: translateY(-4px); box-shadow: 0 26px 48px rgba(0, 0, 0, .45); }
.next-card:focus-visible { outline-color: var(--text); }
.next-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
.next-k { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.next-name { font-size: clamp(30px, 5.2vw, 80px); letter-spacing: -.045em; overflow-wrap: break-word; }
@supports (font-size: 1cqi) { .next-name { font-size: clamp(24px, min(11cqi, 96cqi / var(--tw, 5)), 80px); } }
.next-line { max-width: 560px; font-size: 17px; line-height: 1.5; }
.next-go { font-weight: 700; font-size: 16px; }
.next-art { flex: 0 1 auto; max-width: 100%; display: flex; align-items: center; justify-content: center; height: 240px; transition: transform .5s var(--ease); }
.next-card:hover .next-art { transform: rotate(-3deg) translateY(-4px); }
.next-art .phone { height: 100%; padding: 7px; border-radius: 30px; box-shadow: 0 24px 40px rgba(0, 0, 0, .3); }
.next-art .phone img { border-radius: 23px; }
.next-art .flat { height: auto; max-height: 100%; width: auto; max-width: min(420px, 100%); border-radius: 14px; border: 1.5px solid var(--ink); }
.next .actions { margin-top: 16px; }

/* project footer */
.p-foot { border-top: 1px solid var(--line); }
.p-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(40px, 5vw, 64px) 40px; }
.me { display: flex; align-items: center; gap: 18px; }
.me img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--text); }
.me-title { font-size: clamp(32px, 4vw, 56px); line-height: .9; }
.me p:last-child { margin-top: 6px; font-size: 15px; color: var(--text-3); }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .top-nav a { padding: 0 10px; }
  .top-nav .pill-light { padding: 0 14px; }
  .btn { min-height: 50px; padding: 0 20px; font-size: 15px; }
  .actions .btn { flex: 1 1 auto; }
  .p-hero .actions .btn { flex: 1 1 100%; }
  .label { padding: 18px 18px 16px; }
  .card-num { font-size: 96px; }
  .shot-stage { min-height: 0; padding: 22px 16px; }
  .shot-stage .phone { height: min(560px, 118vw); }
  .next-art { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
