/* ============================================================================
   DUSKLIGHT / ATHARV — cinematic portfolio system
   One stylesheet, two identities (swapped via [data-mode] on <html>).
   ========================================================================== */

/* ---------- Fonts (local, no external requests) ---------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('../../PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../../PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('../../Avenir.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:        #08080a;
  --bg-2:      #0e0e12;
  --surface:   #14141a;
  --surface-2: #1c1c24;
  --line:      rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --text:      #f2f1ee;
  --text-dim:  #a6a6ad;
  --text-mute: #6f6f78;

  /* Accent is overridden per world below */
  --accent:    #e7a13a;
  --accent-2:  #d9603b;
  --accent-rgb: 231,161,58;
  --glow:      rgba(231,161,58,0.35);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Avenir', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 74px;
}

/* Dusklight = warm ember */
:root[data-mode='dlm'] {
  --accent:  #e7a13a;
  --accent-2:#d9603b;
  --accent-rgb: 231,161,58;
  --glow: rgba(231,161,58,0.35);
}
/* Atharv / athago = cool electric */
:root[data-mode='atharv'] {
  --accent:  #4ea8de;
  --accent-2:#7ce0d3;
  --accent-rgb: 78,168,222;
  --glow: rgba(78,168,222,0.35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.serif-italic { font-style: italic; }

/* Accent utilities */
.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Layout container */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }

/* Film grain + vignette overlay (fixed, non-interactive) */
.fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  mix-blend-mode: soft-light; opacity: 0.34;
  overflow: hidden; /* clip the oversized grain layer so its edges never show */
}
.fx::before {
  content: ''; position: absolute; inset: -35%; /* oversize well beyond the viewport */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  animation: grain 9s steps(9) infinite;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 59;
  background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
/* Gentle in-place shimmer — the oversize + overflow:hidden means these small
   shifts stay off-screen, so the grain flickers alive without moving borders. */
@keyframes grain {
  0%,100%{transform:translate(0,0)} 25%{transform:translate(-1.5%,1%)}
  50%{transform:translate(1%,-1.5%)} 75%{transform:translate(-1%,1.5%)}
}
@media (prefers-reduced-motion: reduce) {
  .fx::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   HEADER / NAV  (mounted by chrome.js)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,8,10,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand .brand-name {
  font-family: var(--serif); font-size: 18px; letter-spacing: .01em;
  display: none;
}
@media (min-width: 900px){ .brand .brand-name { display: inline; } }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 14px; font-weight: 600;
  letter-spacing: .02em; color: var(--text-dim); border-radius: 8px;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content:''; position:absolute; left:14px; right:14px; bottom:2px; height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}

/* Mode toggle pill */
.mode-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.mode-toggle a {
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 13px; border-radius: 999px; color: var(--text-mute);
  transition: color .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.mode-toggle a.on {
  color: #08080a;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 18px var(--glow);
}
.mode-toggle a:not(.on):hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: transparent; position: relative; }
.nav-toggle span { position:absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1){ top: 15px; } .nav-toggle span:nth-child(2){ bottom: 15px; }
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,13,0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 15px 4px; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.active::after { display: none; }
  .nav-right { gap: 10px; }
}

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: .03em; border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary {
  color: #08080a; background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 26px var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--glow); }
.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 96px); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, transparent 45%),
    linear-gradient(to right, rgba(0,0,0,0.65), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; margin: 18px 0 22px;
  letter-spacing: -0.02em;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-mute);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content:''; width:1px; height:44px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ============================================================================
   SECTION HEADINGS
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head p { color: var(--text-dim); max-width: 46ch; margin: 8px 0 0; }
.section-link { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text-dim); white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .25s, border-color .25s; }
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================================
   PROJECT GRID / CARDS
   ========================================================================== */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
/* Project card grid: one column on phones, two per row on tablet/desktop. */
.grid--work { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--work { grid-template-columns: repeat(2, 1fr); } }

.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
/* Every card is cinematic 16:9. Media fills the frame (cover), so 16:9 source
   art sits edge to edge. */
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card__media img,
.card__video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .6s; filter: saturate(.92); }
.card:hover .card__media img,
.card:hover .card__video { transform: scale(1.04); filter: saturate(1.05); }
.card__media::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.25) 45%, transparent 75%);
  opacity: .9; transition: opacity .5s, background .45s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }
