/* Layout concept: a warm, dim studio taken from the avatar's own backdrop. Left-aligned
   copy, one lit figure on the right, and phones that play short motion pieces. */
:root {
  --umber: #261c19;
  --clay: #33261f;
  --clay-2: #45342d;
  --line: #5a463d;
  --bone: #f6ece2;
  --dust: #c9b8ab;
  --raspberry: #e0395a;
  --raspberry-deep: #a72839;
  --apricot: #f4944f;
  --sage: #74c7b3;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--umber); color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--umber); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--umber) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__name { font: 800 1.1rem var(--display); text-decoration: none; margin-right: auto; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { text-decoration: none; color: var(--dust); font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--bone); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px;
  background: var(--raspberry); color: #fff; font: 600 1rem var(--body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .2s;
}
.btn:hover { background: #ee4a6a; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--clay-2); }
.btn--small { padding: 9px 16px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 6vw, 72px) var(--gutter) 0; min-height: min(88vh, 860px);
}
.hero__hello { color: var(--apricot); font-weight: 500; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 5.2rem); font-weight: 800; line-height: .94; letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: block; }
.hero__lede { max-width: 34em; color: var(--dust); margin-top: 26px; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__stage { position: relative; align-self: end; min-height: 520px; }
.glow {
  position: absolute; inset: 0 -4% 0 6%;
  background: radial-gradient(60% 60% at var(--gx, 55%) var(--gy, 38%), #6b4333 0%, #3f2e27 48%, transparent 76%);
  transition: opacity .6s;
}
.hero__avatar {
  position: relative; width: min(100%, 470px); height: auto; margin-left: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 28% 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 28% 80%, transparent 100%);
  mask-composite: intersect;
}
.hero__now {
  position: absolute; left: 0; bottom: 30px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: var(--clay); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9rem; color: var(--dust); min-width: 120px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sage) 0%, transparent); } 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage) 60%, transparent); } }

