/* ============ IDENTITY ============ */
:root {
  --navy-950: #04060f;
  --navy-900: #060b1a;
  --navy-800: #0a1228;
  --navy-700: #101c3d;
  --gold: #c9a24b;
  --gold-bright: #e8c877;
  --gold-dim: rgba(201, 162, 75, 0.35);
  --beige: #e9dfc9;
  --beige-muted: #a89d84;
  --glass: rgba(233, 223, 201, 0.05);
  --glass-border: rgba(201, 162, 75, 0.18);
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--navy-900); color: var(--beige); line-height: 1.7; font-weight: 300; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { color: var(--gold-bright); font-size: 0.9em; }
.container { width: min(1180px, 90%); margin-inline: auto; }
::selection { background: var(--gold); color: var(--navy-900); }

/* Marble veins backdrop */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(201,162,75,0.06), transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(201,162,75,0.05), transparent 60%),
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(16,28,61,0.7), transparent 70%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 45%, var(--navy-800));
}

/* ============ PRELOADER ============ */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--navy-950); display: flex; align-items: center; justify-content: center; }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__center { position: relative; text-align: center; z-index: 2; }
.loader__name { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 3.4rem); letter-spacing: 0.35em; color: var(--beige); display: flex; justify-content: center; flex-wrap: wrap; }
.loader__name .ch { opacity: 0; transform: translateY(30px) rotateX(60deg); display: inline-block; min-width: 0.4em; }
.loader__name .ch.gold { color: var(--gold-bright); }
.loader__tag { margin-top: 1.2rem; font-size: 0.72rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--beige-muted); opacity: 0; }
.loader__counter { position: absolute; bottom: 2.2rem; right: 3rem; font-family: var(--serif); font-size: 3rem; color: var(--gold-dim); font-style: italic; }
.loader__line { position: absolute; bottom: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 18px var(--gold); }

/* ============ CURSOR ============ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--gold-bright); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid var(--gold-dim); transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s; }
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--gold); background: rgba(201,162,75,0.08); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ NAV ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1.3rem 0; transition: padding 0.35s, background 0.35s, backdrop-filter 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { padding: 0.75rem 0; background: rgba(6, 11, 26, 0.65); backdrop-filter: blur(16px); border-bottom-color: var(--glass-border); }
.nav__inner { width: min(1180px, 90%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.1em; color: var(--beige); }
.nav__logo span { color: var(--gold-bright); }
.nav__links { display: flex; align-items: center; gap: 2.2rem; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav__links a { color: var(--beige-muted); position: relative; transition: color 0.25s; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--gold-bright); transition: width 0.3s; }
.nav__links a:hover { color: var(--beige); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { border: 1px solid var(--gold-dim); padding: 0.5rem 1.2rem; color: var(--gold-bright) !important; border-radius: 2px; transition: background 0.3s, box-shadow 0.3s !important; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: rgba(201,162,75,0.12); box-shadow: 0 0 24px rgba(201,162,75,0.25); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 7px; padding: 8px; z-index: 110; }
.nav__toggle span { width: 26px; height: 1.5px; background: var(--gold-bright); transition: transform 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#bg3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(4,6,15,0.85)); }
.hero__content { position: relative; z-index: 2; width: min(1180px, 90%); margin-inline: auto; padding-top: 4rem; }
.hero__eyebrow { font-size: 0.75rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 10vw, 8rem); line-height: 0.98; color: var(--beige); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hero__title .line--accent [data-split] { font-style: italic; background: linear-gradient(100deg, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__title .line--accent .ch { color: var(--gold-bright); -webkit-text-fill-color: currentColor; }
.hero__title .ch { display: inline-block; }
.hero__role { margin-top: 1.8rem; font-size: clamp(1rem, 2.4vw, 1.4rem); display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.hero__role-static { color: var(--beige-muted); }
.hero__role-rotator { font-family: var(--serif); font-style: italic; color: var(--gold-bright); border-bottom: 1px solid var(--gold-dim); min-height: 1.4em; }
.hero__sub { margin-top: 1.2rem; max-width: 560px; color: var(--beige-muted); font-size: 1rem; }
.hero__actions { margin-top: 2.6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.btn { position: relative; display: inline-block; padding: 1rem 2.4rem; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; border-radius: 2px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer; font-family: var(--sans); }
.btn span { position: relative; z-index: 1; }
.btn--gold { background: linear-gradient(120deg, var(--gold), var(--gold-bright)); color: var(--navy-950); font-weight: 600; }
.btn--gold:hover { box-shadow: 0 8px 40px rgba(201,162,75,0.4); }
.btn--ghost { border: 1px solid var(--glass-border); color: var(--beige); background: var(--glass); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(201,162,75,0.15) inset; }
.btn--full { width: 100%; text-align: center; }
.hero__scroll { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; z-index: 2; }
.hero__scroll-txt { font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--beige-muted); }
.hero__scroll-bar { width: 1px; height: 52px; background: linear-gradient(var(--gold-bright), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============ SECTIONS ============ */
.section { position: relative; padding: 8rem 0; }
.section--deep { background: linear-gradient(180deg, transparent, rgba(4,6,15,0.55) 15%, rgba(4,6,15,0.55) 85%, transparent); }
.section__head { max-width: 680px; margin-bottom: 4.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__num { font-family: var(--serif); font-style: italic; color: var(--gold); letter-spacing: 0.3em; font-size: 0.95rem; }
.section__num::after { content: ''; display: inline-block; width: 48px; height: 1px; background: var(--gold-dim); margin-left: 1rem; vertical-align: middle; }
.section__title { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 500; color: var(--beige); margin-top: 0.6rem; }
.section__title .ch { display: inline-block; }
.section__desc { color: var(--beige-muted); margin-top: 1rem; }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
.about__marble { border-radius: 6px; padding: 2px; background: linear-gradient(140deg, var(--gold-dim), transparent 40%, transparent 60%, var(--gold-dim)); }
.about__marble-inner { border-radius: 5px; aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 30% at 20% 15%, rgba(232,200,119,0.14), transparent 55%),
    radial-gradient(ellipse 60% 20% at 80% 60%, rgba(201,162,75,0.1), transparent 60%),
    radial-gradient(ellipse 100% 40% at 40% 90%, rgba(232,200,119,0.08), transparent 55%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950) 70%);
}
.about__monogram { font-family: var(--serif); font-style: italic; font-size: 6rem; background: linear-gradient(120deg, var(--gold), var(--gold-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about__marble-caption { font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--beige-muted); }
.about__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.45; color: var(--beige); margin-bottom: 1.6rem; }
.about__text p + p { margin-top: 1.1rem; color: var(--beige-muted); }
.about__text strong { color: var(--beige); font-weight: 500; }
.about__stats { display: flex; gap: 3.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat__num, .stat__plus { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-bright); }
.stat__label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--beige-muted); margin-top: 0.2rem; }

