/* =====================================================================
   Tiago Furtado — Portfolio
   "Cinematic Grade": teal & orange film color-grade on deep blue-black.
   ===================================================================== */

:root {
  /* ---- palette ---- */
  --bg:        #05070b;
  --bg-2:      #080b11;
  --bg-3:      #0c1118;
  --ink:       #eaf1f4;
  --ink-dim:   #aebac4;
  --muted:     #6f7d8a;
  --line:      rgba(149, 178, 197, 0.12);
  --line-2:    rgba(149, 178, 197, 0.22);

  --teal:      #2fe6cf;   /* cool cinematic key */
  --teal-deep: #11a596;
  --orange:    #ff8a3d;   /* warm cinematic fill */
  --orange-hot:#ff5e3a;
  --magenta:   #ff4d8d;   /* rare tertiary spark */
  --go:        #00add8;   /* Go brand cyan — used in the "What's Next" section */
  --go-soft:   #7fdcec;

  --glass:     rgba(18, 26, 34, 0.55);
  --glass-2:   rgba(20, 30, 39, 0.72);

  /* ---- type ---- */
  --display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- layout ---- */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.js [data-reveal],
html.js [data-reveal-group] > *,
html.js .reveal-line { will-change: transform, opacity; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: #03100e; }

a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 600; }
.ital { font-style: italic; font-family: var(--display); font-weight: 500; color: var(--teal); }

/* ---- custom scrollbar ---- */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2a34; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--teal-deep); }

/* =====================================================================
   ATMOSPHERE — grain, vignette, scroll progress
   ===================================================================== */
.grain {
  position: fixed; inset: -50%;
  z-index: 9000; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 2%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(2,4,7,0.55) 100%);
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9500;
  background: transparent; pointer-events: none;
}
.scroll-progress__bar {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  box-shadow: 0 0 14px var(--teal);
}

