/* rodeanu.ro — 2026
   Dark, cinematic presentation page. Every text color below is ≥ 4.5:1 on --bg. */

:root {
  color-scheme: dark;

  --bg: #06070a;
  --surface: #0d0f14;
  --surface-2: #141821;
  --text: #f4f5f7;          /* 18.9:1 */
  --muted: #a3a9b5;         /* 8.6:1 */
  --faint: #7d8492;         /* 5.3:1 */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --emerald: #34d399;       /* 11.0:1 */
  --cyan: #22d3ee;          /* 11.6:1 */
  --indigo: #a5b4fc;        /* 10.0:1 */
  --amber: #fbbf24;         /* 12.2:1 */
  --grad: linear-gradient(100deg, var(--emerald) 0%, var(--cyan) 50%, var(--indigo) 100%);

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }

::selection { background: rgba(52, 211, 153, 0.35); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 10px 16px; border-radius: 12px;
  background: var(--emerald); color: #06070a; font-weight: 600;
}
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--grad);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: rgba(13, 15, 20, 0.66);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-transparency: reduce) {
  .nav-inner { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; margin-right: auto;
  min-height: 44px; padding-right: 8px; border-radius: 999px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #06070a;
  font: 700 0.8125rem/1 var(--display); letter-spacing: -0.02em;
}
.nav ul { display: flex; gap: 2px; }
.nav a.link, .nav .lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-size: 0.9375rem; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a.link:hover, .nav .lang:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav .lang { font-family: var(--mono); font-size: 0.8125rem; border: 1px solid var(--line-2); min-width: 44px; padding: 0 12px; }
.nav .cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--text); color: #06070a;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.nav .cta:hover { background: #fff; }
@media (max-width: 860px) { .nav ul { display: none; } }
@media (max-width: 380px) { .brand-name { display: none; } }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.aurora span:nth-child(1) { width: 640px; height: 640px; left: -160px; top: -200px; background: #0f766e; }
.aurora span:nth-child(2) { width: 560px; height: 560px; right: -120px; top: 40px; background: #3730a3; }
.aurora span:nth-child(3) { width: 520px; height: 520px; left: 35%; bottom: -320px; background: #0e7490; opacity: 0.45; }

.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  font-size: 0.875rem; color: var(--muted);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.badge strong { color: var(--text); font-weight: 600; }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(3.25rem, 8.4vw, 6.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero .claim .grad { white-space: nowrap; }
.hero .claim {
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 24ch;
}
.hero .intro { margin-top: 20px; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.hero .intro p + p { margin-top: 14px; }
.hero .intro strong { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary {
  background: var(--grad); color: #06070a;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, 0.75); }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn:active { transform: scale(0.98); }

/* Phones (project showcases) */

.phone {
  position: absolute;
  margin: 0;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2e36, #0c0e12 40%, #1c1f26);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 40px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 38px; width: 100%; }
.phone::after {
  content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0;
  width: 30%; height: 20px; border-radius: 999px; background: #000;
}
.phone.classic::after { display: none; }
.phone.classic { border-radius: 40px; padding: 10px; }
.phone.classic img { border-radius: 30px; }

@media (prefers-reduced-motion: no-preference) {
  .aurora span:nth-child(1) { animation: drift 22s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation: drift 26s ease-in-out -6s infinite alternate-reverse; }
  .aurora span:nth-child(3) { animation: drift 30s ease-in-out -12s infinite alternate; }
}
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: 120px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .portrait { justify-self: start; max-width: 360px; }
}

/* Marquee */

.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 56px;
  font-family: var(--display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--muted); white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 0.875rem; color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 40s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 32px; padding: 0 var(--gutter); }
  .marquee-track [aria-hidden] { display: none; }
}

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

.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.head h2 { margin-top: 18px; font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 700; }
.head p { margin-top: 20px; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 56ch; }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: clamp(28px, 3.5vw, 44px); }
.stat .num {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.05em;
  font-size: clamp(3.25rem, 6.5vw, 5.5rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label { margin-top: 14px; font-weight: 600; }
.stat .sub { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stat { padding: 24px 20px; } .stat .num { font-size: 3rem; } }

/* Showcase */

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.showcase + .showcase { margin-top: 28px; }
.showcase::before {
  content: ""; position: absolute; z-index: -1;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
  background: var(--glow, #0ea5e9);
  top: -30%; left: -20%;
}
.showcase.flip .shots { order: 2; }
.showcase.flip::before { left: auto; right: -20%; }

.showcase .logo { display: flex; align-items: center; gap: 14px; }
.showcase .logo img {
  width: 56px; height: 56px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}
.showcase .logo .org { color: var(--muted); font-size: 0.9375rem; }
.showcase .logo .when { font-family: var(--mono); font-size: 0.8125rem; color: var(--faint); }
.showcase h3 { margin-top: 28px; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
.showcase .desc { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.features { margin-top: 28px; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--emerald); }
.tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
}

.shots {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  gap: 4%;
  min-height: 420px;
}
.shots .phone { position: relative; width: 44%; }
.shots .phone:nth-child(2) { margin-top: 18%; }

@media (max-width: 920px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase.flip .shots { order: 0; }
  .shots { min-height: 0; }
}

/* Smaller project cards */

.duo { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card .logo { display: flex; align-items: center; gap: 14px; }
.card .logo .tile {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, #1e3a8a, #0f172a);
  box-shadow: 0 0 0 1px var(--line-2);
}
.card .logo .tile.white { background: #fff; }
.card .logo .tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card .logo .tile svg { width: 26px; height: 26px; color: #fff; }
.card h3 { font-size: 1.625rem; font-weight: 700; }
.card .org { color: var(--muted); font-size: 0.9375rem; }
.card p.desc { margin-top: 20px; color: var(--muted); }
.card .pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-family: var(--mono); color: var(--amber);
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25);
}
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

/* Roots strip (old apps) */

.roots { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.roots h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.roots p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.roots ul { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.roots li {
  padding: 8px 14px; border-radius: 999px; font-size: 0.9375rem; color: var(--muted);
  border: 1px solid var(--line-2);
}
.roots li.won { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); }

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.tile-b {
  position: relative;
  grid-column: span 2;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tile-b:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile-b.wide { grid-column: span 3; }
.tile-b.hero-tile { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; }
.tile-b .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font: 700 0.9375rem/1 var(--mono); color: #fff;
}
.tile-b h3 { margin-top: 24px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.tile-b p { margin-top: 10px; color: var(--muted); font-size: 0.9875rem; }
.tile-b .since { position: absolute; top: 32px; right: 32px; font-family: var(--mono); font-size: 0.8125rem; color: var(--faint); }
.tile-b.hero-tile h3 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.035em; }
.tile-b.hero-tile p { font-size: 1.125rem; max-width: 46ch; }
.tile-b.hero-tile::after {
  content: ""; position: absolute; inset: auto -20% -50% 30%; height: 80%;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.25), transparent);
  filter: blur(20px); pointer-events: none;
}
.big-num {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.06em;
  font-size: clamp(5rem, 11vw, 9rem); line-height: 0.85;
}
.i-swift { background: linear-gradient(160deg, #f88a36, #f05138); }
.i-kotlin { background: linear-gradient(160deg, #7f52ff, #c711e1); }
.i-kmp { background: linear-gradient(160deg, #4f46e5, #7f52ff); }
.i-rn { background: linear-gradient(160deg, #1f2937, #111827); color: #61dafb !important; box-shadow: inset 0 0 0 1px rgba(97, 218, 251, 0.35); }
.i-pay { background: linear-gradient(160deg, #0ea5e9, #2563eb); }
.i-pos { background: linear-gradient(160deg, #1e3a8a, #0f172a); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.i-web { background: linear-gradient(160deg, #10b981, #047857); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-b, .tile-b.wide { grid-column: span 1; }
  .tile-b.hero-tile { grid-column: span 2; grid-row: auto; min-height: 0; gap: 40px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-b.hero-tile { grid-column: span 1; }
}

/* Timeline */

.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--emerald), var(--cyan) 45%, var(--indigo) 80%, transparent);
  opacity: 0.6;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px 48px;
  padding: 0 0 56px 48px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(34, 211, 238, 0.6);
}
.timeline li.now::before { background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(52, 211, 153, 0.8); }
.timeline .years { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.timeline .years small { display: block; margin-top: 6px; font: 500 0.8125rem/1.3 var(--mono); color: var(--faint); letter-spacing: 0; }
.timeline h3 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; }
.timeline .role { margin-top: 6px; color: var(--cyan); font-weight: 500; }
.timeline p.what { margin-top: 12px; color: var(--muted); max-width: 62ch; }
.timeline .tags { margin-top: 16px; }
@media (max-width: 760px) {
  .timeline li { grid-template-columns: 1fr; padding-left: 40px; }
}

/* Credentials */

.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 88px; }
.cred {
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.cred .k { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.cred h3 { margin-top: 16px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.cred p { margin-top: 8px; color: var(--muted); }
.cred .medal { display: flex; gap: 14px; align-items: flex-start; }
.cred .medal + .medal { margin-top: 20px; }
.cred .medal b {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 0.9375rem/1 var(--display); color: #06070a;
}
.cred .gold { background: linear-gradient(145deg, #fde68a, #f59e0b); }
.cred .bronze { background: linear-gradient(145deg, #fdba74, #c2410c); }
.cred .medal strong { display: block; color: var(--text); }
.cred .medal span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 980px) { .creds { grid-template-columns: 1fr; } }

/* Portrait */

.portrait {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; border-radius: 34px;
  padding: 2px; background: var(--grad);
  box-shadow: 0 40px 100px -40px rgba(34, 211, 238, 0.55);
}
.portrait-inner { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-inner::after {
  content: ""; position: absolute; inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(6, 7, 10, 0.85));
  pointer-events: none;
}
.portrait figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(13, 15, 20, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  font-size: 0.9375rem;
}
.portrait figcaption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); flex: none; }
.portrait figcaption strong { font-weight: 600; }
.portrait figcaption span { color: var(--muted); }
.hero .portrait { width: 100%; max-width: 440px; justify-self: end; }

/* Contact */

.contact-panel {
  position: relative;
  padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 96px);
  border-radius: 40px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.contact-panel::before, .contact-panel::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(100px); opacity: 0.45;
}
.contact-panel::before { width: 520px; height: 520px; left: -160px; top: -240px; background: #0f766e; }
.contact-panel::after { width: 520px; height: 520px; right: -160px; bottom: -260px; background: #4338ca; }
.contact-panel h2 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-weight: 700; letter-spacing: -0.045em; }
.contact-panel p { margin: 24px auto 0; color: var(--muted); font-size: 1.1875rem; max-width: 48ch; }
.contact-panel .actions { justify-content: center; margin-top: 40px; }

/* Footer */

footer { padding: 48px 0 56px; color: var(--faint); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Reveal on scroll (only when JS is on and motion is allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