/* ============ TIMELINE ============ */
.timeline { position: relative; max-width: 760px; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(201,162,75,0.15); }
.timeline__progress { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: linear-gradient(var(--gold), var(--gold-bright)); box-shadow: 0 0 12px var(--gold); }
.tl-item { position: relative; padding-bottom: 3.4rem; }
.tl-item::before { content: ''; position: absolute; left: calc(-3rem - 5px); top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(201,162,75,0.5); }
.tl-item__date { font-family: var(--serif); font-style: italic; color: var(--gold-bright); font-size: 1rem; letter-spacing: 0.1em; }
.tl-item__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--beige); margin: 0.4rem 0 0.5rem; }
.tl-item p { color: var(--beige-muted); max-width: 560px; }

/* ============ PROJECTS ============ */
.case { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; padding: 4rem 0; border-bottom: 1px solid rgba(201,162,75,0.1); }
.case--flip .case__media { order: 2; }
.case__media { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass); }
.case__image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.case__placeholder { aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,162,75,0.08), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.case__placeholder span { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-bright); }
.case__placeholder em { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--beige-muted); font-style: normal; }
.case__index { position: absolute; top: 1rem; right: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--gold-dim); }
.case__tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.case__tags span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid var(--glass-border); padding: 0.3rem 0.8rem; border-radius: 100px; background: var(--glass); }
.case__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; color: var(--beige); }
.case__text { color: var(--beige-muted); margin-top: 0.8rem; }
.case__meta { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.case__meta div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; font-size: 0.9rem; }
.case__meta dt { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem; padding-top: 0.2rem; }
.case__meta dd { color: var(--beige-muted); }
.case__links { margin-top: 1.8rem; display: flex; gap: 2rem; }
.project-skills { margin-top: 2rem; }
.project-skills__label { display: block; margin-bottom: 0.85rem; color: var(--gold); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.project-skills__list { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.project-skill { width: 82px; height: 82px; display: grid; place-items: center; padding: 0.45rem; border: 1px solid var(--glass-border); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(232,200,119,0.16), rgba(10,18,40,0.9)); color: var(--beige); font-size: 0.58rem; line-height: 1.25; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; transition: transform 0.25s, border-color 0.25s; }
.project-skill:hover { transform: translateY(-4px); border-color: var(--gold); }
.link-arrow { color: var(--gold-bright); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; position: relative; }
.link-arrow::after { content: ' \2192'; transition: transform 0.25s; display: inline-block; }
.link-arrow:hover::after { transform: translateX(6px); }

/* ============ SKILLS ============ */
.skills__layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.orbit__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--navy-950); background: linear-gradient(120deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 60px rgba(201,162,75,0.45); z-index: 2; }
.orbit__ring { position: absolute; top: 50%; left: 50%; border: 1px dashed rgba(201,162,75,0.2); border-radius: 50%; animation: orbitSpin linear infinite; }
.orbit__ring--1 { width: 42%; height: 42%; margin: -21% 0 0 -21%; animation-duration: 22s; }
.orbit__ring--2 { width: 68%; height: 68%; margin: -34% 0 0 -34%; animation-duration: 36s; animation-direction: reverse; }
.orbit__ring--3 { width: 96%; height: 96%; margin: -48% 0 0 -48%; animation-duration: 52s; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit__chip { position: absolute; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--beige); background: rgba(10,18,40,0.9); border: 1px solid var(--glass-border); padding: 0.35rem 0.8rem; border-radius: 100px; white-space: nowrap; animation: orbitSpin linear infinite reverse; animation-duration: inherit; animation-direction: inherit; }
.orbit__ring--2 .orbit__chip { animation-direction: normal; }
.orbit__ring .orbit__chip:nth-child(1) { top: -4%; left: 50%; }
.orbit__ring .orbit__chip:nth-child(2) { top: 50%; left: -6%; }
.orbit__ring .orbit__chip:nth-child(3) { top: 96%; left: 55%; }
.orbit__ring .orbit__chip:nth-child(4) { top: 45%; left: 96%; }
.orbit__ring .orbit__chip:nth-child(5) { top: 12%; left: 84%; }
.skills__filters { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.chip { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--beige-muted); background: var(--glass); border: 1px solid var(--glass-border); padding: 0.5rem 1.2rem; border-radius: 100px; cursor: pointer; transition: all 0.25s; }
.chip:hover, .chip.is-active { color: var(--navy-950); background: linear-gradient(120deg, var(--gold), var(--gold-bright)); border-color: transparent; }
.skillbar { margin-bottom: 1.6rem; transition: opacity 0.3s, transform 0.3s; }
.skillbar.is-hidden { opacity: 0.12; transform: scale(0.98); }
.skillbar__head { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.55rem; }
.skillbar__head span:last-child { color: var(--gold-bright); font-family: var(--serif); font-style: italic; }
.skillbar__track { height: 3px; background: rgba(201,162,75,0.12); border-radius: 100px; overflow: hidden; }
.skillbar__fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); box-shadow: 0 0 12px rgba(201,162,75,0.6); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.skillbar.is-inview .skillbar__fill { width: var(--w); }

