/*
Theme Name: Josh Croft D-ab
Theme URI: https://joshuamcroft.com
Author: Josh Croft
Description: Public-facing multipage theme (Home / Work / Life / Contact) from D-ab-blend. Does not modify Vault or Codex content. Accent #4E78A0.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: josh-croft-dab
Tags: custom-menu, custom-logo, featured-images, one-column
*/

/* Design: Organic Modern + product-studio calm · Newsreader + Helvetica Neue · cursor glow */

:root {
  --accent: #4E78A0;
  --accent-soft: #6A92B5;
  --accent-muted: rgba(78, 120, 160, 0.12);
  --accent-glow: rgba(78, 120, 160, 0.22);
  --bg: #F7F4EF;
  --bg-elevated: #FFFCF7;
  --bg-deep: #EFE9E0;
  --stone: #E8E2D9;
  --stone-deep: #D4CBC4;
  --ink: #2A2A28;
  --ink-soft: #5C5A55;
  --ink-faint: #8A877E;
  --line: rgba(42, 42, 40, 0.1);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1140px;
  --narrow: 640px;
  --header-h: 5.1rem;
  --cursor-x: 50%;
  --cursor-y: 50%;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 0;
  animation: pageIn 0.7s var(--ease-out) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, .btn { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, var(--narrow)); margin-inline: auto; }

/* —— Progress cue —— */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
  transition: width 0.05s linear;
}

/* —— Cursor glow (optional, desktop) —— */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  mix-blend-mode: multiply;
}
body.has-pointer .cursor-glow.active { opacity: 1; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 239, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
  z-index: 2;
}
.logo {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); font-weight: 400; }
/* Home only: brand text omitted (name already in hero) */
.logo-home-empty {
  width: 2.5rem;
  min-height: 1.25rem;
  font-size: 0;
  color: transparent;
  pointer-events: auto;
}
.page-home .nav { justify-content: flex-end; }
.page-home .logo-home-empty {
  position: absolute;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
}
.nav-links {
  display: flex;
  gap: 2.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 2rem; height: 2rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* —— Reveal system (stagger-ready) —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: none; }
/* Above-fold hero: avoid empty first paint while IO catches up */
.hero .reveal,
.hero .reveal-scale {
  opacity: 1;
  transform: none;
}

/* —— Shared type —— */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.65;
}
.section { padding: 4.5rem 0; }
.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg-elevated);
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(78, 120, 160, 0.55);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn-ghost:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
  transform: translateX(2px);
}

/* —— Magnetic / lift cards —— */
.card-lift {
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.35s;
  will-change: transform;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -28px rgba(42, 42, 40, 0.4);
}

/* —— Image hover scale (secondary; prefer .story-bleed for primaries) —— */
.img-zoom {
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--stone);
}
.img-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease);
}
.img-zoom:hover img { transform: scale(1.045); }

/* —— HOME: Split hero (integrated stack, not floating cards) —— */
.hero {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  padding: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 0.5rem);
  min-height: calc(100svh - var(--header-h) - 0.5rem);
  position: relative;
  z-index: 1;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 0.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.4vw, 4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin-bottom: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.75rem;
}

.hero-stack {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  align-items: end;
  position: relative;
}
/* Desktop/tablet: clean side-by-side with breathing room (no absolute overlap) */
.hero-photo-main {
  position: relative;
  border-radius: 1.35rem 0.55rem 1.2rem 0.55rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  width: 100%;
  min-height: 0;
  height: auto;
  background: var(--stone);
  box-shadow: 0 22px 50px -28px rgba(42, 42, 40, 0.28);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  z-index: 1;
}
.hero-photo-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(247,244,239,0.35) 0%, transparent 38%),
    radial-gradient(ellipse at 70% 90%, rgba(247,244,239,0.55), transparent 55%);
  z-index: 2;
}
.hero-photo-main .parallax-inner {
  width: 100%;
  height: 115%;
  margin-top: -7.5%;
  will-change: transform;
}
.hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 1.2s var(--ease);
}
.hero-photo-side {
  position: relative;
  border-radius: 0.95rem 1.2rem 0.65rem 1rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  width: 100%;
  min-height: 0;
  height: auto;
  background: var(--stone);
  margin-bottom: 0;
  margin-left: 0;
  z-index: 1;
  box-shadow: 0 18px 40px -28px rgba(42, 42, 40, 0.3);
  outline: none;
  align-self: end;
}
.hero-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1.2s var(--ease);
}
.hero-photo-side:hover img,
.hero-photo-main:hover img { transform: scale(1.04); }
.hero-caption {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  padding: 0.55rem 0.75rem;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Mission band */
.mission {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.mission blockquote {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 38rem;
  color: var(--ink);
}
.mission cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Work cards grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.work-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.45rem;
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-muted),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.work-card:hover::before { opacity: 1; }
.work-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.work-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}
.work-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.work-card .meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Book feature */
.book-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.book-mark {
  aspect-ratio: 3/4;
  border-radius: 0.85rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, #3a5d7e 55%, #2A2A28 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #F7F4EF;
  box-shadow: 0 28px 56px -32px rgba(42, 42, 40, 0.45);
  position: relative;
  overflow: hidden;
}
.book-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.book-mark:hover::after { transform: translateX(100%); }
.book-mark .bm-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}
.book-mark h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.book-mark .bm-author {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.book-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.book-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 32rem;
}
.book-copy .note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1.25rem;
}


