/* ═══════════════════════════════════════════════════════════════════════
   Mariana Molina Gomez — DARK MODERN
   Deep charcoal background, restrained gold accent, contemporary studio feel.
   Lightbox modal for project galleries.
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0F0E0C;
  --bg-soft: #1A1916;
  --bg-card: #15140F;
  --cream: #F0EDE5;
  --ink-soft: #A8A296;
  --ink-mute: #6E6A60;
  --line: #2A2823;
  --gold: #C8A96E;
  --gold-soft: rgba(200, 169, 110, 0.15);
  --max: 1400px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Syne", -apple-system, "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lb-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════ CURSOR ═══════════════════════════ */
.cur { position: fixed; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width .25s, height .25s, opacity .25s; mix-blend-mode: difference; }
.cur-o { position: fixed; width: 38px; height: 38px; border: 1px solid rgba(200, 169, 110, .4); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: left .14s ease, top .14s ease, width .3s, height .3s, border-color .3s, opacity .3s; }
.cur.hover { width: 4px; height: 4px; opacity: .5; }
.cur-o.hover { width: 58px; height: 58px; border-color: var(--gold); }
@media (pointer: coarse) { .cur, .cur-o { display: none; } body { cursor: auto; } }
@media (pointer: fine) { body { cursor: none; } a, button, input, textarea, label { cursor: none; } }