/* ---------- phone + scenes ---------- */
.phone {
  --w: 232px; width: var(--w); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 38px;
  background: #17110f; box-shadow: 0 0 0 1.5px #6b554b, 0 30px 60px -20px rgba(8, 3, 2, .8);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 58px; height: 16px; margin-left: -29px; border-radius: 10px; background: #17110f; z-index: 3; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--bone); color: #2a1d19; }
.phone--hero { position: absolute; left: 0; bottom: 84px; --w: 204px; transform: rotate(-7deg); z-index: 2; }

.scene { position: absolute; inset: 0; padding: 44px 14px 14px; opacity: 0; transition: opacity .5s; }
.scene.is-on { opacity: 1; }
.scene * { position: absolute; }
.scene .bar { left: 14px; right: 14px; top: 44px; height: 20px; }
.scene .bar i { left: 0; top: 4px; width: 46%; height: 12px; border-radius: 6px; background: #2a1d19; }
.scene .bar b { right: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e7d8ca; }

/* Modelli: server-driven blocks change order after a layout is published */
.s-modelli { background: #fbf3ea; }
.s-modelli .toast { left: 14px; right: 14px; top: 74px; height: 26px; border-radius: 13px; background: #2a1d19; animation: m-toast 7s var(--ease) infinite; }
.s-modelli .toast::before { content: ""; position: absolute; left: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.s-modelli .toast::after { content: ""; position: absolute; left: 24px; top: 10px; width: 52%; height: 6px; border-radius: 3px; background: #a99a8e; }
.s-modelli .blk { left: 14px; right: 14px; border-radius: 14px; }
.s-modelli .banner { top: 110px; height: 92px; background: linear-gradient(135deg, var(--raspberry), #f07f5f); animation: m-banner 7s var(--ease) infinite; }
.s-modelli .banner::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 44%; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .85); }
.s-modelli .chips { top: 212px; height: 26px; animation: m-chips 7s var(--ease) infinite; }
.s-modelli .chips i { top: 0; height: 26px; width: 30%; border-radius: 13px; background: #ead9c9; }
.s-modelli .chips i:nth-child(1) { left: 0; background: #2a1d19; } .s-modelli .chips i:nth-child(2) { left: 35%; } .s-modelli .chips i:nth-child(3) { left: 70%; }
.s-modelli .grid { top: 248px; height: 150px; animation: m-grid 7s var(--ease) infinite; }
.s-modelli .grid i { width: 47%; height: 70px; border-radius: 12px; background: #ead9c9; }
.s-modelli .grid i:nth-child(1) { left: 0; top: 0; background: #f3c7a5; } .s-modelli .grid i:nth-child(2) { right: 0; top: 0; }
.s-modelli .grid i:nth-child(3) { left: 0; top: 80px; } .s-modelli .grid i:nth-child(4) { right: 0; top: 80px; background: #cfe6dd; }
@keyframes m-toast { 0%, 30% { transform: translateY(-46px); opacity: 0; } 36%, 46% { transform: none; opacity: 1; } 52%, 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes m-banner { 0%, 44% { transform: none; } 56%, 92% { transform: translateY(196px); } 100% { transform: none; } }
@keyframes m-chips { 0%, 44% { transform: none; } 56%, 92% { transform: translateY(-102px); } 100% { transform: none; } }
@keyframes m-grid { 0%, 44% { transform: none; } 56%, 92% { transform: translateY(-102px); } 100% { transform: none; } }

/* Foodidu: pins drop on a map, then a coupon slides up and gets copied */
.s-foodidu { background: #f2e7d8; }
.s-foodidu .map { inset: 0; background:
  linear-gradient(115deg, transparent 46%, #fff 46% 50%, transparent 50%),
  linear-gradient(25deg, transparent 58%, #fff 58% 61%, transparent 61%),
  linear-gradient(90deg, transparent 30%, #fff 30% 33%, transparent 33%),
  radial-gradient(60px 50px at 76% 30%, #cfe6dd 98%, transparent), #efe1cf; }
.s-foodidu .pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform-origin: 0 100%; background: var(--raspberry); rotate: -45deg; animation: f-pin 7s var(--ease) infinite both; }
.s-foodidu .pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.s-foodidu .pin:nth-of-type(1) { left: 28%; top: 30%; } .s-foodidu .pin:nth-of-type(2) { left: 62%; top: 44%; animation-delay: .25s; background: var(--apricot); }
.s-foodidu .pin:nth-of-type(3) { left: 40%; top: 58%; animation-delay: .5s; }
.s-foodidu .ticket { left: 14px; right: 14px; bottom: 16px; height: 104px; border-radius: 16px; background: #fff; box-shadow: 0 12px 26px -12px rgba(42, 29, 25, .5); animation: f-ticket 7s var(--ease) infinite; }
.s-foodidu .ticket::before { content: ""; position: absolute; left: 12px; right: 12px; top: 52px; border-top: 2px dashed #dccbbb; }
.s-foodidu .ticket .brand { left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 8px; background: var(--apricot); }
.s-foodidu .ticket .name { left: 50px; top: 19px; width: 44%; height: 8px; border-radius: 4px; background: #2a1d19; }
.s-foodidu .ticket .name::after { content: ""; position: absolute; left: 0; top: 13px; width: 66%; height: 6px; border-radius: 3px; background: #cdbcae; }
.s-foodidu .ticket .code { left: 14px; bottom: 14px; font: 800 15px/1 var(--display); letter-spacing: .08em; color: #2a1d19; }
.s-foodidu .ticket .copy { right: 12px; bottom: 9px; width: 62px; height: 26px; border-radius: 13px; background: #2a1d19; animation: f-copy 7s linear infinite; }
.s-foodidu .ticket .copy::after { content: ""; position: absolute; left: 24px; top: 6px; width: 8px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 45deg; scale: 0; animation: f-check 7s var(--ease) infinite; }
@keyframes f-pin { 0%, 6% { transform: translateY(-60px) scale(0); opacity: 0; } 16%, 90% { transform: none; opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes f-ticket { 0%, 28% { transform: translateY(140px); } 40%, 90% { transform: none; } 100% { transform: translateY(140px); } }
@keyframes f-copy { 0%, 58% { background: #2a1d19; } 62%, 100% { background: #2f9e83; } }
@keyframes f-check { 0%, 58% { scale: 0; } 66%, 100% { scale: 1; } }

/* E3RBLY: a sentence is split into words, and each word receives its grammatical tag */
.s-e3rbly { background: #eef4ef; }
.s-e3rbly .card { left: 14px; right: 14px; top: 80px; height: 172px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px -14px rgba(42, 29, 25, .45); }
.s-e3rbly .w { top: 28px; height: 30px; border-radius: 10px; background: #2a1d19; animation: e-word 7s var(--ease) infinite both; }
.s-e3rbly .w:nth-of-type(1) { right: 14px; width: 30%; } .s-e3rbly .w:nth-of-type(2) { right: 48%; width: 24%; animation-delay: .15s; } .s-e3rbly .w:nth-of-type(3) { right: 76%; width: 17%; animation-delay: .3s; }
.s-e3rbly .t { top: 72px; height: 22px; border-radius: 11px; display: grid; place-items: center; font: 600 9.5px/1 var(--body); color: #fff; animation: e-tag 7s var(--ease) infinite both; }
.s-e3rbly .t:nth-of-type(4) { right: 14px; width: 30%; background: var(--raspberry); animation-delay: 1.2s; }
.s-e3rbly .t:nth-of-type(5) { right: 48%; width: 24%; background: #2f9e83; animation-delay: 1.7s; }
.s-e3rbly .t:nth-of-type(6) { right: 76%; width: 17%; background: #d97a2b; animation-delay: 2.2s; }
.s-e3rbly .note { left: 14px; right: 14px; top: 116px; height: 7px; border-radius: 4px; background: #e2ddd6; animation: e-note 7s var(--ease) infinite both; animation-delay: 2.8s; transform-origin: 100% 50%; }
.s-e3rbly .note + .note { top: 132px; left: 34%; animation-delay: 3s; } .s-e3rbly .note + .note + .note { top: 148px; left: 22%; animation-delay: 3.2s; }
.s-e3rbly .ring { left: 14px; right: 14px; bottom: 18px; height: 12px; border-radius: 6px; background: #d9e6de; overflow: hidden; }
.s-e3rbly .ring::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: #2f9e83; transform-origin: 0 50%; animation: e-bar 7s var(--ease) infinite; }
@keyframes e-word { 0% { transform: scale(.4); opacity: 0; } 8%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes e-tag { 0%, 4% { transform: translateY(-10px) scale(.6); opacity: 0; } 12%, 76% { transform: none; opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes e-note { 0%, 4% { transform: scaleX(0); } 14%, 70% { transform: none; opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes e-bar { 0%, 20% { transform: scaleX(.25); } 70%, 92% { transform: scaleX(.8); } 100% { transform: scaleX(.25); } }

/* Shalla7: cards are dealt into a fan, then the leaderboard fills */
.s-shalla7 { background: #2e2320; }
.s-shalla7 .bar i { background: var(--bone); } .s-shalla7 .bar b { background: #4d3b35; }
.s-shalla7 .c { left: 50%; top: 96px; width: 62px; height: 88px; margin-left: -31px; border-radius: 9px; background: var(--bone); transform-origin: 50% 150%; box-shadow: 0 6px 14px -6px #000; animation: s-deal 7s var(--ease) infinite both; }
.s-shalla7 .c::after { content: ""; position: absolute; left: 8px; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--raspberry); rotate: 45deg; }
.s-shalla7 .c:nth-of-type(2n)::after { background: #2a1d19; border-radius: 50%; }
.s-shalla7 .c:nth-of-type(1) { --r: -36deg; } .s-shalla7 .c:nth-of-type(2) { --r: -18deg; animation-delay: .12s; } .s-shalla7 .c:nth-of-type(3) { --r: 0deg; animation-delay: .24s; }
.s-shalla7 .c:nth-of-type(4) { --r: 18deg; animation-delay: .36s; } .s-shalla7 .c:nth-of-type(5) { --r: 36deg; animation-delay: .48s; }
.s-shalla7 .row { left: 14px; right: 14px; height: 26px; border-radius: 13px; background: #3d2f2a; overflow: hidden; }
.s-shalla7 .row::after { content: ""; position: absolute; inset: 0; border-radius: 13px; transform-origin: 0 50%; animation: s-score 7s var(--ease) infinite both; }
.s-shalla7 .row:nth-of-type(6) { bottom: 92px; } .s-shalla7 .row:nth-of-type(6)::after { background: var(--apricot); --to: .92; animation-delay: 1.4s; }
.s-shalla7 .row:nth-of-type(7) { bottom: 56px; } .s-shalla7 .row:nth-of-type(7)::after { background: var(--raspberry); --to: .7; animation-delay: 1.6s; }
.s-shalla7 .row:nth-of-type(8) { bottom: 20px; } .s-shalla7 .row:nth-of-type(8)::after { background: var(--sage); --to: .48; animation-delay: 1.8s; }
@keyframes s-deal { 0%, 4% { transform: translateY(-160px) rotate(0); opacity: 0; } 16%, 80% { transform: rotate(var(--r)); opacity: 1; } 92%, 100% { transform: translateY(40px) rotate(0); opacity: 0; } }
@keyframes s-score { 0%, 4% { transform: scaleX(0); } 26%, 74% { transform: scaleX(var(--to)); } 86%, 100% { transform: scaleX(0); } }

.project:not(.is-live) .scene *, .project:not(.is-live) .scene *::after { animation-play-state: paused; }

/* ---------- skills band ---------- */
.band { margin-top: clamp(36px, 6vw, 72px); padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; }
.band__row { display: flex; }
.band__track { display: flex; flex: none; gap: 44px; padding-right: 44px; animation: slide 46s linear infinite; font: 800 clamp(2rem, 5vw, 3.6rem)/1.15 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.band__track span:nth-child(3n + 1) { color: transparent; -webkit-text-stroke: 1.4px var(--dust); }
.band__track span:nth-child(3n) { color: var(--apricot); }
.band__row--back .band__track { animation-direction: reverse; animation-duration: 58s; }
.band__row--back .band__track span:nth-child(3n) { color: var(--raspberry); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vw, 128px) var(--gutter) 0; }
.hero { padding-top: clamp(32px, 6vw, 72px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(36px, 6vw, 72px); max-width: 44rem; }
.section-head p { color: var(--dust); }

.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: clamp(28px, 5vw, 56px); border-top: 1px solid var(--line); }
.project--flip .project__visual { order: 2; }
.project__visual { display: grid; place-items: center; min-height: 480px; border-radius: 32px; background: radial-gradient(70% 60% at 50% 40%, var(--clay-2), var(--clay)); }
.project__visual .phone { transition: transform .9s var(--ease); transform: translateY(26px) rotate(-3deg); }
.project--flip .project__visual .phone { transform: translateY(26px) rotate(3deg); }
.project.is-live .project__visual .phone { transform: none; }
.project__meta { color: var(--apricot); font-weight: 500; }
.project h3 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 6px 0 16px; }
.project__what { font-size: 1.2rem; max-width: 32em; }
.project ul { list-style: none; display: grid; gap: 10px; margin-top: 20px; max-width: 36em; color: var(--dust); }
.project li { padding-left: 20px; position: relative; }
.project li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--raspberry); rotate: 45deg; }
.project__stack { margin-top: 20px; font-size: .95rem; color: var(--bone); }
.project__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.project__links a, .creds a { text-decoration: underline; text-decoration-color: var(--raspberry); text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 600; transition: text-decoration-color .2s; }
.project__links a:hover, .creds a:hover { text-decoration-color: var(--apricot); }

.more { border-top: 1px solid var(--line); padding-top: clamp(28px, 5vw, 56px); }
.more h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 22px; }
.more dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.more dt { font: 600 1.2rem var(--display); margin-bottom: 6px; }
.more dd { color: var(--dust); }

/* ---------- timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 56rem; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { background: var(--raspberry); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.timeline li { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; padding: 0 0 34px 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--umber); box-shadow: inset 0 0 0 2px var(--line); z-index: 1; transition: background .3s, box-shadow .3s, scale .3s var(--ease); }
.timeline li.is-past::before { background: var(--raspberry); box-shadow: inset 0 0 0 2px var(--raspberry); scale: 1.15; }
.timeline time { color: var(--apricot); font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.timeline p { color: var(--dust); margin-top: 4px; }
.timeline li > div { opacity: .5; transition: opacity .4s; }
.timeline li.is-past > div { opacity: 1; }

/* ---------- skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 36px clamp(28px, 4vw, 56px); }
.skills__grid h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; padding-top: 14px; border-top: 2px solid var(--raspberry); }
.skills__grid p { color: var(--dust); }
.creds { margin-top: clamp(48px, 7vw, 88px); }
.creds h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.creds ul { list-style: none; }
.creds li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds span { color: var(--dust); }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(64px, 10vw, 120px); }
.contact h2 { font-size: clamp(2.6rem, 8vw, 6.4rem); max-width: 12ch; }
.contact > p { color: var(--dust); margin-top: 18px; max-width: 34em; font-size: 1.125rem; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.contact__mail a { font: 600 clamp(1.2rem, 3.4vw, 2.2rem) var(--display); text-decoration-color: var(--raspberry); text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact__links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact__links a { display: inline-block; padding: 10px 18px; border-radius: 999px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, transform .25s var(--ease); }
.contact__links a:hover { background: var(--clay-2); transform: translateY(-2px); }
.foot { padding: 22px var(--gutter); border-top: 1px solid var(--line); color: var(--dust); font-size: .9rem; }

/* ---------- load sequence ---------- */
.js [data-rise] { transform: translateY(110%); opacity: 0; }
.js .is-ready [data-rise] { transform: none; opacity: 1; transition: transform 1s var(--ease), opacity .6s; transition-delay: calc(var(--i, 0) * 90ms); }
.js .hero__avatar, .js .glow { opacity: 0; }
.js .is-ready .hero__avatar { opacity: 1; transition: opacity 1.2s .25s; }
.js .is-ready .glow { opacity: 1; transition: opacity 1.6s .1s; }
.js .phone--hero { opacity: 0; transform: translateY(60px) rotate(4deg); }
.js .is-ready .phone--hero { opacity: 1; transform: rotate(-7deg); transition: transform 1.1s var(--ease) .7s, opacity .5s .7s; }
.js .hero__now { opacity: 0; } .js .is-ready .hero__now { opacity: 1; transition: opacity .5s 1.3s; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { min-height: 440px; max-width: 480px; }
  .project, .project--flip { grid-template-columns: 1fr; }
  .project--flip .project__visual { order: 0; }
  .project__visual { min-height: 430px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  .phone--hero { --w: 132px; bottom: 64px; left: -4px; }
  .hero__stage { min-height: 400px; }
  .nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise], .js .hero__avatar, .js .glow, .js .phone--hero, .js .hero__now { opacity: 1; transform: none; }
  .js .phone--hero { transform: rotate(-7deg); }
  .project__visual .phone, .project--flip .project__visual .phone { transform: none; }
  .timeline li > div { opacity: 1; }
}


/* ================= liquid glass =================
   A clear surface over the warm studio: it blurs and saturates what is behind it,
   bends that image near the rim (Chromium, through the #liquid lens), and carries a
   highlight that follows the pointer. Browsers without the lens get frosted glass. */
.glass {
  --mx: 30%; --my: 0%;
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 244, 232, .13), rgba(255, 244, 232, .04) 45%, rgba(255, 244, 232, .09));
  -webkit-backdrop-filter: blur(14px) saturate(175%) brightness(1.08);
  backdrop-filter: blur(14px) saturate(175%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 1px 0 0 rgba(255, 255, 255, .14),
    inset -1px 0 0 rgba(255, 255, 255, .08),
    inset 0 10px 18px -12px rgba(255, 255, 255, .28),
    0 14px 34px -14px rgba(8, 3, 2, .7);
}
.liquid .glass { -webkit-backdrop-filter: url(#liquid) blur(7px) saturate(185%) brightness(1.1); backdrop-filter: url(#liquid) blur(7px) saturate(185%) brightness(1.1); }
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120px 80px at var(--mx) var(--my), rgba(255, 255, 255, .34), transparent 70%),
    radial-gradient(140% 90% at 100% 120%, rgba(244, 148, 79, .2), transparent 60%);
  transition: opacity .4s;
}
.glass > * { position: relative; }

/* nav becomes a floating glass bar */
.nav.glass { position: sticky; top: 12px; margin: 12px var(--gutter) 0; padding: 9px 10px 9px 24px; border-radius: 999px; border-bottom: 0; background: linear-gradient(135deg, rgba(255, 244, 232, .14), rgba(255, 244, 232, .05)); }
.nav.glass.is-stuck { border-bottom-color: transparent; }

.btn--ghost.glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 34px -14px rgba(8, 3, 2, .7); }
.btn--ghost.glass:hover { background: linear-gradient(135deg, rgba(255, 244, 232, .22), rgba(255, 244, 232, .1)); }
.hero__now.glass { position: absolute; background: linear-gradient(135deg, rgba(255, 244, 232, .16), rgba(255, 244, 232, .05)); color: var(--bone); z-index: 3; }
.js .is-ready .hero__now.glass { opacity: 1; }

/* a glass plate sits over each phone and names what the scene shows */
.project__visual { position: relative; overflow: hidden; }
.project__tag { position: absolute; left: 22px; bottom: 22px; padding: 12px 20px; border-radius: 18px; font: 600 1rem var(--display); color: var(--bone); z-index: 2; transition: transform .9s var(--ease) .15s, opacity .6s .15s; transform: translateY(20px); opacity: 0; }
.project--flip .project__tag { left: auto; right: 22px; }
.project.is-live .project__tag { transform: none; opacity: 1; }

/* skills sit on glass tiles lit by a slow moving light */
.skills { position: relative; }
.skills__grid { position: relative; gap: 18px; }
.skills__grid::before, .skills__grid::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(50px); pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.skills__grid::before { width: 320px; height: 320px; left: 4%; top: -40px; background: rgba(224, 57, 90, .5); }
.skills__grid::after { width: 280px; height: 280px; right: 6%; bottom: -30px; background: rgba(244, 148, 79, .42); animation-delay: -8s; }
@keyframes drift { to { transform: translate(120px, 60px) scale(1.15); } }
.skills__grid > .glass { padding: 6px 24px 24px; border-radius: 26px; z-index: 1; }
.skills__grid > .glass h3 { border-top: 0; padding-top: 16px; }
.skills__grid > .glass p { color: #e6d8cc; }

.contact__links a.glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 34px -14px rgba(8, 3, 2, .7); }
.contact { position: relative; }
.contact::before { content: ""; position: absolute; left: 30%; bottom: 40px; width: 420px; max-width: 70%; height: 160px; border-radius: 50%; background: rgba(224, 57, 90, .32); filter: blur(60px); pointer-events: none; }
.contact > * { position: relative; }

@media (max-width: 900px) { .nav.glass { padding-left: 18px; } }
@media (prefers-reduced-motion: reduce) { .project__tag { transform: none; opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .glass, .liquid .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--clay-2); }
}

/* glass refinements */
.project__tag.glass { background: linear-gradient(135deg, rgba(38, 28, 25, .62), rgba(38, 28, 25, .38)); }
.nav__name, .nav .btn { white-space: nowrap; }
.skills__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .skills__grid { grid-template-columns: 1fr; }
  .nav.glass { padding: 7px 8px 7px 16px; gap: 10px; }
  .nav__name { font-size: 1rem; }
  .nav .btn--small { padding: 8px 13px; font-size: .84rem; }
}

main { overflow-x: clip; }