/* —— Integrated visual stories (full-bleed bands) —— */
.story-bleed {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 2.5rem 0 0;
  margin-left: calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.story-bleed-media {
  position: relative;
  width: 100%;
  max-height: min(92vh, 1100px);
  min-height: 420px;
  overflow: hidden;
}
.story-bleed-media img {
  width: 100%;
  height: min(92vh, 1100px);
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.story-bleed-media::before,
.story-bleed-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
  z-index: 2;
}
/* Soft vignette / mask into page ground */
.story-bleed-media::before {
  top: 0; height: 14%;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.story-bleed-media::after {
  bottom: 0; height: 16%;
  background: linear-gradient(to top, var(--bg), transparent);
}
.story-bleed-home .story-bleed-media {
  /* Portrait Venice: let natural aspect breathe — couple + plaza, not letterbox crop */
  max-height: none;
  min-height: min(92vh, 980px);
  height: auto;
}
.story-bleed-home .story-bleed-media img {
  width: 100%;
  height: auto;
  min-height: min(92vh, 980px);
  max-height: min(135vh, 1680px);
  object-fit: cover;
  object-position: center 48%;
}
.story-bleed-home .story-bleed-media::before { height: 8%; }
.story-bleed-home .story-bleed-media::after { height: 10%; }

.story-bleed-life .story-bleed-media img {
  object-position: 42% 38%;
  height: min(92vh, 1100px);
  min-height: 560px;
}
.story-bleed-life .story-bleed-media {
  max-height: none;
  min-height: min(88vh, 1040px);
  height: min(92vh, 1100px);
}

.story-bleed-work {
  background: linear-gradient(180deg, var(--bg) 0%, #1c1820 18%, #1c1820 82%, var(--bg) 100%);
}
.story-bleed-work .story-bleed-media {
  display: grid;
  place-items: center;
  max-height: none;
  min-height: min(78vh, 900px);
  height: auto;
  padding: 2.5rem 1.5rem 3rem;
  background: transparent;
}
.story-bleed-work .story-bleed-media img {
  width: min(42vw, 460px);
  height: min(78vh, 880px);
  min-height: 520px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 1.25rem 0.45rem 1.25rem 0.55rem;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.65);
  filter: none;
}
.story-bleed-work .story-bleed-media::before {
  height: 8%;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.story-bleed-work .story-bleed-media::after {
  height: 12%;
  background: linear-gradient(to top, var(--bg), transparent);
}

.story-bleed-contact {
  margin-top: 1.5rem;
  margin-bottom: 0;
  background: transparent;
}
.story-bleed-contact .story-bleed-media img {
  object-position: center 28%;
  height: min(72vh, 780px);
  min-height: 420px;
}
.story-bleed-contact .story-bleed-media {
  max-height: none;
  min-height: min(68vh, 720px);
  height: min(72vh, 780px);
}

/* CEC logo (Work) */
.cec-logo-wrap {
  margin-bottom: 1.15rem;
  max-width: 320px;
}
.cec-logo-wrap.cec-logo-xl {
  max-width: min(100%, 420px);
  margin-bottom: 1.5rem;
}
.cec-logo {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
  filter: none;
}

/* Family strip */
.family-strip {
  padding: 1rem 0 4.5rem;
}
.family-strip .strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.family-strip figure {
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--stone);
  position: relative;
}
.family-strip figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.family-strip figure:hover img { transform: scale(1.04); }
.family-strip .wide { aspect-ratio: 16/10; min-height: 280px; }
.family-strip .tall { aspect-ratio: 4/5; min-height: 280px; }
.family-strip .strip-grid-solo {
  grid-template-columns: 1fr;
  max-width: 42rem;
  margin: 0 auto;
}
.family-strip .feature {
  aspect-ratio: 3/4;
  min-height: 360px;
  max-height: 720px;
}
.family-strip .strip-caption {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.family-strip .strip-caption h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.family-strip .strip-caption p {
  color: var(--ink-soft);
  max-width: 28rem;
  font-size: 0.98rem;
}

/* —— WORK page —— */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  max-width: 38rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.work-list { padding-bottom: 3rem; }
.work-row {
  display: grid;
  grid-template-columns: 4rem 1fr 9rem;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background 0.35s, padding-left 0.4s var(--ease);
  border-radius: 0.5rem;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row:hover { padding-left: 0.5rem; }
.work-row .num {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 400;
}
.work-row h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.work-row p { color: var(--ink-soft); max-width: 36rem; font-size: 0.98rem; }
.work-row .side {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.5;
}

/* —— LIFE page —— */
.life-hero-photo {
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 21/9;
  min-height: 240px;
  margin-bottom: 3rem;
  background: var(--stone);
}
.life-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.life-chapters { padding-bottom: 3rem; }
.chapter {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.chapter:last-child { border-bottom: 1px solid var(--line); }
.ch-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding-top: 0.35rem;
}
.chapter h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.chapter p {
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 0.85rem;
}
.chapter-visual {
  margin-top: 1.25rem;
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 520px;
  background: var(--stone);
}
.chapter-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease);
}
.chapter-visual:hover img { transform: scale(1.04); }

.practice-pills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.practice-pills span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* —— ABOUT —— */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
}
.about-photo {
  border-radius: 1.15rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--stone);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.about-body p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 34rem;
}
.about-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 0.85rem;
  letter-spacing: -0.015em;
}
.glance {
  display: grid;
  gap: 0.65rem;
}
.glance li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.glance strong {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

/* —— CONTACT —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}
.contact-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.contact-card .link {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.contact-card .link:hover { border-bottom-color: var(--accent); }
.form-note {
  font-size: 0.85rem !important;
  color: var(--ink-faint) !important;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.contact-banner {
  /* Prefer .story-bleed-contact; kept for compatibility */
  border-radius: 0;
  overflow: hidden;
  max-height: 420px;
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
  background: var(--bg-deep);
}
.contact-banner img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 20%;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  margin-top: 1rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.footer-meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; opacity: 1; }
  .reveal, .reveal-left, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .img-zoom img,
  .hero-photo-main img,
  .hero-photo-side img,
  .family-strip figure img,
  .chapter-visual img,
  .story-bleed-media img,
  .parallax-inner {
    transition: none !important;
    transform: none !important;
  }
  .card-lift:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .cursor-glow { display: none !important; }
  .scroll-progress { display: none; }
  .book-mark::after { display: none; }
}


