/* ==========================================================================
   José Luis López · e-portfolio
   Dark, atmospheric, typographic. Self-hosted fonts, no frameworks.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #07090f;
  --bg-2: #0b0e17;
  --panel: rgba(255, 255, 255, .025);
  --panel-solid: #0d111b;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eceff5;
  --muted: #9198ab;
  --faint: #5d6478;
  --accent: #5eead4;
  --accent-2: #a78bfa;
  --accent-3: #f5b264;
  --accent-ink: #04201c;
  --grid: rgba(255, 255, 255, .035);
  --glow-1: rgba(94, 234, 212, .13);
  --glow-2: rgba(167, 139, 250, .14);
  --glow-3: rgba(245, 178, 100, .07);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --max: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-2: #ecebe5;
  --panel: rgba(0, 0, 0, .025);
  --panel-solid: #fbfaf7;
  --line: rgba(10, 14, 25, .1);
  --line-strong: rgba(10, 14, 25, .2);
  --text: #0c0f17;
  --muted: #4c5366;
  --faint: #868c9c;
  --accent: #0d7a6c;
  --accent-2: #6d4ed8;
  --accent-3: #b86a12;
  --accent-ink: #ffffff;
  --grid: rgba(10, 14, 25, .045);
  --glow-1: rgba(13, 122, 108, .10);
  --glow-2: rgba(109, 78, 216, .09);
  --glow-3: rgba(184, 106, 18, .06);
  color-scheme: light;
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200; padding: .6rem 1rem;
  background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- Background */

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; transform: translateZ(0); }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
.bg-glow { position: absolute; border-radius: 50%; }
.bg-glow-1 { width: 80vw; height: 80vw; left: -30vw; top: -35vw; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.bg-glow-2 { width: 75vw; height: 75vw; right: -32vw; top: -5vh; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.bg-glow-3 { width: 70vw; height: 70vw; right: -5vw; bottom: -40vw; background: radial-gradient(closest-side, var(--glow-3), transparent); }
.bg-noise {
  position: absolute; inset: 0; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ---------------------------------------------------------------- Header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--bg) 93%, transparent);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; color: var(--text); }
.brand-dot { color: var(--accent); }
.brand-cursor { color: var(--accent-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-panel { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  position: relative; display: inline-block; padding: .75rem 0 .35rem;
  font-family: var(--mono); font-size: .8rem; color: var(--muted); transition: color .2s;
}
.nav-num { position: absolute; top: 0; right: 0; font-size: .6rem; color: var(--faint); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active .nav-num { color: var(--accent); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch, .theme-toggle {
  display: grid; place-items: center; height: 36px; min-width: 36px; padding: 0 .55rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text);
  font-family: var(--mono); font-size: .75rem; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s;
}
.lang-switch:hover, .theme-toggle:hover { border-color: var(--accent); background: var(--panel); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-toggle .fill { fill: currentColor; stroke: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before {
  position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--text); content: ""; transition: transform .3s var(--ease);
}
.nav-toggle-bar { top: 18px; }
.nav-toggle-bar::before { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-panel {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 1.5rem;
    padding: 1.5rem 1.5rem 2rem; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-panel.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: .25rem; width: 100%; }
  .nav-links a { font-size: 1.05rem; padding: .6rem 2.5rem .6rem 0; }
  .nav-num { top: .9rem; right: auto; left: calc(100% + .25rem); }
}

/* ---------------------------------------------------------------- Buttons & links */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; height: 50px; padding: 0 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; overflow: hidden;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.link {
  color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease), color .2s;
}
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }
.link-arrow { display: inline-flex; gap: .5rem; font-weight: 600; color: var(--accent); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.link-back { display: inline-flex; gap: .5rem; font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-bottom: 3rem; }
.link-back:hover { color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .75rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.pill-dot {
  position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
.pill-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; will-change: transform, opacity;
}
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 75%, 100% { transform: scale(3); opacity: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0; }
.tags li {
  font-family: var(--mono); font-size: .72rem; padding: .25rem .6rem; border-radius: 999px;
  color: var(--muted); border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- Hero */

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 104px 0 80px; overflow-x: clip; }
.hero-spot {
  position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; pointer-events: none; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 15%, transparent), transparent);
  transform: translate3d(calc(68vw - 500px), calc(32vh - 500px), 0);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1); will-change: transform;
}
.hero-inner { width: min(100% - 3rem, var(--max)); }
.hero-name {
  margin: 1.5rem 0 1.25rem; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 13vw, 8.25rem); line-height: .98; letter-spacing: -.035em;
}
.hero-line { display: block; }
.hero-line-outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
@supports not (-webkit-text-stroke: 1px black) { .hero-line-outline { color: var(--muted); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; margin-bottom: 1.5rem; }
.hero-meta p { margin: 0; }
.hero-role { color: var(--text); }
.hero-focus { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; align-self: center; }
.hero-intro { max-width: 58ch; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }
.socials { display: flex; gap: .4rem; margin-left: .5rem; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted);
  transition: color .2s, background .2s;
}
.socials a:hover { color: var(--text); background: var(--panel); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.hero-stats li { padding: 1.5rem 1.5rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.hero-stats li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.hero-stats strong { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.hero-stats span { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats li { padding-bottom: 1.25rem; }
}

.scroll-cue {
  position: absolute; right: 1.75rem; bottom: 28px;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.scroll-mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-height: 720px), (max-width: 1360px) { .scroll-cue { display: none; } }

/* ---------------------------------------------------------------- Sections */

.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-kicker {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker-num { color: var(--accent); }
.kicker-line { width: 48px; height: 1px; background: var(--line-strong); }
.section-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); max-width: 18ch; letter-spacing: -.035em; }
.subhead {
  font-family: var(--mono); font-weight: 500; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: clamp(4rem, 8vw, 6rem) 0 1.75rem;
}
.subhead-sm { font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.note { font-family: var(--mono); font-size: .78rem; color: var(--faint); margin-top: 1rem; }

/* ---------------------------------------------------------------- About */

.about-grid { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease);
  border: 1px solid var(--line);
}
.portrait:hover img { filter: grayscale(0); }
.portrait::before {
  content: ""; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px); z-index: -1;
  background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  opacity: .55;
}
.portrait figcaption {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  font-family: var(--mono); font-size: .72rem; color: var(--text);
}
.about-text { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.6; color: var(--muted); }
.about-text p:first-child { color: var(--text); }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}

