/* ==========================================================
   Franco Caraffo — Portfolio
   ========================================================== */

:root {
  --bg: #08090c;
  --bg-alt: #0c0e13;
  --surface: #111319;
  --surface-2: #161922;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f3f6;
  --text-2: #c4c6d0;
  --muted: #868996;
  --accent: #5b9dff;
  --accent-strong: #2f6fed;
  --accent-ink: #061126;
  --coral: #ff5b4f;
  --blue: #3b8cff;

  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px var(--gutter);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(8, 9, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.05em; }
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { font-size: .9rem; color: var(--muted); transition: color .2s; position: relative; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button { font-family: var(--f-mono); font-size: .72rem; padding: 5px 10px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.lang button.active { background: var(--text); color: var(--bg); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 22px; }
.menu-open .menu-btn span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 14px; font-size: .82rem; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 24px rgba(47,111,237,.35); }
.btn-primary:hover { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 24px rgba(255,255,255,.12); }
.btn-primary i { transition: transform .25s var(--ease); }
.btn-primary:hover i { transform: translateY(2px); }
.btn-outline { border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.links.center { justify-content: center; }
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .86rem; transition: border-color .2s, color .2s, background .2s;
}
.link:hover { border-color: var(--accent); color: var(--accent); }
.link[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- Intro + reveal ---------- */
.intro { opacity: 0; transform: translateY(18px); animation: intro .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes intro { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Word-by-word titles ---------- */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + .1s); }
.in .split-words .w > span, .split-words.in .w > span { transform: none; }
.hero-title .w > span { transition: none; animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + .1s); }
@keyframes wordUp { to { transform: none; } }

/* ---------- Staggered children ---------- */
.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .2s, color .2s, background .2s; transition-delay: calc(var(--i, 0) * 60ms + .25s); }
.in .stagger > *, .stagger.in > * { opacity: 1; transform: none; }

/* ---------- Cursor spotlight ---------- */
.spot { position: relative; isolation: isolate; --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,255,255,.06), transparent 60%); }
.spot:hover::after { opacity: 1; }
.magnetic { transition: translate .35s var(--ease), background .25s, color .25s, border-color .25s, transform .25s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 56px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero-glow { position: absolute; z-index: -2; width: 60vw; height: 60vw; right: -15vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(91,157,255,.12), transparent 65%); filter: blur(40px); }

.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; background: rgba(8,9,12,.5); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(91,157,255,.5); animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(91,157,255,0); } 100% { box-shadow: 0 0 0 0 rgba(91,157,255,0); } }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .98; letter-spacing: -0.045em; margin: 1.6rem 0 1rem; }
.hero-role { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: var(--accent); }
.hero-lead { margin-top: 1.2rem; font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--text-2); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; }
.socials { display: flex; gap: .4rem; margin-left: .4rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.socials a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.hero-photo { width: clamp(220px, 26vw, 340px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), translate .8s var(--ease); }
.hero-photo:hover img { transform: scale(1.1); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); background: linear-gradient(180deg, transparent 60%, rgba(8,9,12,.35)); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(3rem, 8vh, 5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats dd { color: var(--muted); font-size: .88rem; margin-top: .2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 12vh, 8rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin-bottom: .9rem; }
.section-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; }

/* ---------- Featured ---------- */
.feature {
  --theme: var(--accent);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(1.6rem, 4vw, 3.2rem); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden; isolation: isolate;
}
.feature + .feature { margin-top: 1.6rem; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.viajapp { --theme: var(--coral); }
.viajapp::before { background: radial-gradient(60% 70% at 85% 50%, rgba(255,91,79,.16), transparent 70%); }
.rc { --theme: var(--blue); }
.rc::before { background: radial-gradient(60% 70% at 15% 50%, rgba(59,140,255,.16), transparent 70%); }
.rc .feature-copy { order: 2; }
.rc .feature-media { order: 1; }

.feature-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.feature-head h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: .35rem; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.app-icon.light { background: #fff; padding: 6px; object-fit: contain; }
.feature-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--text); }
.feature-copy > p:not(.feature-lead) { margin-top: .9rem; color: var(--text-2); font-size: .96rem; }
.highlights { display: grid; gap: .7rem; margin-top: 1.4rem; }
.highlights li { position: relative; padding-left: 1.6rem; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--theme); transform: rotate(45deg); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.tags li:hover { border-color: var(--line-2); color: var(--text); }
.tags li { font-family: var(--f-mono); font-size: .7rem; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-2); }

