/* ══════════════════════════════════════════════════════════
   MAISON XCIV — Portfolio Premium · style.css
   ══════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Copperplate';
  src: url('../../public/fonts/OPTICopperplate-Heavy.otf') format('opentype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Copperplate';
  src: url('../../public/fonts/OPTICopperplate.otf') format('opentype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Copperplate';
  src: url('../../public/fonts/OPTICopperplate-Light.otf') format('opentype');
  font-weight: 300; font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:       #F5F0E8;
  --beige:    #E8DFD0;
  --gold:     #C2AD8D;
  --gold-dim: rgba(194,173,141,0.3);
  --blk:      #0A0A0A;
  --blk2:     #141414;
  --blk3:     #1C1C1C;
  --wht:      #FAFAFA;
  --mute:     #888;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --copper: 'Copperplate', 'Copperplate Gothic', sans-serif;
  --sans:   'Inter', system-ui, sans-serif;

  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --eout:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --spring:cubic-bezier(0.34, 1.56, 0.64, 1);

  --px: clamp(22px, 5vw, 72px);
  --py: clamp(80px, 10vw, 130px);
  --mw: 1220px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--blk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.menu-open { overflow: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), rgba(194,173,141,0.4));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════════════════
   LOADER
   ══════════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  z-index: 8000;
  background: var(--blk);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s var(--ease), visibility 1s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.ld-inner { text-align: center; }

.ld-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--copper);
  font-weight: 400;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  letter-spacing: 0.4em;
  color: var(--wht);
  margin-bottom: 32px;
  overflow: hidden;
}
.ld-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: ldChar 0.6s var(--ease) calc(var(--i) * 0.06s) forwards;
}
.ld-space { width: 0.5em; }
@keyframes ldChar {
  to { opacity: 1; transform: translateY(0); }
}

.ld-line {
  width: 200px; height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 auto 16px;
  overflow: hidden;
}
.ld-fill {
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 1.6s var(--ease);
}

.ld-count {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.2em;
}
.ld-count::after { content: '%'; }

/* ══════════════════════════════════════════════════════════
   CURSOR
   ══════════════════════════════════════════════════════════ */
#cursor {
  pointer-events: none;
  position: fixed; top: 0; left: 0;
  z-index: 7000;
  mix-blend-mode: normal;
}
.cur-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--blk);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.06s, background 0.3s, width 0.3s, height 0.3s;
}
.cur-ring {
  position: absolute;
  width: 80px; height: 80px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.cur-svg { width: 100%; height: 100%; animation: curSpin 6s linear infinite; }
.cur-text {
  font-family: var(--sans);
  font-size: 10.5px;
  fill: var(--blk);
  letter-spacing: 2px;
  text-transform: uppercase;
}
@keyframes curSpin { to { transform: rotate(360deg); } }

/* on dark sections, invert cursor */
body.cur-dark .cur-dot { background: var(--wht); }
body.cur-dark .cur-text { fill: var(--wht); }

body.cur-project .cur-ring { opacity: 1; }
body.cur-project .cur-dot  { width: 4px; height: 4px; background: var(--gold); }

@media (hover: none) { #cursor { display: none; } }

/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px var(--px);
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  padding: 16px var(--px);
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0,0,0,0.07);
}
#nav.on-dark {
  padding: 26px var(--px);
  background: transparent;
  border-color: transparent;
}
#nav.on-dark.scrolled {
  padding: 16px var(--px);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--mw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* logo */
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.logo-dark, .logo-light { transition: opacity 0.3s; }
.logo-fallback {
  font-family: var(--copper); font-weight: 300; font-size: 0.82rem;
  letter-spacing: 0.3em; color: var(--blk);
}

#nav:not(.on-dark) .logo-dark  { display: block; }
#nav:not(.on-dark) .logo-light { display: none; }
#nav:not(.on-dark) .logo-fallback { color: var(--blk); }

#nav.on-dark .logo-dark  { display: none; }
#nav.on-dark .logo-light { display: block; }
#nav.on-dark .logo-fallback { color: var(--wht); }

/* links */
.nav-links { display: flex; gap: 36px; }
.nl {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blk); position: relative;
  transition: color 0.3s;
}
#nav.on-dark .nl { color: rgba(255,255,255,0.75); }
.nl::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nl:hover::after { width: 100%; }

