/* Jay-ar Diego — luxury editorial portfolio */
:root {
  --ink: #0d0d0d;
  --ink-soft: #3a3633;
  --muted: #7a726b;
  --paper: #f5f0e8;
  --paper-2: #ece4d8;
  --line: rgba(13, 13, 13, 0.14);
  --wine: #6b1e2e;
  --gold: #b08d57;
  --gold-soft: #d8c09a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --shell: min(1240px, calc(100% - clamp(2.5rem, 7vw, 6rem)));
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--wine); }
::selection { background: var(--wine); color: var(--paper); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: multiply;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-shell { width: var(--shell); margin-inline: auto; }
.eyebrow {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  margin: 0 0 1.25rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: clamp(1.25rem, 3.5vw, 3rem);
  transition: background .4s var(--ease), border-color .4s, height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(245, 240, 232, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); height: 64px; }
.monogram { font-family: var(--serif); font-style: italic; font-size: 1.6rem; text-decoration: none; letter-spacing: .02em; }
.desktop-nav { display: flex; gap: 2.25rem; }
.desktop-nav a, .nav-cta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .55rem 0; transition: color .3s; }
.nav-cta:hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 45; background: var(--paper);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-panel nav { display: grid; gap: 1rem; text-align: center; }
.mobile-panel a { font-family: var(--serif); font-size: clamp(2.4rem, 10vw, 3.4rem); text-decoration: none; }
.menu-open .mobile-panel { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1.05rem 1.85rem; border: 1px solid transparent; border-radius: 0; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--wine); border-color: var(--wine); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  min-height: 100svh; padding-top: 120px; padding-bottom: 5rem;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; position: relative;
}
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 7rem); line-height: .95; }
.hero-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; color: var(--ink-soft); margin: 2rem 0 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-meta span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-visual { position: relative; }
.portrait-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); box-shadow: 0 30px 80px -30px rgba(13,13,13,.35); z-index: 1; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.03); transition: transform 1.6s var(--ease); }
.portrait-wrap:hover img { transform: scale(1); }
.portrait-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,0) 72%, rgba(13,13,13,.5)); }
.portrait-label { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.5rem; z-index: 2; color: var(--paper); display: flex; flex-direction: column; align-items: start; gap: .3rem; }
.portrait-label span { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.portrait-label small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.orbit { position: absolute; border: 1px solid var(--gold); border-radius: 50%; z-index: 2; pointer-events: none; }
.orbit-one { width: 120%; aspect-ratio: 1; top: -12%; left: -10%; opacity: .35; animation: spin 40s linear infinite; }
.orbit-two { width: 40%; aspect-ratio: 1; bottom: -8%; left: -16%; border-color: var(--wine); opacity: .3; }
.orbit-one::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); top: 12%; left: 14%; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; bottom: 1.75rem; left: 0; display: flex; align-items: center; gap: .75rem; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 48px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Marquee */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 1.4rem 0; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: .06em; white-space: nowrap; }
.marquee b { color: var(--gold); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 3.5rem 1.5rem 3rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; }
.stat span { display: block; margin-top: .75rem; font-size: .82rem; color: var(--muted); max-width: 14rem; }

/* Section headings */
.section-heading { max-width: 52rem; margin-bottom: 3.5rem; }
.section-heading h2, .about-title h2, .case-strip-copy h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.section-heading > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; max-width: 38rem; margin-top: 1.5rem; }