/* Desktop/tablet (≥901): lift photos into parent hero grid — clean 3-col, no overlap */
@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(200px, 0.8fr) minmax(240px, 1fr) minmax(200px, 0.8fr);
    grid-template-areas: "copy main side";
    gap: clamp(2rem, 3.4vw, 3.25rem);
    align-items: end;
  }
  .hero-copy {
    grid-area: copy;
    align-self: center;
    z-index: 2;
  }
  .hero-stack {
    display: contents; /* photos participate in .hero grid — no nested squeeze */
  }
  .hero-photo-main {
    grid-area: main;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    z-index: 1;
  }
  .hero-photo-side {
    grid-area: side;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    margin-left: 0;
    z-index: 1;
    align-self: end;
    justify-self: stretch;
  }
}
@media (min-width: 1280px) {
  .hero {
    gap: clamp(2.25rem, 3.2vw, 3.5rem);
  }
}
@media (min-width: 1440px) {
  .hero {
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr) minmax(220px, 0.9fr);
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  /* Photo fills first screen; copy overlays bottom of image — no cream void */
  .hero {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: calc(100svh - var(--header-h));
    height: calc(100svh - var(--header-h));
    padding: 0;
    gap: 0;
    align-items: stretch;
    position: relative;
  }
  .hero-stack {
    order: -1;
    max-width: none;
    width: 100%;
    height: 100%;
    min-height: calc(100svh - var(--header-h));
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    position: absolute;
    inset: 0;
  }
  .hero-photo-main {
    border-radius: 0;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-photo-main .parallax-inner {
    height: 100%;
    margin-top: 0;
  }
  .hero-photo-main::after {
    background: linear-gradient(
      to top,
      rgba(247, 244, 239, 0.96) 0%,
      rgba(247, 244, 239, 0.55) 28%,
      transparent 58%
    );
  }
  .hero-photo-side { display: none; }
  .hero-copy {
    position: relative;
    z-index: 4;
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 0 0 2rem;
    align-self: end;
    color: var(--ink);
  }
  .hero h1 { margin-bottom: 0; }
  .hero-actions { margin-top: 1.15rem; }
  .work-grid { grid-template-columns: 1fr; }
  .book-feature { grid-template-columns: 1fr; gap: 2rem; }
  .book-mark { max-width: 280px; }
  .family-strip .strip-grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 3rem 1fr; }
  .work-row .side { grid-column: 2; text-align: left; margin-top: -0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 0.5rem; }
  .life-hero-photo { aspect-ratio: 16/9; }
  .story-bleed-media img { height: min(78vh, 720px); min-height: 360px; }
  .story-bleed-home .story-bleed-media img {
    height: auto;
    min-height: min(88vh, 820px);
    max-height: min(120vh, 1200px);
    object-fit: cover;
    object-position: center 48%;
  }
  .story-bleed-life .story-bleed-media img { height: min(82vh, 780px); min-height: 440px; }
  .story-bleed-work .story-bleed-media {
    min-height: auto;
    padding: 1.5rem 1rem 2rem;
  }
  .story-bleed-work .story-bleed-media img {
    width: min(78vw, 340px);
    height: min(70vh, 640px);
    min-height: 420px;
  }
  .story-bleed-home .story-bleed-media,
  .story-bleed-life .story-bleed-media,
  .story-bleed-work .story-bleed-media {
    max-height: none;
    height: auto;
    min-height: 440px;
  }
  .story-bleed-home .story-bleed-media { min-height: min(88vh, 820px); height: auto; max-height: none; }
  .story-bleed-contact .story-bleed-media img { height: min(62vh, 560px); min-height: 320px; }
  .story-bleed-contact .story-bleed-media { min-height: min(58vh, 520px); height: min(62vh, 560px); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(247, 244, 239, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .wrap { width: min(100% - 2rem, var(--max)); }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.7rem); }
}