/* burger */
.burger {
  display: none; flex-direction: column; gap: 5px; padding: 6px; z-index: 600;
}
.burger span {
  display: block; width: 22px; height: 1px;
  background: var(--blk);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
#nav.on-dark .burger span { background: var(--wht); }
.burger.open span:first-child { transform: translateY(3px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* mobile panel */
@media (max-width: 840px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: min(78vw, 300px); height: 100dvh;
    background: var(--wht); flex-direction: column;
    align-items: flex-start; justify-content: center;
    gap: 32px; padding: 60px 44px;
    transition: right 0.45s var(--ease);
    z-index: 550; border-left: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links.open { right: 0; }
  .nl { font-size: 0.88rem; color: var(--blk) !important; }
}

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 540;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center;
  background: var(--blk); overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 15% 60%, #231608 0%, #0a0a0a 60%);
}
.hero-grain {
  position: absolute; inset: -50%; width: 200%; height: 200%; opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 12s steps(10) infinite;
}
@keyframes grain {
  0%   { transform:translate(0,0); }     10% { transform:translate(-2%,-3%); }
  20%  { transform:translate(3%,2%); }   30% { transform:translate(-1%,4%); }
  40%  { transform:translate(4%,-1%); }  50% { transform:translate(-3%,3%); }
  60%  { transform:translate(2%,-2%); }  70% { transform:translate(-4%,1%); }
  80%  { transform:translate(1%,-4%); }  90% { transform:translate(3%,3%); }
  100% { transform:translate(0,0); }
}
.hero-glow {
  position: absolute; bottom: -10%; right: 20%;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(194,173,141,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* decorative SVG */
.hero-art {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(54vw, 600px);
  opacity: 0.65;
  pointer-events: none;
}
.hero-svg { width: 100%; height: auto; }

/* hero body */
.hero-body {
  position: relative; z-index: 2;
  padding: 100px var(--px) 80px;
  max-width: min(650px, 55%);
  margin-left: max(var(--px), calc((100vw - var(--mw)) / 2));
}

.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 32px;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease) 2s forwards;
}

.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.08; color: var(--wht);
  margin-bottom: 32px; overflow: hidden;
}
.ht-line {
  display: block; opacity: 0; transform: translateY(80px);
  animation: slideUp 1s var(--ease) forwards;
}
.ht-line:nth-child(1) { animation-delay: 2.1s; }
.ht-line:nth-child(2) { animation-delay: 2.22s; font-style: italic; color: rgba(255,255,255,0.85); }
.ht-line:nth-child(3) { animation-delay: 2.34s; }
.ht-accent { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 48px;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease) 2.5s forwards;
}

.hero-ctas {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.9s var(--ease) 2.65s forwards;
}

/* scroll cue */
.hero-scroll {
  position: absolute; bottom: 40px; left: var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2; opacity: 0;
  animation: fadeUp 0.9s var(--ease) 3.1s forwards;
}
.hs-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-scroll span {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); writing-mode: vertical-lr;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scaleY(1); }
  50%      { opacity:0.3; transform:scaleY(0.55); }
}

/* ── animations ─────────────────────────────────────────── */
@keyframes fadeUp  { to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { to { opacity:1; transform:translateY(0); } }

/* ── SVG animations ──────────────────────────────────────── */
.spin-slow   { animation: spin 18s linear infinite; transform-origin: 250px 250px; }
.spin-medium { animation: spin 6s linear infinite; transform-origin: 300px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn-mag {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; overflow: hidden;
  font-family: var(--sans); font-size: 0.72rem;
  font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wht); border: 1px solid rgba(255,255,255,0.2);
  transition: color 0.45s var(--ease), border-color 0.45s;
  will-change: transform;
}
.btn-mag::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease); z-index: 0;
}
.btn-mag > * { position: relative; z-index: 1; }
.btn-mag:hover { color: var(--blk); border-color: var(--gold); }
.btn-mag:hover::before { transform: scaleX(1); }

.btn-text {
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}
.btn-text:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   TICKER / MARQUEE
   ══════════════════════════════════════════════════════════ */
.ticker {
  background: var(--blk); border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0; overflow: hidden;
}
.ticker-track { overflow: hidden; }
.ticker-inner {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.ticker-inner span {
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); padding: 0 24px;
}
.ticker-inner .sep { color: var(--gold); padding: 0 8px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════
   SHARED SECTION
   ══════════════════════════════════════════════════════════ */
.s-wrap { max-width: var(--mw); margin: 0 auto; padding: var(--py) var(--px); }
.s-head { margin-bottom: 64px; }
.s-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1;
}
.s-title--light { color: var(--wht); }

.eyebrow {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════════ */
#projets { background: var(--bg); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

/* card */
.pcard { background: var(--wht); }
.pcard-link { display: flex; flex-direction: column; height: 100%; }

/* artwork */
.pcard-art {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--blk2);
  flex-shrink: 0;
}
.pcard-art svg {
  width: 100%; height: 100%; display: block;
  transition: transform 0.9s var(--ease);
}
.pcard-link:hover .pcard-art svg { transform: scale(1.04); }

