/* ===========================================================
   Mitali Kapai — Portfolio
   Sunset system · Instrument Serif + DM Sans · light/dark
   =========================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Theme tokens ---------- */
:root {
  /* Sunset accents (shared across themes) */
  --amber:   oklch(0.80 0.135 70);
  --coral:   oklch(0.685 0.175 38);
  --rose:    oklch(0.655 0.185 8);
  --magenta: oklch(0.60 0.18 350);
  --violet:  oklch(0.55 0.15 305);
  --twilight:oklch(0.42 0.12 280);

  /* Light theme */
  --bg:        oklch(0.984 0.010 75);
  --bg-2:      oklch(0.965 0.013 68);
  --surface:   oklch(0.998 0.005 80);
  --surface-2: oklch(0.955 0.014 65);
  --ink:       oklch(0.255 0.035 28);
  --ink-soft:  oklch(0.42 0.03 30);
  --muted:     oklch(0.56 0.025 35);
  --line:      oklch(0.90 0.018 50);
  --line-soft: oklch(0.93 0.012 55);
  --accent:    var(--coral);
  --accent-ink: oklch(0.46 0.18 32);
  --on-accent: oklch(0.99 0.01 80);
  --halo:      oklch(0.685 0.175 38 / 0.16);

  --shadow-sm: 0 1px 2px oklch(0.3 0.05 30 / 0.06), 0 2px 8px oklch(0.3 0.05 30 / 0.05);
  --shadow-md: 0 6px 24px oklch(0.3 0.06 30 / 0.10), 0 2px 6px oklch(0.3 0.06 30 / 0.06);
  --shadow-lg: 0 24px 70px oklch(0.3 0.08 30 / 0.16), 0 8px 24px oklch(0.3 0.06 30 / 0.08);

  --maxw: 1180px;
  --r-sm: 10px; --r: 16px; --r-lg: 26px; --r-xl: 36px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg:        oklch(0.175 0.028 295);
  --bg-2:      oklch(0.205 0.032 292);
  --surface:   oklch(0.225 0.034 292);
  --surface-2: oklch(0.265 0.038 290);
  --ink:       oklch(0.945 0.018 70);
  --ink-soft:  oklch(0.85 0.02 65);
  --muted:     oklch(0.70 0.03 60);
  --line:      oklch(0.34 0.04 290);
  --line-soft: oklch(0.30 0.035 292);
  --accent:    oklch(0.74 0.165 42);
  --accent-ink: oklch(0.82 0.15 50);
  --on-accent: oklch(0.18 0.04 300);
  --halo:      oklch(0.74 0.165 42 / 0.22);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3), 0 2px 10px oklch(0 0 0 / 0.28);
  --shadow-md: 0 8px 30px oklch(0 0 0 / 0.42);
  --shadow-lg: 0 30px 80px oklch(0 0 0 / 0.55);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
::selection { background: var(--halo); color: var(--ink); }

h1,h2,h3,h4 { line-height: 1.04; font-weight: 600; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }

.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 15.5px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px var(--halo); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--halo); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: padding .4s var(--ease);
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.nav.scrolled .nav-inner { padding-block: 13px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--amber), var(--coral) 45%, var(--magenta));
  display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 22px; line-height: 1;
  box-shadow: 0 4px 14px var(--halo);
}
.brand .mark span { transform: translateY(1px); }
.brand small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-2); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink); transition: border-color .3s, transform .5s var(--ease), background .3s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

.nav .btn { padding: 11px 20px; }

/* Hamburger */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px 32px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .45s var(--ease), visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(34px, 9vw, 56px); color: var(--ink); line-height: 1.1;
  padding-block: 8px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; transform: translateY(14px);
}
body.menu-open .mobile-menu a { animation: rise .5s var(--ease) forwards; }
.mobile-menu a span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; padding-top: 168px; padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.sunset {
  position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0; pointer-events: none;
  filter: blur(10px); opacity: .9;
}
.sunset i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 22s var(--ease) infinite alternate; }
.sunset i:nth-child(1){ width:46vw; height:46vw; left:-6%; top:-8%; background: radial-gradient(circle, var(--amber), transparent 70%); }
.sunset i:nth-child(2){ width:42vw; height:42vw; right:2%; top:-12%; background: radial-gradient(circle, var(--coral), transparent 70%); animation-delay:-6s; }
.sunset i:nth-child(3){ width:40vw; height:40vw; right:14%; top:18%; background: radial-gradient(circle, var(--magenta), transparent 70%); animation-delay:-11s; }
.sunset i:nth-child(4){ width:34vw; height:34vw; left:18%; top:22%; background: radial-gradient(circle, var(--violet), transparent 70%); animation-delay:-3s; }
@keyframes drift { to { transform: translate3d(40px,30px,0) scale(1.12); } }
[data-theme="dark"] .sunset { opacity: .6; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .85fr; gap: 56px; align-items: center; }
.hero-status {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: color-mix(in oklch, var(--surface) 70%, transparent); border: 1px solid var(--line-soft);
  padding: 7px 15px 7px 12px; border-radius: 100px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.68 0.16 150); box-shadow: 0 0 0 0 oklch(0.68 0.16 150 / .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70%{ box-shadow: 0 0 0 8px transparent; } 100%{ box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.2vw, 104px); line-height: .95; letter-spacing: -.015em; margin: 22px 0 0; }