/* Work */
.work-section, .capabilities, .experience, .education, .selected-studies { padding-block: clamp(5rem, 11vw, 9rem); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.filter { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; font-size: .8rem; letter-spacing: .06em; cursor: pointer; transition: all .3s var(--ease); }
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.project { grid-column: span 3; cursor: pointer; outline: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.project-xl { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.project-wide { grid-column: span 4; }
.project-wide + .project { grid-column: span 2; }
.project.is-hidden { display: none; }
.project-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-2); }
.project-wide .project-media { aspect-ratio: 16 / 9; }
.project-wide + .project .project-media { aspect-ratio: 4 / 5; }
.media-tall { aspect-ratio: 4 / 5; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project-media img, .project:focus-visible .project-media img { transform: scale(1.045); }
.project:focus-visible .project-media { outline: 2px solid var(--wine); outline-offset: 4px; }
.project-copy { padding-top: 1.4rem; }
.project-xl .project-copy { padding-top: 0; }
.project-copy > div { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.project-no { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.project-xl h3 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.project-copy p { color: var(--ink-soft); margin: .8rem 0 1.1rem; max-width: 34rem; }
.text-link { background: none; border: 0; padding: 0 0 .2rem; cursor: pointer; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.text-link span { display: inline-block; transition: transform .3s var(--ease); }
.project:hover .text-link span { transform: translate(3px, -3px); }

/* Abstract project art */
.abstract { display: grid; place-items: center; color: var(--paper); font-family: var(--serif); }
.digital-art { background: radial-gradient(circle at 70% 25%, #3a1018, transparent 55%), var(--ink); }
.digital-art span { position: absolute; top: 1.5rem; left: 1.75rem; font-family: ui-monospace, monospace; font-size: 1rem; color: var(--gold); }
.digital-art b { font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .95; text-align: center; letter-spacing: .04em; }
.digital-art::after { content: ""; position: absolute; inset: 18% 14%; border: 1px solid rgba(216, 192, 154, .3); border-radius: 2px; }
.research-art { background: linear-gradient(135deg, var(--paper-2), #ddd0bd); color: var(--ink); }
.research-art .ring { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--wine); box-shadow: 0 0 0 28px rgba(107, 30, 46, .06), 0 0 0 56px rgba(107, 30, 46, .04); }
.research-art span { position: relative; font-size: clamp(1.6rem, 3.2vw, 2.8rem); text-align: center; line-height: 1; font-style: italic; }
.strategy-art { background: var(--wine); grid-template-columns: repeat(3, 1fr); align-content: center; padding: 2rem; gap: 1rem; }
.strategy-art span { font-size: 3rem; font-style: italic; color: var(--gold-soft); border-top: 1px solid rgba(245, 240, 232, .3); padding-top: .5rem; width: 100%; }
.strategy-art b { grid-column: 1 / -1; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; margin-top: 1.5rem; }
.community-art { background: #1d1a17; grid-auto-flow: column; gap: clamp(1rem, 3vw, 3rem); }
.community-art span { font-size: clamp(1.6rem, 3.6vw, 3.2rem); letter-spacing: .08em; position: relative; z-index: 1; }
.community-art span:nth-child(2) { color: var(--gold); font-style: italic; }
.community-art i { position: absolute; width: 60%; height: 1px; background: rgba(216, 192, 154, .4); }
.editorial-art img { filter: saturate(.9); }

/* Case strip */
.case-strip { background: var(--ink); color: var(--paper); padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.case-strip-copy { width: var(--shell); margin: 0 auto 3rem; }
.case-strip .eyebrow { color: var(--gold-soft); }
.case-strip em { color: var(--gold-soft); }
.horizontal-gallery {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(calc((100% - 1240px) / 2), clamp(1.25rem, 3.5vw, 3rem)); padding-bottom: 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; outline: none;
}
.horizontal-gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.horizontal-gallery figure { flex: 0 0 min(72vw, 620px); margin: 0; scroll-snap-align: start; }
.horizontal-gallery img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius); pointer-events: none; user-select: none; }
.horizontal-gallery figcaption { margin-top: .9rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 240, 232, .65); }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(5rem, 11vw, 9rem); border-bottom: 1px solid var(--line); }
.about-title h2 { position: sticky; top: 120px; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 1.4rem; }
.about-copy .lead { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.3; color: var(--ink); }
.about-copy .lead strong { font-weight: 500; font-style: italic; color: var(--wine); }
.about-links { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; }
.about-links a { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.about-links a:hover { color: var(--wine); border-color: var(--wine); }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap { padding: 2.5rem 2rem 2.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .5s var(--ease); }
.cap:hover { background: var(--paper-2); }
.cap span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.cap h3 { font-size: 1.9rem; margin: 1.25rem 0 .9rem; }
.cap p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* Experience */
.experience { border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.timeline-item:hover { padding-left: 1rem; }
.timeline-item time { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .55rem; }
.timeline-item h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.timeline-item p { margin: .2rem 0 .5rem; font-weight: 500; color: var(--wine); font-size: .95rem; }
.timeline-item small { display: block; color: var(--ink-soft); font-size: .92rem; max-width: 46rem; }

/* Education */
.education { background: var(--paper-2); width: 100%; padding-inline: max(calc((100% - 1240px) / 2), clamp(1.25rem, 3.5vw, 3rem)); }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.edu-card { background: var(--paper); padding: 2.25rem 2rem 2.5rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: .5rem; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.edu-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(13, 13, 13, .35); }
.edu-card .year { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.edu-card h3 { font-size: 1.7rem; }
.edu-card p { margin: 0; color: var(--ink-soft); }
.edu-card strong { font-weight: 600; font-size: .85rem; color: var(--wine); }
.edu-card small { color: var(--muted); font-size: .88rem; margin-top: .75rem; }
.credential-note { margin: 2.5rem 0 0; font-size: .82rem; letter-spacing: .06em; color: var(--muted); }

/* Studies */
.study-list { border-top: 1px solid var(--ink); }
.study { display: grid; grid-template-columns: 180px 1fr 1.2fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.study span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.study h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.study p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* Contact */
.contact { background: var(--wine); color: var(--paper); padding-block: clamp(6rem, 13vw, 10rem); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 70vw; aspect-ratio: 1; right: -25vw; top: -30vw; border-radius: 50%; border: 1px solid rgba(216, 192, 154, .25); }
.contact .eyebrow { color: var(--gold-soft); }
.contact h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); max-width: 60rem; }
.contact em { color: var(--gold-soft); }
.contact-email { display: inline-flex; gap: 1rem; margin-top: 3rem; font-family: var(--serif); font-size: clamp(1.7rem, 4.2vw, 3.4rem); text-decoration: none; border-bottom: 1px solid rgba(245, 240, 232, .4); padding-bottom: .4rem; word-break: break-all; transition: border-color .3s, color .3s; }
.contact-email:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.contact-email span { transition: transform .3s var(--ease); }
.contact-email:hover span { transform: translate(6px, -6px); }
.contact-meta { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin-top: 2.5rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 240, 232, .75); }
.contact-meta a { text-decoration: none; }
.contact-meta a:hover { color: var(--paper); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-block: 2.5rem; font-size: .78rem; color: var(--muted); }
.site-footer div { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; }
.site-footer strong { color: var(--ink); letter-spacing: .24em; font-weight: 600; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Modal */
.project-modal {
  width: min(860px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); border: 0; padding: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .5);
}
.project-modal::backdrop { background: rgba(13, 13, 13, .62); backdrop-filter: blur(6px); }
.project-modal[open] { animation: modal-in .5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-content { padding: clamp(2rem, 5vw, 3.5rem); }
.modal-content h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); padding-right: 3rem; }
.modal-intro { font-size: 1.08rem; color: var(--ink-soft); margin: 1.25rem 0 2.25rem; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.modal-grid h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.modal-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.modal-grid li { padding-left: 1.1rem; position: relative; font-size: .94rem; color: var(--ink-soft); }
.modal-grid li::before { content: "✦"; position: absolute; left: 0; color: var(--wine); font-size: .6rem; top: .4rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.modal-tags span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: .15s; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .menu-btn { display: block; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-visual { max-width: 520px; width: 100%; justify-self: center; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cap-grid, .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .study { grid-template-columns: 140px 1fr; }
  .study p { grid-column: 2; }
}
@media (max-width: 760px) {
  .site-header { gap: 1rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project, .project-xl, .project-wide, .project-wide + .project { grid-column: auto; }
  .project-xl { display: block; }
  .project-xl .project-copy { padding-top: 1.4rem; }
  .project-wide + .project .project-media { aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; }
  .about-title h2 { position: static; }
  .cap-grid, .edu-grid, .modal-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: .4rem; }
  .timeline-item time { padding-top: 0; }
  .study { grid-template-columns: 1fr; gap: .5rem; }
  .study p { grid-column: auto; }
  .horizontal-gallery figure { flex-basis: 84vw; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 2.25rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