/* =====================================================================
   CUSTOM CURSOR
   ===================================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 9600; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.6);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; background: rgba(255,255,255,0.08); border-color: #fff; }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  transition: transform .5s var(--ease), background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(6, 9, 13, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.nav.is-hidden { transform: translateY(-110%); }

.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.nav__mark {
  font-family: var(--mono); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.02em;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 9px; color: var(--teal);
  background: linear-gradient(145deg, rgba(47,230,207,0.1), transparent);
  transition: border-color .3s, color .3s;
}
.nav__brand:hover .nav__mark { border-color: var(--teal); }
.nav__name { font-family: var(--display); font-size: 0.98rem; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 0.4rem; }
.nav__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--ink-dim); padding: 0.5rem 0.85rem; border-radius: 8px;
  display: flex; align-items: center; gap: 0.45rem; position: relative;
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--ink); background: rgba(149,178,197,0.06); }
.nav__idx { color: var(--teal); opacity: 0.7; font-size: 0.68rem; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  padding: 0.6rem 1.05rem; border-radius: 99px; color: var(--bg);
  background: var(--teal); transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  box-shadow: 0 6px 24px -8px rgba(47,230,207,0.6);
}
.nav__cta:hover { background: #46f0db; box-shadow: 0 10px 34px -8px rgba(47,230,207,0.85); }
.nav__cta svg { transition: transform .3s var(--ease); }
.nav__cta:hover svg { transform: translate(2px, -2px); }

.nav__menu { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav__menu span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }

/* =====================================================================
   SHARED — buttons, dots, section scaffolding
   ===================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.01em;
  padding: 0.95rem 1.5rem; border-radius: 99px; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s, color .35s, border-color .35s;
}
.btn--lg { padding: 1.1rem 1.9rem; font-size: 0.95rem; }
.btn--primary { color: #04120f; background: var(--teal); box-shadow: 0 10px 34px -10px rgba(47,230,207,0.7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(110deg, var(--teal), var(--orange));
  opacity: 0; transition: opacity .4s var(--ease);
}
.btn--primary:hover { color: #150a04; box-shadow: 0 16px 44px -10px rgba(255,138,61,0.6); }
.btn--primary:hover::before { opacity: 1; }
.btn--primary svg { transition: transform .35s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(149,178,197,0.03); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--wpp { color: #25d366; border: 1px solid rgba(37,211,102,0.4); background: rgba(37,211,102,0.07); }
.btn--wpp svg { flex: none; }
.btn--wpp:hover { color: #04140a; background: #25d366; border-color: #25d366; box-shadow: 0 12px 34px -10px rgba(37,211,102,0.6); }

.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); position: relative; display: inline-block; flex: none; }
.dot-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--orange); animation: ping 2s var(--ease) infinite; }
.dot-pulse--green { background: var(--teal); }
.dot-pulse--green::after { border-color: var(--teal); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 80%,100% { transform: scale(2.2); opacity: 0; } }

.section { padding: clamp(5rem, 12vh, 9rem) var(--pad); max-width: var(--maxw); margin: 0 auto; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section__eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.3rem;
}
.section__idx { color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.45rem; font-size: 0.72rem; }
.section__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em;
}
.section__sub { color: var(--ink-dim); margin-top: 1.4rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); max-width: 620px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 6.5rem var(--pad) 5rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 18% 28%, rgba(47,230,207,0.22), transparent 60%),
    radial-gradient(38% 46% at 82% 70%, rgba(255,138,61,0.18), transparent 60%),
    radial-gradient(45% 55% at 60% 18%, rgba(255,77,141,0.07), transparent 60%);
  filter: blur(28px); animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-4%, 3%) scale(1.12); }
}
.hero__streak {
  position: absolute; left: -10%; right: -10%; top: 38%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,230,207,0.65), rgba(120,240,255,0.9), rgba(47,230,207,0.65), transparent);
  box-shadow: 0 0 40px 6px rgba(47,230,207,0.35); opacity: 0.5;
  animation: streak 7s var(--ease) infinite;
}
@keyframes streak { 0%,100% { opacity: 0.18; transform: translateY(0); } 50% { opacity: 0.6; transform: translateY(-8px); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 78%);
  opacity: 0.5;
}

.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  font-family: var(--mono); font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem);
  letter-spacing: 0.04em; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 99px;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 1rem + 9.5vw, 9rem); line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}
.hero__title-line { display: block; }
.hero__title-mask { display: block; overflow: hidden; padding: 0.06em 0.03em; margin: -0.06em -0.03em; }
.hero__title-inner { display: block; }
.hero__title-line--accent {
  background: linear-gradient(100deg, var(--teal) 4%, #8df3e6 38%, var(--orange) 82%, var(--orange-hot) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero__title .char { display: inline-block; will-change: transform; }

.hero__statement {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.35rem, 0.95rem + 1.9vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em; margin-bottom: 1.4rem;
}
.hero__statement-static { color: var(--ink-dim); }
.hero__rotator { position: relative; height: 1.2em; overflow: hidden; display: inline-block; }
.hero__rotator-track { display: flex; flex-direction: column; }
.hero__rotator em { font-style: italic; color: var(--teal); height: 1.2em; line-height: 1.2em; white-space: nowrap; }

.hero__lede {
  max-width: 580px; color: var(--ink-dim); font-size: clamp(0.98rem, 0.93rem + 0.3vw, 1.12rem);
  line-height: 1.65; margin-bottom: 1.9rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta-k { color: var(--teal); opacity: 0.85; }
.hero__meta-k--go { color: var(--go); opacity: 1; }
.hero__meta-item--open { color: var(--ink-dim); }
.hero__meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

.hero__scroll {
  position: absolute; right: var(--pad); bottom: 2rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll-line span { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--teal); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { top: -50%; } 100% { top: 100%; } }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  display: flex; gap: 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.4rem 0; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; animation: marquee 28s linear infinite; flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem);
  color: var(--ink-dim); letter-spacing: -0.02em;
}
.marquee__dot { color: var(--orange) !important; font-size: 1rem !important; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =====================================================================
   STATS
   ===================================================================== */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vh, 6rem) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.stats__item { background: var(--bg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.stats__num {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.4rem); line-height: 1;
  background: linear-gradient(120deg, var(--ink), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 0.7rem;
}
.stats__label { color: var(--muted); font-size: 0.9rem; line-height: 1.45; display: block; max-width: 22ch; }

/* =====================================================================
   WORK — bento grid
   ===================================================================== */
.work__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.card {
  position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, var(--glass), rgba(8,12,17,0.85));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column;
  transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.card--feature   { grid-column: span 6; }
.card--maestro   { grid-column: span 3; }
.card--craft     { grid-column: span 3; }
.card--foundations { grid-column: span 6; }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9); }
.card__glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(47,230,207,0.18), transparent 65%);
  filter: blur(20px); opacity: 0; transition: opacity .5s var(--ease);
  left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%, -50%); pointer-events: none;
}
.card--maestro .card__glow { background: radial-gradient(circle, rgba(255,138,61,0.18), transparent 65%); }
.card--craft .card__glow { background: radial-gradient(circle, rgba(255,77,141,0.16), transparent 65%); }
.card:hover .card__glow { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.card__index { font-family: var(--mono); font-size: 0.78rem; color: var(--teal); letter-spacing: 0.05em; }
.card__role { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

.card__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); margin-bottom: 0.6rem;
}
.card--feature .card__title { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.5rem); }
.card__title-accent { color: var(--teal); }
.card__tagline { font-family: var(--display); font-style: italic; color: var(--orange); font-size: clamp(1rem, 0.95rem + 0.5vw, 1.35rem); margin-bottom: 1.2rem; }
.card__desc { color: var(--ink-dim); max-width: 62ch; line-height: 1.65; }
.card--feature .card__desc { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); max-width: 72ch; }

