/* ================================================================
   JASON STOVER — PORTFOLIO
   Clean, editorial, spacious. Zero gimmicks.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700;12..96,800&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:       #FAFAF8;
  --bg2:      #F2EFE9;
  --ink:      #111110;
  --ink2:     #3A3835;
  --muted:    #7A7672;
  --faint:    #D4D0C9;
  --accent:   #E05A20;
  --acc-dark: #C04A18;
  --white:    #FFFFFF;
  --dark:     #111110;
  --dark2:    #1C1B19;

  --ff-head:  'Bricolage Grotesque', sans-serif;
  --ff-body:  'Inter', sans-serif;

  --ease:     cubic-bezier(.25,.46,.45,.94);
  --bounce:   cubic-bezier(.16,1,.3,1);

  --r:   12px;
  --r2:  20px;
  --r3:  28px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ── LOADER ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.gone { opacity: 0; visibility: hidden; }

.ld-word {
  display: flex;
  font-family: var(--ff-head);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
}
.ld-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
  animation: up .5s var(--bounce) forwards;
}
@keyframes up { to { opacity: 1; transform: translateY(0); } }

.ld-bar {
  width: 100px; height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 2px; overflow: hidden;
}
.ld-fill {
  height: 100%; width: 0;
  background: var(--accent);
  animation: progress 1.1s var(--ease) .4s forwards;
}
@keyframes progress { to { width: 100%; } }

/* ── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 var(--faint);
}
.nav-mark {
  font-family: var(--ff-head);
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}
#nav.scrolled .nav-mark { color: var(--ink); }
.nav-mark span { color: var(--accent); }

#nav ul { display: flex; align-items: center; gap: .15rem; }
#nav ul a {
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.5);
  padding: .4rem .9rem;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
#nav.scrolled ul a { color: var(--muted); }
#nav ul a:hover { color: var(--white); background: rgba(255,255,255,.1); }
#nav.scrolled ul a:hover { color: var(--ink); background: var(--bg2); }

.nav-btn {
  background: rgba(255,255,255,.12) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  transition: background .2s, border-color .2s !important;
}
.nav-btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; }
#nav.scrolled .nav-btn { background: var(--ink) !important; border-color: var(--ink) !important; }
#nav.scrolled .nav-btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; }

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

/* Left — text */
.hero-text {
  padding: 9rem 3.5rem 5rem;
  position: relative; z-index: 2;
}

.hero-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 2.5rem;
}
.dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #44D475;
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(1.4); }
}

.hero-name {
  font-family: var(--ff-head);
  font-size: clamp(4.5rem, 8vw, 9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--white);
  display: flex; flex-direction: column;
  margin-bottom: 2rem;
}
.name-b {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.28);
}

.hero-sub {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center;
  font-family: var(--ff-body); font-size: .88rem; font-weight: 600;
  padding: .8rem 2rem; border-radius: 100px;
  background: var(--accent); color: var(--white);
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--acc-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center;
  font-family: var(--ff-body); font-size: .88rem; font-weight: 500;
  padding: .8rem 2rem; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.65);
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.55); color: var(--white); transform: translateY(-2px); }

/* Stripe overlay */
.hero-stripe {
  position: absolute; top: 0; right: 0;
  z-index: 1;
  pointer-events: none;
  max-height: 100%;
}

/* Right — photo */
.hero-photo {
  position: relative;
  height: 100%; min-height: 520px;
  overflow: hidden;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  filter: grayscale(10%) brightness(.88);
  transition: filter .5s;
}
.hero-photo:hover img { filter: grayscale(0%) brightness(.95); }
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 30%),
              linear-gradient(0deg, var(--dark) 0%, transparent 40%);
}

