/* ============================================================
   Santiago Velásquez — Shader Portfolio
   ============================================================ */

:root{
  --bg:          #050505;
  --bg-2:        #0c0c0c;
  --bg-3:        #121212;
  --ink:         #f4f4f4;
  --ink-dim:     #9a9a9a;
  --ink-mute:    #5a5a5a;
  --line:        rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.22);

  --font-sans:   "Inter", system-ui, -apple-system, sans-serif;
  --font-serif:  "Instrument Serif", "Times New Roman", serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --container:   1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html{ scroll-behavior: smooth; }

html, body{
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a{ color: inherit; text-decoration: none; }

::selection{ background: var(--ink); color: var(--bg); }

.container{
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor{
  position: fixed; top: 0; left: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor__dot, .cursor__ring{
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out);
}
.cursor__dot{ width: 5px; height: 5px; background: #fff; }
.cursor__ring{ width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.8); }
.cursor.is-hot .cursor__dot{ width: 0; height: 0; }
.cursor.is-hot .cursor__ring{ width: 60px; height: 60px; }
@media (hover: none){ .cursor{ display: none; } }

/* ============================================================
   Preloader
   ============================================================ */
.preloader{
  position: fixed; inset: 0;
  z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), visibility .7s;
}
body:not(.is-loading) .preloader{ opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__mark{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4rem;
  color: var(--ink);
  animation: markPulse 1.4s ease-in-out infinite;
}
@keyframes markPulse{ 0%,100%{opacity:.4;} 50%{opacity:1;} }

.preloader__bar{
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.preloader__bar span{
  display: block; height: 100%;
  width: 30%;
  background: #fff;
  animation: barSlide 1.4s ease-in-out infinite;
}
@keyframes barSlide{
  0%{ transform: translateX(-120%);} 100%{ transform: translateX(430%);}
}

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: transform .4s var(--ease-out), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: difference;
}
.nav.is-hidden{ transform: translateY(-120%); }
.nav.is-scrolled{
  mix-blend-mode: normal;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}

.nav__brand{
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: -.01em;
  color: #fff;
}
.nav__links{
  display: flex; gap: 28px;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.nav__links a{ transition: color .2s; }
.nav__links a:hover{ color: #fff; }

@media (max-width: 760px){ .nav__links{ display: none; } }

.nav__cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: .82rem;
  color: #fff;
  transition: background .25s, color .25s, border-color .25s;
}
.nav__cta:hover{ background: #fff; color: #000; border-color: #fff; }

/* ============================================================
   Type
   ============================================================ */
.tag{
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}

h1, h2, h3, h4{ margin: 0; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }

.display{
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.display i{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ============================================================
   HERO — shader
   ============================================================ */
.hero{
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px clamp(24px, 4vw, 56px) 40px;
}

.hero__canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  background: #000;
}

.hero__overlay{
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 880px;
  padding-bottom: clamp(20px, 8vh, 80px);
}
.hero__overlay .tag{
  color: rgba(255,255,255,.65);
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.hero__title{
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 0 0 22px;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
.hero__title .line{ display: block; overflow: hidden; padding: .02em 0; }
.hero__title .line > span{
  display: block;
  transform: translateY(110%);
  opacity: 0;
}
.hero__title i{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
body:not(.is-loading) .hero__title .line > span{
  animation: lineIn 1.1s .2s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span{ animation-delay: .4s; }
@keyframes lineIn{ to{ transform: translateY(0); opacity: 1; } }

.hero__tagline{
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 52ch;
  margin: 0 0 28px;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .9s .9s var(--ease-out) forwards;
}
@keyframes fadeUp{ to{ opacity: 1; transform: translateY(0);} }

.hero__ctas{
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .9s 1.1s var(--ease-out) forwards;
}

.hero__meta{
  position: absolute;
  top: 100px;
  right: clamp(24px, 4vw, 56px);
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  opacity: 0;
  animation: fadeUp .9s 1.3s var(--ease-out) forwards;
}
.hero__meta .dot{
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
@media (max-width: 760px){ .hero__meta{ display: none; } }

.hero__hint{
  position: relative;
  z-index: 2;
  justify-self: start;
  align-self: end;
  display: flex; align-items: center; gap: 14px;
  font-size: .72rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding-top: 20px;
  opacity: 0;
  animation: fadeUp .9s 1.4s var(--ease-out) forwards;
}
.hero__hint-line{
  display: inline-block; width: 40px; height: 1px;
  background: rgba(255,255,255,.45);
}

/* ============================================================
   Section base
   ============================================================ */
.section{
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
}
.section__grid{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 800px){ .section__grid{ grid-template-columns: 1fr; gap: 28px; } }
.section__index{
  display: flex; flex-direction: column; gap: 4px;
  position: sticky;
  top: 100px;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section__index .num{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.section__head{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
  padding: 0 clamp(20px, 4vw, 48px);
}
@media (max-width: 800px){ .section__head{ grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================
   About
   ============================================================ */
.about__grid{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px){ .about__grid{ grid-template-columns: 1fr; gap: 36px; max-width: 560px; } }

.about__portrait-frame{
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .3s;
}
.about__portrait-frame:hover{ border-color: var(--line-strong); }
.about__portrait-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 1.2s var(--ease-out), filter .4s;
}
.about__portrait-frame:hover img{
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}
.about__portrait-fallback{
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 6rem;
  color: var(--ink-mute);
  background: var(--bg-2);
}

.about__text h2{ margin-bottom: 28px; }
.about__text p{
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 60ch;
}
.about__text strong{ color: var(--ink); font-weight: 500; }

.chips{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.chip{
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--ink-dim);
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover{ background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================
   Timeline
   ============================================================ */
.timeline{
  list-style: none;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 960px;
  margin-inline: auto;
  position: relative;
}
.timeline::before{
  content: "";
  position: absolute;
  left: calc(clamp(20px, 4vw, 48px) + 80px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
@media (max-width: 700px){ .timeline::before{ left: calc(clamp(20px, 4vw, 48px) + 14px); } }

.t-item{
  position: relative;
  padding: 22px 0 22px 140px;
}
@media (max-width: 700px){ .t-item{ padding-left: 50px; } }

.t-item::before{
  content: attr(data-year);
  position: absolute;
  left: 0; top: 44px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}
@media (max-width: 700px){ .t-item::before{ display: none; } }

.t-item::after{
  content: "";
  position: absolute;
  left: 80px; top: 48px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform .3s;
}
@media (max-width: 700px){ .t-item::after{ left: 14px; } }
.t-item:hover::after{ transform: translateX(-50%) scale(1.6); }

.t-card{ padding: 24px 0; position: relative; }
.t-brand{
  position: absolute;
  top: 28px; right: 0;
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.t-brand img{
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.t-head{ padding-right: 60px; }
.t-card--featured h3::after{
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-left: 10px;
  transform: translateY(-4px);
  box-shadow: 0 0 10px #fff;
}
.t-head{
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.t-head h3{
  font-size: 1.35rem;
  letter-spacing: -.015em;
  color: var(--ink);
  font-weight: 500;
}
.t-meta{
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.t-card p{ color: var(--ink-dim); line-height: 1.65; margin: 8px 0 0; max-width: 66ch; }
.t-bullets{ padding-left: 20px; margin: 8px 0 0; color: var(--ink-dim); max-width: 66ch; }
.t-bullets li{ margin: 5px 0; line-height: 1.55; }
.t-bullets strong{ color: var(--ink); font-weight: 500; }

.t-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.t-tags span{
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Journey — world map
   ============================================================ */
.journey__lede{
  max-width: 60ch;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 0 clamp(20px, 4vw, 48px);
  margin: 0 auto 40px;
}

.map-wrap{
  position: relative;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 48px);
  margin: 0 auto 60px;
  max-width: 1280px;
}
.map{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(255,255,255,0.04));
}
.map__land path{ transition: fill .4s; }

.map__arcs path{
  stroke-dasharray: 4 6;
  animation: arcDash 6s linear infinite;
}
@keyframes arcDash{ to{ stroke-dashoffset: -100; } }

.map__pin .map__pin-halo{ animation: pinHalo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map__pin .map__pin-ring{ animation: pinRing 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pinHalo{
  0%,100%{ opacity: .4; r: 16; }
  50%   { opacity: .9; r: 26; }
}
@keyframes pinRing{
  0%  { r: 8; opacity: 1; }
  100%{ r: 22; opacity: 0; }
}
.map__pin[data-pin="usa"] .map__pin-halo{ animation-delay: 0s; }
.map__pin[data-pin="mex"] .map__pin-halo{ animation-delay: -.9s; }
.map__pin[data-pin="vez"] .map__pin-halo{ animation-delay: -1.8s; }

.journey__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 900px){
  .journey__grid{ grid-template-columns: 1fr; }
}

.country{
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.country:hover{
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.country__head{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.country__flag{ font-size: 1.6rem; filter: grayscale(1) contrast(1.1); }
.country__head h3{
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0;
}
.country__city{
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.country__years{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--ink);
}
.country p{
  color: var(--ink-dim);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 14px;
}
.country p strong{ color: var(--ink); font-weight: 500; }
.country__tags{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.country__tags li{
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Work — horizontal pinned scroll
   ============================================================ */
.work{
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.work__pin{
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.work__track{
  display: flex;
  height: 100%;
  will-change: transform;
}

.slide{
  flex: 0 0 100vw;
  height: 100%;
  position: relative;
  padding: 120px clamp(28px, 5vw, 88px);
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.slide:last-child{ border-right: 0; }

.slide__grid{
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.slide__center{
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  height: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
  width: 100%;
}
.slide__center .section__index{ position: relative; top: 0; }

.slide__watermark{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-sans);
  font-weight: 100;
  font-size: clamp(22rem, 60vw, 60rem);
  color: rgba(255,255,255,0.028);
  line-height: .8;
  letter-spacing: -.06em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* slide text */
.slide__tag{
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.slide__title{
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.035em;
  color: #fff;
  margin: 0 0 22px;
}
.slide__title i{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.slide__display{
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  color: #fff;
  margin: 0;
}
.slide__display i{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.slide__info p{
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 18px;
  font-size: 1.02rem;
}
.slide__lede{
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0;
}
.slide__metric{
  margin: 0 0 18px;
  font-size: .86rem;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
.slide__metric strong{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  font-size: 1.25rem;
  margin-right: 2px;
}
.slide__stack{
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 26px;
}
.slide__stack li{
  padding: 5px 12px;
  border: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim);
}
.slide__cta{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: .86rem;
  color: #fff;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.slide__cta:hover{ background: #fff; color: #000; border-color: #fff; transform: translateY(-2px); }

/* intro slide */
.slide--intro .slide__arrow{
  display: flex; align-items: center; gap: 16px;
  font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 32px;
}
.slide__arrow-line{
  display: inline-block;
  width: 80px; height: 1px;
  background: var(--ink-mute);
  position: relative;
}
.slide__arrow-line::after{
  content: "→";
  position: absolute; right: -6px; top: -11px;
  color: var(--ink);
}

.slide--end .slide__end-kicker{
  font-size: .72rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── 01 · Punches scene ── */
.scene{
  position: relative;
  width: 100%;
  height: min(70vh, 560px);
  display: grid; place-items: center;
  isolation: isolate;
}
.scene--punches{
  background: radial-gradient(circle at 40% 40%, rgba(255,92,138,.12), transparent 65%);
}
.phone{
  position: relative;
  width: 260px; height: 520px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1a1a1a, #000);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 60px 120px rgba(0,0,0,.65),
    inset 0 0 30px rgba(0,0,0,.6);
  overflow: hidden;
  animation: phoneTilt 6s ease-in-out infinite;
}
@keyframes phoneTilt{
  0%,100%{ transform: rotate(-5deg) translateY(0);}
  50%   { transform: rotate(-1deg) translateY(-14px);}
}
.phone__notch{
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 94px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone__screen{
  position: absolute; inset: 14px;
  border-radius: 32px;
  background: #090909;
  display: grid; place-items: center;
  overflow: hidden;
}
.phone__punch{
  position: absolute;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.4rem;
  color: #fff;
  letter-spacing: -.03em;
  animation: punchHit 2.4s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: var(--d);
  opacity: 0;
}
.phone__app{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
}

/* floating impact words outside the phone */
.scene__words{
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 3;
}
.scene__word{
  position: absolute;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  color: #fff;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translate(0,0) scale(.3);
  animation: wordFly 3.2s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: var(--d, 0s);
  text-shadow: 0 4px 40px rgba(255,255,255,.15);
  white-space: nowrap;
}
@keyframes wordFly{
  0%  { opacity: 0; transform: translate(0,0) scale(.3) rotate(0); }
  10% { opacity: 1; transform: translate(calc(var(--tx) * .2), calc(var(--ty) * .2)) scale(1.1) rotate(calc(var(--rot, 0deg) * .3)); }
  40% { opacity: 1; transform: translate(calc(var(--tx) * .6), calc(var(--ty) * .6)) scale(1) rotate(calc(var(--rot, 0deg) * .7)); }
  80% { opacity: .5; transform: translate(var(--tx), var(--ty)) scale(1.25) rotate(var(--rot, 0deg)); }
  100%{ opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(var(--rot, 0deg)); }
}

/* wordmark used in place of the first line of a slide title */
.slide__title--mark{ display: block; }
.slide__title-mark{
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 0 .1em;
  filter: drop-shadow(0 4px 20px rgba(255,255,255,.15));
}
@keyframes punchHit{
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  15%  { transform: scale(1.25) rotate(-6deg); opacity: 1; }
  30%  { transform: scale(1) rotate(4deg); opacity: 1; }
  50%,100%{ transform: scale(1.5) rotate(10deg); opacity: 0; }
}
.phone__logo{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .36em;
  font-size: .78rem;
  color: var(--ink-mute);
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
}
.scene__rings{ position: absolute; inset: 0; pointer-events: none; }
.scene__rings span{
  position: absolute; top: 50%; left: 50%;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-out infinite;
}
.scene__rings span:nth-child(2){ animation-delay: 1s; }
.scene__rings span:nth-child(3){ animation-delay: 2s; }
@keyframes ringPulse{
  0%  { transform: translate(-50%, -50%) scale(.4); opacity: .7; }
  100%{ transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* ── 02 · AWS scene — data pipeline ── */
.scene--aws{
  background: radial-gradient(circle at 50% 50%, rgba(255,180,40,.1), transparent 65%);
}
.pipe{
  display: flex; align-items: center; gap: 0;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
}
.pipe__node{
  width: clamp(64px, 7vw, 92px);
  height: clamp(64px, 7vw, 92px);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  position: relative;
  animation: nodeBreathe 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * .2s);
}
.pipe__node b{
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .18em;
  font-weight: 500;
  color: #fff;
}
.pipe__node--hot{
  border-color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 40px rgba(255,255,255,.3);
}
.pipe__node--hot b{ font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1rem; letter-spacing: .02em; }
@keyframes nodeBreathe{
  0%,100%{ background: rgba(255,255,255,.03); }
  50%   { background: rgba(255,255,255,.1); }
}
.pipe__wire{
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  margin: 0 -1px;
}
.pipe__wire i{
  position: absolute;
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translate(0, -50%);
  animation: wireFlow 2.2s linear infinite;
  box-shadow: 0 0 8px rgba(255,255,255,.6);
}
.pipe__wire i:nth-child(1){ animation-delay: 0s; }
.pipe__wire i:nth-child(2){ animation-delay: .7s; }
.pipe__wire i:nth-child(3){ animation-delay: 1.4s; }
@keyframes wireFlow{
  0%  { left: -4%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100%{ left: 104%; opacity: 0; }
}
.pipe__caption{
  margin-top: 40px;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  width: 100%;
}
.scene--aws{ display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* ── 03 · John Deere scene — 3D field ── */
.scene--deere{
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  background: radial-gradient(circle at 50% 80%, rgba(120,240,180,.1), transparent 65%);
  align-items: stretch;
  padding: 20px 0;
}
.field{
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  min-height: 280px;
}
.field__grid{
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center 80%;
  animation: fieldScroll 12s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 85%, transparent);
}
@keyframes fieldScroll{ from{background-position:0 0;} to{background-position:0 44px;} }
.field__trail{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .7;
  animation: trailDash 18s linear infinite;
}
@keyframes trailDash{ to{ stroke-dashoffset: -600; } }
.field__rig{
  position: absolute;
  bottom: 20%; left: 10%;
  font-size: 3rem;
  filter: grayscale(1) brightness(1.2);
  animation: rigRoam 10s ease-in-out infinite;
  z-index: 2;
}
@keyframes rigRoam{
  0%   { bottom: 22%; left: 8%;   transform: scale(.9) rotate(-8deg); }
  25%  { bottom: 32%; left: 30%;  transform: scale(.8) rotate(6deg);  }
  50%  { bottom: 46%; left: 56%;  transform: scale(.7) rotate(12deg); }
  75%  { bottom: 62%; left: 78%;  transform: scale(.55) rotate(-4deg); }
  100% { bottom: 22%; left: 8%;   transform: scale(.9) rotate(-8deg); }
}
.field__hud{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.field__hud > div{ display: flex; flex-direction: column; gap: 4px; }
.field__hud span{
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field__hud b{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: #fff;
}

/* ── 04 · Banco scene — card + ticker ── */
.scene--banco{
  background: radial-gradient(circle at 40% 30%, rgba(120,160,255,.12), transparent 65%);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 30px;
  padding: 20px 0;
}
.bank-card{
  position: relative;
  width: min(360px, 90%);
  aspect-ratio: 16 / 10;
  margin: auto;
  border-radius: 20px;
  padding: 24px;
  background:
    linear-gradient(135deg, #181818 0%, #0a0a0a 60%, #222 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 40px rgba(255,255,255,.03);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat{
  0%,100%{ transform: rotate(-3deg) translateY(0);}
  50%   { transform: rotate(-1deg) translateY(-10px);}
}
.bank-card__shine{
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%);
  animation: shineSweep 5s ease-in-out infinite;
}
@keyframes shineSweep{
  0%  { transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}
.bank-card__chip{
  width: 44px; height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4d4d4, #707070);
  position: relative;
}
.bank-card__chip::before, .bank-card__chip::after{
  content: ""; position: absolute;
  background: rgba(0,0,0,.2);
  left: 5px; right: 5px;
  height: 1px;
}
.bank-card__chip::before{ top: 10px; }
.bank-card__chip::after{ top: 20px; }
.bank-card__brand{
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: .05em;
  color: #fff;
}
.bank-card__brand-img{
  position: absolute;
  top: 18px; right: 18px;
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 8px;
  z-index: 2;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.bank-card__number{
  display: flex; gap: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.92);
  align-self: end;
  z-index: 1;
}
.bank-card__row{
  display: flex; justify-content: space-between;
  font-size: .7rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.55);
  margin-top: 10px;
  z-index: 1;
}
.bank-ticker{
  position: relative;
  overflow: hidden;
  height: 160px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.bank-ticker__row{
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 20px;
  animation: tickerRoll 12s linear infinite;
}
.bank-ticker__row > div{
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: .88rem;
}
.bank-ticker__row b{ color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.bank-ticker__row span{ color: var(--ink-mute); }
@keyframes tickerRoll{
  from{ transform: translateY(0); }
  to  { transform: translateY(-60%); }
}

/* ── 05 · Hub scene — chart ── */
.scene--hub{
  background: radial-gradient(circle at 50% 80%, rgba(200,140,255,.1), transparent 65%);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 20px 0;
  position: relative;
}
.chart{
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(6px, 1.5vw, 18px);
  height: 100%;
  min-height: 260px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.chart b{
  display: block;
  width: clamp(18px, 3vw, 36px);
  height: 0;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.35));
  animation: barBuild 1.6s var(--ease-out) forwards, barBreathe 3.8s ease-in-out infinite 2s;
  animation-delay: var(--d), calc(var(--d) + 2s);
  transform-origin: bottom;
}
@keyframes barBuild{
  from{ height: 0; }
  to  { height: var(--h); }
}
@keyframes barBreathe{
  0%,100%{ transform: scaleY(1); }
  50%   { transform: scaleY(.94); }
}
.chart__axis{
  display: flex; justify-content: space-around;
  font-size: .66rem; letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0 20px;
}
.chart__big{
  position: absolute;
  top: 20px; right: 28px;
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.chart__big span{
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.chart__big strong{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  line-height: 1;
}
.chart__big em{ font-style: italic; font-size: .7em; color: var(--ink-dim); }

/* ── mobile fallback — stack slides vertically ── */
@media (max-width: 900px){
  .work{ overflow: visible; }
  .work__pin{ height: auto; overflow: visible; }
  .work__track{
    flex-direction: column;
    height: auto;
    transform: none !important;
    width: 100%;
  }
  .slide{
    flex: 0 0 auto;
    height: auto;
    min-height: auto;
    padding: 80px clamp(24px, 5vw, 40px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .slide__grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .slide__watermark{ font-size: 18rem; }
  .scene{ height: 60vh; min-height: 380px; }
  .slide--intro, .slide--end{ min-height: 70vh; }
}

/* old grid — kept for safety (no longer used) */
.work__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 900px){ .work__grid{ grid-template-columns: 1fr; } }

.project{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .4s var(--ease-out), border-color .3s, background .3s;
  isolation: isolate;
}
.project:hover{ transform: translateY(-4px); border-color: var(--line-strong); }
.project--featured{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
@media (max-width: 900px){ .project--featured{ grid-template-columns: 1fr; } }

.project__link{
  position: absolute; inset: 0;
  z-index: 2;
}

.project__media{
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.04), transparent 60%),
    var(--bg-3);
}

.project__phone{
  position: relative;
  width: 220px;
  height: 440px;
  border-radius: 38px;
  background: linear-gradient(180deg, #1c1c1c, #000);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 20px rgba(0,0,0,.5);
  overflow: hidden;
  animation: phoneTilt 6s ease-in-out infinite;
}
@keyframes phoneTilt{
  0%,100%{ transform: rotate(-4deg) translateY(0);}
  50%   { transform: rotate(-1deg) translateY(-10px);}
}
.project__phone-notch{
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.project__phone-screen{
  position: absolute; inset: 14px;
  border-radius: 28px;
  background: #0a0a0a;
  display: grid; place-items: center;
  overflow: hidden;
}
.project__phone-punch{
  position: absolute;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.8rem;
  color: #fff;
  letter-spacing: -.02em;
  animation: punchHit 2.4s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: var(--d);
  opacity: 0;
}
@keyframes punchHit{
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  15%  { transform: scale(1.2) rotate(-5deg); opacity: 1; }
  30%  { transform: scale(1) rotate(3deg); opacity: 1; }
  50%,100%{ transform: scale(1.4) rotate(8deg); opacity: 0; }
}
.project__phone-logo{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .3em;
  font-size: .8rem;
  color: var(--ink-mute);
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
}

.project__media--deere{
  background: radial-gradient(circle at 50% 80%, rgba(255,255,255,.07), transparent 65%), var(--bg-3);
}
.project__grid-bg{
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: center 80%;
  animation: gridScroll 14s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 90%, transparent);
}
@keyframes gridScroll{ from{background-position:0 0;} to{background-position:0 40px;} }

.project__tractor{
  position: relative; z-index: 2;
  font-size: 4rem;
  filter: grayscale(1) brightness(1.1);
  animation: tractorRoam 6s ease-in-out infinite;
}
@keyframes tractorRoam{
  0%,100%{ transform: translateX(-60px) rotate(-4deg);}
  50%   { transform: translateX(60px) rotate(4deg);}
}
.project__waves{ position: absolute; inset: 0; pointer-events: none; }
.project__waves span{
  position: absolute; top: 50%; left: 50%;
  width: 100px; height: 100px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: wavePulse 3s ease-out infinite;
}
.project__waves span:nth-child(2){ animation-delay: 1s; }
.project__waves span:nth-child(3){ animation-delay: 2s; }
@keyframes wavePulse{
  0%   { transform: translate(-50%, -50%) scale(.3); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.project__media--aws{
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.06), transparent 60%), var(--bg-3);
}
.project__aws-pipe{
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center; gap: 20px;
  z-index: 2;
}
.project__aws-pipe span{
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.03);
  position: relative;
  animation: pipePulse 2s ease-in-out infinite;
}
.project__aws-pipe span:nth-child(2){ animation-delay: .2s; }
.project__aws-pipe span:nth-child(3){ animation-delay: .4s; }
.project__aws-pipe span:nth-child(4){ animation-delay: .6s; }
.project__aws-pipe span::before{
  content: "→";
  position: absolute; right: -18px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-dim);
  font-size: .9rem;
}
.project__aws-pipe span:last-child::before{ display: none; }
@keyframes pipePulse{
  0%,100%{ background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.25); }
  50%   { background: rgba(255,255,255,.1);  border-color: rgba(255,255,255,.6); }
}
.project__aws-chip{
  position: absolute; top: 20px; right: 24px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .8rem;
  color: var(--ink);
}

.project__body{ padding: 28px 32px 32px; }
.project__tag{
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.project h3{
  font-size: 1.5rem;
  margin-bottom: 10px;
  letter-spacing: -.015em;
  font-weight: 500;
}
.project p{ color: var(--ink-dim); line-height: 1.6; }
.project p strong{ color: var(--ink); font-weight: 500; }

.project__stack{
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 16px 0 20px;
}
.project__stack li{
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.project__cta{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .25s;
}
.project:hover .project__cta{ gap: 14px; }

/* ============================================================
   Lore
   ============================================================ */
.lore__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px){ .lore__grid{ grid-template-columns: 1fr; gap: 48px; } }

.lore__edu h2{ margin-bottom: 28px; }

.edu-card{
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .3s;
}
.edu-card:hover{ border-color: var(--line-strong); }
.edu-card__logo{
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 8px;
}
.edu-card__logo img{ width: 100%; height: auto; object-fit: contain; }
.edu-card__logo-fallback{
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400; font-size: 1.8rem;
  color: var(--bg);
  background: #fff;
}
.edu-card h3{ font-size: 1.2rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.edu-card__meta{ font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.edu-card p{ color: var(--ink-dim); line-height: 1.6; margin: 6px 0 0; font-size: .92rem; }

.lore__skills h3{ font-size: 1.2rem; color: var(--ink); margin-bottom: 24px; font-weight: 500; }
.skill-block{ margin-bottom: 24px; }
.skill-block h4{
  font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
  font-weight: 500;
}
.skill-tags{ display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span{
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.skill-tags span:hover{ background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================
   Contact
   ============================================================ */
.contact{ text-align: center; padding-bottom: 40px; }
.contact .section__head{ margin-bottom: 40px; }
.contact__title{
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
  margin: 0;
}
.contact__title i{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.contact__sub{
  max-width: 56ch;
  margin: 24px auto 40px;
  color: var(--ink-dim);
  line-height: 1.6;
}
.contact__row{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .86rem;
  color: #fff;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover{ transform: translateY(-2px); border-color: #fff; }
.btn--primary{
  background: #fff; color: #000; border-color: #fff;
}
.btn--primary:hover{ background: rgba(255,255,255,.92); }

.foot{
  max-width: var(--container);
  margin: 80px auto 0;
  padding: 24px clamp(20px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal, .reveal-split{
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in, .reveal-split.is-in{ opacity: 1; transform: translateY(0); }

[data-reveal]{
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-in{ opacity: 1; transform: translateY(0); }

/* ============================================================
   05 · Quoota scene
   ============================================================ */
.scene--quoota{
  background: radial-gradient(circle at 40% 50%, rgba(255,200,140,.1), transparent 65%);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.quoota-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  animation: qgridPan 20s linear infinite;
}
@keyframes qgridPan{ to{ background-position: 30px 30px; } }
.quoota-stack{
  position: relative;
  width: min(320px, 86%);
  aspect-ratio: 5 / 3;
}
.quoota-card{
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.2));
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  animation: qcardFloat 6s ease-in-out infinite;
}
.quoota-card--back{
  transform: translate(-18px, 12px) rotate(-3deg);
  opacity: .55;
  animation-delay: -.5s;
  z-index: -1;
}
.quoota-card--back2{
  transform: translate(18px, 22px) rotate(3deg);
  opacity: .35;
  animation-delay: -1s;
  z-index: -2;
}
@keyframes qcardFloat{
  0%,100%{ transform: translate(0,0) rotate(0);}
  50%   { transform: translate(0,-8px) rotate(-.5deg);}
}
.quoota-card__label{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .28em;
  font-size: .72rem;
  color: rgba(255,255,255,.8);
}
.quoota-card__chart{
  display: flex; align-items: flex-end; gap: 6px;
  height: 70px;
}
.quoota-card__chart b{
  display: block; flex: 1;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.3));
  animation: qbar 2s ease-in-out infinite;
  transform-origin: bottom;
}
.quoota-card__chart b:nth-child(1){ height: 30%; animation-delay: 0s;  }
.quoota-card__chart b:nth-child(2){ height: 55%; animation-delay: .1s; }
.quoota-card__chart b:nth-child(3){ height: 42%; animation-delay: .2s; }
.quoota-card__chart b:nth-child(4){ height: 78%; animation-delay: .3s; }
.quoota-card__chart b:nth-child(5){ height: 92%; animation-delay: .4s; }
@keyframes qbar{ 0%,100%{transform:scaleY(1);} 50%{transform:scaleY(.86);} }
.quoota-card__meta{
  display: flex; justify-content: space-between;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.quoota-card__meta span:last-child{
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.1rem;
  color: #fff;
}

/* ============================================================
   Community — org cards
   ============================================================ */
.community__lede{
  max-width: 60ch;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 0 clamp(20px, 4vw, 48px);
  margin: 0 auto 40px;
}
.community__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 900px){ .community__grid{ grid-template-columns: 1fr; } }

.org{
  position: relative;
  padding: 30px 30px 28px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .4s var(--ease-out), border-color .3s;
  overflow: hidden;
}
.org:hover{
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.org::after{
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #fff;
  transition: width .6s var(--ease-out);
}
.org:hover::after{ width: 100%; }

.org__head{
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.org__mark{
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-3);
  overflow: hidden;
  padding: 8px;
}
.org__mark--img{ padding: 0; background: #fff; }
.org__mark--img img{
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}
/* VANT TEC logo is wide + has dark text → fit contained in white circle */
.org[data-org="vanttec"] .org__mark--img img{ padding: 8px; }
.org__status{
  padding: 4px 10px;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.org__status--active{
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,.06);
}
.org__status--active::before{
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-right: 6px;
  transform: translateY(-1px);
  animation: statusPing 1.8s ease-in-out infinite;
}
@keyframes statusPing{ 0%,100%{opacity:1; box-shadow: 0 0 0 0 rgba(255,255,255,.5);} 50%{opacity:.6; box-shadow: 0 0 0 4px rgba(255,255,255,0);} }
.org__status--past{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.org h3{
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 4px;
}
.org__role{
  display: block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.org p{
  color: var(--ink-dim);
  line-height: 1.65;
  font-size: .95rem;
  margin: 0 0 18px;
  max-width: 48ch;
}
.org p strong{ color: #fff; font-weight: 500; }
.org__tags{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.org__tags li{
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Credentials
   ============================================================ */
.credentials__block{
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1280px;
  margin: 0 auto 60px;
}
.credentials__title{
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -.005em;
  display: flex; align-items: center; gap: 14px;
}
.credentials__title::before{
  content: "";
  width: 28px; height: 1px;
  background: var(--line-strong);
}

.credentials__edu{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px){ .credentials__edu{ grid-template-columns: 1fr; } }

.edu-card--v2{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.edu-card--v2:hover{
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.edu-card--v2 .edu-card__body{ display: flex; flex-direction: column; gap: 6px; }
.edu-card__pill{
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 4px;
}
.edu-card--v2 h4{
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.edu-card__logo-fallback--tec{
  color: #fff !important;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a) !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.credentials__certs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px){ .credentials__certs{ grid-template-columns: 1fr; } }

.cert{
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  transition: transform .4s var(--ease-out), border-color .3s;
  position: relative;
  overflow: hidden;
}
.cert:hover{
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.cert__badge{
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 70%);
  color: #fff;
  padding: 12px;
  overflow: hidden;
}
.cert__badge svg{ width: 100%; height: 100%; }
.cert__badge--img{
  width: 96px; height: 96px;
  padding: 10px;
  background: #fff;
}
.cert__badge--img img{
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.cert__issuer{
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 8px;
}
.cert h4{
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.cert p{
  color: var(--ink-dim);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

.credentials__skills{
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
}
@media (max-width: 900px){ .credentials__skills{ grid-template-columns: 1fr; gap: 30px; } }

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