/* Book covers */
.book-covers {
  position: relative;
  min-height: 28rem;
  display: grid;
  place-items: center;
}
.book-cover {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(42,42,40,0.18), 0 2px 8px rgba(42,42,40,0.08);
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), box-shadow 0.55s;
  background: #fff;
}
.book-cover img { width: 100%; height: auto; display: block; }
.book-cover.primary {
  width: min(78%, 340px);
  z-index: 2;
  transform: rotate(-2.5deg);
}
.book-cover.secondary {
  position: absolute;
  width: min(62%, 270px);
  right: 2%;
  bottom: 4%;
  z-index: 1;
  transform: rotate(6deg);
  opacity: 0.96;
}
.book-cover:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: 0 32px 70px rgba(78,120,160,0.28);
  z-index: 3;
}
@media (max-width: 720px) {
  .book-covers { min-height: 18rem; margin-bottom: 1.5rem; }
  .book-cover.primary { width: min(70%, 240px); }
  .book-cover.secondary { width: min(52%, 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .book-cover { transition: none; }
}

.work-book-thumb { margin-bottom: 0.85rem; }
.work-book-thumb img {
  width: 96px; height: auto; border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(42,42,40,0.15);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.work-book-thumb a:hover img { transform: translateY(-4px) rotate(-1deg); }

/* —— WORK: Energy feature & geometric panels —— */
.energy-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1rem 0 3rem;
  margin-bottom: 1rem;
}
.energy-visual {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 40%, var(--accent-muted), transparent 60%),
    linear-gradient(160deg, var(--bg-elevated), var(--bg-deep));
  border: 1px solid transparent;
  border-radius: 1.35rem 0.4rem 1.35rem 0.55rem;
  padding: 3rem 2.25rem;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.energy-visual-xl {
  min-height: min(52vh, 480px);
  padding: 3.5rem 2.5rem;
  border-radius: 1.5rem 0.45rem 1.5rem 0.6rem;
}
.energy-visual-xl .battery-svg { width: min(100%, 340px); }
.energy-visual-tall {
  min-height: 100%;
  height: 100%;
  padding: 3rem;
}
.energy-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.energy-orbs span {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: orbFloat 8s var(--ease) infinite;
}
.energy-orbs span:nth-child(1) {
  width: 120px; height: 120px;
  top: -20px; left: -10px;
  opacity: 0.5;
}
.energy-orbs span:nth-child(2) {
  width: 80px; height: 80px;
  bottom: 10%; right: 12%;
  animation-delay: -2.5s;
  opacity: 0.4;
}
.energy-orbs span:nth-child(3) {
  width: 48px; height: 48px;
  top: 28%; right: 8%;
  animation-delay: -5s;
  opacity: 0.35;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.battery-svg {
  width: min(100%, 320px);
  height: auto;
  position: relative;
  z-index: 1;
  color: var(--accent);
}
.bat-cell {
  animation: cellCharge 3.6s var(--ease) infinite;
  transform-origin: center bottom;
}
.bat-cell.cell-1 { animation-delay: 0s; }
.bat-cell.cell-2 { animation-delay: 0.45s; }
.bat-cell.cell-3 { animation-delay: 0.9s; }
.bat-cell.cell-4 { animation-delay: 1.35s; }
@keyframes cellCharge {
  0%, 100% { opacity: 0.35; }
  40%, 70% { opacity: 1; }
}
.energy-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
}
.energy-copy > p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.15rem;
  font-size: 1rem;
  line-height: 1.6;
}
.energy-points {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.energy-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.energy-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}
.energy-meta {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
}

.geom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-bottom: 4rem;
}
.geom-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.3rem 1.4rem;
  overflow: hidden;
}
.geom-panel h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 0.5rem;
}
.geom-panel p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.geom-art {
  height: 140px;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--accent-muted), transparent 70%);
  position: relative;
  overflow: hidden;
  color: var(--accent);
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 14px;
}
.art-grid span {
  background: var(--accent);
  border-radius: 4px;
  opacity: 0.35;
  animation: gridPulse 4s var(--ease) infinite;
}
.art-grid span:nth-child(odd) { opacity: 0.55; animation-delay: -1.2s; }
.art-grid span:nth-child(5) { opacity: 0.85; grid-column: 2; }
@keyframes gridPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}
.art-pulse {
  display: grid;
  place-items: center;
}
.art-pulse svg { width: 70%; height: auto; }
.pulse-line {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: drawPulse 3.5s var(--ease) infinite;
}
@keyframes drawPulse {
  0% { stroke-dashoffset: 180; opacity: 0.4; }
  40%, 60% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -180; opacity: 0.4; }
}
.art-rings {
  display: grid;
  place-items: center;
}
.art-rings i {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.35;
  animation: ringExpand 4.5s var(--ease) infinite;
}
.art-rings i:nth-child(1) { width: 28px; height: 28px; animation-delay: 0s; }
.art-rings i:nth-child(2) { width: 48px; height: 48px; animation-delay: -1.5s; }
.art-rings i:nth-child(3) { width: 68px; height: 68px; animation-delay: -3s; }
@keyframes ringExpand {
  0%, 100% { transform: scale(0.92); opacity: 0.25; }
  50% { transform: scale(1.05); opacity: 0.55; }
}