.card__highlights { display: grid; gap: 0.6rem; margin-top: 1.6rem; }
.card--feature .card__highlights { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card__hl {
  font-size: 0.9rem; color: var(--ink-dim); border-left: 2px solid var(--teal-deep);
  padding: 0.2rem 0 0.2rem 0.9rem; line-height: 1.45;
}
.card__hl span { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 0.2rem; }

.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.8rem; }
.card__tags li {
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim);
  padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(149,178,197,0.03); transition: border-color .3s, color .3s;
}
.card:hover .card__tags li { border-color: var(--line-2); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__lead {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem); margin-bottom: 2rem;
}
.about__body { color: var(--ink-dim); display: grid; gap: 1.2rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); max-width: 60ch; }

.about__kit { position: sticky; top: 6rem; display: grid; gap: 1.5rem; }
.about__portrait {
  aspect-ratio: 4/5; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(47,230,207,0.18), transparent 60%),
    radial-gradient(70% 70% at 80% 90%, rgba(255,138,61,0.16), transparent 60%),
    var(--bg-3);
  position: relative;
}
.about__portrait::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.4;
}
.about__portrait-mark { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); letter-spacing: -0.04em; color: var(--ink); position: relative; z-index: 1; }
.about__portrait-tag { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); position: relative; z-index: 1; }

.about__facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.about__facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
.about__facts > div:last-child { border-bottom: none; }
.about__facts dt { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.about__facts dd { text-align: right; font-size: 0.92rem; color: var(--ink); }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline { list-style: none; position: relative; max-width: 900px; margin-left: auto; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline__item { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 0 0 clamp(2.5rem, 5vh, 3.5rem) clamp(1.8rem, 3vw, 2.6rem); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -5px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--teal); box-shadow: 0 0 0 4px rgba(47,230,207,0.12);
  transition: background .3s, box-shadow .3s;
}
.timeline__item:hover::before { background: var(--teal); box-shadow: 0 0 0 6px rgba(47,230,207,0.18); }
.timeline__when { font-family: var(--mono); font-size: 0.82rem; color: var(--teal); padding-top: 2px; }
.timeline__content h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); letter-spacing: -0.02em; }
.timeline__org { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0.8rem; }
.timeline__desc { color: var(--ink-dim); max-width: 58ch; }