/* ═══════════════════════════ NAV ═══════════════════════════ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1.6rem var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 2rem; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(15, 14, 12, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.logo { font-family: var(--f-sans); font-weight: 700; font-size: 1rem; letter-spacing: .3em; color: var(--cream); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--gold); transition: width .3s; }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-cta { padding: .7rem 1.4rem; border: 1px solid var(--gold); color: var(--gold); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; border-radius: 999px; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--gold); color: var(--bg); }
@media (max-width: 780px) { .nav-links { display: none; } .nav-cta { display: none; } }

.lang-switcher { position: relative; }
.lang-switcher button { background: transparent; border: 1px solid var(--line); color: var(--cream); font-family: var(--f-sans); font-size: .72rem; letter-spacing: .15em; padding: .5rem .85rem; display: flex; align-items: center; gap: .45rem; border-radius: 999px; transition: border-color .2s; }
.lang-switcher button:hover { border-color: var(--gold); }
#lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; margin: 0; padding: .35rem 0; list-style: none; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 36px rgba(0, 0, 0, .5); }
#lang-menu li { display: block; }
#lang-menu button { width: 100%; border: none; border-radius: 0; padding: .65rem 1rem; text-align: left; background: transparent; font-size: .82rem; color: var(--cream); text-transform: none; letter-spacing: .03em; }
#lang-menu button:hover { background: var(--gold-soft); color: var(--gold); }

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 6rem 0 4rem var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  column-gap: clamp(2.5rem, 5vw, 6rem);
  align-items: stretch;
  overflow: hidden;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(1rem, 2vw, 2rem);
  max-width: 36rem;
}
.hero-visual {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  background-color: var(--bg-soft);
  border-radius: 2px;
  box-shadow: inset 0 0 120px 0 rgba(15, 14, 12, 0.35);
}
.hero-feature {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 90vh;
  object-fit: cover;
  object-position: center;
}
.hero-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem 0 1.25rem;
}
.desc-extended { display: none; }
.hero-tag { font-size: .76rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.hero-name { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.25rem, 7vw, 8.25rem); line-height: .92; letter-spacing: -.02em; max-width: 9ch; }
.hero-name .line { display: block; }
.hero-name .line:nth-child(2) { padding-left: 1.5ch; }
.hero-name em { font-style: italic; font-weight: 300; color: var(--cream); }
.hero-desc { margin: 0; max-width: 32rem; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.65; }
.hero-actions { margin: 2.5rem 0 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-fill, .btn-line { display: inline-flex; align-items: center; padding: 1rem 2.2rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; border-radius: 999px; transition: all .3s; }
.btn-fill { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.btn-fill:hover { background: transparent; color: var(--gold); }
.btn-line { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.origin-badge { margin: 2.5rem 0 0; display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--ink-soft); width: fit-content; }
.origin-badge b { color: var(--cream); font-weight: 500; }
.hero-stats { margin: 4rem 0 0; display: flex; gap: 3rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 2rem; }
.stat-num { font-family: var(--f-display); font-size: 3.2rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-lbl { margin-top: .4rem; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.scroll-cue { position: absolute; left: var(--pad-x); bottom: 2.5rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-mute); display: flex; align-items: center; gap: .8rem; }
.scroll-cue .scroll-line { width: 38px; height: 1px; background: var(--ink-mute); animation: scrollPulse 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes scrollPulse { 0%, 100% { transform: scaleX(.2); opacity: .3; } 50% { transform: scaleX(1); opacity: 1; } }

/* ═══════════════════════════ MARQUEE ═══════════════════════════ */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 1.4rem 0; }
.marquee { display: flex; gap: 2.5rem; white-space: nowrap; animation: marquee 50s linear infinite; font-family: var(--f-display); font-style: italic; font-size: 1.8rem; color: var(--ink-soft); }
.marquee span { flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════ SECTIONS ═══════════════════════════ */
.section { padding: clamp(6rem, 12vw, 10rem) var(--pad-x); max-width: var(--max); margin: 0 auto; }
.section-head { margin-bottom: clamp(3rem, 7vw, 5rem); max-width: 44rem; }
.section-number { font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.section-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.05; letter-spacing: -.015em; }
.section-title em { font-style: italic; color: var(--gold); }
.section-title span, .section-title em { display: block; }
.section-sub { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 36rem; }

/* ═══════════════════════════ PROJECTS ═══════════════════════════ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.project { position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); border-radius: 2px; transition: transform .5s cubic-bezier(.16, 1, .3, 1), border-color .4s; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.project-image { aspect-ratio: 16 / 9; background-color: var(--bg-soft); background-size: cover; background-position: center; transition: filter .5s, transform .9s ease-out; filter: brightness(.9) contrast(.95); }

/* The little ↗ overlay on each tile — signals "click to open" */
.project-overlay {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 44px; height: 44px;
  display: grid; place-content: center;
  background: rgba(15, 14, 12, 0.8);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .35s, background .3s, border-color .3s;
  pointer-events: none;
  z-index: 2;
}

/* Hover effects ONLY on devices that actually hover (desktop with a mouse).
   iOS Safari would otherwise enter "sticky-hover" on first tap — the user
   sees the overlay appear but their tap never reaches the click handler. */
@media (hover: hover) and (pointer: fine) {
  .project:hover { transform: translateY(-6px); border-color: var(--gold); }
  .project:hover .project-image { filter: brightness(1.05) contrast(1.05); transform: scale(1.03); }
  .project:hover .project-overlay { opacity: 1; transform: translateY(0); background: var(--gold); color: var(--bg); border-color: var(--gold); }
}

/* On touch devices, show the overlay permanently as the "tap to open" affordance */
@media (hover: none), (pointer: coarse) {
  .project-overlay { opacity: 1; transform: translateY(0); }
}

.project-meta { padding: 1.5rem 1.6rem 1.6rem; }
.project-year { font-size: .72rem; letter-spacing: .2em; color: var(--gold); font-variant-numeric: tabular-nums; }
.project-title { margin: .35rem 0 .25rem; font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: var(--cream); }
.project-cat { color: var(--ink-soft); font-size: .88rem; }

/* ═══════════════════════════ LIGHTBOX ═══════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 7, 6, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
  opacity: 0;
  transition: opacity .35s;
}
.lightbox.open {
  opacity: 1;
}
.lightbox[hidden] { display: none; }

.lb-wrap {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

/* Real <img> now — object-fit handles letterboxing across portrait/landscape
   photos AND lets iOS pinch-zoom + long-press-save work natively. The element
   gets its height from the image's intrinsic aspect ratio, so it can never
   collapse to 0 height the way a background-image div would on mobile. */
.lb-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
  transition: opacity .3s;
  /* Let pinch-zoom work; disable drag-to-save-as-file (use long-press instead) */
  touch-action: pinch-zoom;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.lb-image.fading { opacity: 0; }
.lb-image:not([src]), .lb-image[src=""] { min-height: 40vh; }

.lb-caption {
  text-align: center;
  max-width: 600px;
}
.lb-counter {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
  font-variant-numeric: tabular-nums;
}
.lb-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: .3rem;
}
.lb-cat { color: var(--ink-soft); font-size: .9rem; }

