/* ================================================================
   SAUMYA — Portfolio stylesheet
   Dark editorial system: serif display type, champagne accent.
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* noir base — a touch of warmth so it never reads as flat grey */
  --bg:          #09090B;
  --bg-2:        #0F0E11;
  --surface:     #16151A;
  --surface-2:   #1D1C22;
  --line:        rgba(245, 240, 232, 0.08);
  --line-2:      rgba(245, 240, 232, 0.16);

  /* text — muted/subtle lifted for readable contrast on the dark base */
  --text:        #F5F0E8;
  --muted:       #B5AEA4;
  --subtle:      #88817A;

  /* gold accent (primary) */
  --accent:      #D9B77B;
  --accent-2:    #F1DDB0;
  --accent-deep: #A8824A;
  --accent-soft: rgba(217, 183, 123, 0.13);
  --gold-grad:   linear-gradient(135deg, #F3E0B5 0%, #D9B77B 48%, #A8824A 100%);

  /* oxblood (secondary) — only used for depth in glows and placeholders */
  --wine:        #7A2334;
  --wine-glow:   rgba(140, 36, 58, 0.30);

  --success:     #7FD39A;
  --danger:      #F28B82;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --nav-h:   76px;
  --gutter:  clamp(1.25rem, 4vw, 3.5rem);
  --maxw:    1320px;
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius:  4px;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* scrollbar */
html { scrollbar-color: #3A332A var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3A332A; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* subtle film grain over everything */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* page fade for internal navigation (main.js) */
body { transition: opacity 0.35s ease; }
body.is-leaving { opacity: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { color: var(--muted); max-width: 440px; font-size: 0.95rem; }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.eyebrow.no-line::before { display: none; }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 0.92; letter-spacing: -0.025em;
}
.h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1; letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.015em;
}
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
.display em, .h1 em, .h2 em, .h3 em {
  font-style: italic; color: var(--accent-2);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em; /* keeps the italic overhang from being clipped */
}
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); line-height: 1.8; max-width: 620px; }
.prose p { color: var(--muted); line-height: 1.9; margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }
.muted { color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  height: 52px; padding: 0 1.8rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold-grad); background-size: 160% 160%; background-position: 0% 50%;
  color: #1A1309;
  box-shadow: 0 10px 28px -12px rgba(217, 183, 123, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background-position 0.5s var(--ease-out), box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 14px 34px -12px rgba(217, 183, 123, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(245, 240, 232, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.btn-sm { height: 42px; padding: 0 1.3rem; font-size: 0.72rem; }
.btn-group { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px; border-bottom: 1px solid var(--accent);
  transition: color 0.25s ease, gap 0.3s var(--ease-out);
}
.link-arrow:hover { color: var(--accent-2); gap: 0.9rem; }

/* ── Chips / tags ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
a.chip:hover, button.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--gold-grad); border-color: transparent; color: #1A1309; font-weight: 500; }
.chip .count { font-size: 0.68rem; opacity: 0.6; }
.tag {
  display: inline-block;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 0.3rem 0.8rem; white-space: nowrap;
}

/* ── Media + placeholder ────────────────────────────────────── */
.media { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(217, 183, 123, 0.20), transparent 60%),
    radial-gradient(100% 75% at 100% 100%, var(--wine-glow), transparent 65%),
    linear-gradient(160deg, #1C1814 0%, #120F13 100%);
}
.ph span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: 0.02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: 0.35;
}
.ph::after {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(217, 183, 123, 0.2); border-radius: 2px;
}

/* ── Reveal ─────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s !important; }
[data-delay="2"] { transition-delay: 0.16s !important; }
[data-delay="3"] { transition-delay: 0.24s !important; }
[data-delay="4"] { transition-delay: 0.32s !important; }

/* ── Cursor follower (fine pointers only) ───────────────────── */
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(200, 169, 126, 0.55); border-radius: 50%;
  opacity: 0;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out),
              background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
body.cursor-on #cursor-ring { opacity: 1; }
body.cursor-lg #cursor-ring {
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  background: rgba(200, 169, 126, 0.08); border-color: rgba(200, 169, 126, 0.8);
}
#cursor-dot { display: none; }
@media (hover: none), (pointer: coarse) { #cursor-ring { display: none; } }

/* ── Loader (home, first visit of the session) ──────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9800;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.out { opacity: 0; visibility: hidden; }
.loader-name { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.5rem); overflow: hidden; }
.loader-name span { display: inline-block; animation: revealUp 0.9s var(--ease-out) 0.1s both; }
.loader-bar { width: 120px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.loader-bar::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%); animation: loadSlide 0.9s var(--ease) 0.2s forwards;
}
.no-loader #loader { display: none; }
@keyframes loadSlide { to { transform: none; } }
@keyframes revealUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ================================================================
   NAVIGATION
================================================================ */
#navbar {
  position: fixed; inset: 0 0 auto; z-index: 800;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, height 0.4s ease;
}
#navbar.solid {
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  height: 66px;
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo {
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.01em;
  display: inline-flex; align-items: baseline; gap: 0.15rem;
}
.nav-logo i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a {
  position: relative;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.nav-burger span { width: 18px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease-out), opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--bg);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.25;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.35s var(--ease-out);
}
.mobile-menu nav a small { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.15em; color: var(--accent); }
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: var(--accent-2); padding-left: 0.5rem; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); padding-top: 2rem; }
.mobile-menu-foot a:hover { color: var(--text); }
body.menu-open { overflow: hidden; }