/* Education block under the timeline */
.edu { max-width: 900px; margin: clamp(2.5rem, 6vh, 4rem) 0 0 auto; }
.edu__head { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.4rem; }
.edu__head-idx { color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.45rem; font-size: 0.72rem; }
.edu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.4rem); }
.edu__card { border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.3rem, 3vw, 1.8rem); background: linear-gradient(160deg, var(--glass), rgba(8,12,17,0.7)); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.edu__card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.edu__when { font-family: var(--mono); font-size: 0.78rem; color: var(--teal); }
.edu__degree { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem); letter-spacing: -0.02em; margin: 0.55rem 0 0.4rem; }
.edu__school { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* =====================================================================
   SKILLS
   ===================================================================== */
.skills__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.skills__col { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.skills__cat { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 1.4rem; }
.skills__col ul { list-style: none; display: grid; gap: 0.7rem; }
.skills__col li { color: var(--ink-dim); font-size: 0.98rem; display: flex; align-items: center; gap: 0.6rem; transition: color .25s, transform .25s var(--ease); }
.skills__col li::before { content: "▸"; color: var(--orange); font-size: 0.7rem; opacity: 0.7; }
.skills__col li:hover { color: var(--ink); transform: translateX(3px); }

/* =====================================================================
   WHAT'S NEXT — Learning Go
   ===================================================================== */
.next { position: relative; }
.next__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.next__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); margin-bottom: 1.6rem;
}
.next__go {
  position: relative; color: var(--go);
  background: linear-gradient(100deg, var(--go), var(--go-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.next__go::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: 0.08em; height: 0.16em;
  background: var(--go); opacity: 0.35; border-radius: 2px; filter: blur(1px);
}
.next__body { color: var(--ink-dim); display: grid; gap: 1.1rem; max-width: 56ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); }
.next__chips-label { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--go); margin: 1.8rem 0 0.9rem; }
.next__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.next__chips li {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim);
  padding: 0.4rem 0.8rem; border: 1px solid rgba(0,173,216,0.28); border-radius: 99px;
  background: rgba(0,173,216,0.06); transition: border-color .3s, color .3s, background .3s;
}
.next__chips li:hover { border-color: var(--go); color: var(--go-soft); background: rgba(0,173,216,0.12); }
.next__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.next__visual { position: relative; }
.next__code {
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, #0a1014, #070a0e);
  box-shadow: 0 40px 80px -50px rgba(0,173,216,0.5), 0 0 0 1px rgba(0,173,216,0.06);
}
.next__code-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: rgba(0,173,216,0.04); }
.next__code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3742; }
.next__code-bar span:first-child { background: var(--orange-hot); }
.next__code-bar span:nth-child(2) { background: var(--orange); }
.next__code-bar span:nth-child(3) { background: var(--go); }
.next__code-bar em { margin-left: auto; font-family: var(--mono); font-style: normal; font-size: 0.74rem; color: var(--muted); }
.next__code-body { margin: 0; padding: clamp(1.1rem, 2.5vw, 1.6rem); overflow-x: auto; }
.next__code-body code {
  font-family: var(--mono); font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.92rem); line-height: 1.7;
  color: var(--ink-dim); white-space: pre; display: block;
}
.tk-kw { color: var(--go); }
.tk-st { color: var(--orange); }
.tk-fn { color: var(--teal); }
.tk-ty { color: var(--go-soft); }
.tk-cm { color: var(--muted); font-style: italic; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { text-align: center; max-width: 100%; padding-block: clamp(6rem, 16vh, 11rem); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__mesh {
  position: absolute; inset: -30%;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(47,230,207,0.16), transparent 60%),
    radial-gradient(40% 50% at 70% 60%, rgba(255,138,61,0.14), transparent 60%);
  filter: blur(30px); animation: drift 20s ease-in-out infinite alternate;
}
.contact__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.contact .section__eyebrow { justify-content: center; }
.contact__title { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(2.6rem, 1.4rem + 6vw, 6rem); margin-bottom: 1.6rem; }
.contact__sub { color: var(--ink-dim); max-width: 52ch; margin: 0 auto 2.6rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.contact__links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; justify-content: center; font-family: var(--mono); font-size: 0.86rem; }
.contact__links a { color: var(--muted); transition: color .25s; position: relative; }
.contact__links a:hover { color: var(--teal); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding: 2.2rem var(--pad); max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__row { display: flex; align-items: center; gap: 1rem; }
.footer__row--end { gap: 1.5rem; }
.footer__name { font-family: var(--display); font-weight: 600; }
.footer__meta, .footer__build { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.footer__top { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); transition: color .25s; }
.footer__top:hover { color: var(--teal); }
.footer__social { display: flex; gap: 1.4rem; }
.footer__social a { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); transition: color .25s; position: relative; }
.footer__social a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--teal); transition: right .3s var(--ease); }
.footer__social a:hover { color: var(--teal); }
.footer__social a:hover::after { right: 0; }

/* =====================================================================
   REVEAL — initial states set by JS (.is-reveal). Without JS: visible.
   ===================================================================== */
html.js .is-reveal { opacity: 0; transform: translateY(28px); }
html.js .is-reveal-line { opacity: 0; transform: translateY(18px); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0.4rem; position: absolute; top: 100%; right: var(--pad); left: var(--pad);
    background: var(--glass-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem; margin-top: 0.6rem;
  }
  .nav.is-open .nav__links a { font-size: 0.95rem; padding: 0.8rem 1rem; }
  .nav.is-open .nav__menu span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__menu span:last-child { transform: translateY(-7px) rotate(-45deg); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__kit { position: static; max-width: 420px; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: 1fr; }
  .card--feature, .card--maestro, .card--craft, .card--foundations { grid-column: 1 / -1; }
  .card--feature .card__highlights { grid-template-columns: 1fr; }
  .next__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline__when { order: -1; }
  .hero__statement { font-size: clamp(1.3rem, 5vw, 2rem); }
  .hero__eyebrow { font-size: 0.72rem; flex-wrap: wrap; line-height: 1.5; }
  .hero__meta { gap: 0.5rem 1rem; }
  .edu__grid { grid-template-columns: 1fr; }
  .nav__name { display: none; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js .is-reveal, html.js .is-reveal-line { opacity: 1 !important; transform: none !important; }
  .cursor { display: none !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
}