.lb-close, .lb-nav {
  position: absolute;
  background: rgba(15, 14, 12, 0.6);
  border: 1px solid var(--line);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
@media (hover: hover) and (pointer: fine) {
  .lb-close:hover, .lb-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
}
.lb-close, .lb-nav { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lb-nav.disabled { opacity: .25; pointer-events: none; }

@media (max-width: 720px) {
  .lightbox { padding: 1.5rem; }
  .lb-image { max-height: 60vh; }
  .lb-close { top: .8rem; right: .8rem; width: 40px; height: 40px; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
}

/* ═══════════════════════════ PHILOSOPHY ═══════════════════════════ */
.section-philosophy { background: var(--bg-soft); max-width: 100%; padding-left: 0; padding-right: 0; }
.section-philosophy .section-head, .section-philosophy .principles-grid { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.principle { padding: 2.4rem 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; transition: border-color .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.principle:hover { border-color: var(--gold); transform: translateY(-3px); }
.principle-num { font-family: var(--f-display); font-size: 2.4rem; color: var(--gold); font-style: italic; margin-bottom: 1rem; }
.principle h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.2rem; margin-bottom: .8rem; }
.principle p { color: var(--ink-soft); font-size: .95rem; }

/* ═══════════════════════════ ABOUT ═══════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-image { aspect-ratio: 4 / 5; background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=900&q=85'); background-size: cover; background-position: center; background-color: var(--bg-soft); filter: brightness(.85) contrast(1.1); border-radius: 2px; }
.about-text .section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 2rem; }
.about-body { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.4rem; }
.about-skills { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--line); display: grid; gap: 1.4rem; }
.about-skills > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.about-skills dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
.about-skills dd { color: var(--cream); }

/* ═══════════════════════════ CONTACT ═══════════════════════════ */
.section-contact { max-width: 100%; padding-left: 0; padding-right: 0; background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.contact-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.contact-title { margin-bottom: 1.2rem; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.contact-cards { margin: 3rem 0 3.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.contact-card { padding: 1.8rem 1.6rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: 2px; transition: border-color .3s; }
.contact-card:hover { border-color: var(--gold); }
.contact-label { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }
.contact-value { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--gold); text-decoration: none; transition: color .3s; }
.contact-value:hover { color: var(--cream); }
.contact-form { max-width: 720px; display: grid; gap: 1.4rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form label { display: block; }
.contact-form label span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .55rem; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--line); padding: 1rem 1.1rem; font-family: var(--f-sans); font-size: 1rem; color: var(--cream); border-radius: 2px; transition: border-color .2s; }
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form button { margin-top: .8rem; padding: 1.1rem 2.6rem; background: var(--gold); color: var(--bg); border: 1px solid var(--gold); font-family: var(--f-sans); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; border-radius: 999px; width: fit-content; transition: background .3s, color .3s; }
.contact-form button:hover { background: transparent; color: var(--gold); }
.contact-form button:disabled { opacity: 0.6; cursor: progress; }
.cf-result { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 2px; font-size: 0.92rem; line-height: 1.5; opacity: 0; transition: opacity .3s; }
.cf-result.visible { opacity: 1; }
.cf-result.ok { background: rgba(200, 169, 110, 0.1); color: var(--gold); border: 1px solid var(--gold); }
.cf-result.err { background: rgba(220, 80, 80, 0.08); color: #d77a7a; border: 1px solid rgba(220, 80, 80, 0.4); }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer { padding: 4rem var(--pad-x) 2rem; border-top: 1px solid var(--line); background: var(--bg); }
.footer-cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-logo { font-family: var(--f-display); font-size: 1.6rem; color: var(--cream); }
.footer-sub { color: var(--ink-mute); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; margin-top: .35rem; }
.footer-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.footer a { color: var(--ink-soft); font-size: .92rem; line-height: 1.9; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; max-width: var(--max); margin: 0 auto; text-align: center; font-size: .78rem; color: var(--ink-mute); }

/* ═══════════════════════════ REVEAL ═══════════════════════════ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   02 · Visualizations — Selected Works mosaic
   Append to existing stylesheet AFTER .section-projects rules
   so the shared .project / .section-head tokens cascade in.
   ============================================================ */

.section-renders {
  /* inherits .section padding from base; nothing to override */
}

.section-renders .section-lede {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* ---- 12-column asymmetric mosaic ---------------------------- */
.renders-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.render-tile {
  position: relative;
  margin: 0;            /* reset <article> */
  cursor: pointer;
  background: var(--bg-card, #15140F);
  overflow: hidden;
  isolation: isolate;
}

/* Tile spans — woven rhythm: wide / tall / tall / wide */
.renders-grid > .render-tile:nth-child(1) { grid-column: span 7; }
.renders-grid > .render-tile:nth-child(2) { grid-column: span 5; }
.renders-grid > .render-tile:nth-child(3) { grid-column: span 5; }
.renders-grid > .render-tile:nth-child(4) { grid-column: span 7; }

/* ---- Image frame: aspect-ratio drives height --------------- */
.render-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-soft, #1A1916);
}

.render-tile--wide .render-frame { aspect-ratio: 16 / 9; }
.render-tile--tall .render-frame { aspect-ratio: 4 / 5; }

.render-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.6,.2,1),
              filter   400ms ease-out;
  will-change: transform;
}

/* Vignette overlay (research recommendation: 12% edge darken) */
.render-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
              transparent 55%,
              rgba(15,14,12,0.30) 100%);
  opacity: 0;
  transition: opacity 400ms ease-out;
  z-index: 1;
}

/* ---- Caption (below image, editorial) ---------------------- */
.render-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 4px 0;
}

.render-caption .project-title {
  font-family: "Syne", "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;       /* 13px */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream, #F0EDE5);
}

.render-caption .render-caption-sub {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--gold, #C8A96E);
  position: relative;
  padding-left: 32px;
}

/* Hairline divider before italic caption */
.render-caption .render-caption-sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--gold, #C8A96E);
  opacity: 0.55;
}

/* ---- Hover state ------------------------------------------- */
/* Render tiles inherit the dark-modern project signature
   (lift + gold border, see .project:hover at line 136), and
   layer the image scale + vignette specific to this section.
   Title is intentionally NOT recolored on hover — matches the
   restraint of the project tiles. */
@media (hover: hover) {
  .render-tile:hover .render-frame > img {
    transform: scale(1.025);
    filter: brightness(1.02);
  }
  .render-tile:hover .render-frame::after { opacity: 1; }
}

/* Focus ring for keyboard nav (tile is opened by lightbox JS) */
.render-tile:focus-visible {
  outline: 1px solid var(--gold, #C8A96E);
  outline-offset: 6px;
}

/* ---- Mobile: single column, all tiles 16:9 ----------------- */
@media (max-width: 720px) {
  .renders-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }
  .renders-grid > .render-tile:nth-child(n) { grid-column: 1 / -1; }
  .render-tile--tall .render-frame,
  .render-tile--wide .render-frame { aspect-ratio: 16 / 9; }
  .render-caption { padding: 14px 2px 0; }
  .section-renders .section-lede { font-size: 1rem; }
}

/* Reduced motion: kill the zoom + vignette transition */
@media (prefers-reduced-motion: reduce) {
  .render-frame > img,
  .render-frame::after { transition: none; }
  .render-tile:hover .render-frame > img { transform: none; }
}

/* ═══════════════════════════ HERO RESPONSIVE ═══════════════════════════ */
@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem var(--pad-x) 3rem;
    row-gap: 3rem;
  }
  .hero-text { padding-right: 0; }
  .hero-name {
    font-size: clamp(3rem, 6vw, 5.5rem);
    max-width: 18ch;
  }
  .hero-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .hero-feature { min-height: 0; }
  .desc-extended { display: inline; }
  .scroll-cue { display: none; }
}
@media (max-width: 719px) {
  .hero { padding: 5rem 1.25rem 2rem; row-gap: 2.25rem; }
  .hero-name {
    font-size: clamp(2.5rem, 11vw, 4rem);
    max-width: 14ch;
  }
  .hero-name .line:nth-child(2) { padding-left: 1ch; }
  .hero-visual { aspect-ratio: 4 / 5; }
}