/* Video cards darken on hover so the title/logline stay readable over motion. */
.card--video .card__media::after {
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.08) 100%);
}
.card--video:hover .card__media::after {
  background: linear-gradient(to top, rgba(0,0,0,.93) 0%, rgba(0,0,0,.58) 55%, rgba(0,0,0,.42) 100%);
}
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; z-index: 2; }
.card__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 999px; padding: 3px 9px;
}
.card__year { font-size: 12px; color: var(--text-mute); letter-spacing: .06em; }
.card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.card__logline {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.45;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .5s var(--ease);
}
.card:hover .card__logline, .card:focus-within .card__logline { max-height: 90px; opacity: 1; margin-top: 4px; }
.card__view { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; letter-spacing:.05em; color: var(--accent); margin-top: 12px; opacity:0; transform: translateY(6px); transition:.4s var(--ease); }
.card:hover .card__view { opacity: 1; transform: none; }

@media (hover: none) {
  .card__logline { max-height: 90px; opacity: 1; margin-top: 4px; }
}

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: var(--text-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  transition: all .28s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .55); }
.filter-btn.active { color: #08080a; background: linear-gradient(100deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 4px 18px var(--glow); }

/* ============================================================================
   LANDING SPLIT (index.html)
   ========================================================================== */
.split { position: fixed; inset: 0; display: flex; flex-direction: column; }
@media (min-width: 800px){ .split { flex-direction: row; } }
.split__half {
  position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
  text-align: center; transition: flex .8s var(--ease); border: 0;
}
.split__half video, .split__half img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; filter: grayscale(.35) brightness(.5); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.split__half::after { content:''; position:absolute; inset:0; background: radial-gradient(80% 80% at 50% 50%, transparent, rgba(0,0,0,.55)); }
.split__half:hover video, .split__half:hover img.bg { filter: grayscale(0) brightness(.62); transform: scale(1.05); }
@media (min-width: 800px){ .split__half:hover { flex: 1.35; } }
.split__content { position: relative; z-index: 2; padding: 32px; }
.split__content .eyebrow { display:block; margin-bottom: 14px; }
.split__content .logo { height: clamp(48px, 7vw, 74px); width:auto; margin: 0 auto 20px; }
.split__content h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.split__content p { color: var(--text-dim); max-width: 34ch; margin: 0 auto 22px; font-size: 15px; }
.split__half[data-world='dlm'] { --accent:#e7a13a; --accent-2:#d9603b; --accent-rgb:231,161,58; --glow:rgba(231,161,58,.35); }
.split__half[data-world='atharv'] { --accent:#4ea8de; --accent-2:#7ce0d3; --accent-rgb:78,168,222; --glow:rgba(78,168,222,.35); }
.split__divider { display:none; }
.split__enter { display:inline-flex; align-items:center; gap:9px; font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); }
.split__enter .arrow { transition: transform .3s var(--ease); }
.split__half:hover .split__enter .arrow { transform: translateX(5px); }
.split__mark {
  position: fixed; top: 24px; left: 0; right: 0; text-align:center; z-index: 5;
  font-family: var(--serif); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--text-mute);
}

/* ============================================================================
   PROJECT DETAIL (project.html)
   ========================================================================== */
.proj-hero { position: relative; padding-top: calc(var(--nav-h) + 40px); }
.proj-hero__bg { position:absolute; inset:0; z-index:0; overflow:hidden; }
.proj-hero__bg img { width:100%; height:100%; object-fit: cover; filter: blur(30px) brightness(.35) saturate(1.2); transform: scale(1.15); }
.proj-hero__bg::after { content:''; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(8,8,10,.4), var(--bg)); }
.proj-hero__grid { position: relative; z-index: 2; display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 820px){ .proj-hero__grid { grid-template-columns: 340px 1fr; } }
.proj-poster { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); aspect-ratio: 3/4; }
.proj-poster img { width:100%; height:100%; object-fit: cover; }
.proj-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 16px 0; }
.proj-hero .logline { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-dim); max-width: 52ch; font-style: italic; font-family: var(--serif); }
.proj-cats { display:flex; gap:10px; flex-wrap:wrap; }

.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 40px; margin: 8px 0; }
.credit__label { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-mute); margin-bottom: 4px; }
.credit__value { font-size: 16px; color: var(--text); }

.embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background:#000; }
.embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.embed + .embed { margin-top: 22px; }

.prose { max-width: 62ch; }
.prose p { color: var(--text-dim); margin: 0 0 1.1em; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb),.4); }
.warning {
  border-left: 3px solid var(--accent-2); padding: 10px 18px; margin: 22px 0;
  background: rgba(var(--accent-rgb), .06); color: var(--text-dim); font-size: 14px; border-radius: 0 8px 8px 0;
}

.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-grid img { width: 100%; margin-bottom: 16px; border-radius: 10px; border: 1px solid var(--line-soft); cursor: zoom-in; transition: filter .4s, transform .4s var(--ease); }
.gallery-grid img:hover { filter: brightness(1.08); }

.proj-nav { display:flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 20px; }
.proj-nav a { color: var(--text-dim); font-weight:700; font-size: 14px; transition: color .25s; }
.proj-nav a:hover { color: var(--accent); }