/* ============ CERTIFICATES ============ */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.cert { border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(10px); border-radius: 6px; padding: 2rem 1.6rem; transition: border-color 0.3s, box-shadow 0.3s; }
.cert:hover { border-color: var(--gold); box-shadow: 0 18px 50px rgba(4,6,15,0.6), 0 0 30px rgba(201,162,75,0.1); }
.cert__seal { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1.4rem; background: conic-gradient(from 40deg, var(--gold), var(--gold-bright), var(--gold)); box-shadow: 0 0 24px rgba(201,162,75,0.4); }
.cert h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--beige); }
.cert p { font-size: 0.8rem; color: var(--beige-muted); margin-top: 0.4rem; }

/* ============ CONTACT ============ */
.contact { overflow: hidden; }
.contact__glow { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,0.12), transparent 65%); pointer-events: none; animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { opacity: 0.6; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.12); } }
.glass-form { position: relative; max-width: 640px; margin-inline: auto; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(18px); border-radius: 8px; padding: 2.6rem; }
.glass-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: block; margin-bottom: 1.4rem; }
.field span { display: block; font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.field input, .field textarea { width: 100%; background: rgba(4,6,15,0.5); border: 1px solid var(--glass-border); border-radius: 4px; padding: 0.9rem 1.1rem; color: var(--beige); font-family: var(--sans); font-size: 0.95rem; transition: border-color 0.25s, box-shadow 0.25s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.12); }
.field ::placeholder { color: rgba(168,157,132,0.5); }
.contact__socials { display: flex; justify-content: center; gap: 2.6rem; margin-top: 3rem; font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; }
.contact__socials a { color: var(--beige-muted); transition: color 0.25s, text-shadow 0.25s; }
.contact__socials a:hover { color: var(--gold-bright); text-shadow: 0 0 18px rgba(201,162,75,0.6); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid rgba(201,162,75,0.12); padding: 2.2rem 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--beige-muted); }
.footer__mark { font-family: var(--serif); font-style: italic; color: var(--gold-dim); }

/* ============ REVEAL ============ */
.reveal-up { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; }
  .orbit__ring, .orbit__chip, .hero__scroll-bar, .contact__glow { animation: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .about__grid, .skills__layout { grid-template-columns: 1fr; gap: 3rem; }
  .about__marble { max-width: 380px; }
  .case, .case--flip { grid-template-columns: 1fr; gap: 2rem; }
  .case--flip .case__media { order: 0; }
  .certs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 5.5rem 0; }
  .nav__toggle { display: flex; }
  .nav__links { position: fixed; inset: 0; background: rgba(4,6,15,0.96); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; gap: 2.4rem; font-size: 1.05rem; transform: translateY(-100%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
  .nav__links.is-open { transform: none; }
  .certs { grid-template-columns: 1fr; }
  .glass-form { padding: 1.8rem; }
  .glass-form__row { grid-template-columns: 1fr; gap: 0; }
  .contact__socials { gap: 1.4rem; flex-wrap: wrap; }
  .loader__counter { right: 1.4rem; bottom: 1.4rem; font-size: 2rem; }
}