.phones { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.phone { position: absolute; top: 50%; left: 50%; width: 42%; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: transform 1.1s var(--ease), opacity .8s var(--ease); transition-delay: .25s; }
.p-front { translate: 0 calc(var(--py, 0px) * -0.4); }
.p-back-l { translate: 0 calc(var(--py, 0px) * 0.5); }
.p-back-r { translate: 0 calc(var(--py, 0px) * 0.9); }
.feature:not(.in) .p-back-l, .feature:not(.in) .p-back-r { transform: translate(-50%, -48%) scale(.9); opacity: 0; }
.feature:not(.in) .p-front { transform: translate(-50%, -44%) scale(.96); }
.p-front { z-index: 2; transform: translate(-50%, -50%); width: 46%; }
.p-back-l { transform: translate(-112%, -46%) rotate(-6deg); }
.p-back-r { transform: translate(12%, -46%) rotate(6deg); }
.feature:hover .p-front { transform: translate(-50%, -52%); }
.feature:hover .p-back-l { transform: translate(-118%, -46%) rotate(-8deg); }
.feature:hover .p-back-r { transform: translate(18%, -46%) rotate(8deg); }

/* Architecture */
.arch { grid-column: 1 / -1; order: 3; margin-top: .5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); animation: intro .6s var(--ease); }
.arch[hidden] { display: none; }
.arch-scroll { overflow-x: auto; margin-top: 1rem; }
.arch-svg { width: 100%; min-width: 700px; height: auto; display: block; }
.arch-links path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 5 7; }
.arch-node rect { fill: #0f1320; stroke: rgba(255,255,255,.16); }
.arch-node text { fill: var(--text); font-family: var(--f-body); font-weight: 600; font-size: 16px; text-anchor: middle; }
.arch-node text.sub { fill: var(--muted); font-family: var(--f-mono); font-weight: 400; font-size: 12px; }
.arch-node.main rect { fill: rgba(59,140,255,.14); stroke: var(--blue); }
.arch-node.core rect { fill: rgba(91,157,255,.08); stroke: rgba(91,157,255,.7); }

/* ---------- Cards ---------- */
.also { margin-top: clamp(3rem, 7vh, 4.5rem); }
.also-grid, .more-grid { display: grid; gap: 1.2rem; }
.also-grid { grid-template-columns: 1fr 1fr; }
.more-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: clamp(1.4rem, 2.6vw, 2rem); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--surface-2); }
.card > p { color: var(--text-2); font-size: .93rem; margin-top: 1rem; }
.card .tags { margin-top: auto; padding-top: 1.2rem; }
.card-links { margin-top: 1rem; }
.card-head { display: flex; align-items: center; gap: .9rem; }
.card-head h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: .2rem; }
.tile { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.tile-img { background: #fff; padding: 5px; object-fit: contain; }
.tile-img.tile-badge { background: #0d1117; padding: 2px; }
.tile-img.round { padding: 0; border-radius: 50%; object-fit: cover; background: #000; }
.tile-gccs { background: rgba(91,157,255,.12); color: var(--accent); font-size: 1.1rem; }
.tile-bookit { background: #ffb020; color: #1b1100; }
.tile-easy { background: rgba(63,214,195,.14); color: #3fd6c3; font-size: 1.1rem; }

.archive { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.archive li { display: grid; grid-template-columns: 180px 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem .2rem; border-bottom: 1px solid var(--line); }
.archive-name { font-weight: 600; }
.archive-name i { font-size: .7rem; opacity: .6; margin-left: .2rem; }
a.archive-name:hover { color: var(--accent); }
.archive-desc { color: var(--muted); font-size: .92rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.timeline { position: relative; padding-left: 1.8rem; margin-top: .6rem; }
.edu-eyebrow { margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--accent); transform-origin: top; transform: scaleY(var(--tp, 0)); box-shadow: 0 0 8px rgba(91,157,255,.6); }
.timeline li { position: relative; padding-bottom: 1.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.8rem; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s; }
.timeline li.lit::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(91,157,255,.15); }
.timeline span.mono { color: var(--muted); }
.timeline h4 { font-size: 1.05rem; font-weight: 600; margin: .2rem 0 .15rem; }
.timeline p { color: var(--muted); font-size: .9rem; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .6rem; }
.skill {
  padding: 1.3rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s, background .3s, opacity .6s var(--ease), transform .6s var(--ease);
}
.skill::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .4s; }
.skill:hover { border-color: rgba(91,157,255,.35); background: var(--surface-2); }
.skill:hover::before { opacity: 1; }
.skill-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(91,157,255,.12); color: var(--accent); font-size: 1rem; transition: transform .4s var(--ease); }
.skill:hover .skill-icon { transform: rotate(-8deg) scale(1.08); }
.skill h4 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin: .9rem 0 .15rem; }
.skill-note { color: var(--muted); font-size: .84rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.chips li { font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: rgba(255,255,255,.03); transition: border-color .2s, color .2s; }
.chips li.core { border-color: rgba(91,157,255,.4); color: var(--text); background: rgba(91,157,255,.1); }
.chips li:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Contact ---------- */
.contact-box { text-align: center; max-width: 720px; margin: 0 auto; padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 4vw, 3rem); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 100% at 50% 0%, rgba(91,157,255,.08), transparent 70%), var(--surface); }
.contact-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: .8rem; }
.email-btn { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: .8rem; padding: 14px 22px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); transition: border-color .2s, background .2s, translate .35s var(--ease); max-width: 100%; }
.email-btn:hover { border-color: var(--accent); background: rgba(91,157,255,.06); }
.email-text { font-family: var(--f-mono); font-size: clamp(.95rem, 2.4vw, 1.15rem); overflow-wrap: anywhere; }
.email-btn i { color: var(--muted); }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.to-top:hover { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); opacity: 0; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 999px; z-index: 95; transition: transform .45s var(--ease), opacity .3s; font-size: .84rem; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
.hero-grid > *, .feature > *, .about-grid > *, .also-grid > *, .more-grid > * { min-width: 0; }

@media (max-width: 1000px) {
  .more-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .rc .feature-copy { order: 1; }
  .rc .feature-media { order: 2; }
  .phones { max-width: 440px; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: .6rem; padding: var(--gutter); background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav a { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; color: var(--text); letter-spacing: -0.03em; }
  .site-nav a::after { display: none; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-btn { display: block; }
  .cv-link { display: none; }

  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: 120px; border-radius: 22px; }
  .hero-title { margin-top: 1.2rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .hero-stats > div { display: flex; align-items: baseline; gap: .8rem; }
  .hero-stats dt { min-width: 4.2rem; }
  .also-grid, .more-grid, .about-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .archive li { grid-template-columns: 1fr; gap: .2rem; }
}

@media (max-width: 480px) {
  .skills { grid-template-columns: 1fr; }
  .socials { margin-left: 0; }
  .feature { padding: 1.3rem; border-radius: 22px; }
  .app-icon { width: 54px; height: 54px; border-radius: 14px; }
  .phone { border-radius: 14px; }
  .lang button { padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .intro, .reveal, .stagger > * { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; animation: none; }
}