/* ================================================================
   PAGE HEADER (inner pages)
================================================================ */
.page-header {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-header {
  background:
    radial-gradient(50% 90% at 85% 0%, rgba(217, 183, 123, 0.16), transparent 70%),
    radial-gradient(45% 80% at 100% 100%, var(--wine-glow), transparent 70%),
    var(--bg);
}
/* fine gold grid fading out to the left */
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(217, 183, 123, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 183, 123, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header .lead { margin-top: 1.4rem; }
.breadcrumbs { display: flex; gap: 0.6rem; font-size: 0.78rem; color: var(--subtle); margin-bottom: 2rem; }
.breadcrumbs a { color: var(--muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text); }

/* ================================================================
   HOME
================================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.active img { transform: scale(1); }
.hero-media.is-empty {
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(217, 183, 123, 0.22), transparent 70%),
    radial-gradient(55% 55% at 10% 90%, var(--wine-glow), transparent 70%),
    var(--bg);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.97) 0%, rgba(9, 9, 11, 0.55) 40%, rgba(9, 9, 11, 0.3) 100%),
    linear-gradient(to right, rgba(9, 9, 11, 0.75) 0%, transparent 65%),
    radial-gradient(70% 60% at 100% 100%, rgba(122, 35, 52, 0.28), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.available-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(242, 239, 234, 0.06); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0.55rem 1.1rem; border-radius: 999px; margin-bottom: 2rem;
  animation: fadeUp 0.9s var(--ease-out) 0.2s both;
}
.available-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(123, 200, 142, 0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(123, 200, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 200, 142, 0); } }
.hero .eyebrow { display: flex; width: fit-content; animation: fadeUp 0.9s var(--ease-out) 0.3s both; }
.hero-name { animation: fadeUp 1s var(--ease-out) 0.4s both; }
.hero-name em { display: block; font-size: 0.42em; line-height: 1.15; letter-spacing: -0.01em; margin-top: 0.3em; }
.hero-sub { margin-top: 1.8rem; animation: fadeUp 0.9s var(--ease-out) 0.55s both; }
.hero .btn-group { margin-top: 2.4rem; animation: fadeUp 0.9s var(--ease-out) 0.65s both; }
.hero-now {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: right;
  font-size: 0.78rem; color: var(--muted);
  animation: fadeUp 0.9s var(--ease-out) 0.8s both;
}
.hero-now strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--text); }
.hero-dots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 0.6rem; }
.hero-dots button { width: 22px; height: 2px; background: var(--line-2); transition: background 0.3s, width 0.3s; }
.hero-dots button.active { background: var(--accent); width: 36px; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; transform: translateX(-50%);
  width: 1px; height: 48px; background: var(--line-2); overflow: hidden;
}
.hero-scroll::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(-100%); animation: scrollDrop 2s ease 1.2s infinite;
}
@keyframes scrollDrop { to { transform: translateY(100%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(2rem, 4vw, 3rem) var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.stat-num sup { font-size: 0.45em; color: var(--accent); vertical-align: top; margin-left: 0.1em; }
.stat-lbl { margin-top: 0.6rem; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* intro */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.intro-grid .prose { font-size: 1.05rem; }
.intro-grid .btn-group { margin-top: 2.4rem; }
.browse { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.browse-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--subtle); }

/* project cards (shared) */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.work-grid.featured { grid-template-columns: repeat(12, 1fr); }
/* alternating 7/5 then 5/7 rows */
.work-grid.featured .work-card { grid-column: span 6; }
.work-grid.featured .work-card:nth-child(4n+1),
.work-grid.featured .work-card:nth-child(4n+4) { grid-column: span 7; }
.work-grid.featured .work-card:nth-child(4n+2),
.work-grid.featured .work-card:nth-child(4n+3) { grid-column: span 5; }
.work-grid.featured .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.work-grid.featured .work-card .media { aspect-ratio: auto; height: clamp(300px, 36vw, 540px); }
.work-card { display: flex; flex-direction: column; gap: 1.1rem; }
.work-card .media { aspect-ratio: 4 / 5; }
.work-card .media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.55), transparent 50%);
  opacity: 0; transition: opacity 0.5s ease;
}
.work-card:hover .media img { transform: scale(1.05); }
.work-card:hover .media::after { opacity: 1; }
.work-card .view {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg); font-size: 1.1rem;
  opacity: 0; transform: translateY(10px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.work-card:hover .view { opacity: 1; transform: none; }
.work-card .media .tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: rgba(11, 11, 12, 0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.work-meta span:first-child { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; transition: color 0.25s; }
.work-card:hover .work-title { color: var(--accent-2); }

/* toolkit */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool { background: var(--bg-2); padding: 1.6rem 1.4rem; transition: background 0.3s; }
.tool:hover { background: var(--surface); }
.tool-name { font-weight: 500; margin-bottom: 0.3rem; }
.tool-level { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.tool-level.learning { color: var(--subtle); }
.tool-track { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tool-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.tool-fill.learning { background: var(--subtle); }
.equipment { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* cards (achievements, skills, process) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: border-color 0.35s ease, transform 0.45s var(--ease-out), background 0.35s;
}
.card { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%); }
.card:hover {
  border-color: rgba(217, 183, 123, 0.4); transform: translateY(-3px);
  box-shadow: 0 24px 48px -28px rgba(217, 183, 123, 0.35);
}
.card-kicker { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.3; margin-bottom: 0.7rem; }
.card-text { font-size: 0.92rem; color: var(--muted); line-height: 1.8; }
.card-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft); margin-bottom: 1.4rem;
}
.card-icon svg { width: 20px; height: 20px; }
.award-card .award-mark { position: absolute; top: 1.6rem; right: 1.6rem; color: var(--accent); opacity: 0.5; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.process-step .num { font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--accent); opacity: 0.55; margin-bottom: 1.4rem; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 30% 50%, rgba(217, 183, 123, 0.14), transparent 70%),
    radial-gradient(40% 60% at 70% 50%, var(--wine-glow), transparent 70%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta .h1 { max-width: 900px; margin-inline: auto; }
.cta .lead { margin: 1.6rem auto 0; }
.cta .btn-group { justify-content: center; margin-top: 2.6rem; }
.cta .eyebrow { justify-content: center; }

/* ================================================================
   PROJECTS LIST
================================================================ */
.filter-bar {
  position: sticky; top: 66px; z-index: 50;
  background: rgba(11, 11, 12, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.filter-bar .chips { flex-wrap: nowrap; overflow-x: auto; padding: 1rem 0; scrollbar-width: none; }
.filter-bar .chips::-webkit-scrollbar { display: none; }
.filter-bar .chip { white-space: nowrap; flex-shrink: 0; }
.work-card[hidden] { display: none; }
.empty-state { text-align: center; padding: 6rem 1rem; color: var(--muted); }
.empty-state .h3 { color: var(--text); margin-bottom: 0.5rem; }

/* ================================================================
   PROJECT CASE STUDY
================================================================ */
.cs-hero {
  position: relative; overflow: hidden;
  min-height: 88vh; min-height: 88svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 6vw, 5rem);
}
.cs-hero-bg { position: absolute; inset: 0; }
.cs-hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: none; } }
.cs-hero .hero-overlay { background: linear-gradient(to top, rgba(11, 11, 12, 0.97) 0%, rgba(11, 11, 12, 0.5) 45%, rgba(11, 11, 12, 0.3) 100%); }
.cs-hero .container { position: relative; z-index: 2; }
.cs-hero .breadcrumbs { animation: fadeUp 0.8s var(--ease-out) 0.1s both; }
.cs-title { animation: fadeUp 1s var(--ease-out) 0.25s both; max-width: 1100px; }
.cs-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  max-width: 900px;
  animation: fadeUp 0.9s var(--ease-out) 0.45s both;
}
.cs-meta div { background: rgba(11, 11, 12, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 1.1rem 1.4rem; }
.cs-meta dt { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.3rem; }
.cs-meta dd { font-size: 0.95rem; }

.cs-intro { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 6rem); }
.cs-intro .prose { font-size: 1.1rem; }
.cs-section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.cs-section-head { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.cs-section-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; margin-bottom: 0.4rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.gallery a { display: block; aspect-ratio: 4 / 3; }
.gallery.count-1 { grid-template-columns: 1fr; }
.gallery.count-1 a { aspect-ratio: 21 / 9; }
.gallery.count-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.count-4 a:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .zoom {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 12, 0.6); color: var(--text);
  opacity: 0; transition: opacity 0.3s;
}
.gallery a:hover .zoom { opacity: 1; }

