@font-face {
  font-family: Geist;
  src: url("assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("assets/geist-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050810;
  --panel: #0a1020;
  --text: #f5f7fa;
  --muted: #a5b1c5;
  --blue: #87baff;
  --edge: #a9c6fb24;
  --glass: linear-gradient(145deg, #152139ce, #080d17ed 78%);
  --radius: 24px;
  --shell: 76rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --quick: 180ms;
  --component: 380ms;
  --reveal: 720ms;
  --ambient: 18s;
  --hover-lift: -5px;
  --mono: "IBM Plex Mono", monospace;
  font-family: Geist, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { color: white; background: #255ab9; }

h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.06em; line-height: 1.02; }
p, dd { color: var(--muted); line-height: 1.65; }
section[id] { scroll-margin-top: 6.75rem; }
.shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { margin-block: clamp(5rem, 10vw, 9.5rem); }
.accent { color: var(--blue); }
.eyebrow {
  font: 400 .72rem/1.55 var(--mono);
  letter-spacing: .105em;
  text-transform: uppercase;
  color: var(--blue);
}
.skip {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: 1rem;
  transform: translateY(-150%);
  background: white;
  color: #050810;
  padding: .65rem .9rem;
  border-radius: .5rem;
}
.skip:focus { transform: none; }

.glass {
  border: 1px solid var(--edge);
  background-color: #0a101c;
  background-image: radial-gradient(20rem circle at var(--light-x, 50%) var(--light-y, 0%), #5796ff1b, transparent 77%), var(--glass);
  box-shadow: inset 0 1px #eaf4ff0d, inset 0 -1px #536b8b13, 0 14px 38px #0103093b;
}
.header { position: sticky; z-index: 5; top: 0; padding-block: 1.15rem; }
.nav {
  --glass: linear-gradient(130deg, #141e33c4, #09101cc9);
  background-color: #080f17a8;
  backdrop-filter: blur(17px) saturate(130%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 3.8rem;
  padding: 0 .85rem 0 1.25rem;
  border-radius: 1.15rem;
}
.brand {
  justify-self: start;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -.11em;
  line-height: 1;
  padding-right: .12em;
}
.brand span { color: var(--blue); }
.nav nav { position: relative; display: flex; align-items: stretch; gap: clamp(.9rem, 3vw, 2.5rem); }
.nav nav a, .nav-contact { font-size: .86rem; font-weight: 500; color: var(--muted); }
.nav nav a { display: flex; align-items: center; min-height: 3.7rem; transition: color var(--quick); }
.nav nav a:hover, .nav nav a[aria-current], .nav-contact:hover { color: var(--text); }
.nav .mobile-contact { display: none; }
.nav-tools { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.language-toggle { min-width: 2.2rem; min-height: 2.2rem; padding: .35rem; border: 1px solid var(--edge); border-radius: .65rem; color: var(--blue); background: #14213b; font: .75rem var(--mono); transition: background-color var(--quick), transform var(--quick); }
.language-toggle:hover { background: #253c62; }
.language-toggle:active { transform: scale(.95); }
.key-page .language-toggle { float: right; }
.nav-contact { justify-self: end; border-radius: .65rem; border: 1px solid var(--edge); padding: .48rem .78rem; color: var(--text); }
.nav-contact span { color: var(--blue); margin-left: .28rem; }
.nav-marker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--active-width, 0);
  height: 2px;
  border-radius: 50%;
  transform: translateX(var(--active-x, 0));
  background: var(--blue);
  box-shadow: 0 0 14px #6facff;
  transition: transform 340ms var(--ease), width 340ms var(--ease);
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(29rem, 45vw, 36.5rem);
  padding-block: 3rem 4.25rem;
  border-bottom: 1px solid var(--edge);
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 -.75rem 0 44%;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 850px;
}
.hero-art img {
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 64% 66% at center, #000 49%, transparent 97%);
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) rotateY(var(--hero-tilt, 0deg));
}
.hero-glow {
  position: absolute;
  inset: 2% 2%;
  background: radial-gradient(ellipse 60% 63% at 53% 54%, #112d6c55, #101c431e 50%, transparent 77%);
  animation: breathe var(--ambient) ease-in-out infinite alternate;
  animation-play-state: paused;
}
@keyframes breathe { from { opacity: .57; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
.hero-copy { position: relative; width: fit-content; }
.hero-role { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.45rem; }
.signal { display: inline-block; width: .47rem; height: .47rem; flex: none; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px #69a7ffb8; }
.hero h1 { font-size: clamp(3.15rem, 6.05vw, 5.7rem); letter-spacing: -.083em; }
.hero h1 > span { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 > span:last-child { color: #d5e1f3; }
.hero h1 > span > span { display: block; }
.hero-intro { max-width: 29rem; font-size: clamp(1rem, 1.65vw, 1.21rem); margin-top: 1.65rem; }
.actions, .project-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.hero-actions { margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .6rem 1rem;
  border-radius: .75rem;
  font-size: .9rem;
  font-weight: 530;
  transition: transform 400ms var(--ease), border-color var(--quick), background-color var(--quick), box-shadow var(--quick);
}
.button:hover { border-color: #92bafa8a; transform: translate3d(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) - 2px), 0); }
.button:active { transform: translate3d(var(--magnet-x, 0px), 1px, 0) scale(.97); }
.button span { font-size: 1rem; }
.button.glass span { color: var(--blue); }
.primary {
  color: #071328;
  background: linear-gradient(145deg, #d9e9ff, #8fbaff);
  border: 1px solid #e4eeff81;
  box-shadow: inset 0 1px #fff9, 0 6px 20px #395acb3c;
}
.primary:hover { box-shadow: inset 0 1px white, 0 8px 25px #568afd61; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; margin-bottom: clamp(1.4rem, 3vw, 2.45rem); }
.contact .eyebrow { margin-bottom: .7rem; }
h2 { font-size: clamp(2.25rem, 5.3vw, 4.75rem); }
#proyectos { margin-top: clamp(3rem, 5.5vw, 5rem); }
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .18rem 0;
  border: 0;
  background: transparent;
  color: #b9d6fe;
  font-size: .87rem;
  font-weight: 530;
  text-decoration: underline transparent;
  text-underline-offset: .26em;
  transition: color var(--quick), text-decoration-color var(--quick);
}
.text-link:hover { color: #eef6ff; text-decoration-color: currentColor; }
.section-heading > .text-link { flex-shrink: 0; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 2.3vw, 1.5rem); }
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  transition: border-color 350ms var(--ease), box-shadow 350ms var(--ease);
}
.project:hover, .project:focus-within { border-color: #91bafa69; box-shadow: inset 0 1px #eef7ff28, 0 16px 40px #03050cd6; }
.project.featured, .project.compact { grid-column: 1 / -1; display: grid; }
.project.featured { grid-template-columns: 1.24fr 1fr; }
.project.compact { grid-template-columns: .75fr 1fr; }
.project-visual {
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  min-height: clamp(11rem, 20vw, 17rem);
  overflow: hidden;
  background: #0a1224;
  border-bottom: 1px solid var(--edge);
}
.featured .project-visual, .compact .project-visual { border-bottom: 0; border-right: 1px solid var(--edge); }
.project-visual figcaption {
  position: absolute;
  z-index: 1;
  bottom: .9rem;
  left: 1.05rem;
  color: #b0c7e9;
  font: .65rem/1.45 var(--mono);
  letter-spacing: .06em;
}
.project-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: clamp(1.25rem, 3.3vw, 2.5rem); }
.project h3 { margin-block: .55rem .68rem; font-size: clamp(1.9rem, 4vw, 3.05rem); }
.featured h3 { font-size: clamp(2.25rem, 5.5vw, 4.8rem); }
.project-copy p:not(.eyebrow) { max-width: 46ch; }
.project-copy .role { margin-top: .7rem; font-size: .9rem; color: #cbd7eb; }
.recognition { color: #ffdb9a; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  list-style-type: none;
  padding: 0;
  margin-top: auto;
  padding-top: 1.25rem;
  color: #bad1f3;
  font: .65rem/1.3 var(--mono);
}
.chips li { border: 1px solid #8bb0df2e; background: #080f1ba6; border-radius: .34rem; padding: .28rem .47rem; }
.project-links { margin-top: 1.02rem; column-gap: 1rem; }

.ithera, .ghost, .sentinel, .turmalin, .seed {
  background-image: radial-gradient(circle, #a2c7ff31 1px, transparent 1.4px), radial-gradient(ellipse at 50% 49%, #193569 0, #0a1326 68%);
  background-size: 19px 19px, cover;
}
.system-map, .risk-flow { display: flex; gap: clamp(.4rem, 1.8vw, 1.25rem); align-items: center; justify-content: center; width: 100%; padding: 1rem .75rem 2rem; }
.map-cluster { display: grid; gap: .5rem; }
.map-cluster span, .map-node, .risk-flow span:not(:nth-child(2)) {
  position: relative;
  padding: .56rem .62rem;
  text-align: center;
  font: clamp(.59rem, 1.12vw, .81rem)/1.2 var(--mono);
  color: #deebff;
  background: #12243eef;
  border: 1px solid #8bb9fe5c;
  border-radius: .42rem;
  box-shadow: inset 0 1px #b9d8ff21, 0 6px 15px #020a166e;
}
.map-node { display: flex; align-items: center; gap: .35rem; padding: .85rem .62rem; border-color: #9ac9ffb3; box-shadow: 0 0 1.8rem #689fff30; }
.map-node::before, .map-node::after { content: ""; position: absolute; width: clamp(.45rem, 1.8vw, 1.28rem); height: 1px; background: #6da8fcd0; top: 50%; }
.map-node::before { right: 100%; }
.map-node::after { left: 100%; }
.ghost { background-image: radial-gradient(circle, #a2c7ff22 1px, transparent 1.4px), radial-gradient(ellipse at center, #293168, #0d1226 72%); }
.waveform { display: flex; width: 66%; height: 7rem; align-items: center; justify-content: center; gap: clamp(3px, .68vw, 10px); }
.waveform i { width: min(5%, .5rem); height: 20%; border-radius: 5px; background: linear-gradient(#7e8ede, #bfcaff, #7e8ede); box-shadow: 0 0 20px #7a8cf682; }
.waveform i:nth-child(2n) { height: 45%; }
.waveform i:nth-child(5n) { height: 76%; }
.waveform i:nth-child(7n) { height: 12%; }
.waveform i:nth-child(9) { height: 91%; }
.sentinel { background-image: radial-gradient(circle, #a4f0e625 1px, transparent 1.4px), radial-gradient(ellipse at center, #113e47, #081421 76%); }
.risk-flow span:nth-child(2) { color: #99e5dc; }
.risk-flow span:not(:nth-child(2)) { background: #0c272e; border-color: #78d9c960; }
.turmalin { background-image: radial-gradient(circle, #bcd1ff27 1px, transparent 1.4px), radial-gradient(ellipse at center, #183154, #0b1625 75%); }
.ink-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.75rem 1rem;
  border: 1px solid #97c5ff52;
  border-radius: .5rem;
  transform: rotate(-8deg);
  background: repeating-linear-gradient(0deg, transparent 0 1.33rem, #b9d7fc2b 1.33rem calc(1.33rem + 1px)), #152744;
  box-shadow: 0 8px 25px #0307126b;
}
.ink-note span { padding: .35rem; border: 1px solid #8ec4ffaa; border-radius: 45%; color: #daebff; font: italic .9rem/1.3 Georgia, serif; }
.ink-note span:nth-child(2) { transform: translateY(-.58rem) rotate(10deg); }
.ink-note span:nth-child(3) { transform: translateY(.45rem) rotate(7deg); }

.about-section { padding-block: clamp(2rem, 4vw, 4rem); border-block: 1px solid var(--edge); }
.about-layout { display: grid; grid-template-columns: .72fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.portrait { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.6; background: #0a1220; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; }
.about-copy .lead { margin-top: 1.3rem; font-size: clamp(1.1rem, 1.95vw, 1.48rem); color: #e1e9f6; line-height: 1.45; }
.about-copy p + p { margin-top: .9rem; }
.education { margin-block: 1.4rem; }
.education > div { display: grid; grid-template-columns: minmax(7rem, .6fr) 1.4fr; align-items: baseline; gap: .65rem; border-top: 1px solid var(--edge); padding-block: .62rem; }
.education dt { font-weight: 600; }
.education dd { font-size: .88rem; }

.tech-marquee {
  overflow: hidden;
  border-radius: var(--radius);
  padding-block: 1.5rem;
}
.marquee-track { width: 100%; }
.marquee-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 0 1.5rem;
  list-style: none;
}
.marquee-group li {
  flex: none;
  color: #dce8f9;
  font: .94rem/1.5 var(--mono);
  white-space: nowrap;
}
.marquee-copy { display: none; }
.marquee-ready .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-travel 44s linear infinite;
  animation-play-state: paused;
}
.marquee-ready .marquee-group {
  flex-wrap: nowrap;
  justify-content: start;
  padding: 0 1.5rem 0 0;
}
.marquee-ready .marquee-group:first-child { padding-left: 0; }
.marquee-ready .marquee-copy { display: flex; }
.marquee-ready.in-view .marquee-track { animation-play-state: running; }
.marquee-ready:hover .marquee-track,
.marquee-ready.marquee-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee-travel { to { transform: translateX(-50%); } }
.certification { margin-top: .85rem; font: .75rem/1.6 var(--mono); }

.timeline h3 { font-size: 1.21rem; letter-spacing: -.035em; }
.timeline p { font-size: .9rem; margin-top: .38rem; }

.crypto { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.4rem, 5vw, 4.5rem); border-radius: var(--radius); padding: clamp(1.2rem, 4.5vw, 4rem); }
.crypto h2 { margin-block: .7rem 1rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.crypto .button { margin-top: 1rem; }
.key-status { margin-top: .5rem; font-size: .77rem; }
.timeline article { border-left: 1px solid #86b8ff5a; padding: 0 0 1.15rem 1rem; }
.timeline time { color: var(--blue); font: .75rem/1.4 var(--mono); }
.timeline h3 { margin-top: .2rem; }
.sources { display: flex; flex-wrap: wrap; gap: .38rem 1rem; }
.sources .text-link { font-size: .78rem; }

.contact {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 0;
  padding-block: clamp(3.2rem, 8vw, 7rem);
  border-top: 1px solid var(--edge);
  background: radial-gradient(ellipse 58% 100% at center bottom, #17346c52, transparent 78%);
}
.contact h2 { font-size: clamp(3.6rem, 10vw, 8.5rem); }
.contact p:not(.eyebrow) { margin: 1rem 0 1.5rem; }
.contact .actions { justify-content: center; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--edge); min-height: 5rem; }
.footer p { font-size: .83rem; }

.project-dialog, .key-page { border-radius: var(--radius); padding: clamp(1.35rem, 4vw, 2.7rem); }
.project-dialog {
  color: var(--text);
  width: min(37rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
}
.project-dialog::backdrop { background: #02050cd7; backdrop-filter: blur(5px); }
.project-dialog form { position: relative; z-index: 2; float: right; margin-left: .75rem; }
.close-dialog { width: 2.55rem; min-height: 2.55rem; padding: 0; font-size: 1.4rem; }
.project-dialog h2 { margin-block: .65rem 1rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.project-dialog h3 { margin-block: 1rem .45rem; font-size: 1.3rem; letter-spacing: -.035em; }
body:has(.project-dialog[open]) { overflow: hidden; }
.key-page { width: min(38rem, calc(100% - 2rem)); margin: 12vh auto 2rem; }
.key-page h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-block: .75rem 1rem; }
.key-page p + p, .key-page .button { margin-top: 1rem; }

@media (max-width: 920px) {
  .hero-art { left: 39%; }
  .hero h1 { font-size: clamp(3rem, 6.7vw, 4.6rem); }
  .hero-intro { max-width: 24rem; }
}
@media (max-width: 700px) {
  .header { padding-block: .65rem; }
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; padding-inline: .65rem; min-height: 3.25rem; border-radius: .88rem; }
  .nav nav { justify-content: space-between; gap: .3rem; }
  .nav nav a { font-size: clamp(.58rem, 1.75vw, .85rem); min-height: 3.14rem; }
  .nav .mobile-contact { display: flex; }
  .nav-contact { display: none; }
  .brand { font-size: 1.4rem; }
  section[id] { scroll-margin-top: 5.3rem; }
  .hero { display: flex; flex-direction: column-reverse; align-items: flex-start; min-height: 0; padding-block: 2rem 0; }
  .hero-art { position: relative; inset: auto; width: min(100%, 28rem); margin: -.3rem auto 0; }
  .hero h1 { font-size: clamp(2.54rem, 8.45vw, 4.35rem); }
  .hero-role { margin-bottom: .95rem; font-size: .65rem; }
  .hero-intro { margin-top: 1rem; }
  .hero-actions { margin-top: 1.1rem; }
  .project-grid, .project.featured, .project.compact, .crypto { grid-template-columns: 1fr; }
  .featured .project-visual, .compact .project-visual { border-right: 0; border-bottom: 1px solid var(--edge); }
  .project-visual { min-height: clamp(11rem, 38vw, 17rem); }
  .about-layout { grid-template-columns: 1fr; }
  .portrait { max-width: 25rem; width: min(100%, 25rem); aspect-ratio: 1.35; order: 2; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.02rem, 9.1vw, 2.42rem); }
  .section-heading { align-items: start; flex-direction: column; gap: .55rem; }
  .footer p { max-width: 11ch; margin-right: auto; }
}
/* Keep keyboard targets readable as soon as focus moves into view. */
[data-reveal]:focus-within {
  opacity: 1 !important;
  translate: none !important;
  scale: none !important;
  filter: none !important;
  clip-path: none !important;
}
[data-reveal] :focus-visible {
  opacity: 1 !important;
  translate: none !important;
}

/* Interaction layers reuse the existing glass material and geometry. */
.glass {
  border-color: rgb(169 198 251 / calc(.14 + var(--presence, 0) * .22));
}
.nav {
  transition: background-color var(--component), box-shadow var(--component), border-color var(--component);
}
.header.scrolled .nav {
  background-color: #080f17ed;
  box-shadow: inset 0 1px #eaf4ff16, 0 12px 36px #01030980;
}
.nav nav a, .brand, .nav-contact {
  transition: color var(--quick), background-color var(--quick), transform var(--quick) var(--ease);
}
.nav nav a:hover { transform: translateY(-1px); }
.nav nav a:active, .brand:active, .nav-contact:active { transform: scale(.97); }
.nav-contact:hover { background-color: #20375966; }
.brand:hover { color: var(--blue); }

.hero-art {
  translate: 0 var(--hero-scroll, 0px);
}
.hero-art img {
  animation: glass-drift var(--ambient) ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero.in-view .hero-glow, .hero.in-view .hero-art img { animation-play-state: running; }
@keyframes glass-drift {
  from { translate: 0 -5px; rotate: -1deg; }
  to { translate: 0 6px; rotate: 1deg; }
}
.page-hidden *, .page-hidden *::before, .page-hidden *::after {
  animation-play-state: paused !important;
}
.button { position: relative; overflow: clip; isolation: isolate; }
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 22%, #d8eaff2e 46%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 650ms var(--ease);
  pointer-events: none;
}
.button:hover::before, .button:focus-visible::before { transform: translateX(110%); }
.button span, .text-link span, .nav-contact span {
  display: inline-block;
  transition: transform var(--quick) var(--ease);
}
.button:hover span, .button:focus-visible span,
.text-link:hover span, .text-link:focus-visible span,
.nav-contact:hover span { transform: translate(2px, -2px); }
.button[href="#proyectos"]:hover span, .button[download]:hover span { transform: translateY(3px); }
.text-link { position: relative; text-decoration: none; }
.text-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--quick) var(--ease);
}
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }
.text-link:active { scale: .97; }

.project {
  transform: perspective(1100px) translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 50%), #d5e7ff0c, transparent 65%);
  opacity: var(--presence, 0);
  pointer-events: none;
}
.project-visual > div {
  translate: 0 var(--scroll-y, 0px);
  scale: calc(1 + var(--presence, 0) * .025);
  transition: scale var(--component) var(--ease);
}
.portrait img {
  transform: translateY(var(--scroll-y, 0px)) scale(1.055);
}
.chips li {
  transition: transform var(--quick) var(--ease), border-color var(--quick), background-color var(--quick);
}
.chips li:hover { transform: translateY(-2px); border-color: #8bb0df88; background-color: #193050; }
.project-dialog::backdrop { transition: background-color var(--quick); }
.contact {
  position: relative;
  isolation: isolate;
  background: none;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 58% 100% at center bottom, #17346c52, transparent 78%);
  animation: breathe 20s ease-in-out infinite alternate;
  animation-play-state: paused;
  pointer-events: none;
}
.contact.in-view::before { animation-play-state: running; }

@media (hover: hover) and (pointer: fine) {
  .project:focus-within { --lift: var(--hover-lift); }
  .project:hover .waveform i { animation: voice-response 950ms ease-in-out 2 alternate; }
  .project:hover .waveform i:nth-child(3n) { animation-delay: -230ms; }
  .project:hover .waveform i:nth-child(2n) { animation-delay: -410ms; }
  @keyframes voice-response { from { scale: 1 .65; } to { scale: 1 1.12; } }
}
@media (max-width: 700px) {
  .hero-art img { animation-duration: 24s; }
  .hero-art { translate: none; }
}
@media (hover: none) {
  .button:hover, .nav nav a:hover, .chips li:hover { transform: none; }
  .button:active { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-ready .marquee-track { width: 100%; display: block; transform: none; }
  .marquee-ready .marquee-group { flex-wrap: wrap; justify-content: center; padding-inline: 1rem; }
  .marquee-ready .marquee-copy { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .hero-art, .hero-art img, .project, .project-visual > div, .portrait img,
  .button:hover, .button:active, .chips li:hover, .nav nav a:hover {
    transform: none;
    translate: none;
    scale: none;
    rotate: none;
  }
  .contact { background: radial-gradient(ellipse 58% 100% at center bottom, #17346c52, transparent 78%); }
  .contact::before { display: none; }
}