.hero h1 em { font-style: italic; background: linear-gradient(105deg, var(--coral), var(--magenta) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 26px; max-width: 46ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 40px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent-ink); }
.hero-meta span { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.portrait { position: relative; }
.portrait .frame {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--amber), var(--coral) 50%, var(--violet));
  position: relative; border: 1px solid color-mix(in oklch, var(--coral) 30%, transparent);
}
.portrait .frame .ph {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px;
  color: oklch(0.99 0.02 80 / .92); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
}
.portrait .frame .ph svg { width: 46px; height: 46px; margin-inline: auto; opacity: .9; }
.portrait .badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.portrait .badge .ai { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--coral), var(--magenta)); color:#fff; }
.portrait .badge b { display: block; font-size: 14.5px; } .portrait .badge span { font-size: 12px; color: var(--muted); }

.marquee { margin-top: 70px; border-block: 1px solid var(--line-soft); padding-block: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 24px; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-size: 13px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-card { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-md); }
.about-card .photo { aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(150deg, var(--amber), var(--violet)); display: grid; place-content: center; color: #fff; font-family: var(--mono); font-size: 12px; text-align: center; gap: 6px; }
.about-card .photo svg { width: 40px; height: 40px; margin-inline: auto; opacity: .9; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.fact:last-child { border-bottom: none; } .fact b { color: var(--ink); } .fact span { color: var(--muted); }
.about-card .facts { margin-top: 22px; }

.about-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 50px); margin: 18px 0 0; }
.about-body .big { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.34; margin-top: 26px; letter-spacing: -.005em; }
.about-body .big b { color: var(--accent-ink); font-weight: 400; }
.about-body p + p { margin-top: 18px; color: var(--ink-soft); }
.about-body .body-copy { margin-top: 26px; }

.pillars { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pillar { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px; transition: transform .4s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: var(--accent); }
.pillar .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-ink); background: var(--halo); margin-bottom: 12px; }
.pillar h4 { font-size: 16px; } .pillar p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ===========================================================
   SKILLS
   =========================================================== */
.skills { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.skills-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.skills-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 58px); }
.skill-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-col { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 28px; transition: transform .4s var(--ease), box-shadow .4s; }
.skill-col:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.skill-col .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.skill-col h3 { font-size: 20px; margin: 8px 0 16px; }
.skill-col li { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.skill-col li:first-of-type { border-top: none; }
.skill-col li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.tools { margin-top: 56px; }
.tools .label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: border-color .3s, color .3s, transform .3s; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* ===========================================================
   WORK
   =========================================================== */
.work-head { max-width: 760px; margin-bottom: 56px; }
.work-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 70px); margin-top: 14px; }
.cases { display: grid; gap: 30px; }
.case {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); }
.case:nth-child(even) { grid-template-columns: 1fr 1fr; }
.case:nth-child(even) .case-visual { order: 2; }
.case-body { padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; }
.case-tag { display: inline-flex; align-items: center; gap: 8px; align-self: start; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px; background: var(--halo); color: var(--accent-ink); }
.case-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; margin: 18px 0 0; }
.case-body .role { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.case-body p { color: var(--ink-soft); margin-top: 16px; font-size: 15.5px; }
.case-stats { margin-top: auto; padding-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; }
.case-stats div b { font-family: var(--serif); font-size: 26px; color: var(--accent-ink); display: block; line-height: 1; }
.case-stats div span { font-size: 12.5px; color: var(--muted); }
.case-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.case-link .arrow { transition: transform .35s var(--ease); color: var(--accent); }
.case:hover .case-link .arrow { transform: translateX(5px); }

.case-visual { position: relative; overflow: hidden; min-height: 280px; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case-visual img { transform: scale(1.05); }
.case-visual.tinted { display: grid; place-items: center; }
.case-visual .gradient-fill { position: absolute; inset: 0; }

/* AER custom visual (no photo) */
.aer-visual { position: absolute; inset: 0; background: linear-gradient(150deg, #18496D, #0c2d47); display: grid; place-items: center; padding: 30px; }
.aer-mock { width: 100%; max-width: 360px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.4); font-family: var(--sans); transform: rotate(-3deg); }
.aer-mock .bar { height: 38px; background: #18496D; display: flex; align-items: center; gap: 6px; padding-inline: 14px; }
.aer-mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.aer-mock .bar i:first-child { background: #D01D26; }
.aer-mock .row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid #eef1f4; font-size: 11.5px; color: #243b4d; }
.aer-mock .row .tag { font-size: 10px; padding: 3px 9px; border-radius: 100px; background: #e6f1f6; color: #066EA8; font-weight: 600; }
.aer-mock .row .tag.warn { background: #fdeaea; color: #D01D26; }
.aer-mock .row .tag.ok { background: #ecf3e8; color: #639144; }

/* ===========================================================
   CONTACT / FOOTER
   =========================================================== */
.contact { position: relative; overflow: hidden; }
.contact .sunset { opacity: .55; }
.contact-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin-inline: auto; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 8vw, 96px); line-height: .98; }
.contact h2 em { font-style: italic; background: linear-gradient(105deg, var(--coral), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact p { margin: 24px auto 0; max-width: 52ch; }
.contact .btn-row { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact .socials { margin-top: 40px; display: flex; gap: 10px; justify-content: center; }
.contact .socials a { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: border-color .3s, color .3s, transform .4s var(--ease); }
.contact .socials a:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }

.footer { border-top: 1px solid var(--line-soft); padding-block: 34px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 16px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 500; }
.to-top:hover { color: var(--accent-ink); }

/* ===========================================================
   REVEAL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; } }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
  .nav-links, .nav .btn-primary { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; } .about-card { position: static; }
  .skill-cols { grid-template-columns: 1fr; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case-visual, .case:nth-child(even) .case-visual { order: -1; min-height: 300px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .case-stats { gap: 18px; }
}