/* ============================================================================
   PHOTOGRAPHY (masonry columns + lightbox)
   ========================================================================== */
.masonry { columns: 4 300px; column-gap: 16px; }
.masonry img { width: 100%; margin-bottom: 16px; border-radius: 8px; cursor: zoom-in; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .4s; filter: saturate(.9); }
.masonry img.in { opacity: 1; transform: none; }
.masonry img:hover { filter: saturate(1.05) brightness(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,4,6,.94); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lightbox__close { position: absolute; top: 22px; right: 30px; font-size: 34px; color: var(--text); line-height: 1; }

/* ============================================================================
   MUSIC (athago)
   ========================================================================== */
.athago-hero { text-align: center; padding-top: calc(var(--nav-h) + 60px); }
.athago-hero .mark { font-family: var(--serif); font-size: clamp(3.4rem, 12vw, 8rem); letter-spacing: -.02em; }
.athago-hero .tagline { color: var(--text-dim); font-style: italic; font-family: var(--serif); font-size: clamp(1.1rem,2.4vw,1.5rem); margin-top: 8px; }
.release-grid { display:grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.release { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.release .embed-wrap { aspect-ratio: 1/1; }
.release .embed-wrap iframe { width:100%; height:100%; border:0; }
.coming-soon { text-align:center; border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(40px, 7vw, 80px); background: rgba(255,255,255,.015); }
.coming-soon h3 { font-size: 1.8rem; margin-bottom: 10px; }
.coming-soon p { color: var(--text-dim); max-width: 44ch; margin: 0 auto; }

.link-row { display:flex; flex-wrap:wrap; gap: 12px; justify-content:center; margin-top: 28px; }

/* ============================================================================
   ABOUT
   ========================================================================== */
.about-grid { display:grid; gap: clamp(32px,5vw,64px); grid-template-columns: 1fr; align-items:start; }
@media (min-width: 900px){ .about-grid { grid-template-columns: 1.3fr 1fr; } }
.about-lead { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; }
.about-body p { color: var(--text-dim); margin: 0 0 1.2em; }
.stat-list { display:grid; gap: 18px; }
.stat-list .stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-mute); }
.stat .v { font-family: var(--serif); font-size: 1.3rem; margin-top: 4px; }

/* Cards for socials/resume */
.tile-grid { display:grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.tile { display:flex; flex-direction: column; gap: 8px; padding: 26px; border:1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s; }
.tile:hover { border-color: rgba(var(--accent-rgb),.6); transform: translateY(-4px); background: rgba(255,255,255,.04); }
.tile .tile-icon { width: 30px; height: 30px; fill: var(--accent); }
.tile h3 { font-size: 1.15rem; }
.tile span { font-size: 13px; color: var(--text-mute); }

/* ============================================================================
   CONTACT FORM
   ========================================================================== */
.contact-grid { display:grid; gap: clamp(30px,5vw,60px); grid-template-columns: 1fr; }
@media (min-width: 860px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.form { display:flex; flex-direction: column; gap: 6px; }
.form label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); margin-top: 16px; }
.form input, .form textarea {
  font-family: inherit; font-size: 16px; color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18); background: rgba(255,255,255,.05); }
.form textarea { resize: vertical; min-height: 150px; }
.form button { margin-top: 24px; align-self: flex-start; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; margin-top: 40px; }
.site-footer .wrap { display:flex; flex-wrap:wrap; gap: 24px; align-items:center; justify-content: space-between; }
.foot-brand { font-family: var(--serif); font-size: 1.3rem; }
.foot-brand span { color: var(--text-mute); font-size: 12px; display:block; font-family: var(--sans); letter-spacing:.04em; margin-top: 4px; }
.foot-socials { display:flex; gap: 16px; }
.foot-socials a { width: 40px; height: 40px; display:grid; place-items:center; border:1px solid var(--line); border-radius: 50%; transition: all .3s var(--ease); }
.foot-socials a:hover { border-color: var(--accent); transform: translateY(-3px); }
.foot-socials svg { width: 18px; height: 18px; fill: var(--text-dim); transition: fill .3s; }
.foot-socials a:hover svg { fill: var(--accent); }
.foot-copy { color: var(--text-mute); font-size: 13px; width: 100%; text-align: center; border-top: 1px solid var(--line-soft); padding-top: 22px; margin-top: 8px; }

/* ============================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay='1']{ transition-delay: .08s; }
[data-reveal-delay='2']{ transition-delay: .16s; }
[data-reveal-delay='3']{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* Utility */
.center { text-align: center; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.stack > * + * { margin-top: 22px; }
.muted { color: var(--text-dim); }