/* Stats row */
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.07);
}
.stat {
  padding: 1.6rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  color: var(--white);
}
.stat span {
  font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.28);
  margin-top: .25rem; display: block;
}

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker {
  background: var(--accent);
  overflow: hidden;
  padding: .05rem 0;
}
.ticker-track {
  display: flex; width: max-content;
  align-items: center;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--ff-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  padding: .75rem 1.5rem;
  white-space: nowrap;
}
.ticker-track i {
  font-style: normal;
  color: rgba(255,255,255,.4);
  font-size: .5rem;
  padding-right: 1rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION SHARED ─────────────────────────────────────────── */
.section { padding: 8rem 2.5rem; }
.section-tinted { background: linear-gradient(90deg, #e05a20cf, #c04a18); }
.section-dark { background: var(--dark); color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.eyebrow::before { content: '—'; opacity: .5; }
.eyebrow-inv { color: var(--accent); }

.section-heading {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.0;
  color: var(--ink);
  margin-bottom: 3rem;
}

.body-text {
  font-size: 1rem; font-weight: 400;
  color: var(--muted); line-height: 1.78;
  margin-bottom: .9rem;
}
.body-text strong { color: var(--ink); font-weight: 600; }
.body-text em { color: var(--accent); font-style: normal; font-weight: 600; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-wrap {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
}

.about-left { position: relative; }

.about-img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--faint);
}
.about-img-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.about-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 10%;
  filter: grayscale(8%);
  transition: filter .4s, transform .5s var(--ease);
}
.about-img-frame:hover img { filter: grayscale(0%); transform: scale(1.02); }

/* accent blob behind photo */
.about-img-frame::before {
  content: '';
  position: absolute; inset: -16px -16px auto auto;
  width: 60%; height: 40%;
  background: var(--accent);
  border-radius: 50%;
  opacity: .08; filter: blur(40px);
  z-index: -1;
}

.about-img-caption {
  margin-top: 1rem;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .05em; color: var(--muted);
  text-align: center;
}

.about-right { padding-top: 1rem; }
.about-right .section-heading { margin-bottom: 1.5rem; }

.chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: 2rem; margin-bottom: 2.5rem;
}
.chips span {
  font-size: .72rem; font-weight: 600;
  padding: .35rem .9rem; border-radius: 100px;
  background: var(--bg2); border: 1px solid var(--faint);
  color: var(--muted);
  transition: all .18s;
}
.chips span:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--faint);
  border-radius: var(--r); overflow: hidden;
}
.skill-box {
  background: var(--white); padding: 1.5rem;
  transition: background .2s;
}
.skill-box:hover { background: var(--bg2); }
.skill-icon { font-size: 1.3rem; margin-bottom: .6rem; }
.skill-box strong {
  display: block; font-size: .88rem; font-weight: 700;
  color: var(--ink); margin-bottom: .3rem;
  font-family: var(--ff-head); letter-spacing: -.01em;
}
.skill-box p { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ── WORK ───────────────────────────────────────────────────── */
.work-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 2rem;
  margin-bottom: 3rem;
}
.work-header .section-heading { margin-bottom: 0; }
.work-note {
  max-width: 220px; font-size: .82rem;
  color: var(--muted); line-height: 1.55;
  padding-bottom: .25rem;
}

/* ─ Featured card */
.feat-card {
  border-radius: 50px !important;
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--white); border-radius: var(--r3);
  overflow: hidden; margin-bottom: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 12px 48px rgba(0,0,0,.07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feat-card:hover {
  transform: translateY(-4px);
  border-radius: 50px;
    background: linear-gradient(145deg, #e4e0de, #ffffff);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.feat-img {
  position: relative; overflow: hidden;
  background: #E5E2DC; cursor: zoom-in;
}
.feat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .35s;
  filter: saturate(.9);
}
.feat-card:hover .feat-img img { transform: scale(1.03); filter: saturate(1); }

.feat-info {
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column;
}
.proj-num {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .35rem;
}
.proj-cat {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.proj-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; letter-spacing: -.04em; line-height: .95;
  color: var(--ink); margin-bottom: 1.2rem;
}
.proj-desc {
  font-size: .88rem; color: var(--muted); line-height: 1.7; flex: 1;
}
.proj-tags {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.5rem;
}
.proj-tags span {
  font-size: .66rem; font-weight: 600;
  padding: .22rem .65rem; border-radius: 100px;
  background: var(--bg2); border: 1px solid var(--faint);
  color: var(--muted);
}
.proj-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 700;
  color: var(--accent); margin-top: 1.5rem;
  transition: gap .2s;
}
.proj-link span { transition: transform .2s; }
.proj-link:hover { gap: .7rem; }
.proj-link:hover span { transform: translateX(3px); }

/* ─ Project grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.proj-card {
  background: var(--white);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
 
    background: linear-gradient(145deg, #e4e0de, #ffffff);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.proj-card:hover {
  transform: translateY(-5px);
   background: linear-gradient(145deg, #e4e0de, #ffffff);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

}
.card-img {
  aspect-ratio: 16/10;
  overflow: hidden; background: #E5E2DC;
  position: relative; cursor: zoom-in;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .3s;
  filter: saturate(.8);
}
.proj-card:hover .card-img img { transform: scale(1.06); filter: saturate(1); }

.zoom-pill {
  position: absolute; bottom: .75rem; right: .75rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  color: #fff; font-size: .65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 100px;
  opacity: 0; transition: opacity .18s;
  pointer-events: none;
}
.card-img:hover .zoom-pill,
.feat-img:hover .zoom-pill { opacity: 1; }

.card-info {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}
.card-info .proj-cat { margin-bottom: .35rem; }
.card-info h3 {
  font-family: var(--ff-head);
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
  margin-bottom: .5rem; line-height: 1.15;
}
.card-info p { font-size: .8rem; color: var(--muted); line-height: 1.6; flex: 1; }
.card-info .proj-tags { margin-top: 1rem; }

/* ── CONTACT ────────────────────────────────────────────────── */
#contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  padding: 0;
  min-height: 600px;
  overflow: hidden;
}
.contact-wrap {
  padding: 8rem 4rem 7rem;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-heading {
  font-family: var(--ff-head);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 800; letter-spacing: -.04em; line-height: .95;
  color: var(--white); margin: .75rem 0 1.5rem;
}
.contact-heading span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.25);
}
.contact-sub {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,.4);
  line-height: 1.7; max-width: 360px;
  margin-bottom: 2.5rem;
}
.contact-actions { margin-bottom: 3rem; }
.contact-links {
  display: flex; gap: 1.75rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
}
.contact-links a {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  transition: color .18s;
}
.contact-links a:hover { color: var(--accent); }