/* —— LIFE: Hobby cards —— */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  padding-bottom: 2rem;
}
.hobby-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.65rem 1.5rem 1.55rem;
  position: relative;
  overflow: hidden;
}
.hobby-card-wide { grid-column: 1 / -1; }
.hobby-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hobby-icon svg { width: 100%; height: 100%; }
.hobby-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.hobby-card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.hobby-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36rem;
}
.reading-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}
.reading-list li {
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 0.55rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  max-width: 28rem;
}
.reading-list em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

.life-motif {
  padding: 1.5rem 0 3.5rem;
  text-align: center;
}
.life-motif-bars {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.life-motif-bars span {
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.35;
  animation: barWave 2.8s var(--ease) infinite;
}
.life-motif-bars span:nth-child(1) { animation-delay: 0s; }
.life-motif-bars span:nth-child(2) { animation-delay: 0.15s; opacity: 0.5; }
.life-motif-bars span:nth-child(3) { animation-delay: 0.3s; opacity: 0.75; }
.life-motif-bars span:nth-child(4) { animation-delay: 0.45s; opacity: 0.5; }
.life-motif-bars span:nth-child(5) { animation-delay: 0.6s; }
@keyframes barWave {
  0%, 100% { transform: scaleX(1); opacity: 0.3; }
  50% { transform: scaleX(1.25); opacity: 0.8; }
}
.life-motif-caption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .energy-feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .geom-row { grid-template-columns: 1fr; }
  .hobby-grid { grid-template-columns: 1fr; }
  .hobby-card-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .energy-orbs span,
  .bat-cell,
  .art-grid span,
  .pulse-line,
  .art-rings i,
  .life-motif-bars span {
    animation: none !important;
  }
  .bat-cell { opacity: 0.75; }
  .pulse-line { stroke-dashoffset: 0; opacity: 1; }
}