.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.credit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.credit-role { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.35rem; }
.credit-name { font-family: var(--serif); font-size: 1.15rem; }

.cs-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.cs-nav-link { display: flex; flex-direction: column; gap: 0.4rem; }
.cs-nav-link.next { text-align: right; align-items: flex-end; }
.cs-nav-dir { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.cs-nav-title { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.6rem); transition: color 0.25s; }
.cs-nav-link:hover .cs-nav-title { color: var(--accent-2); }

/* ================================================================
   ABOUT
================================================================ */
.about-hero { padding: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)) 0 var(--section); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.portrait { position: relative; }
.portrait .media { aspect-ratio: 4 / 5; }
.portrait::before {
  content: ''; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid rgba(200, 169, 126, 0.35); border-radius: var(--radius); z-index: -1;
}
.portrait-badge {
  position: absolute; left: -1rem; bottom: 2rem;
  background: var(--text); color: var(--bg);
  padding: 0.9rem 1.2rem; border-radius: var(--radius);
  font-size: 0.78rem; line-height: 1.4;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.portrait-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.about-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 2.5rem; margin: 2rem 0 0; }
.about-facts dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.about-facts dd { font-size: 0.95rem; margin-top: 0.2rem; }

.timeline { position: relative; }
.timeline-item {
  display: grid; grid-template-columns: 140px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2rem 0; border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--accent); line-height: 1.2; }
