/* Nathan Emorey — v4: light and dark, cinematic where it counts */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-standard-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Comforter Brush"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/comforter-brush-latin-400-normal.woff2) format("woff2"); }

:root {
  --night: #070707;
  --paper: #edeef0;
  --paper-2: #e2e4e8;
  --white: #fbfbfc;
  --ink: #0e0e10;
  --ink-2: #4b4d55;
  --fg: #f2f1ee;
  --fg-2: rgba(242, 241, 238, .66);
  --line-d: rgba(242, 241, 238, .14);
  --line-l: rgba(14, 14, 16, .12);
  --cobalt: #3247ff;
  --yellow: #ffc814;
  --pink: #ff3d7f;
  --green: #1fa36b;
  --platinum: linear-gradient(120deg, #8f8f8f 0%, #ffffff 45%, #b9b9b9 60%, #f4f4f4 80%, #8a8a8a 100%);
  --f: "Archivo", system-ui, sans-serif;
  --brand: "Cinzel", Georgia, serif;
  --sig: "Comforter Brush", cursive;
  --pad: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; color: var(--fg); background: transparent; font-family: var(--f); font-size: 17px; line-height: 1.6; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:not(.has-gl) body { background: var(--night); }
#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: block; }
main, footer, .site-head { position: relative; z-index: 2; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.light :focus-visible { outline-color: var(--cobalt); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #000; padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
p { max-width: 64ch; }

/* ---------- themes ---------- */
.light { background: var(--paper); color: var(--ink); }
.light-2 { background: var(--paper-2); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.dark { background: var(--night); color: var(--fg); }
.has-gl .dark { background: transparent; }
.light .muted, .light-2 .muted, .white .muted { color: var(--ink-2); }
.muted { color: var(--fg-2); }

/* ---------- type ---------- */
h1, h2, h3, .h { font-family: var(--f); font-stretch: 112%; font-weight: 650; letter-spacing: -.025em; line-height: 1.02; margin: 0; }
.h1 { font-size: clamp(34px, 4.3vw, 62px); }
.h2 { font-size: clamp(30px, 3.4vw, 52px); }
.h3 { font-size: clamp(21px, 1.7vw, 26px); letter-spacing: -.015em; line-height: 1.15; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; max-width: 46ch; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; margin: 0 0 18px; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.light .label::before, .white .label::before, .light-2 .label::before { background: var(--cobalt); }
.plat { background: var(--platinum); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
/* script lettering: swashes reach outside the text box, so give the box room on every side */
.sig { font-family: var(--sig); font-weight: 400; font-stretch: 100%; letter-spacing: 0; display: inline-block; padding: .22em .4em .32em .3em; margin: -.22em -.4em -.32em -.3em; line-height: 1; }
.sig.plat { -webkit-box-decoration-break: clone; }

/* word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.in .w > span, .w.in > span { transform: none; }
[data-fade] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-fade].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .w > span, [data-fade] { transform: none !important; opacity: 1 !important; transition: none; } }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); transition: transform .6s var(--ease), background .4s, color .4s; }
.site-head.hide { transform: translateY(-100%); }
.site-head.on-light { color: var(--ink); }
.site-head.solid { background: rgba(7, 7, 7, .72); backdrop-filter: blur(14px); }
.site-head.solid.on-light { background: rgba(237, 238, 240, .82); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--brand); font-weight: 700; font-size: 16px; letter-spacing: .34em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 16px; border-radius: 999px; transition: background .3s; }
.nav a:hover { background: rgba(127, 127, 127, .16); }
.nav a[aria-current="page"] { background: rgba(127, 127, 127, .2); }
.nav .cta { background: var(--yellow); color: #000; font-weight: 600; margin-left: 8px; }
.nav .cta:hover { background: #fff; }
.menu-btn { display: none; background: rgba(127,127,127,.2); border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; }
@media (max-width: 900px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--night); color: var(--fg); flex-direction: column; justify-content: center; gap: 10px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
  .nav a { font-size: 30px; font-stretch: 112%; font-weight: 650; }
  body.menu-open .nav { clip-path: inset(0); }
  body.menu-open .site-head { color: var(--fg); }
}

/* cursor label (the normal cursor stays; this pill only appears over things you can drag or open) */
.cursor-pill { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; padding: 8px 14px; border-radius: 999px; background: var(--yellow); color: #000; font-size: 13px; font-weight: 600; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
.cursor-pill.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-pill { display: none; } }

/* curtain + intro */
.curtain { position: fixed; inset: 0; z-index: 250; background: #000; display: grid; place-items: center; pointer-events: none; transition: transform .9s var(--ease); }
.curtain span { font-family: var(--sig); font-size: clamp(90px, 14vw, 200px); padding: .2em .4em; background: var(--platinum); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.loaded .curtain { transform: translateY(-100%); }
html.leaving .curtain, html.leaving.loaded .curtain { transform: translateY(0); transition-duration: .6s; }
html.no-curtain .curtain { display: none; }
#intro { position: fixed; inset: 0; z-index: 260; background: #000; display: grid; place-content: center; text-align: center; color: var(--fg); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
#intro.out { opacity: 0; transform: scale(1.08); pointer-events: none; }
#intro .bar { position: absolute; left: 0; right: 0; height: 11vh; background: #000; z-index: 2; transition: transform 1.4s var(--ease); }
#intro .bar.top { top: 0; } #intro .bar.bot { bottom: 0; }
#intro.out .bar.top { transform: translateY(-100%); } #intro.out .bar.bot { transform: translateY(100%); }
.intro-pre, .intro-post { font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .2em; margin: 0; opacity: 0; transition: opacity 1.2s ease, letter-spacing 2.6s var(--ease); color: rgba(242,241,238,.7); }
.intro-post { transition-delay: 2s; letter-spacing: .1em; }
#intro.play .intro-pre { opacity: 1; letter-spacing: .32em; }
#intro.play .intro-post { opacity: 1; }
.intro-sig { font-family: var(--sig); font-size: clamp(120px, 20vw, 300px); line-height: 1; margin: 0; padding: .15em .45em .25em; background: var(--platinum); -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.9s cubic-bezier(.6,.05,.25,1) .7s; }
#intro.play .intro-sig { clip-path: inset(-20% -10% -20% -10%); }
.intro-skip { position: absolute; right: 24px; bottom: calc(11vh + 16px); z-index: 3; background: none; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.75); border-radius: 999px; padding: 8px 16px; font-size: 13px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 1px solid currentColor; color: inherit; text-decoration: none; font-weight: 600; font-size: 16px; overflow: hidden; isolation: isolate; cursor: pointer; background: transparent; transition: color .45s var(--ease), border-color .45s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn > * { position: relative; }
.btn:hover::before { transform: none; }
.dark .btn:not(.fill):hover, .btn.on-dark:not(.fill):hover { color: #000; }
.dark .btn::before { background: var(--fg); }
.light .btn:not(.fill):hover, .white .btn:not(.fill):hover, .light-2 .btn:not(.fill):hover { color: var(--fg); }
.light .btn::before, .white .btn::before, .light-2 .btn::before { background: var(--ink); }
.btn.fill { background: var(--yellow); color: #000; border-color: var(--yellow); }
.btn.fill::before { background: #fff; }
.btn.ink { background: var(--ink); color: var(--fg); border-color: var(--ink); }
.btn.ink::before { background: var(--cobalt); }
.btn.ink:hover { color: #fff; }
.btn .arr { width: 16px; height: 10px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); font-weight: 600; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; outline: none; touch-action: pan-y; color: var(--fg); }
html:not(.has-gl) .hero { background: url(../img/murals-yola-yola_06-md.webp) center / cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.6) 100%); }
.grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); animation: grain 1s steps(5) infinite; will-change: transform; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-6%,4%)} 50%{transform:translate(5%,-5%)} 75%{transform:translate(-3%,6%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
.hero-caption { position: absolute; top: 90px; right: var(--pad); z-index: 2; text-align: right; font-size: 14px; line-height: 1.45; color: var(--fg-2); padding: 12px 16px; border-radius: 14px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.hero-caption strong { display: block; color: var(--fg); font-weight: 600; font-size: 15px; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22vh var(--pad) clamp(24px, 5vh, 50px); pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.85) 12%, transparent); }
.hero-name { margin: 0; line-height: 1; font-weight: 400; }
.hero-name .ln { display: block; filter: drop-shadow(0 3px 14px rgba(0,0,0,.6)); }
.hero-name .l1 { font-family: var(--brand); font-weight: 700; font-size: clamp(24px, 4.2vw, 64px); letter-spacing: .36em; }
.hero-name .l2 { font-family: var(--sig); font-size: clamp(110px, 19vw, 300px); line-height: .9; color: #fff; padding: .1em .4em .2em .25em; margin: -.15em -.4em -.25em -.25em; display: inline-block; }
.js .hero-name .ln { clip-path: inset(0 0 100% 0); transform: translateY(30px); transition: clip-path 1.4s var(--ease), transform 1.4s var(--ease); }
.js .hero-name .l2 { transition-delay: .15s; }
.js.ready .hero-name .ln { clip-path: inset(-40% -40% -40% -40%); transform: none; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.hero-row p { margin: 0; color: var(--fg-2); max-width: 40ch; font-size: clamp(15px, 1.25vw, 18px); }
.hero-role { display: block; color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.hero-row .btn { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .js .hero-name .ln { clip-path: none; transform: none; } }

/* ---------- manifesto ---------- */
.manifesto { position: relative; min-height: 115vh; display: flex; align-items: center; padding: 16vh 0; color: var(--fg); }
.manifesto [data-gl] { position: absolute; inset: 0; }
.manifesto .wrap { position: relative; width: 100%; }
.manifesto-text { font-size: clamp(24px, 2.7vw, 42px); font-weight: 500; font-stretch: 104%; line-height: 1.28; letter-spacing: -.015em; max-width: 21em; margin: 0; }
.manifesto-text .sw { opacity: .18; transition: opacity .3s linear; }
.manifesto-text .sw.on { opacity: 1; }
.manifesto-text em { font-style: normal; color: var(--yellow); }
.stats { display: flex; gap: 14px; margin-top: 56px; flex-wrap: wrap; }
.stat { padding: 18px 22px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid var(--line-d); backdrop-filter: blur(10px); min-width: 160px; }
.light .stat, .white .stat { background: var(--white); border-color: var(--line-l); }
.stat b { display: block; font-size: clamp(30px, 2.8vw, 42px); font-stretch: 112%; font-weight: 650; letter-spacing: -.03em; line-height: 1.05; }
.stat span { font-size: 14px; opacity: .7; }
@media (max-width: 900px) { .manifesto { align-items: flex-start; min-height: 140vh; padding-top: 14vh; } .stats { margin-top: 44vh; } }

/* ---------- pinned scenes ---------- */
[data-pin] { position: relative; }
.flight { height: 850vh; }
.studio-sec { height: 650vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--fg); }
.scene-ui { position: absolute; inset: 0; pointer-events: none; padding: 92px var(--pad) clamp(26px, 5vh, 52px); display: flex; flex-direction: column; justify-content: space-between; }
.scene-ui a, .scene-ui button { pointer-events: auto; }
.scene-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); border: 1px solid var(--line-d); font-size: 14px; font-weight: 500; }
.chip b { font-weight: 650; }
.panel { background: rgba(8,8,8,.6); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 26px 28px; max-width: 560px; }
.panel h3 { font-size: clamp(26px, 2.6vw, 40px); margin: 6px 0 10px; }
.panel p { margin: 0; color: var(--fg-2); font-size: 15px; }
.panel .row-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.panel .btn { padding: 12px 20px; font-size: 15px; }
.pt-price { font-size: 26px; font-weight: 650; font-stretch: 112%; color: var(--fg); margin: 14px 0 0 !important; }
.swap .panel h3, .swap .panel p { animation: swapin .9s var(--ease); }
@keyframes swapin { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.fl-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 14px; height: 2px; background: var(--line-d); border-radius: 2px; overflow: hidden; }
.fl-bar i { position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.is-hover { cursor: pointer; }
@media (max-width: 700px) { .panel { padding: 18px 18px; } .scene-top .h2 { font-size: 26px; } }

/* ---------- clients strip ---------- */
.clients { overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.clients-track { display: flex; gap: 40px; width: max-content; will-change: transform; align-items: center; }
.clients-track span { font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.clients-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 11vw, 160px) 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 70px); }
.head p { margin: 0; max-width: 42ch; }

/* testimonials */
.voices .wrap { position: relative; }
.voice-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(760px, 86vw); gap: 24px; transition: transform .9s var(--ease); }
.voice-viewport { overflow: hidden; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad) 30px; }
.voice { margin: 0; background: var(--white); border-radius: 26px; padding: clamp(28px, 3.6vw, 52px); box-shadow: 0 30px 60px -40px rgba(14,14,16,.35); opacity: .45; transform: scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); position: relative; overflow: hidden; }
.voice.on { opacity: 1; transform: none; }
.voice::before { content: "\201C"; position: absolute; right: 24px; top: -30px; font-family: var(--sig); font-size: 220px; line-height: 1; color: var(--yellow); opacity: .9; }
.voice blockquote { margin: 0 0 30px; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.38; font-weight: 500; letter-spacing: -.012em; position: relative; }
.voice figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); }
.voice figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.voice figcaption strong { display: block; color: var(--ink); font-weight: 650; }
.voice-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-l); background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.round:hover { background: var(--ink); color: #fff; }
.round svg { width: 18px; height: 18px; }
.voice-count { margin-left: 8px; font-weight: 600; font-size: 15px; color: var(--ink-2); }

/* portal */
.portal { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.portal-img { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; }
html:not(.has-gl) .portal-img, html:not(.has-gl) .pf-portrait { background: url(../img/profile_image-sm.webp) top / cover; }
.portal .sig { font-size: 1.6em; color: var(--cobalt); }
@media (max-width: 820px) { .portal { grid-template-columns: 1fr; } }

/* ---------- journal cards (art objects) ---------- */
.journal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jcard { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 520px; border-radius: 28px; padding: 30px; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.jcard:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(14,14,16,.5); }
.jcard.y { background: var(--yellow); color: #111; }
.jcard.b { background: var(--cobalt); color: #fff; }
.jcard.k { background: #111; color: var(--fg); }
.jcard .meta { font-size: 14px; font-weight: 600; opacity: .75; }
.jcard h3 { font-size: clamp(26px, 2.3vw, 34px); margin: 10px 0 10px; }
.jcard p { margin: 0 0 20px; font-size: 16px; opacity: .85; }
.jcard .read { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(255,255,255,.9); color: #111; font-weight: 600; font-size: 15px; width: fit-content; }
.jcard.y .read { background: #111; color: #fff; }
.jart { order: 2; flex: 1; display: grid; place-items: center; pointer-events: none; min-height: 200px; margin: 8px 0 18px; }
.jart svg { width: 78%; max-width: 240px; overflow: visible; transition: transform 1s var(--ease); }
.jcard .meta { order: 1; }
.jcard > div:last-child { order: 3; }
.jcard:hover .jart svg { transform: rotate(-4deg) scale(1.04); }
.jcard .puff circle { transform-box: fill-box; transform-origin: center; opacity: 0; }
.jcard:hover .puff circle { animation: puff 1.6s ease-out infinite; animation-delay: calc(var(--d) * 70ms); }
@keyframes puff { 0% { opacity: 0; transform: translate(0,0) scale(.4); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.6); } }
.jcard .stroke { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.6s var(--ease); }
.jcard:hover .stroke { stroke-dashoffset: 0; }
.jcard .lens { transition: fill .6s, filter .6s; }
.jcard:hover .lens { fill: var(--yellow); filter: drop-shadow(0 0 12px rgba(255,200,20,.8)); }
@media (max-width: 900px) { .journal-cards { grid-template-columns: 1fr; } .jcard { min-height: 400px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact .lede { color: var(--ink-2); }
.card-wrap { perspective: 1400px; width: min(440px, 100%); aspect-ratio: 1.75; margin-top: 36px; cursor: pointer; }
.card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.card-wrap.flipped .card { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 24px 26px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,14,16,.55); }
.face.front { background: radial-gradient(120% 120% at 100% 0%, #2a2a2e 0%, #0b0b0c 60%); color: var(--fg); display: flex; flex-direction: column; justify-content: space-between; }
.face.front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 45%, transparent 60%); transform: translateX(-60%); transition: transform 1.2s var(--ease); }
.card-wrap:hover .face.front::after { transform: translateX(60%); }
.face.front .top { display: flex; justify-content: space-between; align-items: start; }
.face.front .top svg { width: 46px; height: 46px; }
.face.front .nm { font-family: var(--brand); font-weight: 700; letter-spacing: .22em; font-size: 17px; }
.face.front .rl { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.face.front .sg { font-family: var(--sig); font-size: 64px; line-height: 1; padding: .15em .3em .2em; margin: -.3em -.3em -.25em; }
.face.front .hint { font-size: 12px; color: var(--fg-2); }
.face.back { background: var(--white); color: var(--ink); transform: rotateY(180deg); display: grid; align-content: center; gap: 6px; }
.face.back a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 7px 10px; border-radius: 12px; font-weight: 600; font-size: 16px; transition: background .3s; }
.face.back a:hover { background: var(--paper); }
.face.back svg { width: 20px; height: 20px; flex: none; }
.flip-btn { margin-top: 14px; background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.form-card { background: var(--white); border-radius: 26px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 30px 70px -50px rgba(14,14,16,.5); }
.form-card h3 { margin-bottom: 20px; }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
form input, form textarea, form select { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; transition: border-color .3s, background .3s; }
form textarea { min-height: 130px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: 0; border-color: var(--cobalt); background: #fff; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { margin-top: 14px; min-height: 1.5em; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } form .two { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: #0b0b0c; color: var(--fg); padding: clamp(70px, 9vw, 120px) 0 30px; overflow: hidden; }
.foot-cta { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
.foot-cta .h1 { max-width: 13em; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
.foot-cols h4 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--fg-2); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; font-size: 16px; }
.foot-cols a:hover { color: var(--yellow); }
.foot-brand p { color: var(--fg-2); font-size: 15px; margin: 16px 0 0; max-width: 30ch; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--line-d); transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--yellow); color: #000; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.foot-sig { font-family: var(--sig); font-size: clamp(120px, 22vw, 340px); line-height: .9; padding: .1em .3em .25em .15em; margin: -.2em 0 -.3em -.15em; display: inline-block; transform: rotate(-4deg); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--fg-2); padding-top: 22px; border-top: 1px solid var(--line-d); }
.foot-bottom a { text-decoration: none; } .foot-bottom a:hover { color: var(--fg); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- viewer ---------- */
.lb { position: fixed; inset: 0; z-index: 220; background: #050505; color: var(--fg); display: grid; grid-template-rows: auto 1fr auto; clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease); visibility: hidden; }
.lb.open { clip-path: inset(0); visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); gap: 20px; }
.lb-top h2 { font-size: clamp(20px, 2vw, 28px); }
.lb-sub { color: var(--fg-2); font-size: 15px; }
.lb-close { background: var(--fg); color: #000; border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; font-weight: 600; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 80px; }
.lb-stage-inner { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lb-stage img { max-height: calc(100svh - 200px); max-width: 100%; object-fit: contain; border-radius: 8px; animation: lbimg .8s var(--ease); }
@keyframes lbimg { from { opacity: 0; transform: scale(1.03); } }
.lb-stage iframe { height: calc(100svh - 200px); aspect-ratio: 9 / 16; max-width: 90vw; border: 0; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--fg); cursor: pointer; font-size: 20px; }
.lb-nav:hover { background: var(--fg); color: #000; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 14px var(--pad); }
.lb-strip button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #111 center / cover; cursor: pointer; opacity: .5; }
.lb-strip button[aria-current="true"] { border-color: var(--yellow); opacity: 1; }
.lb-strip .vid { background: var(--yellow); color: #000; font-size: 12px; font-weight: 700; }
@media (max-width: 640px) { .lb-stage { padding: 0 6px; } .lb-nav { top: auto; bottom: -10px; transform: none; } }

/* ---------- Uli-inspired line art ---------- */
.uli { display: block; width: 100%; height: auto; color: inherit; }
.uli path, .uli circle, .uli polyline { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.draw path, .draw circle, .draw polyline { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.4s var(--ease); }
.draw.in path, .draw.in circle, .draw.in polyline { stroke-dashoffset: 0; }
.uli-divider { color: var(--cobalt); opacity: .55; padding: 0 var(--pad); max-width: 1360px; margin: 0 auto; }
.dark .uli-divider { color: var(--yellow); }

/* ---------- portfolio ---------- */
.grid-stage { position: relative; height: 100vh; height: 100svh; touch-action: none; user-select: none; color: var(--fg); }
html:not(.has-gl) .grid-stage { height: 60vh; background: url(../img/murals-yola-yola_06-md.webp) center / cover; }
.grid-stage.dragging { cursor: grabbing; }
.grid-ui { position: absolute; inset: auto 0 0 0; pointer-events: none; padding: 0 var(--pad) clamp(24px, 5vh, 46px); }
.grid-ui .panel { max-width: 640px; }
.grid-ui h1 { font-size: clamp(36px, 4.4vw, 64px); }
.grid-ui .sig { font-size: clamp(34px, 3.4vw, 52px); color: var(--yellow); }
.grid-ui .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; pointer-events: auto; }
.pill { background: rgba(255,255,255,.08); border: 1px solid var(--line-d); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; color: inherit; transition: background .3s; }
.pill[aria-pressed="true"] { background: var(--fg); color: #000; }
.light .pill, .light-2 .pill, .white .pill { background: var(--white); border-color: var(--line-l); }
.light .pill[aria-pressed="true"], .light-2 .pill[aria-pressed="true"], .white .pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pf-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.medal { aspect-ratio: 1; border-radius: 50%; }
@media (max-width: 900px) { .pf-intro { grid-template-columns: 1fr; } .medal { max-width: 420px; width: 100%; margin: 0 auto; } }
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub a { position: relative; min-height: 300px; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; }
.hub a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.hub a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.15) 65%); transition: background .6s; }
.hub a:hover img { transform: scale(1); }
.hub a:hover::before { background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.35)); }
.hub .uli { position: absolute; top: 18px; right: 18px; width: 90px; color: var(--yellow); opacity: .9; }
.hub h3 { font-size: 28px; }
.hub p { margin: 6px 0 0; font-size: 15px; opacity: .85; }
.hub .go { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .4s, transform .6s var(--ease); }
.hub a:hover .go { background: var(--yellow); color: #000; transform: rotate(-45deg); }
.hub .go svg { width: 16px; height: 10px; }
@media (max-width: 900px) { .hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub { grid-template-columns: 1fr; } .hub a { min-height: 220px; } }
.pf-about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.pf-portrait { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; }
.bio p { color: var(--ink-2); font-size: 18px; }
.bio p.first { color: var(--ink); font-size: clamp(22px, 2vw, 28px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 900px) { .pf-about { grid-template-columns: 1fr; } .pf-portrait { position: relative; top: 0; } }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.skill { border-radius: 20px; padding: 24px; background: rgba(20,20,22,.62); border: 1px solid var(--line-d); backdrop-filter: blur(14px); transition: transform .6s var(--ease), border-color .4s; }
.skill:hover { transform: translateY(-4px); border-color: rgba(255,200,20,.6); }
.skill svg { width: 34px; height: 34px; color: var(--yellow); margin-bottom: 16px; }
.skill h3 { font-size: 20px; margin-bottom: 8px; }
.skill p { margin: 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 900px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }
.projects { display: grid; gap: 10px; }
.proj { display: grid; grid-template-columns: 120px 1fr auto 54px; gap: 22px; align-items: center; padding: 12px; border-radius: 20px; background: var(--white); text-decoration: none; cursor: pointer; border: 0; text-align: left; width: 100%; color: var(--ink); transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .4s; }
.proj:hover { transform: translateX(8px); box-shadow: 0 24px 50px -36px rgba(14,14,16,.45); }
.proj img { width: 120px; height: 84px; object-fit: cover; border-radius: 12px; }
.proj h3 { font-size: clamp(19px, 1.6vw, 24px); }
.proj .where { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.proj .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.proj .tags span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--paper); }
.proj .arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background .4s, color .4s; }
.proj:hover .arrow { background: var(--ink); color: #fff; }
.proj .arrow svg { width: 16px; height: 10px; }
@media (max-width: 760px) { .proj { grid-template-columns: 84px 1fr 46px; } .proj img { width: 84px; height: 64px; } .proj .tags { display: none; } }
.preview { position: fixed; left: 0; top: 0; z-index: 50; width: 320px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; border-radius: 16px; opacity: 0; transition: opacity .35s; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.preview.on { opacity: 1; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .preview { display: none; } }
.brand-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: thin; cursor: grab; }
.brand-card { flex: none; width: min(380px, 82vw); scroll-snap-align: start; background: var(--white); border-radius: 24px; overflow: hidden; transition: transform .6s var(--ease); }
.brand-card:hover { transform: translateY(-6px); }
.brand-card .pic { height: 220px; position: relative; }
.brand-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.brand-card .body { padding: 22px 24px 26px; }
.brand-card h3 { font-size: 22px; margin-bottom: 8px; }
.brand-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { margin: 0; padding: clamp(26px, 3vw, 40px); border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid var(--line-d); }
.quote blockquote { margin: 0 0 24px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.quote figcaption { display: flex; gap: 12px; align-items: center; color: var(--fg-2); font-size: 14px; }
.quote img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote strong { display: block; color: var(--fg); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-l); margin-left: 8px; }
.tl { position: relative; padding: 0 0 30px 34px; }
.tl::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--paper); }
.tl b { display: block; font-size: 15px; color: var(--cobalt); font-weight: 650; }
.tl h3 { font-size: 21px; margin: 4px 0 4px; }
.tl p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cv-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 90px); }
.cv-card { background: var(--white); border-radius: 26px; padding: 34px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 900px) { .cv-grid { grid-template-columns: 1fr; } }

/* ---------- shop ---------- */
.page-head { padding: clamp(130px, 16vw, 200px) 0 clamp(40px, 6vw, 70px); }
.page-head .lede { margin-top: 18px; color: var(--ink-2); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.product { background: var(--white); border-radius: 24px; padding: 14px 14px 22px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(14,14,16,.5); }
.product .pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--paper); }
.product .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .pic img { transform: scale(1.04); }
.product .row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 8px 0; }
.product h3 { font-size: 21px; }
.product .price { font-size: 20px; font-weight: 650; }
.product .spec { color: var(--ink-2); font-size: 14px; margin: 4px 8px 16px; }
.product .actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 8px; }
.product .btn { padding: 11px 18px; font-size: 14px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how > div { background: var(--white); border-radius: 22px; padding: 26px; }
.how b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); margin-bottom: 18px; }
.how h3 { font-size: 21px; margin-bottom: 8px; }
.how p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }

/* ---------- articles ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); z-index: 70; }
.art-hero { padding: clamp(120px, 14vw, 180px) 0 40px; }
.art-hero .wrap { max-width: 980px; }
.art-hero h1 { font-size: clamp(38px, 5vw, 70px); margin: 12px 0 18px; }
.art-hero .lede { color: var(--ink-2); }
.art-cover { max-width: 1180px; margin: 0 auto 60px; padding: 0 var(--pad); }
.art-cover img { width: 100%; border-radius: 26px; aspect-ratio: 16 / 8; object-fit: cover; }
.article { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }
.article > p:first-of-type::first-letter { float: left; font-size: 4.2em; line-height: .85; font-weight: 700; font-stretch: 112%; margin: .06em .1em 0 0; color: var(--cobalt); }
.article h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 50px 0 12px; }
.article p, .article li { font-size: 19px; line-height: 1.75; color: #26272c; }
.article figure { margin: 46px calc(-1 * var(--pad)); }
.article figure img { width: 100%; border-radius: 20px; }
.article figcaption { font-size: 14px; color: var(--ink-2); padding: 10px var(--pad) 0; }
.article blockquote { margin: 46px 0; padding: 28px 30px; border-radius: 22px; background: var(--yellow); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: #111; }
.article .uli { color: var(--cobalt); margin: 40px 0; opacity: .6; }
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .more { grid-template-columns: 1fr; } }

.gl-inline { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portal-img, .medal, .pf-portrait { position: relative; }
.pf-portrait { position: sticky; }
.site-head { pointer-events: none; }
.site-head > * { pointer-events: auto; }

/* curtain: Uli lines draw themselves around the signature between pages */
.curtain { overflow: hidden; }
.curtain-uli { position: absolute; width: min(92vmin, 760px); height: auto; color: var(--yellow); animation: spin 14s linear infinite; }
.curtain-uli circle, .curtain-uli path, .curtain-uli polyline { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.curtain-uli circle[r="3"] { fill: currentColor; stroke: none; opacity: 0; }
html:not(.loaded) .curtain-uli *, html.leaving .curtain-uli * { animation: drawline 1.1s var(--ease) forwards; }
html:not(.loaded) .curtain-uli circle[r="3"], html.leaving .curtain-uli circle[r="3"] { animation: dotin .5s .5s forwards; }
.curtain-uli circle[r="150"] { color: var(--pink); stroke: var(--pink); animation-delay: .12s !important; }
.curtain-uli polyline { animation-delay: .25s !important; }
.curtain span { position: relative; clip-path: inset(-30% 100% -30% -10%); }
html:not(.loaded) .curtain span, html.leaving .curtain span { animation: sigin 1s .15s var(--ease) forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes dotin { to { opacity: .8; } }
@keyframes sigin { to { clip-path: inset(-30% -10% -30% -10%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .curtain-uli { animation: none; } .curtain-uli * { stroke-dashoffset: 0 !important; animation: none !important; } .curtain span { clip-path: none; animation: none !important; } }

/* phones: keep the studio and flight visible above a compact info bar */
@media (max-width: 700px) {
  .scene-top .sub { display: none; }
  .scene-ui { padding-top: 78px; padding-bottom: 18px; }
  .panel { padding: 14px 16px; border-radius: 18px; max-width: none; }
  .panel h3 { font-size: 21px; margin: 0 0 4px; }
  .panel p { font-size: 13px; }
  .pt-price { font-size: 17px; display: inline; }
  .panel .row-btns { margin-top: 12px; gap: 8px; flex-wrap: nowrap; }
  .panel .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .panel .btn .arr { display: none; }
  .grid-stage { height: 82svh; touch-action: pan-y; }
  .grid-ui .panel { padding: 16px; }
  .grid-ui h1 { font-size: 32px; }
  .grid-ui .sig { font-size: 30px; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; gap: 30px; }
  .foot-cols a { overflow-wrap: anywhere; }
  .foot-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { min-width: 0; padding: 12px 12px; border-radius: 14px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 12px; display: block; line-height: 1.3; }
  .proj { grid-template-columns: 72px 1fr 36px; gap: 12px; padding: 10px; }
  .proj img { width: 72px; height: 56px; }
  .proj h3 { font-size: 17px; }
  .proj .arrow { width: 36px; height: 36px; }
  .skills { gap: 10px; }
  .skill { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 16px; }
  .skill svg { margin: 2px 0 0; grid-row: span 2; width: 30px; height: 30px; }
  .skill h3 { font-size: 17px; margin-bottom: 4px; }
  .skill p { font-size: 14px; }
  .grid-ui p { display: none; }
  .grid-ui .chips { margin-top: 12px; }
  .grid-ui .pill { padding: 7px 12px; font-size: 13px; }
  .hub a { min-height: 190px; }
  .section { padding: 72px 0; }
  .head { margin-bottom: 28px; }
}

/* phones: skip effects that cost a lot of GPU over moving 3D */
@media (hover: none), (pointer: coarse) {
  .grain { display: none; }
  .panel, .chip, .hero-caption, .stat, .skill, .site-head.solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panel { background: rgba(10, 10, 10, .86); }
  .chip, .hero-caption { background: rgba(0, 0, 0, .72); }
  .skill { background: rgba(20, 20, 22, .9); }
  .site-head.solid { background: rgba(7, 7, 7, .92); }
  .site-head.solid.on-light { background: rgba(237, 238, 240, .95); }
}