/* hover overlay */
.pcard-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(3px);
}
.pcard-link:hover .pcard-overlay { opacity: 1; }
.pcard-cta {
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--wht);
}
.pcard-overlay svg { color: var(--gold); flex-shrink: 0; }

/* card footer */
.pcard-foot { padding: 24px 26px 30px; flex: 1; }
.pcard-top-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.pcard-num {
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--mute); font-weight: 500;
}
.pcard-tag {
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); background: rgba(194,173,141,0.1); padding: 4px 10px;
}
.pcard-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px;
}
.pcard-desc {
  font-size: 0.78rem; color: var(--mute); line-height: 1.7; font-weight: 300;
}

/* ══════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════ */
#stats {
  background: var(--blk2);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-inner {
  max-width: var(--mw); margin: 0 auto;
  padding: 72px var(--px);
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.stat-block {
  flex: 1; text-align: center; padding: 0 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.stat-num {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  color: var(--wht); display: block;
}
.stat-plus { font-family: var(--serif); font-size: 2rem; color: var(--gold); vertical-align: super; }
.stat-inf  { color: var(--gold); }
.stat-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.stat-divider {
  width: 1px; height: 80px; background: rgba(255,255,255,0.08); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   EXPERTISE
   ══════════════════════════════════════════════════════════ */
#expertise { background: var(--blk); }
#expertise .eyebrow { color: var(--gold); }

.xp-list {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.xp-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 28px;
  align-items: center; gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
  cursor: default;
}
.xp-row:hover { background: rgba(255,255,255,0.02); }

.xp-n {
  font-family: var(--serif); font-weight: 300;
  font-size: 1.1rem; color: var(--gold); opacity: 0.6;
  flex-shrink: 0;
}
.xp-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.3rem; color: var(--wht); margin-bottom: 4px;
}
.xp-desc {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  line-height: 1.6; font-weight: 300;
}
.xp-tags {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.xp-tags span {
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(194,173,141,0.2);
  padding: 4px 10px; white-space: nowrap;
}
.xp-arrow { color: rgba(255,255,255,0.2); transition: color 0.3s, transform 0.3s var(--ease); }
.xp-row:hover .xp-arrow { color: var(--gold); transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
#about { background: var(--bg); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-hl {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.12;
  margin-top: 32px;
}
.about-hl em { font-style: italic; color: var(--gold); }

.about-right p {
  font-size: 0.92rem; line-height: 1.85; color: #4a4a4a;
  font-weight: 300; margin-bottom: 20px;
}

.about-sig { margin-top: 40px; }
.about-sig img { height: 28px; width: auto; opacity: 0.5; }

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
#contact { background: var(--blk); color: var(--wht); }
#contact .eyebrow { color: var(--gold); }

.contact-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-hl {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 7.5rem); line-height: 1.04;
  color: var(--wht); margin: 18px 0 28px;
}
.contact-hl em { font-style: italic; color: var(--gold); }
.contact-sub {
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
  font-weight: 300; margin-bottom: 52px;
}

.btn-ig {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 44px; font-family: var(--sans);
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
#footer {
  background: var(--blk); border-top: 1px solid rgba(255,255,255,0.05);
  padding: 28px var(--px);
}
.ft-inner {
  max-width: var(--mw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.ft-brand {
  font-family: var(--copper); font-weight: 300; font-size: 0.7rem;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.25);
}
.ft-copy {
  font-size: 0.65rem; color: rgba(255,255,255,0.18); letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════ */
.js-reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-body { max-width: 100%; }
  .hero-art  { display: none; }
  .hero-title { font-size: clamp(2.8rem, 8vw, 5rem); }
  .xp-row { grid-template-columns: 40px 1fr 24px; }
  .xp-tags { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --px: 20px; --py: 64px; }
  .proj-grid { grid-template-columns: 1fr; gap: 2px; }
  .pcard-art { aspect-ratio: 4/3; }
  .stats-inner { flex-direction: column; gap: 40px; padding: 56px var(--px); }
  .stat-divider { width: 60px; height: 1px; }
  .xp-row { grid-template-columns: 36px 1fr 20px; gap: 16px; padding: 22px 0; }
  .xp-name { font-size: 1.1rem; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .contact-hl { font-size: clamp(3rem, 14vw, 4.5rem); }
  .ft-inner { flex-direction: column; gap: 8px; text-align: center; }
  .s-head { margin-bottom: 40px; }
  .hero-body { padding-top: 90px; padding-bottom: 70px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.2rem; }
  .btn-mag { padding: 13px 26px; }
}
