/* Ember theme. Archivo. */
:root {
  --bg: #0c0907; --bg2: #15100c; --ink: #f5ede3; --muted: #bba997; --line: rgba(245, 237, 227, .13);
  --ember: #ff6a1f; --ember-deep: #b8360b; --cream: #f2eadf; --cream-ink: #1b130d; --cream-muted: #5f4f42;
  --accent: var(--ember); --focus: #ffb489; --slot-bg: #1a120d;
  --r: 16px; --wrap: min(1240px, 100% - 3rem); --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
body.v1 { background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif; }
::selection { background: var(--ember); color: #160a03; }
html { scrollbar-color: #3a2a1f var(--bg); }
.wrap { width: var(--wrap); margin-inline: auto; }
.i { width: 1.1em; height: 1.1em; flex: none; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn-light { background: var(--ink); color: #1a0e06; }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(245, 237, 227, .32); color: var(--ink); }
.btn-ghost:hover { background: rgba(245, 237, 227, .08); border-color: rgba(245, 237, 227, .55); }
.btn-dark { background: var(--cream-ink); color: var(--cream); }
.btn-dark:hover { background: #000; }

/* ---------- nav ---------- */
.nav, .pj-nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 2rem; height: 68px;
  padding: 0 max(1.5rem, (100% - 1240px) / 2); background: rgba(12, 9, 7, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; letter-spacing: -.02em; font-size: 1.1rem; text-decoration: none; }
.menu { display: flex; gap: .25rem; margin-left: auto; }
.menu a { padding: .6rem .85rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--ink); background: rgba(245, 237, 227, .07); }
.nav-cta { background: var(--ember); color: #1d0b02; }
.nav-cta:hover { background: #ff8444; }
.menu-btn { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; place-items: center; }
.menu-btn .i { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(68px + clamp(3.5rem, 9vh, 6.5rem)) 1.5rem 0; text-align: center;
  background:
    radial-gradient(60% 34% at 50% 62%, rgba(255, 150, 80, .55) 0%, rgba(255, 106, 31, 0) 100%),
    radial-gradient(120% 75% at 50% 88%, #ff6a1f 0%, #d9480f 24%, #8a2a08 46%, #3a1206 64%, rgba(12, 9, 7, 0) 84%),
    var(--bg); }
.hero-copy { max-width: 880px; margin-inline: auto; }
.hero h1 { font-size: clamp(3.1rem, 8.6vw, 6rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.role { margin-top: 1rem; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.cswp { font-size: .8em; font-weight: 700; letter-spacing: .02em; padding: .15rem .55rem; border-radius: 6px; background: rgba(255, 106, 31, .16); color: #ffb48a; border: 1px solid rgba(255, 106, 31, .45); }
.lede { margin: 1.1rem auto 0; max-width: 34ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); }
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.avail { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; color: #f3e1d2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #45d483; box-shadow: 0 0 0 4px rgba(69, 212, 131, .18); }
.hero-stage { margin: clamp(2.5rem, 6vh, 4rem) auto 0; width: min(1120px, 100%); }
.window { border-radius: 18px 18px 0 0; overflow: hidden; border: 1px solid rgba(255, 210, 180, .22); border-bottom: 0; background: #000;
  box-shadow: 0 -10px 80px -10px rgba(255, 106, 31, .55), 0 30px 120px -30px rgba(0, 0, 0, .9); }
.window-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.1rem; font-size: .8rem; color: #d9c6b4;
  background: rgba(20, 13, 9, .92); border-bottom: 1px solid rgba(255, 210, 180, .14); font-variant-numeric: tabular-nums; }
.hero-video { --ar: 16 / 8.2; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes lift { from { opacity: 0; transform: translateY(70px) scale(.97); } }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-stage { animation: lift 1.3s .25s var(--ease) both; }

.services, .teach { padding: clamp(5rem, 12vw, 9rem) 0; }
.svc { margin-top: 3rem; border-bottom: 1px solid rgba(27, 19, 13, .16); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem; padding: 2rem 0; border-top: 1px solid rgba(27, 19, 13, .16); align-items: baseline; }
.svc-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.svc-row p { color: var(--cream-muted); font-size: 1.12rem; max-width: 46ch; }

/* ---------- work ---------- */
.work { padding: clamp(5rem, 11vw, 8.5rem) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sec-head p { color: var(--muted); max-width: 36ch; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.feat-link, .mini a { display: block; text-decoration: none; }
.frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--slot-bg); }
.frame .slot, .frame picture { transition: transform .7s var(--ease); }
.feat-link:hover .frame .slot, .mini a:hover .frame picture { transform: scale(1.025); }
.frame picture { display: block; aspect-ratio: 16 / 9; }
.frame picture img { width: 100%; height: 100%; object-fit: cover; }
.feat-body { padding-top: 1.4rem; }
.feat-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feat-body > p { margin-top: .5rem; color: var(--muted); max-width: 48ch; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; list-style: none; padding: 0; }
.chips li { font-size: .82rem; font-variant-numeric: tabular-nums; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: #e4d6c8; }
.more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.2rem; color: #ff9a62; font-weight: 600; }
.more .i { transition: transform .25s var(--ease); }
.feat-link:hover .more .i { transform: translateX(4px); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.mini h3 { margin-top: .9rem; font-size: 1.15rem; letter-spacing: -.02em; }
.mini .tag { margin-top: .2rem; font-size: .9rem; color: var(--muted); }
.soon-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; border-style: dashed; border-color: rgba(245, 237, 227, .28); background: transparent; }
.soon-frame span { font-size: .85rem; color: var(--muted); padding: .3rem .75rem; border: 1px dashed rgba(245, 237, 227, .3); border-radius: 999px; }

/* ---------- motion band ---------- */
.motion { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; }
.motion figure { position: relative; }
.motion figcaption { position: absolute; left: 1rem; bottom: 1rem; font-size: .78rem; letter-spacing: .02em; color: #e8d9ca;
  padding: .35rem .7rem; border-radius: 999px; background: rgba(12, 9, 7, .7); }
.motion .vplay { left: auto; right: 1rem; }

/* ---------- about ---------- */
.about { padding: clamp(5rem, 11vw, 8.5rem) 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.badge { display: grid; gap: .9rem; justify-items: center; text-decoration: none; padding: 1.75rem; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(80% 70% at 50% 30%, rgba(255, 106, 31, .16), transparent 70%); transition: border-color .2s, transform .25s var(--ease); }
.badge:hover { border-color: rgba(255, 106, 31, .55); transform: translateY(-2px); }
.badge img { width: 220px; }
.badge span { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: #ffb48a; }
.about-p { margin-top: 1.25rem; max-width: 58ch; color: var(--muted); font-size: 1.12rem; }
.about-p strong { color: var(--ink); font-weight: 600; }
.tools { margin-top: 2rem; border-bottom: 1px solid var(--line); }
.tools div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.tools dt { font-weight: 600; }
.tools dd { color: var(--muted); }

/* ---------- teaching ---------- */
.teach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.teach p { margin: 1.25rem 0 2rem; color: var(--cream-muted); font-size: 1.12rem; max-width: 44ch; }
.teach strong { color: var(--cream-ink); }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.thumbs a { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(27, 19, 13, .55); transition: transform .3s var(--ease); }
.thumbs a:hover { transform: translateY(-3px); }

/* ---------- contact ---------- */
.contact, .pj-contact { padding: clamp(5.5rem, 12vw, 9rem) 0; text-align: center;
  background: radial-gradient(70% 70% at 50% 0%, rgba(255, 106, 31, .55) 0%, rgba(150, 45, 10, .35) 35%, rgba(12, 9, 7, 0) 72%), var(--bg); }
.contact h2, .pj-contact h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
.email { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 2.5rem; flex-wrap: wrap; position: relative; }
.btn-email { display: inline-flex; align-items: center; gap: .7rem; min-height: 66px; padding: 0 2.1rem; border-radius: 999px; background: var(--ink); color: #1a0e06;
  font-size: 1.25rem; font-weight: 700; text-decoration: none; transition: transform .18s var(--ease), background-color .2s; }
.btn-email:hover { transform: translateY(-2px); background: #fff; }
.btn-email:active { transform: translateY(1px) scale(.98); }
.btn-email .i { width: 1.3em; height: 1.3em; }
.btn-copy { width: 66px; height: 66px; border-radius: 50%; border: 1px solid rgba(245, 237, 227, .35); background: rgba(12, 9, 7, .4); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.btn-copy:hover { background: rgba(245, 237, 227, .1); border-color: rgba(245, 237, 227, .6); }
.btn-copy .i { width: 22px; height: 22px; }
.copied { position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%); font-size: .9rem; color: #ffd2b8; }
.reply { margin-top: 2.6rem; color: #d6c6b6; font-size: .95rem; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.links a:hover { border-color: currentColor; }
.cv-note { color: var(--muted); font-weight: 400; }

/* ---------- footer ---------- */
.foot { background: var(--bg); overflow: hidden; border-top: 1px solid var(--line); }
.foot-row { width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
.foot-row a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- project pages ---------- */
.pj .pj-nav { gap: 1rem; }
.pj-back { margin-left: auto; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .75rem; }
.pj-back:hover { color: var(--ink); }
.pj-cta { background: var(--ember); color: #1d0b02; }
.pj-hero { padding: calc(68px + 4rem) 0 0; width: var(--wrap); margin: 0 auto; }
.pj-code { font-size: .9rem; color: #ffb48a; font-weight: 600; font-variant-numeric: tabular-nums; }
.pj-title h1 { margin-top: .5rem; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -.045em; }
.pj-short { margin-top: 1rem; max-width: 52ch; color: var(--muted); font-size: 1.2rem; }
.pj-top { margin-top: 2.5rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px -50px rgba(255, 106, 31, .55); }
.pj-top picture { display: block; aspect-ratio: 16 / 9; } .pj-top img { width: 100%; height: 100%; object-fit: cover; }
.pj-main { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 6.5rem) 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.pj-text section + section { margin-top: 2.75rem; }
.pj-text h2, .pj-side h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.pj-text p { margin-top: .9rem; font-size: 1.12rem; line-height: 1.7; color: #e3d5c7; max-width: 66ch; }
.pj-note { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.pj-specs { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.pj-specs div { padding: .85rem 0; border-top: 1px solid var(--line); }
.pj-specs dt { font-size: .85rem; color: var(--muted); }
.pj-specs dd { margin-top: .15rem; font-variant-numeric: tabular-nums; }
.pj-dl { margin-top: 2.5rem; }
.pj-dl ul { margin-top: 1rem; display: grid; gap: .6rem; list-style: none; padding: 0; }
.pj-dl a { display: flex; align-items: center; gap: .7rem; min-height: 54px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, background-color .2s; }
.pj-dl a:hover { border-color: rgba(255, 106, 31, .6); background: rgba(255, 106, 31, .07); }
.pj-dl .sz { margin-left: auto; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.pj-gallery { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pj-gallery figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pj-gallery figure:first-child:nth-last-child(odd), .pj-gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pj-pn { width: var(--wrap); margin: clamp(4rem, 8vw, 6rem) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pj-pn a { display: grid; gap: .3rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; transition: border-color .2s; }
.pj-pn a:last-child { text-align: right; }
.pj-pn a span { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pj-pn a:hover { border-color: rgba(255, 106, 31, .6); }
.pj-contact { margin-top: clamp(4rem, 8vw, 6rem); }

.nf-main { min-height: 100vh; display: grid; place-content: center; gap: 1rem; text-align: center; padding: 2rem; }
.nf-main h1 { font-size: 6rem; color: var(--ember); }
.nf-main .btn { background: var(--ink); color: #1a0e06; justify-self: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
  .menu { position: fixed; inset: 68px 0 0; flex-direction: column; gap: 0; padding: 1.5rem; background: var(--bg); margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .menu a { font-size: 1.6rem; color: var(--ink); padding: 1rem 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .feat-grid, .motion, .teach-grid, .about-grid, .pj-main, .pj-gallery { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: .5rem; }
  .badge { justify-self: start; }
  .window-bar span:last-child { display: none; }
  .pj-cta { display: none; }
}
@media (max-width: 480px) {
  :root { --wrap: min(1240px, 100% - 2.25rem); }
  .mini-grid, .thumbs, .pj-pn { grid-template-columns: 1fr; }
  .pj-pn a:last-child { text-align: left; }
  .cta .btn { flex: 1 1 100%; }
  .btn-email { flex: 1; justify-content: center; padding: 0 1.25rem; }
  .tools div { grid-template-columns: 1fr; gap: .15rem; }
  .foot-row { flex-direction: column; gap: .25rem; }
}

/* ---------- section backgrounds ---------- */
body.v1 { --cream-ink: var(--ink); --cream-muted: var(--muted); }
.services, .teach { background: transparent; color: var(--ink); }
.svc, .svc-row { border-color: var(--line); }
.teach .btn-dark { background: var(--ink); color: #1a0e06; }
.teach .btn-dark:hover { background: #fff; }
.thumbs a { box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); }
.about { background: transparent; }
/* hero glow: the original look, with the big ellipse given in px from the hero's bottom edge so the same ellipse can
   carry on below the hero (::after) and fade out under "Services" with no seam */
.hero { overflow: visible; background: linear-gradient(180deg, #160b06 0px, #221009 140px, #3f1809 300px, #772a0c 460px, #b8420f 600px,
    #ec5c17 720px, #ff7a2e 820px, #ff9d62 920px, #ffc092 1020px, #ffd6b5 1110px, #ffc296 calc(100% - 240px), #ff8f4c 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 100%; height: 620px; pointer-events: none;
  background: linear-gradient(180deg, #ff8f4c 0%, #c94c16 22%, #6e260c 50%, #2a1007 78%, rgba(12, 9, 7, 0) 100%); }
@media (max-width: 720px) {
  .hero { background: linear-gradient(180deg, #160b06 0px, #2a120a 160px, #5a210b 320px, #a63c0f 470px, #e65816 580px, #ff7a2e 680px,
    #ffa468 780px, #ffcca3 880px, #ffc296 calc(100% - 160px), #ff8f4c 100%); } }
body.v1 { overflow-x: clip; }
.services { position: relative; }
/* contact glow fades in and out instead of starting at a hard top edge */
.contact, .pj-contact { background: radial-gradient(ellipse 70% 62% at 50% 50%, rgba(255, 106, 31, .42) 0%, rgba(150, 45, 10, .22) 40%, rgba(12, 9, 7, 0) 75%); }
.foot { background: transparent; }

/* ---------- moving word band ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden; display: grid; gap: .4rem; }
.band-row { display: flex; gap: .45em; white-space: nowrap; font-size: clamp(3.2rem, 9vw, 8.5rem); font-weight: 820; letter-spacing: -.045em; line-height: 1;
  will-change: transform; transform: translateX(var(--bx, 0px)); }
.band-row span { display: inline-flex; align-items: center; gap: .45em; }
.band-row span::after { content: ""; width: .16em; height: .16em; border-radius: 50%; background: var(--ember); }
.band-row:first-child { color: transparent; -webkit-text-stroke: 1.5px rgba(245, 237, 227, .5); }
.band-rev { color: var(--ember); font-size: clamp(2rem, 5.4vw, 5rem); transform: translateX(calc(-30% - var(--bx, 0px))); }

/* ---------- scroll effects ---------- */
/* headings: letters flip up one by one (3D), starting stretched and blurred */
.fx .split .w { display: inline-block; white-space: nowrap; perspective: 700px; }
.fx .split .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-88deg) scaleY(1.35); transform-origin: 50% 100%; filter: blur(8px);
  transition: opacity .7s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 22ms); }
.fx .split.in .ch { opacity: 1; transform: none; filter: none; }
.fx .hero h1 { animation: none; }
/* scroll-lit paragraphs: words light up as you scroll through them */
.fx .scrub .sw-w { opacity: var(--o, .14); transition: opacity .25s linear; }
/* text rises in */
.fx .rv { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0ms); }
.fx .rv.in { opacity: 1; translate: none; }
/* rows sweep open left to right */
.fx .sw { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.fx .sw.in { clip-path: inset(0 0 0 0); }
/* hero video: starts as a trapezoid (leaning back) and flattens into a rectangle as you scroll */
.fx .window { transform-origin: 50% 0; transform: perspective(1100px) rotateX(var(--hx, 0deg)) scale(var(--hs, 1)); will-change: transform; }
/* other media: tilted in 3D while entering, flat at the middle of the screen; shutter opening; picture zooms out;
   leans + stretches with scroll speed */
.fx .mv { overflow: hidden; clip-path: inset(14% 7% 14% 7% round calc(var(--mr, 0px) + 12px)); transition: clip-path 1.35s var(--ease);
  transition-delay: var(--d, 0ms); transform-origin: 50% 100%;
  transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) skewY(var(--sk, 0deg)) scaleY(var(--st, 1)); will-change: transform; }
.fx .mv.in { clip-path: inset(0 0 0 0 round var(--mr, 0px)); }
.fx .mv > :is(.slot, picture, img) { scale: 1.22; transition: scale 1.7s var(--ease); transition-delay: var(--d, 0ms); }
.fx .mv.in > :is(.slot, picture, img) { scale: 1; }
.fx .motion figure:first-child { transform-origin: 100% 50%; }
.fx .motion figure:last-child { transform-origin: 0 50%; }
.fx .thumbs a:hover { translate: 0 -3px; transform: perspective(1300px) rotateX(var(--rx, 0deg)) skewY(var(--sk, 0deg)) scaleY(var(--st, 1)); }
.motion { perspective: 1600px; }

/* ---------- floating nav ---------- */
.nav, .pj-nav { inset: 12px 0 auto; width: min(1240px, 100% - 24px); margin-inline: auto; height: 60px; padding: 0 10px 0 18px; gap: 1.25rem;
  border-radius: 18px; border: 1px solid rgba(255, 236, 220, .14); border-bottom-color: rgba(255, 236, 220, .06);
  background: linear-gradient(180deg, rgba(48, 34, 26, .62), rgba(22, 15, 11, .58));
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 12px 40px -12px rgba(0, 0, 0, .75), 0 0 0 .5px rgba(0, 0, 0, .6); }
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; margin-right: 34px; background: #ff5f57;
  box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840, inset 0 0 0 .5px rgba(0, 0, 0, .35); }
.menu { gap: .15rem; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.menu a { border-radius: 10px; transform-origin: 50% 100%; transition: color .2s, background-color .2s, scale .18s var(--ease); }
.menu a:hover { background: rgba(255, 236, 220, .10); color: var(--ink); }
.nav-cta { border-radius: 12px; background: linear-gradient(180deg, #ff8a4c, #f0560f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -6px rgba(255, 106, 31, .8); }
.nav-cta:hover { background: linear-gradient(180deg, #ff9a62, #ff6a1f); }
.pj-hero { padding-top: calc(84px + 4rem); }
@media (max-width: 820px) { .brand::before { width: 10px; height: 10px; margin-right: 28px; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; } .menu { background: none; box-shadow: none; } }

@keyframes drift { to { background-position: 30% 0, 70% 20px, 50% 0; } }

/* ---------- section glows ---------- */
.work, .about, .teach, .contact { position: relative; isolation: isolate; overflow-x: clip; }
.work::before, .about::before, .teach::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 50%;
  width: min(1400px, 120vw); aspect-ratio: 1.6; translate: -50% calc(-50% + (1 - var(--gp, .5)) * 30%); scale: calc(.55 + var(--gp, .5) * .55);
  opacity: calc(var(--gp, .5) * .9); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 31, .22), rgba(170, 52, 12, .12) 45%, rgba(12, 9, 7, 0) 100%);
  animation: breathe 9s ease-in-out infinite alternate; }
.about::before { left: 22%; background: radial-gradient(closest-side, rgba(255, 140, 70, .18), rgba(150, 50, 14, .10) 50%, rgba(12, 9, 7, 0)); }
.teach::before { left: 78%; }
@keyframes breathe { from { filter: hue-rotate(-8deg); } to { filter: hue-rotate(10deg) brightness(1.25); } }

/* ---------- pinned scene ---------- */
.scene { position: relative; }
.scene-stage { position: relative; min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: .1em; text-align: center;
  padding: 6rem 1.5rem; overflow: hidden; isolation: isolate; }
.scene-a, .scene-b { font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 830; letter-spacing: -.05em; line-height: .95; }
.scene-a { color: #1d0b03; }
.scene-b { color: var(--ink); }
.scene-c { margin-top: 2rem; max-width: 44ch; color: var(--muted); font-size: 1.15rem; }
.dome { position: absolute; z-index: -1; left: 50%; top: 0; width: var(--dd, 200vmax); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, var(--dy, 120vh)); will-change: transform; }
.dome-ember { background: radial-gradient(circle closest-side, #e2531a 0%, #e2531a 74%, rgba(226, 83, 26, .55) 86%, rgba(226, 83, 26, 0) 100%); }
/* no-JS / reduced motion fallback */
html:not(.fx) .scene-stage { background: radial-gradient(80% 70% at 50% 50%, #e2531a, #8a2a08 70%, var(--bg)); }
html:not(.fx) .dome { display: none; }
html:not(.fx) .scene-c { color: #2a1206; }
.fx .scene { height: 180vh; }
.fx .scene-stage::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 30vh; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.fx .scene-stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
.fx .scene-b { opacity: var(--bo, 0); filter: blur(var(--bb, 24px)); transform: translateY(var(--by, 30px)) scale(var(--bs, 1.08)); }
.fx .scene-c { color: #2a1206; opacity: var(--co, 0); transform: translateY(var(--cy, 20px)); }

/* ---------- project cards ---------- */
.feat-link, .mini a { position: relative; transform: perspective(1000px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s var(--ease); }
.feat-link:hover, .mini a:hover { transition-duration: .15s; }
.frame { position: relative; transition: box-shadow .35s var(--ease), border-color .35s; }
.frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 190, 140, .30), rgba(255, 106, 31, .10) 40%, transparent 70%); }
.frame::before { content: ""; position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 220, 190, .28) 50%, transparent 58%); translate: -70% 0; }
.mv.in::before, html:not(.fx) .frame::before { animation: sheen 7s var(--d, 0ms) infinite; }
@keyframes sheen { 0%, 70% { translate: -70% 0; } 100% { translate: 70% 0; } }
.feat-link:hover .frame, .mini a:hover .frame { border-color: rgba(255, 140, 80, .65);
  box-shadow: 0 0 0 1px rgba(255, 106, 31, .5), 0 30px 80px -30px rgba(255, 106, 31, .65); }
.feat-link:hover .frame::after, .mini a:hover .frame::after { opacity: 1; }
.more .i { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 75% { transform: translateX(6px); } 88% { transform: translateX(0); } }
.feat-link:hover .more { color: #ffc29c; }

/* ---------- contact links ---------- */
.btn-email { position: relative; overflow: hidden; background: linear-gradient(180deg, #fffaf4, #f1e2d2);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120, 60, 20, .18), 0 18px 40px -14px rgba(255, 106, 31, .75); }
.btn-email::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 rgba(255, 140, 80, .6); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 80, .55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(255, 140, 80, 0); } }
.links { gap: .8rem; margin-top: 2.2rem; }
.links a { --c: 255, 106, 31; position: relative; overflow: hidden; gap: .5rem; min-height: 48px; padding: 0 1.15rem 0 .55rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); color: #fff6ee; font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)), rgba(28, 19, 14, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 10px 24px -14px rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px); transition: translate .25s var(--ease), box-shadow .3s, border-color .3s, background-color .3s; }
.links a::before { content: ""; width: 30px; height: 30px; border-radius: 50%; flex: none; order: -1;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 45%), rgb(var(--c));
  box-shadow: 0 0 14px rgba(var(--c), .7), inset 0 -2px 4px rgba(0, 0, 0, .3); }
.links a::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); translate: -120% 0; animation: gloss 5s infinite; }
.links li:nth-child(1) a { --c: 10, 102, 194; }  .links li:nth-child(1) a::after { animation-delay: 0s; }
.links li:nth-child(2) a { --c: 20, 168, 0; }    .links li:nth-child(2) a::after { animation-delay: .35s; }
.links li:nth-child(3) a { --c: 255, 0, 0; }     .links li:nth-child(3) a::after { animation-delay: .7s; }
.links li:nth-child(4) a { --c: 200, 200, 210; } .links li:nth-child(4) a::after { animation-delay: 1.05s; }
.links li:nth-child(5) a { --c: 37, 211, 102; }  .links li:nth-child(5) a::after { animation-delay: 1.4s; }
@keyframes gloss { 0%, 72% { translate: -120% 0; } 100% { translate: 120% 0; } }
.links a:hover { border-color: rgba(var(--c), .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(var(--c), .5), 0 14px 34px -10px rgba(var(--c), .85); }
.links a[aria-disabled="true"] { --c: 120, 105, 92; color: var(--muted); }
.links a[aria-disabled="true"]::after { animation: none; }
.links a:hover { border-bottom-color: rgba(var(--c), .9); }

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line); }
.foot-row { position: relative; }
.fx .scene-a { opacity: var(--ao, 1); }
/* project pages: top light */
body.pj::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 900px; pointer-events: none;
  background:
    radial-gradient(42% 46% at 18% 0%, rgba(255, 120, 48, .30), rgba(255, 106, 31, 0) 70%),
    radial-gradient(38% 42% at 84% 4%, rgba(200, 70, 20, .26), rgba(200, 70, 20, 0) 70%),
    radial-gradient(70% 38% at 50% -6%, rgba(120, 44, 14, .55), rgba(12, 9, 7, 0) 80%);
  background-size: 140% 100%, 140% 100%, 100% 100%; animation: drift 18s ease-in-out infinite alternate; }

/* ---------- nav hide on scroll ---------- */
.brand::before { content: none; }
.nav, .pj-nav { transition: transform .55s cubic-bezier(.2, 1.25, .3, 1), opacity .35s ease, box-shadow .3s; }
.nav.nav-hide, .pj-nav.nav-hide { transform: translateY(calc(-100% - 20px)); opacity: 0; transition: transform .4s cubic-bezier(.5, 0, .75, 0), opacity .3s ease .05s; }
/* menu hover */
.menu a { position: relative; overflow: hidden; scale: none !important; }
.menu a span { transition: color .25s ease; }
.menu a:hover span, .menu a:focus-visible span { color: #ffb48a; }
.menu a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember);
  translate: -50% 8px; opacity: 0; transition: translate .35s var(--ease), opacity .25s; }
.menu a:hover::after, .menu a[aria-current]::after { translate: -50% 0; opacity: 1; }

/* ---------- contact link icons ---------- */
.links a { --c: 255, 106, 31; padding: 0 1.15rem 0 .95rem; }
.links a::before { content: none; }
.links .lk { width: 19px; height: 19px; color: #ffd9bf; opacity: .95; }
.links a:hover .lk { color: #fff; }
.links a[aria-disabled="true"] .lk { color: var(--muted); }

/* ---------- hero video ---------- */
.window { border-radius: 18px; border-bottom: 1px solid rgba(255, 210, 180, .22);
  box-shadow: 0 -10px 80px -10px rgba(255, 106, 31, .45), 0 50px 90px -20px rgba(0, 0, 0, .85), 0 100px 160px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5); }
.hero-stage { position: relative; margin-bottom: clamp(4rem, 9vw, 7rem); animation: lift 1.3s .25s var(--ease) both, float 7s 1.7s ease-in-out infinite; }
.hero-stage::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -70px; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); filter: blur(6px); animation: shadowpulse 7s 1.7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadowpulse { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .7; scale: .92; } }

/* ---------- hero layers ---------- */
.hero-copy, .hero-stage { position: relative; z-index: 1; }
.role .cswp { position: relative; overflow: hidden; }
.role .cswp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 230, 210, .55) 50%, transparent 70%);
  translate: -120% 0; animation: gloss 4.5s 1.5s infinite; }

/* ---------- project cards: hover ---------- */

/* ---------- scene: first line colour ---------- */
.fx .scene-a { color: var(--ac, #f5ede3); opacity: 1; }

/* ---------- teaching / YouTube ---------- */
.teach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.teach-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.teach-cta .i { width: 1.25em; height: 1.25em; }
.btn-yt { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #e3231b, #b8130e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 30px -10px rgba(255, 40, 30, .8); }
.btn-yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%); translate: -120% 0; animation: gloss 4s infinite; }
.btn-yt:hover { background: linear-gradient(180deg, #f02c23, #c81711); }
.channel { display: grid; gap: 1.1rem; }
.channel-card { display: block; position: relative; border-radius: 20px; overflow: hidden; text-decoration: none; isolation: isolate;
  border: 1px solid rgba(120, 170, 255, .28); background: #0b1e3f;
  box-shadow: 0 30px 80px -30px rgba(30, 80, 180, .7), 0 0 0 1px rgba(0, 0, 0, .4); transition: transform .5s var(--ease), box-shadow .4s; }
.channel-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 40px 90px -30px rgba(50, 110, 230, .9), 0 0 0 1px rgba(120, 170, 255, .5); }
.ch-banner { display: block; aspect-ratio: 1200 / 330; overflow: hidden; }
.ch-banner img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.channel-card:hover .ch-banner img { scale: 1.06; }
.ch-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem 1rem; background: linear-gradient(180deg, #0e2550, #0a1a38); }
.ch-avatar { width: 64px; height: 64px; border-radius: 50%; margin-top: -42px; border: 3px solid #0e2550; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); flex: none;
  animation: avatar 3.2s ease-in-out infinite; }
@keyframes avatar { 0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 0 rgba(245, 184, 0, .0); } 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 6px rgba(245, 184, 0, .35); } }
.ch-name { display: grid; color: #fff; font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.ch-name small { font-weight: 500; font-size: .85rem; letter-spacing: 0; color: #a9bfe6; }
.ch-sub { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  color: #fff; background: linear-gradient(180deg, #e3231b, #b8130e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); flex: none; transition: transform .25s var(--ease); }
.ch-sub .i { width: 1.15em; height: 1.15em; }
.channel-card:hover .ch-sub { transform: scale(1.06); }
.thumbs a { position: relative; transition: transform .45s var(--ease), box-shadow .4s; }
.thumbs a:nth-child(1) { rotate: -2.5deg; } .thumbs a:nth-child(2) { rotate: 2deg; translate: 0 10px; }
.thumbs:hover a:nth-child(1) { rotate: -4deg; translate: -8px 0; } .thumbs:hover a:nth-child(2) { rotate: 4deg; translate: 8px 6px; }
.thumbs a:hover { rotate: 0deg !important; z-index: 2; box-shadow: 0 30px 60px -20px rgba(255, 40, 30, .55); }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%; z-index: 2;
  background: rgba(10, 6, 4, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .45); transition: background-color .3s, scale .3s var(--ease); }
.play::before { content: ""; position: absolute; left: 53%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff; }
.play::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; animation: ring 2.4s ease-out infinite; }
.thumbs a:hover .play { background: #e8231b; scale: 1.12; border-color: transparent; }
.yt-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #e8231b; transform-origin: 0 50%; scale: 0 1; transition: scale 1.6s cubic-bezier(.3, .6, .2, 1); z-index: 2; }
.thumbs a:hover .yt-bar { scale: 1 1; }
.fx .thumbs a:hover { transform: perspective(1300px) rotateX(var(--rx, 0deg)) skewY(var(--sk, 0deg)) scaleY(var(--st, 1)); translate: 0 -6px; }
@media (max-width: 820px) { .teach-grid { grid-template-columns: 1fr; } .ch-avatar { width: 54px; height: 54px; } .ch-name { font-size: 1.05rem; } }

/* ---------- project pages ---------- */
.pj main { position: relative; isolation: isolate; overflow-x: clip; }
.pj-water { position: absolute; z-index: -1; top: 70px; right: -2vw; font-size: clamp(6rem, 20vw, 20rem); font-weight: 850; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 140, 80, .16); user-select: none; pointer-events: none; white-space: nowrap; }
.pj-top { position: relative; border-color: rgba(255, 210, 180, .22);
  box-shadow: 0 -10px 80px -20px rgba(255, 106, 31, .45), 0 50px 90px -20px rgba(0, 0, 0, .85), 0 100px 160px -40px rgba(0, 0, 0, .9); }
.pj-main { position: relative; }
.pj-main::before, .pj-gallery::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 900px; aspect-ratio: 1.4; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 31, .16), rgba(170, 52, 12, .08) 50%, rgba(12, 9, 7, 0)); animation: breathe 9s ease-in-out infinite alternate; }
.pj-main::before { left: -300px; top: 10%; }
.pj-gallery { position: relative; }
.pj-gallery::before { right: -300px; top: -10%; }
.pj-text section { position: relative; padding-left: 1.4rem; }
.pj-text section::before { content: ""; position: absolute; left: 0; top: .35rem; bottom: .2rem; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ember), rgba(255, 106, 31, 0)); }
.pj-side { position: relative; align-self: start; padding: 1.6rem; border-radius: 20px; border: 1px solid rgba(255, 210, 180, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), rgba(24, 16, 12, .6); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px -30px rgba(0, 0, 0, .9); }
.pj-dl a { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.pj-gallery figure { transition: border-color .3s, box-shadow .4s; }
.pj-gallery figure:hover { border-color: rgba(255, 140, 80, .6); box-shadow: 0 30px 70px -30px rgba(255, 106, 31, .6); }
.pj-pn a { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); transition: border-color .3s, transform .35s var(--ease); }
.pj-pn a:hover { border-color: rgba(255, 140, 80, .6); transform: translateY(-3px); }

/* ---------- hero intro ---------- */
.fx .hero h1.intro { animation: none; }
.fx .hero h1.intro .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .05em .14em; margin: -.04em -.05em -.14em; }
.fx .hero h1.intro .hc { display: inline-block; translate: 0 110%; transition: translate .9s cubic-bezier(.2, .9, .2, 1) calc(150ms + var(--i) * 30ms); }
.fx .hero h1.intro.go .hc { translate: none; }
.fx .hero .role { animation: rise .8s .7s var(--ease) both; }
.fx .hero .lede { animation: rise .8s .85s var(--ease) both; }
.fx .hero .cta { animation-delay: 1s; }
.fx .hero .avail { animation-delay: 1.15s; }
.fx .hero-stage { animation-delay: .9s, 2.3s; }

/* hero text on the warm gradient */
.hero .lede { color: rgba(255, 240, 228, .9); }
.hero .avail { color: #fff3ea; font-weight: 500; }

/* CSWP chip links to the badge in About */
a.cswp { text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
a.cswp:hover, a.cswp:focus-visible { background: rgba(255, 106, 31, .32); border-color: rgba(255, 150, 90, .9); color: #ffd2b5; }
#cswp-badge { scroll-margin: 120px; }
#cswp-badge.is-hit { animation: badgehit 1.6s var(--ease); }
@keyframes badgehit { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 70, .9); } 40% { box-shadow: 0 0 0 14px rgba(255, 140, 70, .35); } 100% { box-shadow: 0 0 0 26px rgba(255, 140, 70, 0); } }

/* hero: second button is a solid dark pill next to the light one */
.hero .btn-ghost { background: #0d0806; border-color: rgba(255, 236, 222, .16); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
.hero .btn-ghost:hover { background: #000; border-color: rgba(255, 236, 222, .38); }

/* about: portrait with the CSWP badge pinned to its corner */
.about-side { position: relative; width: 100%; max-width: 300px; }
.portrait { display: block; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 170, 120, .18);
  box-shadow: 0 40px 90px -40px rgba(255, 106, 31, .55), 0 20px 50px -20px rgba(0, 0, 0, .9); }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.about-side .badge { position: absolute; right: -34px; bottom: -34px; padding: .85rem .9rem .75rem; gap: .45rem; border-radius: 18px;
  background: rgba(16, 10, 7, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255, 170, 120, .22);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); }
.about-side .badge img { width: 96px; }
.about-side .badge span { font-size: .78rem; }
@media (max-width: 900px) { .about-side { max-width: 340px; margin-bottom: 2rem; } .about-side .badge { right: -12px; bottom: -24px; } }

/* attention effects: play twice, then again on hover (nothing shimmers forever) */
@keyframes glossH { 0% { translate: -120% 0; } 100% { translate: 120% 0; } }
@keyframes sheenH { 0% { translate: -70% 0; } 100% { translate: 70% 0; } }
@keyframes ringH { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 80, .55); } 100% { box-shadow: 0 0 0 18px rgba(255, 140, 80, 0); } }
@keyframes nudgeH { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
.mv.in::before, html:not(.fx) .frame::before { animation-iteration-count: 2; }
.more .i, .btn-email::after, .links a::after, .role .cswp::after, .btn-yt::after, .ch-avatar, .play::after { animation-iteration-count: 2; }
.feat-link:hover .frame::before, .mini a:hover .frame::before { animation: sheenH 1.1s var(--ease) 1; }
.feat-link:hover .more .i { animation: nudgeH .6s var(--ease) 2; }
.links a:hover::after, .btn-yt:hover::after, .role .cswp:hover::after { animation: glossH .9s var(--ease) 1; }
.btn-email:hover::after { animation: ringH 1.2s ease-out 1; }
.thumbs a:hover .play::after { animation: ringH 1.2s ease-out 1; }
.channel-card:hover .ch-avatar { animation: avatar 1.6s ease-in-out 1; }

/* featured projects: each card framed like a drawing sheet, with corner marks outside the hairline border */
.feat-link { padding: clamp(.9rem, 1.6vw, 1.3rem); border: 1px solid rgba(255, 220, 196, .17); border-radius: 26px;
  background: linear-gradient(180deg, #24170f 0%, #1a110b 55%, #140d09 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 222, .10), 0 2px 0 rgba(0, 0, 0, .35), 0 40px 80px -36px rgba(0, 0, 0, .95), 0 16px 34px -18px rgba(0, 0, 0, .8);
  color: rgba(255, 220, 196, .5);
  transition: transform .5s var(--ease), border-color .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease; }
.feat-link > * { color: var(--ink); }
.feat-link::after { content: ""; position: absolute; inset: -11px; pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 24px 1.5px, linear-gradient(currentColor, currentColor) 0 0 / 1.5px 24px,
    linear-gradient(currentColor, currentColor) 100% 0 / 24px 1.5px, linear-gradient(currentColor, currentColor) 100% 0 / 1.5px 24px,
    linear-gradient(currentColor, currentColor) 0 100% / 24px 1.5px, linear-gradient(currentColor, currentColor) 0 100% / 1.5px 24px,
    linear-gradient(currentColor, currentColor) 100% 100% / 24px 1.5px, linear-gradient(currentColor, currentColor) 100% 100% / 1.5px 24px;
  background-repeat: no-repeat; transition: inset .45s var(--ease); }
.feat-link:hover, .feat-link:focus-visible { color: #ff8a4c; border-color: rgba(255, 140, 80, .5);
  background: linear-gradient(180deg, #2e1a0f 0%, #1f130b 55%, #170e09 100%);
  box-shadow: inset 0 1px 0 rgba(255, 200, 160, .16), 0 2px 0 rgba(0, 0, 0, .35), 0 50px 90px -36px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(255, 106, 31, .35); }
.feat-link:hover::after, .feat-link:focus-visible::after { inset: -17px; }
.sheet-tag { display: flex; justify-content: space-between; gap: 1rem; margin: -.1rem .15rem .8rem; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 236, 222, .5); font-variant-numeric: tabular-nums; }
.feat-link:hover .sheet-tag { color: #ffb48a; }
.feat-body { padding: 1.4rem .2rem .2rem; }
@media (max-width: 720px) { .feat-link::after { inset: -8px; } .feat-link:hover::after { inset: -8px; } }