/* —— HOME: Explore Work CTA panel —— */
.explore-work {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
  margin: 3.5rem 0 1rem;
  border-radius: 1.4rem 0.45rem 1.4rem 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  min-height: 420px;
  position: relative;
}
.explore-work:hover { color: inherit; }
.explore-work-visual {
  position: relative;
  background:
    radial-gradient(ellipse at 35% 45%, var(--accent-muted), transparent 62%),
    linear-gradient(160deg, var(--bg-deep), var(--bg-elevated));
  color: var(--accent);
  display: grid;
  place-items: center;
  padding: 2.5rem 2rem;
  overflow: hidden;
  min-height: 360px;
}
.explore-work-visual .battery-svg { width: min(100%, 300px); }
.explore-work-visual .energy-orbs { position: absolute; inset: 0; pointer-events: none; }
.explore-work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2.25rem;
  background: var(--bg-elevated);
}
.explore-work-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.25rem 0 1.5rem;
}
.explore-work .explore-cta {
  align-self: flex-start;
  font-size: 1rem;
  color: var(--accent);
  border-bottom-color: transparent;
}
.explore-work:hover .explore-cta {
  color: var(--ink);
  border-bottom-color: var(--accent);
  transform: translateX(4px);
}
.explore-work:hover .explore-work-visual .battery-svg {
  transform: scale(1.04);
}
.explore-work-visual .battery-svg {
  transition: transform 0.7s var(--ease);
  position: relative;
  z-index: 1;
}

.book-feature-tight {
  padding: 3rem 0 2.5rem;
}
.book-feature-tight .book-copy p { margin-bottom: 0.35rem; }
.book-feature-tight .book-copy h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.page-hero-tight {
  padding: 3rem 0 1.75rem;
  max-width: 28rem;
}
.page-hero-tight .lede { margin-top: 0.5rem; }

/* —— CONTACT: Minimal pills —— */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.35s var(--ease);
}
.contact-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -22px rgba(78, 120, 160, 0.55);
}

/* —— LIFE: Interactive explore tiles —— */
.life-explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-bottom: 1.5rem;
}
.life-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.55rem 1.4rem 1.4rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  min-height: 14rem;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.35s,
    min-height 0.45s var(--ease);
}
.life-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-muted),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.life-tile:hover::before,
.life-tile.is-open::before { opacity: 1; }
.life-tile-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.life-tile .hobby-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.life-tile h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.life-tile-hint {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.25s, opacity 0.3s;
}
.life-tile:hover .life-tile-hint,
.life-tile.is-open .life-tile-hint { color: var(--accent); }
.life-tile-detail {
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.35s;
  margin-top: 0;
}
.life-tile-detail p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}
.life-tile.is-open .life-tile-detail {
  max-height: 10rem;
  opacity: 1;
  margin-top: 1rem;
}
.life-tile.is-open .life-tile-hint { opacity: 0; height: 0; padding: 0; overflow: hidden; }

/* Hover peek on fine pointers */
@media (hover: hover) and (pointer: fine) {
  .life-tile:not(.life-tile-reading):hover .life-tile-detail {
    max-height: 10rem;
    opacity: 1;
    margin-top: 1rem;
  }
  .life-tile:not(.life-tile-reading):hover .life-tile-hint {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
  }
}

.life-tile-reading {
  grid-column: 1 / -1;
  cursor: default;
  min-height: auto;
  padding: 1.75rem 1.5rem 0;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
}
.life-tile-reading::before { display: none; }
.life-tile-reading .life-tile-face {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}
.life-tile-reading .hobby-icon { margin-bottom: 0; }

/* Desk scene — convincing wood top, edge thickness, books on plane */
.reading-desk .desk-scene {
  position: relative;
  z-index: 1;
  margin: 0.35rem -0.15rem 0;
  padding: 0;
}