.timeline-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.timeline-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; }
.timeline-org { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }
.timeline-text { color: var(--muted); font-size: 0.95rem; line-height: 1.85; margin-top: 0.9rem; max-width: 760px; }

/* ================================================================
   CV
================================================================ */
.cv-layout { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.cv-aside { position: sticky; top: calc(66px + 2rem); display: flex; flex-direction: column; gap: 1.2rem; }
.cv-contact { list-style: none; display: flex; flex-direction: column; }
.cv-contact li { display: flex; flex-direction: column; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.cv-contact li:first-child { padding-top: 0; }
.cv-contact span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.2rem; }
.cv-contact a:hover { color: var(--accent-2); }
.cv-toc { display: flex; flex-direction: column; gap: 0.2rem; }
.cv-toc a { font-size: 0.86rem; color: var(--muted); padding: 0.35rem 0 0.35rem 1rem; border-left: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.cv-toc a:hover { color: var(--text); border-color: var(--accent); }
.cv-block { margin-bottom: clamp(3rem, 5vw, 4rem); scroll-margin-top: 100px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-block-title { display: flex; align-items: center; gap: 1rem; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.cv-block-title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.cv-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.cv-row:last-child { border-bottom: 0; }
.cv-yr { font-size: 0.86rem; color: var(--subtle); padding-top: 0.1rem; }
.cv-item-title { font-weight: 500; line-height: 1.5; }
.cv-item-title small { font-weight: 400; color: var(--muted); }
.cv-item-sub { color: var(--muted); font-size: 0.92rem; line-height: 1.8; margin-top: 0.3rem; }

/* ================================================================
   CONTACT
================================================================ */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-item {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}
a.contact-item:hover { padding-left: 0.4rem; }
.contact-item .ic {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
}
.contact-item .ic svg { width: 18px; height: 18px; }
.contact-item small { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.contact-item span { font-size: 0.98rem; word-break: break-word; }
.contact-item .go { color: var(--subtle); transition: color 0.25s, transform 0.35s var(--ease-out); }
a.contact-item:hover .go { color: var(--accent); transform: translate(3px, -3px); }
.looking-for { margin-top: 2.5rem; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.6rem, 4vw, 3rem);
}
.form-card .h3 { margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 0.95rem 1rem;
  font-family: var(--sans); font-size: 0.95rem;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A39D95' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field select:invalid { color: var(--subtle); }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 0.8rem; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.form-foot small { color: var(--subtle); font-size: 0.82rem; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* toast */
.toast-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9900; display: flex; flex-direction: column; gap: 0.6rem; }
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 260px; max-width: 380px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--success);
  border-radius: 6px; padding: 0.9rem 1.1rem;
  font-size: 0.9rem; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.4s var(--ease-out) both;
}
.toast.error { border-left-color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }

/* ================================================================
   404
================================================================ */
.error-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; position: relative; overflow: hidden; }
.error-code { font-family: var(--serif); font-style: italic; font-size: clamp(7rem, 22vw, 16rem); line-height: 1; color: var(--accent); opacity: 0.9; margin-bottom: 0.5rem; }
.error-page .lead { margin: 1.5rem 0 2.4rem; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(217, 183, 123, 0.08), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(122, 35, 52, 0.16), transparent 70%),
    var(--bg-2);
}
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.footer-cta .h1 { max-width: 760px; }
.footer-mail { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.8rem); border-bottom: 1px solid var(--accent); padding-bottom: 0.2rem; transition: color 0.25s; }
.footer-mail:hover { color: var(--accent-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.8rem; display: inline-flex; align-items: baseline; gap: 0.15rem; }
.footer-brand i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.footer-about { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--subtle); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--subtle); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.to-top:hover { color: var(--text); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
  .work-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid.featured .work-card:nth-child(n) { grid-column: span 6; }
  .work-grid.featured .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .work-grid.featured .work-card .media { height: clamp(280px, 50vw, 480px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-aside { position: static; }
  .cv-toc { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .hero-now { text-align: left; }
  .hero-dots { justify-content: flex-start; }
  .intro-grid, .about-grid, .contact-grid, .cs-intro, .cs-section-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding-inline: 1.25rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .portrait { max-width: 460px; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .cs-nav { grid-template-columns: 1fr 1fr; }
  .cs-nav .all { display: none; }
}
@media (max-width: 640px) {
  .work-grid, .card-grid, .process-grid { grid-template-columns: 1fr; }
  .work-grid.featured .work-card:nth-child(n) { grid-column: 1 / -1; }
  .work-grid.featured .work-card .media { height: auto; aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .gallery, .gallery.count-2 { grid-template-columns: 1fr; }
  .gallery a, .gallery.count-1 a, .gallery.count-4 a:first-child { aspect-ratio: 4 / 3; }
  .cs-meta { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cv-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .about-facts { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
  .portrait::before { inset: 0.8rem -0.6rem -0.8rem 0.8rem; }
  .portrait-badge { left: 0.8rem; }
  .btn { height: 48px; padding: 0 1.4rem; }
  .btn-group .btn { flex: 1 1 auto; }
  .contact-item { grid-template-columns: 40px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
