/* ============================================================
   DEEPESH SINGH — PORTFOLIO V2
   Editorial R&D Studio system.
   Sections: Tokens · Base · Type · Layout · Header · Buttons ·
             Hero · Reveal · Section head · Spreads · Documentation
             panel · Media/captions · Timeline · Footer · Responsive
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0d0d0b;
  --panel: #14140f;
  --text: #f2eee4;
  --muted: #a39c8d;
  --muted-2: #938a79;
  --line: #2b2921;
  --line-soft: #1c1a15;

  /* Two-accent system: gold = creative/leadership voice, blue = SHERU/technical voice */
  --accent: #d7b46a;
  --accent-2: #8ea7ff;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, video { max-width: 100%; height: auto; display: block; }
ul { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.container { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }
main [id] { scroll-margin-top: 100px; }
.skip-link {
  position: absolute; left: 1rem; top: -10rem;
  background: var(--accent); color: #111; padding: .7rem 1rem; z-index: 30;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .9em;
}
.kicker::before {
  content: ''; width: 1.6em; height: 1px; background: currentColor; opacity: .6;
}
.kicker--tech { color: var(--accent-2); font-family: var(--mono); letter-spacing: .1em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(3.6rem, 9vw, 8.5rem); line-height: .86; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .98; letter-spacing: -.02em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.1; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #d8d0c1; max-width: 44ch; }
.eyebrow { color: var(--muted); font-size: 1.05rem; }

.fig-tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-2); opacity: .85;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 13, 11, .84); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-mark { display: flex; align-items: center; gap: .8rem; }
.brand-mark span {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--serif); color: var(--accent); font-size: .95rem;
}
.brand-mark small { color: var(--muted); font-size: .74rem; }
.nav-menu {
  display: flex; align-items: center; gap: 1.1rem;
  text-transform: uppercase; letter-spacing: .11em; font-size: .74rem;
}
.nav-menu a { padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nav-menu a:hover { border-color: var(--accent); }
.nav-cta { border: 1px solid var(--accent); padding: .68rem .95rem; border-radius: 999px; }
.nav-toggle {
  display: none; background: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem;
  font-family: var(--sans); font-size: .8rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .9rem 1.2rem; margin: .3rem .5rem .3rem 0;
  font-weight: 600; font-size: .92rem; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.button--primary { background: var(--text); color: #111; }
.button--primary:hover { background: var(--accent); color: #111; }
.button--ghost { border: 1px solid var(--line); }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 74px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
  gap: clamp(2rem, 6vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__role { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); margin: .5rem 0 1.4rem; }
.hero__statement { margin: 0 0 .9rem; }
.hero__lede { margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; }

.hero__object { position: relative; display: grid; place-items: center; min-height: 380px; min-width: 0; }
.sheru-object { position: relative; margin: 0; width: min(100%, 480px); display: grid; place-items: center; }
.sheru-object__ring {
  position: absolute; inset: 6%; border: 1px solid rgba(142, 167, 255, .28);
  border-radius: 50%; pointer-events: none;
}
.sheru-object__ring::after {
  content: ''; position: absolute; inset: 14%; border: 1px solid rgba(142, 167, 255, .14); border-radius: 50%;
}
.sheru-object img { position: relative; width: min(100%, 420px); height: auto; margin-inline: auto; }
.sheru-object__tag {
  position: relative; display: flex; align-items: center; gap: .55em;
  justify-content: center; margin-top: 1.1rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.sheru-object__tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fd68a; flex: none; }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .sheru-object img {
      animation: sheru-drift linear;
      animation-timeline: scroll(root);
      animation-range: 0 60vh;
    }
  }
}
@keyframes sheru-drift {
  from { transform: translateY(-6px); }
  to { transform: translateY(14px); }
}

/* ---------- Split (two-column editorial) & prose ---------- */
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose p { font-size: 1.08rem; color: #d7d0c3; margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.back-link { color: var(--muted); font-size: .85rem; display: inline-block; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--accent); }

/* ---------- Section head ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: .8rem; font-size: 1.02rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line-soft); }
.section--quiet { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Spread patterns ---------- */
/* A — flagship: large image one side, type-led copy the other */
.spread-a {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.spread-a--reverse { grid-template-columns: 1.05fr 1fr; }
.spread-a--reverse .spread-a__media { order: 2; }
.spread-a__media img { width: 100%; height: auto; }

/* B — offset diptych: two unequal images, deliberately offset */
.spread-b { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.spread-b__primary img, .spread-b__secondary img { width: 100%; height: auto; }
.spread-b__secondary { margin-top: clamp(2rem, 6vw, 4.5rem); }

/* C — fragment / exhibit strip: shared media HEIGHT, natural WIDTH per asset's own aspect ratio.
   Default tier suits 4–5 item rows (NLDS, Book Covers). Row-size modifiers below let a row with
   fewer, larger works use more of the available width without ever stretching the artwork —
   width is always intrinsic (height:100%; width:auto) so the tier only ever changes the shared HEIGHT. */
.spread-c { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.1rem; }
.exhibit {
  flex: 0 0 auto; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-soft); padding: .5rem;
}
.exhibit__media { height: clamp(150px, 20vw, 220px); display: flex; align-items: center; justify-content: center; }
.exhibit__media img, .exhibit__media video {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block;
}
.exhibit figcaption {
  font-size: .76rem; color: var(--muted); padding: .55rem .15rem .15rem; letter-spacing: .02em;
}
.exhibit figcaption.figcaption--tag { color: var(--accent-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* Two-item row: a pair of works sharing one row can run much taller and still fit comfortably. */
.spread-c--duo { gap: clamp(1.4rem, 3vw, 2rem); }
.spread-c--duo .exhibit__media { height: clamp(220px, 27vw, 390px); }

/* Three-item row, square/near-square works (HDFC, GeM strip, Maate strip). */
.spread-c--trio .exhibit__media { height: clamp(195px, 24vw, 330px); }

/* Three-item row, landscape-leaning works (Metal, Moh Zewar) — shorter shared height so three
   wide items still fit one row without wrapping or overflowing. The container itself steps down
   at the 1280px breakpoint (1240px → 1080px), so these are tuned against that narrower figure,
   not just the wide-desktop max. */
.spread-c--trio-wide .exhibit__media { height: clamp(105px, 12vw, 190px); }

/* Three-item row, equal portrait/9:16 works (Smaaash): tall shared height reads as a deliberate
   three-piece reel presentation. Centered as a group since three portrait cards at a height that
   avoids looking cramped won't always reach the full container width — centering rather than
   left-aligning (or stretching) reads as intentional. */
.spread-c--trio-tall { justify-content: center; }
.spread-c--trio-tall .exhibit__media { height: clamp(280px, 34vw, 460px); }

/* E — dominant feature + stacked supporting pair (Smaaash): one tall featured video beside two
   smaller videos stacked in a column. The stack's total height tracks the feature's height via a
   custom property, so both sides read as one composition regardless of source aspect ratio —
   width is always intrinsic (height driven, width:auto), so nothing is ever stretched. */
.spread-e {
  --feature-h: clamp(340px, 38vw, 620px);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(1.4rem, 3vw, 2rem);
}
.spread-e__feature { flex: 0 0 auto; }
.spread-e__feature video, .spread-e__feature img { height: var(--feature-h); width: auto; max-width: 100%; display: block; }
.spread-e__stack { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.spread-e__stack video, .spread-e__stack img { height: calc((var(--feature-h) - 1.1rem) / 2); width: auto; max-width: 100%; display: block; }

/* F — hero + 2x2 grid (GeM, Lone Wolf): a large square hero (image or video) beside four equal
   supporting squares. The grid block's overall size tracks the hero's height via a custom
   property, so the two sides read as one balanced composition. Only safe to use where the
   supporting set is uniformly square/near-square — grid cells are natural aspect ratio (img
   width:100%, no cropping), not forced squares. */
.spread-f {
  --hero-h: clamp(320px, 34vw, 560px);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(1.2rem, 2.6vw, 1.8rem);
}
.spread-f__hero { flex: 0 0 auto; }
.spread-f__hero img, .spread-f__hero video { height: var(--hero-h); width: auto; max-width: 100%; display: block; }
.spread-f__grid {
  flex: 0 0 auto; width: var(--hero-h); max-width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.2vw, 1rem);
}
.spread-f__grid img { width: 100%; height: auto; display: block; }
.spread-f__grid figcaption { font-size: .76rem; color: var(--muted); padding-top: .5rem; letter-spacing: .02em; }

/* D — quiet text-led card */
.spread-d { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.quiet-card { border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
.quiet-card__media {
  height: clamp(180px, 20vw, 260px); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line-soft);
}
.quiet-card__media img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.quiet-card h3 { margin-bottom: .4rem; }
.quiet-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Subsection (client blocks within a larger section) ---------- */
.subsection { padding-top: clamp(2.4rem, 5vw, 3.4rem); margin-top: clamp(2.4rem, 5vw, 3.4rem); border-top: 1px solid var(--line-soft); }
.subsection__head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.subsection__head h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.subsection__head span { color: var(--muted); font-size: .9rem; }
.media-note { color: var(--muted); font-size: .78rem; margin-top: .8rem; }

/* ---------- SHERU case study: journey rail, term strip, documentary diptych, reveal ---------- */
.case-progress {
  display: flex; flex-wrap: wrap; margin-top: 2.4rem;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.case-progress a {
  flex: 1 1 auto; padding: .85rem 1.1rem; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border-right: 1px solid var(--line-soft); white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease);
}
.case-progress a:last-child { border-right: 0; }
.case-progress a:hover { color: var(--accent-2); background: rgba(142, 167, 255, .06); }

.term-strip {
  display: flex; flex-wrap: wrap; list-style: none; margin: 2.2rem 0 0; padding: 1.1rem 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.term-strip li { padding: .25rem 1.2rem; border-right: 1px solid var(--line-soft); color: var(--muted); font-size: .85rem; }
.term-strip li:last-child { border-right: 0; }
.term-strip strong { color: var(--accent-2); font-family: var(--mono); margin-right: .45em; }

/* Documentary diptych: both figures share one controlled HEIGHT (front is portrait, rear is
   near-square, so equal width would otherwise give them very different displayed heights). Width
   stays intrinsic to each image's own aspect ratio — nothing is ever stretched or cropped. */
.doc-diptych { display: flex; flex-wrap: wrap; gap: clamp(1.3rem, 3vw, 2.2rem); align-items: flex-start; margin-top: 2rem; }
.doc-diptych figure { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; border: 1px solid var(--line-soft); padding: .6rem; background: var(--panel); }
.doc-diptych__media { height: clamp(280px, 34vw, 460px); display: flex; align-items: center; justify-content: center; }
.doc-diptych__media img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.doc-diptych .fig-badge {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1;
  background: rgba(13, 13, 11, .74); padding: .35rem .6rem; backdrop-filter: blur(4px);
}

.reveal-figure { margin-top: 2.4rem; text-align: center; }
.reveal-figure img { max-height: 640px; width: auto; max-width: 100%; margin-inline: auto; }

@media (max-width: 768px) {
  .case-progress { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .case-progress a { flex: 0 0 auto; }
  .doc-diptych { align-items: stretch; }
  .doc-diptych figure { flex-basis: 100%; max-width: 420px; margin-inline: auto; }
  .doc-diptych__media { height: auto; }
  .doc-diptych__media img { height: auto; width: 100%; }
  .reveal-figure img { max-height: 420px; }
}

/* ---------- Documentation panel (honest, art-directed placeholder) ---------- */
.doc-panel {
  position: relative; padding: clamp(1.6rem, 4vw, 2.6rem);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.02) 12px 13px),
    var(--panel);
  border: 1px solid var(--line-soft);
}
.doc-panel::before, .doc-panel::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-color: rgba(142,167,255,.4); pointer-events: none;
}
.doc-panel::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.doc-panel::after { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.doc-panel h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: .5rem 0 .4rem; }
.doc-panel p { color: var(--muted); font-size: .95rem; max-width: 46ch; }

/* ---------- Media / captions ---------- */
figure { margin: 0; }
figcaption { color: var(--muted-2); font-size: .78rem; margin-top: .7rem; letter-spacing: .01em; }
.figcaption--tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { padding: 0 0 2rem 1.4rem; position: relative; }
.timeline li:before {
  content: ''; position: absolute; left: -6px; top: .4rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
}
.timeline li[data-current] :before, .timeline li[data-current]::before { background: var(--accent-2); }
.timeline time, .timeline span { display: block; color: var(--muted); }
.timeline strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }

.tag-list, .practice-list {
  display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.1rem 0; list-style: none;
}
.tag-list li, .practice-list li {
  border: 1px solid var(--line); padding: .5rem .75rem; border-radius: 999px;
  color: var(--muted); font-size: .82rem;
}

/* ---------- Contact / footer ---------- */
.contact { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 3.5rem); margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.contact-links a {
  display: flex; flex-direction: column; gap: .4rem;
  border-bottom: 1px solid var(--line); padding-bottom: .8rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  transition: border-color .2s var(--ease);
}
.contact-links a:hover { border-color: var(--accent); }
.contact-links a span {
  font-family: var(--sans); font-size: .82rem; color: var(--muted);
  letter-spacing: .01em;
}
.contact-links a:hover span { color: var(--accent-2); }
.site-footer {
  display: flex; justify-content: space-between; gap: 2rem;
  padding-block: 2.2rem; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: .9rem;
}
.site-footer div:last-child { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --max: 1080px; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: 2.5rem; }
  .spread-a, .spread-b { gap: 1.6rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; inset: 74px var(--pad) auto var(--pad); display: none;
    flex-direction: column; align-items: flex-start; gap: .9rem;
    background: #100f0c; border: 1px solid var(--line); padding: 1.1rem;
  }
  .nav-menu.is-open { display: flex; }

  .hero { grid-template-columns: 1fr; text-align: left; padding-block: 2.5rem 3rem; }
  .hero__object { order: -1; min-height: 260px; margin-bottom: 1rem; }
  .sheru-object { width: min(100%, 260px); }
  .sheru-object img { width: min(100%, 220px); }

  .spread-a, .spread-a--reverse { grid-template-columns: 1fr; }
  .spread-a--reverse .spread-a__media { order: 0; }
  .spread-b { grid-template-columns: 1fr; }
  .spread-b__secondary { margin-top: 1.2rem; }

  /* E/F: stack fully — feature/hero on top, supporting media below, in reading order */
  .spread-e { flex-direction: column; }
  .spread-f { flex-direction: column; }
  .spread-f__hero img, .spread-f__hero video { width: 100%; height: auto; }
  .spread-f__grid { width: 100%; }
  .split { grid-template-columns: 1fr; }

  /* C/D: exhibit strip & quiet-card media are height-driven on desktop (a row of
     items sharing one height, each keeping its own intrinsic width). On a narrow
     viewport that leaves every item small with wasted space beside it, so switch
     to the same principle already used above for spread-f (GeM/Lone Wolf): a
     full-width vertical stack, width-driven with auto height. */
  .spread-c { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .exhibit { width: 100%; }
  .exhibit__media,
  .spread-c--duo .exhibit__media,
  .spread-c--trio .exhibit__media,
  .spread-c--trio-wide .exhibit__media,
  .spread-c--trio-tall .exhibit__media { height: auto; }
  .exhibit__media img, .exhibit__media video { width: 100%; height: auto; }
  .quiet-card__media { height: auto; }
  .quiet-card__media img { width: 100%; height: auto; }

  /* Inter-project rhythm: .subsection's clamp() is vw-driven and bottoms out at its
     2.4rem floor on any phone width, which read as barely-there once media became
     full-width. Lock mobile to the same 3.4rem ceiling the desktop system already
     uses at wide viewports, so separate works stay clearly distinct blocks. */
  .subsection { margin-top: 3.4rem; padding-top: 3.4rem; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .spread-e { --feature-h: clamp(220px, 56vw, 320px); }
  .spread-f { --hero-h: clamp(200px, 50vw, 300px); }
}

/* Short mobile viewports (e.g. 400x642): the reordered hero above puts SHERU
   ahead of the name/role within the very first screen. Below this height,
   restore natural document order — name/role/statement first — and trim the
   object so identity clears the fold before SHERU, without shrinking SHERU
   on taller phones or touching the desktop composition. */
@media (max-width: 860px) and (max-height: 700px) {
  .hero { padding-block: 1.8rem 2.2rem; }
  .hero__object { order: 0; min-height: 0; margin-top: 1.8rem; margin-bottom: 0; }
  .sheru-object { width: min(100%, 190px); }
  .sheru-object img { width: min(100%, 170px); }
  .sheru-object__tag { margin-top: .7rem; }
}