.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.principles li { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.principles li:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.principle-num { grid-row: span 2; font-family: var(--mono); font-size: .8rem; color: var(--accent); padding-top: .35rem; }
.principles h4 { font-size: 1.35rem; margin-bottom: .6rem; }
.principles p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------------- Work */

.work-list { display: grid; gap: clamp(4rem, 9vw, 7.5rem); }
.work-item { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.work-item:nth-child(even) .work-text { order: 2; }
.work-index { font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 1rem; }
.work-index span { color: var(--faint); }
.work-name { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.04em; }
.work-name a { background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.work-name a:hover { background-size: 100% 2px; }
.work-subtitle { font-family: var(--display); font-size: 1.2rem; color: var(--text); opacity: .85; margin: .6rem 0 1rem; }
.work-summary { color: var(--muted); max-width: 52ch; }
.work-status { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.work-links { display: flex; align-items: center; gap: 1.75rem; margin-top: 1.5rem; }
.work-visual { display: block; transition: transform .6s var(--ease); }
.work-visual:hover { transform: translateY(-6px); }
@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-text { order: 0; }
}

/* Visual panels (browser / radar / terminal) */
.visual {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), transparent 30%);
}
.window-bar {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .7rem; color: var(--faint); }
.visual-browser img { width: 100%; }

.visual-terminal .terminal {
  margin: 0; padding: 1.6rem 1.6rem 2rem; min-height: 300px; overflow-x: auto;
  font-family: var(--mono); font-size: .86rem; line-height: 2; color: var(--muted); white-space: pre-wrap;
}
.t-cmd { color: var(--text); }
.t-cmd::before { content: "$ "; color: var(--accent); }
.t-out::before { content: "  › "; color: var(--faint); }
.t-ok::before { content: "  ✓ "; color: var(--accent); }
.t-ok { color: var(--text); }
.t-cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }

.radar-wrap { display: grid; place-items: center; padding: 2rem 1.5rem 1rem; }
.radar {
  position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 calc(16.66% - 1px), color-mix(in srgb, var(--accent) 22%, transparent) calc(16.66% - 1px) 16.66%),
    linear-gradient(transparent calc(50% - .5px), color-mix(in srgb, var(--accent) 18%, transparent) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), color-mix(in srgb, var(--accent) 18%, transparent) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 45%, transparent), transparent 22%);
  animation: sweep 5s linear infinite; will-change: transform;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.blip i { position: absolute; left: 12px; top: -6px; white-space: nowrap; font-style: normal; font-family: var(--mono); font-size: .6rem; color: var(--accent); opacity: .85; }
.b1 { left: 24%; top: 30%; } .b2 { left: 66%; top: 22%; } .b3 { left: 38%; top: 70%; }
.b4 { left: 74%; top: 60%; } .b5 { left: 18%; top: 55%; }
.b4 i, .b2 i { left: auto; right: 12px; }
.runway { position: absolute; left: 50%; top: 50%; width: 16%; height: 3px; background: var(--text); opacity: .7; transform: translate(-50%, -50%) rotate(-38deg); border-radius: 2px; }
.radar-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.radar-metrics li { padding: 1rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.radar-metrics li + li { border-left: 1px solid var(--line); }
.radar-metrics strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.radar-metrics span { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.4; }
@media (max-width: 520px) {
  .radar-metrics { grid-template-columns: repeat(2, 1fr); }
  .radar-metrics li:nth-child(3) { border-left: 0; }
  .radar-metrics li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Other projects (rows) */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 260px 1fr 220px 24px; gap: 1.5rem; align-items: baseline;
  padding: 1.6rem .75rem; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease);
}
.rows li:first-child .row { border-top: 0; }
.row:hover { background: var(--panel); padding-left: 1.25rem; }
.row-title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.row-text { color: var(--muted); font-size: .95rem; }
.row-meta { font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.row-arrow { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.row:hover .row-arrow { transform: translate(3px, -3px); color: var(--accent); }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr 24px; gap: .5rem 1rem; }
  .row-text, .row-meta { grid-column: 1; }
  .row-arrow { grid-column: 2; grid-row: 1; }
}