.contact-photo {
  position: relative; overflow: hidden;
}
.contact-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  filter: grayscale(20%) brightness(.6);
  transition: filter .5s;
}
.contact-photo:hover img { filter: grayscale(0%) brightness(.75); }
.contact-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 50%);
  z-index: 1;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: .72rem; font-weight: 500;
  color: rgba(255,255,255,.2);
}
.footer-mark {
  font-family: var(--ff-head); font-size: 1.1rem;
  font-weight: 800; letter-spacing: -.02em;
  color: rgba(255,255,255,.15);
}
.footer-mark em { font-style: normal; color: var(--accent); opacity: .6; }

/* ── MODAL ──────────────────────────────────────────────────── */
#modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(5,4,3,.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
#modal.open { opacity: 1; visibility: visible; }
#modal.open .modal-box { transform: scale(1) translateY(0); opacity: 1; }

.modal-box {
  position: relative;
  width: min(92vw, 1100px);
  display: grid;
  grid-template-columns: 1fr 300px;
  background: rgba(18,16,14,.98);
  border-radius: var(--r2);
  overflow: hidden;
  transform: scale(.97) translateY(8px);
  opacity: 0;
  transition: transform .35s var(--bounce), opacity .35s var(--ease);
}

.modal-img-section {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #080706;
  min-height: 260px;
}
#m-img {
  display: block; max-width: 100%; max-height: 78vh;
  object-fit: contain;
}
.modal-img-counter {
  position: absolute; bottom: .75rem; right: .75rem;
  font-size: .68rem; color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  padding: .2rem .55rem; border-radius: 99px;
}

.modal-info-section {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  overflow-y: auto; max-height: 78vh;
  border-left: 1px solid rgba(255,255,255,.06);
}
#m-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--light); line-height: 1.3;
  margin: 0; padding-top: 1.5rem;
}
#m-desc {
  font-size: .82rem; color: rgba(255,255,255,.55);
  line-height: 1.65; margin: 0;
}
#m-tags { flex-wrap: wrap; }
#m-link { margin-top: auto; padding-top: .5rem; }
#m-link a { font-size: .82rem; }

.modal-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  border: none; border-radius: 50%;
  color: rgba(255,255,255,.7); font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s; z-index: 2;
}
.modal-close:hover { background: var(--accent); color: #fff; }

.modal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1;
  transition: background .18s, border-color .18s;
}
.modal-arrow:hover { background: var(--accent); border-color: var(--accent); }
.modal-prev { left: .75rem; }
.modal-next { right: .75rem; }

/* ── REVEALS ────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16/9; order: -1; min-height: 0; }
  .hero-photo-overlay {
    background: linear-gradient(0deg, var(--dark) 0%, transparent 55%);
  }
  .hero-text { padding: 3rem 2.5rem 4rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-frame { max-width: 100%; margin: 0; aspect-ratio: 4/3; }
  .about-img-frame::after { background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%); }
  .feat-card { grid-template-columns: 1fr; }
  .feat-img { aspect-ratio: 16/9; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  #contact { grid-template-columns: 1fr; }
  .contact-photo { aspect-ratio: 16/9; order: -1; }
  .contact-photo::before { background: linear-gradient(0deg, var(--dark) 0%, transparent 60%); }
  .contact-wrap { padding: 4rem 2.5rem; }
  .section { padding: 5.5rem 2.5rem; }
  .work-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  #nav ul { display: none; }
  #nav { padding: 1rem 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  .hero-text { padding: 2.5rem 1.5rem 3.5rem; }
  .proj-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.2rem 1.75rem; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-info-section { max-height: none; border-left: none; border-top: 1px solid rgba(255,255,255,.06); padding: 1.5rem; }
  #m-title { padding-top: 0; }
  .modal-arrow { display: none; }
  footer { flex-direction: column; gap: .4rem; text-align: center; }
  .feat-info { padding: 1.75rem; }
}

@media (max-width: 420px) {
  .hero-name { font-size: 3.5rem; }
}