/* Soft warm lamp glow above the desk */
.reading-desk .desk-lamp {
  position: absolute;
  top: -1.5rem;
  right: 12%;
  width: min(42%, 280px);
  height: 7rem;
  background:
    radial-gradient(ellipse at 70% 100%, rgba(255, 220, 160, 0.55) 0%, rgba(255, 200, 120, 0.18) 42%, transparent 72%);
  pointer-events: none;
  z-index: 2;
  filter: blur(2px);
}

.reading-desk .desk-top {
  position: relative;
  z-index: 1;
  border-radius: 1.1rem 1.1rem 0.15rem 0.15rem;
  padding: 2.75rem 1.75rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 236, 210, 0.22) 0%, transparent 30%),
    linear-gradient(90deg, rgba(40, 22, 10, 0.18), transparent 10%, transparent 90%, rgba(40, 22, 10, 0.14)),
    url("assets/desk-wood.jpg") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 215, 0.4),
    inset 0 -3px 10px rgba(40, 22, 10, 0.22);
  overflow: visible;
  transform: perspective(1200px) rotateX(5deg);
  transform-origin: 50% 100%;
}

.reading-desk .desk-grain {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      88deg,
      transparent 0,
      transparent 18px,
      rgba(40, 22, 10, 0.06) 18px,
      rgba(40, 22, 10, 0.06) 19px,
      transparent 19px,
      transparent 47px,
      rgba(255, 230, 190, 0.05) 47px,
      rgba(255, 230, 190, 0.05) 49px
    ),
    radial-gradient(ellipse at 30% 20%, rgba(255, 230, 190, 0.2), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(30, 15, 8, 0.12), transparent 45%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.reading-desk .desk-plane {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.75rem, 4.5vw, 3.75rem);
  min-height: clamp(24rem, 52vh, 38rem);
  padding: 0.5rem 0.5rem 0.25rem;
}

/* Contact shadow where books meet the wood */
.reading-desk .desk-plane::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.15rem;
  height: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 10, 5, 0.5), transparent 72%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.reading-cover,
.desk-book {
  margin: 0;
  position: relative;
  z-index: 1;
}

.desk-book {
  width: min(48vw, 340px);
  transform-origin: 50% 100%;
}

.desk-book-a {
  transform: rotate(-3.2deg) translateY(0);
}

.desk-book-b {
  transform: rotate(3.8deg) translateY(0.15rem);
  width: min(46vw, 320px);
}

.desk-book::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: -0.35rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 10, 5, 0.55), transparent 70%);
  filter: blur(5px);
  z-index: -1;
  pointer-events: none;
}

.desk-book img,
.reading-cover img {
  width: 100%;
  height: auto;
  border-radius: 0.15rem 0.45rem 0.4rem 0.15rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    -4px 0 0 rgba(30, 15, 8, 0.22),
    0 1px 2px rgba(20, 10, 5, 0.25),
    10px 22px 40px -12px rgba(20, 10, 5, 0.55),
    4px 8px 14px -6px rgba(20, 10, 5, 0.35);
  transition: transform 0.55s var(--ease), box-shadow 0.55s;
  background: var(--stone);
  display: block;
}