/* Marquee */
.marquee {
  margin: 0 0 3rem; overflow: hidden; border-block: 1px solid var(--line); padding: 1.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -.02em;
  color: var(--faint); padding: 0 1.5rem; white-space: nowrap; display: flex; align-items: center; gap: 3rem;
}
.marquee li::after { content: "✦"; font-size: .9rem; color: var(--accent); margin-left: 1.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Spec list (stack / skills) */
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: .2rem; }
.spec-list dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .spec-list > div { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------------------------------------------------------------- Timeline */

.timeline { border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.tl-period { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: .45rem; margin: 0; }
.tl-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.tl-place { color: var(--muted); margin: .4rem 0 0; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 .5rem; }
.mini-stats li { display: flex; flex-direction: column; }
.mini-stats strong { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.mini-stats span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bullets { display: grid; gap: .65rem; margin-top: 1.25rem; }
.bullets li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: .85rem; top: .1rem; }
@media (max-width: 720px) { .tl-item { grid-template-columns: 1fr; gap: .5rem; } }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.cols-3 li { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.cols-3 h4, .cols-3 h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.cols-3 p { color: var(--muted); }
.col-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------------------------------------------------------------- Skills */

.skills-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; }
.langs { margin: 0; display: grid; gap: 1rem; }
.langs div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.langs dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.langs dd { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chips li { padding: .45rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 800px) { .skills-extra { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Contact */

.contact { padding-bottom: 4rem; }
.contact-title { font-size: clamp(3.5rem, 12vw, 10rem); line-height: .9; letter-spacing: -.05em; font-weight: 700; }
.contact-email {
  display: inline-block; margin: 2.5rem 0 4rem; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 3.8rem); letter-spacing: -.03em; word-break: break-word;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0 100% / 100% 2px no-repeat;
  padding-bottom: .3rem; transition: color .3s, background-size .4s var(--ease);
}
.contact-email:hover { color: var(--accent); }
.contact-email span { display: inline-block; transition: transform .3s var(--ease); }
.contact-email:hover span { transform: translate(6px, -6px); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 3rem; }
.contact-links { display: grid; gap: .7rem; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Project page */

.project-hero { position: relative; padding: 150px 0 4rem; overflow-x: clip; }
.project-name { font-size: clamp(3rem, 10vw, 8rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; }
.project-subtitle { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--muted); margin: 1.25rem 0 3rem; max-width: 30ch; }
.project-meta { display: grid; grid-template-columns: 220px 1fr 220px; margin: 0; border-block: 1px solid var(--line); }
.project-meta > div { padding: 1.25rem 1.5rem 1.25rem 0; }
.project-meta > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.project-meta dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.project-meta dd { margin: 0; color: var(--text); font-size: .95rem; }
.project-meta dd .pill-dot { margin-right: .55rem; vertical-align: middle; }
@media (max-width: 760px) {
  .project-meta { grid-template-columns: 1fr; }
  .project-meta > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.prose { max-width: 70ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.7; color: var(--muted); margin: 2rem 0 4rem; }
.prose p:first-child { color: var(--text); }
.project-visual { max-width: 760px; }
.project-stats { margin-top: 0; }
.project-cards { margin-top: 5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 2rem; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .9rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.project-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 3rem 4rem; margin-top: 5rem; }
.next-project { margin: 7rem 0 2rem; border-top: 1px solid var(--line); }
.next-project a { display: flex; flex-direction: column; gap: .4rem; padding: 3rem 0 1rem; }
.next-label { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.next-name { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.05em; transition: color .3s; }
.next-project a:hover .next-name { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.next-sub { color: var(--muted); }

.not-found .hero-name { font-size: clamp(6rem, 26vw, 18rem); }

/* ---------------------------------------------------------------- Footer */

.site-footer { padding: 2rem 0 2.5rem; overflow: hidden; }
.footer-mark {
  margin: 0 0 -1.5vw; font-family: var(--display); font-weight: 700; line-height: .8; letter-spacing: -.06em;
  font-size: clamp(8rem, 34vw, 30rem); color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none; text-align: center;
}
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--muted);
}
.footer-row p { margin: 0; }
.footer-note { max-width: 60ch; }

/* ---------------------------------------------------------------- Reveal on scroll */

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Print */

@media print {
  .bg, .site-header, .scroll-cue, .marquee, .hero-actions, .footer-mark, .next-project { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero { min-height: auto; padding: 1rem 0; }
}