.desk-book:hover img,
.reading-cover:hover img {
  transform: translateY(-16px) scale(1.035);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    -4px 0 0 rgba(30, 15, 8, 0.2),
    12px 32px 52px -10px rgba(20, 10, 5, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.desk-book figcaption,
.reading-cover figcaption {
  margin-top: 0.95rem;
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.92);
  text-align: center;
  text-shadow: 0 1px 3px rgba(20, 10, 5, 0.55);
}

.desk-book figcaption em,
.reading-cover figcaption em {
  font-family: var(--serif);
  font-style: italic;
  color: #FFFCF7;
}

/* Small desk mug — quiet prop, not clutter */
.desk-object.desk-mug {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2.5rem);
  bottom: 1.6rem;
  width: 2.1rem;
  height: 2.55rem;
  border-radius: 0.35rem 0.35rem 0.55rem 0.55rem;
  background:
    linear-gradient(160deg, #e8e0d4 0%, #c4b8a6 45%, #9a8b78 100%);
  box-shadow:
    0 10px 18px -8px rgba(20, 10, 5, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 0;
  opacity: 0.92;
}
.desk-object.desk-mug::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 1.1rem;
  border: 2px solid #b0a292;
  border-left: none;
  border-radius: 0 0.7rem 0.7rem 0;
}

/* Desk edge / thickness under the top */
.reading-desk .desk-edge {
  position: relative;
  z-index: 0;
  height: 1.85rem;
  margin: 0 0.35rem;
  transform: perspective(1200px) rotateX(5deg);
  transform-origin: 50% 0%;
}
.reading-desk .desk-edge-face {
  display: block;
  height: 100%;
  border-radius: 0 0 0.65rem 0.65rem;
  background:
    linear-gradient(180deg, #7a4e30 0%, #5a3820 35%, #3f2816 70%, #2a1a10 100%);
  box-shadow:
    inset 0 3px 4px rgba(255, 220, 180, 0.16),
    inset 0 -8px 14px rgba(0, 0, 0, 0.4),
    0 10px 24px -8px rgba(20, 10, 5, 0.45);
}
.reading-desk .desk-edge-shadow {
  display: block;
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.85rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(30, 18, 10, 0.4), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Work visual layout */
.work-role {
  font-size: 1.05rem !important;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.work-hero-band {
  padding: 0.5rem 0 2.5rem;
}
.work-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}
.work-cec-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.25rem 0.4rem 1.25rem 0.55rem;
  min-height: min(42vh, 420px);
}
.geom-row-visual {
  padding-top: 2.5rem;
}
.geom-row-visual .geom-panel {
  padding: 1.5rem 1.35rem 1.55rem;
  min-height: 14rem;
}
.geom-row-visual .geom-panel h3 {
  margin-top: 1.1rem;
  margin-bottom: 0;
  font-size: 1.35rem;
}

/* Work funding statement band */
.work-statement {
  margin: 1.5rem 0 4.5rem;
  padding: clamp(3.5rem, 10vh, 6.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(78, 120, 160, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line);
  border-radius: 1.5rem 0.45rem 1.5rem 0.55rem;
  position: relative;
  overflow: hidden;
}
.work-statement::before {
  content: "";
  position: absolute;
  inset: auto 18% 1.35rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.work-statement-text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.work-photo-pair {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  padding: 0.5rem 0 4.5rem;
  align-items: stretch;
}
.work-panel-photo {
  margin: 0;
  border-radius: 1.35rem 0.4rem 1.35rem 0.55rem;
  overflow: hidden;
  min-height: min(62vh, 680px);
  background: var(--stone);
}
.work-panel-photo img {
  width: 100%;
  height: 100%;
  min-height: min(62vh, 680px);
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1.15s var(--ease);
}
.work-panel-photo:hover img { transform: scale(1.035); }
.work-panel-energy {
  min-height: min(62vh, 680px);
}
.work-panel-energy .energy-visual {
  height: 100%;
  min-height: min(62vh, 680px);
}

@media (max-width: 900px) {
  .explore-work { grid-template-columns: 1fr; min-height: auto; }
  .explore-work-visual { min-height: 280px; }
  .life-explore { grid-template-columns: 1fr; }
  .life-tile-reading { grid-column: auto; }
  .reading-desk .desk-top {
    padding: 2rem 1rem 1.15rem;
    transform: perspective(900px) rotateX(3deg);
  }
  .reading-desk .desk-plane {
    min-height: 22rem;
    gap: 1rem;
  }
  .desk-book,
  .desk-book-b { width: min(48vw, 220px); }
  .desk-object.desk-mug { display: none; }
  .work-statement {
    margin: 1rem 0 3rem;
    padding: 2.75rem 1.25rem;
  }
  .work-statement-text { max-width: none; }
  .work-hero-inner { grid-template-columns: 1fr; }
  .work-cec-panel { min-height: 220px; }
  
/* Work funding statement band */
.work-statement {
  margin: 1.5rem 0 4.5rem;
  padding: clamp(3.5rem, 10vh, 6.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(78, 120, 160, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line);
  border-radius: 1.5rem 0.45rem 1.5rem 0.55rem;
  position: relative;
  overflow: hidden;
}
.work-statement::before {
  content: "";
  position: absolute;
  inset: auto 18% 1.35rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.work-statement-text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.work-photo-pair { grid-template-columns: 1fr; }
  .work-panel-photo,
  .work-panel-photo img,
  .work-panel-energy,
  .work-panel-energy .energy-visual {
    min-height: min(58vh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .explore-work-visual .battery-svg,
  .life-tile-detail,
  .reading-cover img,
  .desk-book img,
  .work-panel-photo img {
    transition: none !important;
  }
  .life-tile:hover .life-tile-detail,
  .life-tile.is-open .life-tile-detail {
    max-height: none;
  }
  .desk-book-a,
  .desk-book-b { transform: none; }
}
