/* ═══════════════════════════════════════════════════════════════
   EDITORIAL PORTFOLIO
   Design system + all three pages in one file
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #f5f1ea;
  --bg-soft: #efe9dd;
  --bg-card: #fbf8f2;
  --bg-deep: #ebe2d0;
  --ink: #1a1a1a;
  --ink-2: #4a4a46;
  --ink-3: #8b8578;
  --rule: #d4cbb9;
  --rule-soft: #e3dccb;
  --accent: #9e3b1f;
  --accent-soft: #c7653f;
  --accent-tint: #f4d9cc;

  --ff-display: 'Instrument Serif', Georgia, serif;
  --ff-body: 'Newsreader', Georgia, serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  --measure: 62ch;
  --page-pad: clamp(1.5rem, 4vw, 4rem);
  --ease-out: cubic-bezier(.2,.7,.2,1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ═══ TYPOGRAPHY ═══ */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display em, .italic {
  font-family: var(--ff-display);
  font-style: italic;
}

h1.page-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
h1.page-title em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
h2 em { font-style: italic; }

h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: var(--measure);
  color: var(--ink);
}
p + p { margin-top: 1.1em; }

p.lead {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 350;
  line-height: 1.45;
  max-width: 34ch;
}
p.lead em { font-family: var(--ff-display); font-style: italic; }

small, .meta {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Meta label with leading terracotta line — used for section dividers.
   NOTE: .gutter > .meta uses a separate ::after-based line (see below);
   only .section-meta uses this ::before tick-mark. */
.section-meta {
  position: relative;
  padding-left: 2.2rem;
  display: block;
}
.section-meta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) 0.15s;
}
.reveal.in .section-meta::before {
  transform: scaleX(1);
}

/* ═══ LINKS ═══ */
a { color: inherit; text-decoration: none; position: relative; }
a.link {
  background-image: linear-gradient(to right, var(--ink), var(--ink));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: background-size 0.3s ease, color 0.3s ease;
}
a.link:hover {
  color: var(--accent);
  background-image: linear-gradient(to right, var(--accent), var(--accent));
}
a.link-arrow {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.3s;
  cursor: pointer;
}
a.link-arrow::after {
  content: '→';
  transition: transform 0.3s;
}
a.link-arrow:hover { color: var(--accent); }
a.link-arrow:hover::after { transform: translateX(4px); }

/* ═══ LAYOUT ═══ */
.page-wrap {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

main { flex: 1; }

section {
  padding: clamp(4rem, 10vh, 8rem) 0;
  position: relative;
}

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
hr.rule-soft { border-top-color: var(--rule-soft); }

.gutter {
  display: grid;
  grid-template-columns: clamp(8rem, 14vw, 12rem) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
}
.gutter > .meta {
  line-height: 1.5;
}

/* ═══ NAV ═══ */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-style: italic;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: baseline;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s;
  padding-bottom: 2px;
  cursor: pointer;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

/* ═══ FOOTER ═══ */
footer.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.foot-center { text-align: center; }
.foot-right  { text-align: right; }
footer.site-foot a:hover { color: var(--ink); }

/* ═══ PAGE SWITCHER ═══ */
.page {
  display: none;
  animation: pageEnter 0.6s var(--ease-out);
}
.page.active { display: block; }

@keyframes pageEnter {
  0%   { opacity: 0; transform: translateY(20px); }
  60%  { opacity: 0.6; }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══ LOAD STAGGER ═══ */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise-1, .rise-2, .rise-3, .rise-4, .rise-5 {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
}
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.22s; }
.rise-3 { animation-delay: 0.36s; }
.rise-4 { animation-delay: 0.50s; }
.rise-5 { animation-delay: 0.64s; }

/* ═══════════ HERO LAYOUT (with portrait slot) ═══════════ */
.hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow:
    -16px 16px 0 -1px var(--accent-tint),
    -16px 16px 0 0 var(--rule);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-portrait .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--ink-3);
  text-align: center;
  padding: 2rem;
}
.hero-portrait .placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.4;
}
.hero-portrait .placeholder span {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 22ch;
  line-height: 1.5;
}

/* Caption tag below portrait */
.hero-portrait-caption {
  margin-top: 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.hero-portrait-caption em {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 840px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-portrait {
    max-width: 320px;
    margin: 0 auto;
    box-shadow:
      -12px 12px 0 -1px var(--accent-tint),
      -12px 12px 0 0 var(--rule);
  }
  .hero-portrait-caption { text-align: center; }
}

/* ═══════════ STATS STRIP ═══════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 3rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
}
.stat {
  position: relative;
  padding-top: 0.5rem;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--accent);
}
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.stat-number sup,
.stat-number .small {
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--accent);
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}
.stat-label em {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ═══════════ OUTLETS BAND (press) ═══════════ */
.outlets-band {
  margin-top: 1.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.outlets-band em {
  font-style: italic;
}
.outlets-band .sep {
  color: var(--accent);
  margin: 0 0.5rem;
  font-weight: 400;
}

/* ═══════════ HOME WORK CARD WITH THUMBNAIL ═══════════ */
.work-item-thumb {
  display: grid;
  grid-template-columns: 8ch 110px 1fr 18ch;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
  cursor: pointer;
  transition: background 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}
.work-item-thumb:hover {
  background: var(--bg-soft);
  margin: 0 calc(-1 * var(--page-pad));
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.work-item-thumb:hover .work-title em { color: var(--accent); }
.work-item-thumb:hover .work-thumb img { transform: scale(1.04); }
.work-thumb {
  width: 110px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-deep);
}
.work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
@media (max-width: 720px) {
  .work-item-thumb {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .work-thumb {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 16/9;
  }
  .work-item-thumb:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ═══════════ SIGIL ORNAMENT ═══════════ */
.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}
.sigil svg { width: 100%; height: 100%; }

/* ═══════════ DECORATIVE SECTION DIVIDER ═══════════ */
.section-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 0;
}
.section-mark::before,
.section-mark::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 6rem;
}
.section-mark .sigil-mark {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.25rem;
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══════════ SERVICES (about) ═══════════ */
.service-row {
  display: grid;
  grid-template-columns: 8ch 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.service-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

/* ═══════════ EMBEDDED VIDEO CAROUSEL (work cards) ═══════════ */
.video-carousel {
  margin-top: 1.25rem;
  position: relative;
}
.video-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.video-track::-webkit-scrollbar { height: 6px; }
.video-track::-webkit-scrollbar-track { background: transparent; }
.video-track::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
}
.video-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.video-card .frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--ink);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.video-card iframe,
.video-card .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card .placeholder {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  padding: 1rem;
  cursor: default;
}
.video-card .placeholder::before {
  content: '▶';
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink-3);
}
.video-card .caption {
  margin-top: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Carousel arrow controls */
.carousel-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.carousel-btn {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (max-width: 720px) {
  .video-card { flex-basis: 260px; }
}

/* ═══════════ EXPERIENCE TIMELINE (about) ═══════════ */
.timeline { margin-top: 2rem; }
.timeline-row {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-date {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.timeline-role {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.timeline-role em { font-style: italic; }
.timeline-org {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 0.35rem;
}

/* ═══════════ EDUCATION ═══════════ */
.edu-list { margin-top: 1.5rem; }
.edu-row {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.edu-row:last-child { border-bottom: 0; }
.edu-years {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.edu-degree {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  line-height: 1.2;
}
.edu-school {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-top: 0.2rem;
}

/* ═══════════ TOOLKIT ═══════════ */
.toolkit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}
.toolkit-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.toolkit-items {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ═══════════ PROJECTS ═══════════ */
.work-list { margin-top: 2rem; }
.work-item {
  display: grid;
  grid-template-columns: 8ch 1fr 18ch;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  transition: background 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  cursor: pointer;
}
.work-item:hover {
  background: var(--bg-soft);
  margin: 0 calc(-1 * var(--page-pad));
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.work-item:hover .work-title em { color: var(--accent); }
.work-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.work-title em { font-style: italic; transition: color 0.4s; }
.work-year {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-top: 0.5rem;
}
.work-client {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: right;
  padding-top: 0.6rem;
  line-height: 1.5;
}
.work-desc {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 56ch;
}
.work-tags {
  margin-top: 0.9rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.work-tags span + span::before { content: ' · '; }

/* ═══════════ WORK CARD SCREENSHOT ═══════════ */
.work-screenshot {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-top: 1.25rem;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  box-shadow: 0 1px 0 var(--rule-soft);
}
.work-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.work-screenshot-caption {
  margin-top: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ═══════════ IMAGE CAROUSEL (work cards) ═══════════ */
.image-carousel {
  margin-top: 1.25rem;
  position: relative;
}
.image-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.image-track::-webkit-scrollbar { height: 6px; }
.image-track::-webkit-scrollbar-track { background: transparent; }
.image-track::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
}
.image-card {
  flex: 0 0 480px;
  scroll-snap-align: start;
}
.image-card .frame {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}
.image-card .frame img {
  display: block;
  width: 100%;
  height: auto;
}
.image-card .caption {
  margin-top: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .image-card { flex-basis: 280px; }
}

/* Square variant — for program creatives, posters, social tiles */
.image-card.square {
  flex-basis: 320px;
}
.image-card.square .frame {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-card.square .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .image-card.square { flex-basis: 260px; }
}

/* Video variant — uniform 16:9 thumbnails with a centered play button. Used
   for YouTube/Vimeo/etc. embeds. The thumbnail is a normal <img> inside the
   .frame; clicking it opens the iframe in the lightbox. */
.image-card.video-card {
  flex-basis: 420px;
}
.image-card.video-card .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  padding-bottom: 0; /* override the legacy .video-card .frame padding-bottom trick */
  display: block;
  background: #1a1612;
  overflow: hidden;
  cursor: pointer;
}
.image-card.video-card .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out, ease);
}
.image-card.video-card .frame:hover img {
  transform: scale(1.04);
}
/* Subtle gradient at the bottom for caption-area legibility (defensive) */
.image-card.video-card .frame::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
.image-card.video-card .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background: rgba(199, 102, 60, 0.94);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out, ease), background-color 0.3s;
  z-index: 2;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
.image-card.video-card .play-overlay::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--bg, #faf6ee);
}
.image-card.video-card .frame:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
}
@media (max-width: 720px) {
  .image-card.video-card { flex-basis: 300px; }
  .image-card.video-card .play-overlay { width: 52px; height: 52px; }
  .image-card.video-card .play-overlay::after {
    border-width: 9px 0 9px 14px;
  }
}

/* ═══════════ LOGO CAROUSEL (work cards) ═══════════ */
.logo-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
}
.logo-card .frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.logo-card .frame:hover {
  background: var(--bg-soft);
  border-color: var(--ink-3);
}
.logo-card .frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}
.logo-card .frame.dark {
  background: #1f2540;
  border-color: #1f2540;
  padding: 0;
}
.logo-card .frame.dark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-card .caption {
  margin-top: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.logo-card .caption .visit {
  color: var(--accent);
  white-space: nowrap;
}
.logo-card .frame:hover ~ .caption .visit {
  color: var(--ink);
}

@media (max-width: 720px) {
  .logo-card { flex-basis: 280px; }
}

/* ═══════════ PUBLISHED ARTICLE BLOCK ═══════════ */
.article-card {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  max-width: 640px;
}
.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article-meta-row .pub {
  font-style: italic;
  font-family: var(--ff-display);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.article-body {
  padding: 1.5rem;
}
.article-title {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.article-title em { font-style: italic; }
.article-pullquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1rem 0 1.25rem;
  max-width: 50ch;
}
.article-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-soft);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* ═══════════ PUBLICATION COVER CARD (image-led) ═══════════ */
.cover-card {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  max-width: 720px;
  align-items: start;
}
.cover-thumb {
  display: block;
  position: relative;
  border: 1px solid var(--rule);
  background: #f0e8d6;
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  overflow: hidden;
}
.cover-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cover-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.cover-thumb::after {
  content: 'Open PDF →';
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  padding: 1.5rem 0.75rem 0.75rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cover-thumb:hover::after {
  opacity: 1;
}
.cover-meta {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.cover-pub {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.cover-title {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.cover-title em { font-style: italic; }
.cover-pullquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0.75rem 0 1rem;
  max-width: 50ch;
}
.cover-summary {
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.cover-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .cover-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }
  .cover-thumb {
    max-width: 220px;
  }
}

.category-header {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-3);
  margin: 4rem 0 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
}
.category-header:first-of-type { margin-top: 0; }

/* ═══════════ CONTACT ═══════════ */
.email-display {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.15em;
  background-image: linear-gradient(to right, var(--ink), var(--ink));
  background-position: 0 92%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: color 0.4s ease, background-image 0.4s ease;
  display: inline-block;
}
.email-display:hover {
  color: var(--accent);
  background-image: linear-gradient(to right, var(--accent), var(--accent));
}
.email-display em { font-style: italic; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.info-list { margin-top: 2rem; }
.info-row {
  display: grid;
  grid-template-columns: 10ch 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.info-row:last-child { border-bottom: 0; }
.info-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.info-value { font-size: 1.0625rem; color: var(--ink); }
.info-value em { font-family: var(--ff-display); font-style: italic; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem 0.55rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 2.5rem;
}
.availability::before {
  content: '';
  width: 8px; height: 8px;
  background: #5a8f4a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(90,143,74,0.22);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(90,143,74,0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(90,143,74,0.05); }
}

.form-card {
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-card);
}
/* Honeypot — visually & dimensionally invisible but still in the DOM
   so bots that auto-fill all <input>s will trip it. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* Status message shown after form submit */
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 1.5em;
}
.form-status.ok {
  color: var(--accent);
  font-style: italic;
}
.form-status.err {
  color: #b3361a;
}
.form-status.err a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: progress;
}
.form-heading {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.form-sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 2rem;
  max-width: 42ch;
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  color: var(--ink);
  padding: 0.5rem 0;
  transition: border-color 0.3s;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
  font-style: italic;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 8px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.btn-submit {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 1rem 2rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.btn-submit::after { content: '→'; transition: transform 0.3s; }
.btn-submit:hover { background: var(--accent); }
.btn-submit:hover::after { transform: translateX(4px); }

.social-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 840px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 720px) {
  .gutter, .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .services-snapshot {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline-row, .edu-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.25rem 0;
  }
  .toolkit {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .work-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .work-client { text-align: left; padding-top: 0; }
  .work-year { padding-top: 0; }
  .work-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .foot-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-right, .foot-center, .foot-left { text-align: center; }
  .brand { font-size: 1.15rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   APPEAL UPGRADES — added in pass 2
   ═══════════════════════════════════════════════════════════════ */

/* HERO with photo column */
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.94) contrast(1.02);
  transition: filter 0.5s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.hero-portrait:hover img {
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.03);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: translate(8px, 8px);
  pointer-events: none;
  z-index: -1;
}
.hero-portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  padding: 1rem;
}
.hero-portrait-placeholder::before {
  content: '◯';
  font-size: 2.5rem;
  color: var(--accent);
  font-style: normal;
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-portrait {
    max-width: 320px;
    margin: 1rem 0 0;
  }
}

/* STATS STRIP — by-the-numbers */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.stat {
  position: relative;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-number em {
  font-style: italic;
  color: var(--accent);
}
.stat-label {
  margin-top: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 24ch;
}
.stat::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stat::before {
    top: -1rem;
  }
}

/* SECTION META — accent line on hover/reveal */
.gutter > .meta {
  position: relative;
  padding-left: 0;
  display: inline-block;
}
.gutter > .meta::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  margin-top: 0.6rem;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1) 0.2s;
}
.gutter.in > .meta::after,
.reveal.in.gutter > .meta::after {
  width: 32px;
}

/* REFINED SERVICES SNAPSHOT (home) */
.services-snapshot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  max-width: 64ch;
  border-top: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
}
.service-snap {
  display: block;
  padding: 1.5rem 1.5rem 1.75rem;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  transition: background 0.4s ease;
}
.service-snap:hover {
  background: var(--bg-card);
}
.service-snap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.service-snap:hover::before {
  transform: scaleY(1);
}
.service-snap-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
  font-style: italic;
}
.service-snap h3 {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}
.service-snap p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: none;
}

@media (max-width: 720px) {
  .services-snapshot { grid-template-columns: 1fr; }
}

/* SELECTED WORK CARDS WITH THUMBS (home) */
.work-item.has-thumb {
  grid-template-columns: 8ch 140px 1fr 18ch;
}
.work-thumb {
  width: 140px;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.work-item.has-thumb:hover .work-thumb img {
  transform: scale(1.06);
}

@media (max-width: 720px) {
  .work-item.has-thumb {
    grid-template-columns: 1fr;
  }
  .work-thumb { max-width: 280px; }
}

/* PUBLICATIONS ROW — outlets featured in */
.publications-strip {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.publications-strip .label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 0.5rem;
}
.publications-strip .outlet {
  font-style: italic;
  position: relative;
}
.publications-strip .outlet + .outlet::before {
  content: '·';
  margin-right: 1.25rem;
  margin-left: -0.5rem;
  color: var(--ink-3);
  font-style: normal;
}

/* PULL-QUOTE BAND (about) — full testimonial layout */
.quote-band {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(3rem, 7vw, 6rem) 0;
  margin: 0;
  position: relative;
}
.quote-band .testimonial {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.quote-band .quote-mark {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.6;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
  display: block;
}
.quote-band .pull {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--bg);
  font-weight: 300;
  margin: 0;
  max-width: none;
}
.quote-band .pull em {
  color: var(--accent-soft);
  font-style: italic;
}
.quote-band .attribution {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quote-band .attribution::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-soft);
}
.quote-band .attribution a {
  color: var(--bg);
  background-image: linear-gradient(to right, var(--accent-soft), var(--accent-soft));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.3s ease, color 0.3s ease;
}
.quote-band .attribution a:hover {
  background-size: 100% 1px;
  color: var(--accent-soft);
}
.quote-band .attribution .role {
  color: var(--ink-3);
}

/* PAGE TRANSITION — handled by .page / pageEnter higher up */

/* HERO PARALLAX — subtle shift on scroll */
.hero-content {
  will-change: transform;
}

/* ENHANCED CARD HOVER — depth on work-item */
.work-item {
  position: relative;
}
.work-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 2px;
  height: 60%;
  background: var(--accent);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.work-item:hover::before {
  transform: translateY(-50%) scaleY(1);
}

/* DECORATIVE SECTION DIVIDER */
.section-mark {
  text-align: center;
  margin: clamp(2rem, 5vh, 4rem) 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.section-mark::before,
.section-mark::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   LATEST PROJECTS GALLERY + DETAIL PAGES
   ═══════════════════════════════════════════════════════════════ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 3rem;
}
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.tile {
  display: block;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  overflow: hidden;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink-3);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.18);
}

.tile-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  overflow: hidden;
}
.tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .tile-image img {
  transform: scale(1.05);
}
.tile-image .badge-cat {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  border-left: 2px solid var(--accent);
}

.tile-body {
  padding: 1.25rem 1.4rem 1.5rem;
  position: relative;
}
.tile-meta {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.tile-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.tile-title em { font-style: italic; transition: color 0.4s ease; }
.tile:hover .tile-title em { color: var(--accent); }
.tile-blurb {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
.tile-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s, letter-spacing 0.4s;
}
.tile-arrow::after { content: ' →'; transition: transform 0.3s; display: inline-block; }
.tile:hover .tile-arrow {
  color: var(--accent);
  letter-spacing: 0.18em;
}

/* DETAIL PAGE */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.detail-back::before { content: '←'; transition: transform 0.3s; }
.detail-back:hover { color: var(--accent); }
.detail-back:hover::before { transform: translateX(-3px); }

.detail-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.detail-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.detail-eyebrow .cat { color: var(--accent); }
.detail-eyebrow .sep { color: var(--rule); }
.detail-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.detail-title em { font-style: italic; color: var(--accent); }
.detail-summary {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 0.5rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 2rem;
  margin: 2rem 0 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.detail-meta-grid .item .label {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}
.detail-meta-grid .item .value {
  font-family: var(--ff-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.detail-meta-grid .item .value em { font-family: var(--ff-display); font-style: italic; }
@media (max-width: 720px) {
  .detail-meta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* DETAIL PAGE — FULL-BLEED COVER BAND
   Used as the topmost element on a detail page (sibling of <section>).
   Image fills edge-to-edge; left-side scrim + bottom darkening keep the
   eyebrow / title / summary legible. Meta grid stays below on the cream. */
.detail-hero-band {
  position: relative;
  width: 100%;
  background-color: #2a2218; /* fallback while image loads */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    );
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  color: var(--bg);
  overflow: hidden;
}
.detail-hero-band::after {
  /* subtle vignette to settle the edges */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 30% 60%,
    transparent 40%,
    rgba(0, 0, 0, 0.18) 100%
  );
}
.detail-hero-band__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-pad) clamp(3rem, 7vw, 5.5rem);
  min-height: clamp(380px, 52vw, 560px);
  display: flex;
  flex-direction: column;
}
.detail-hero-band .detail-back {
  color: rgba(245, 241, 234, 0.75);
  margin-bottom: 0;
  align-self: flex-start;
}
.detail-hero-band .detail-back:hover { color: var(--bg); }
.detail-hero-band .detail-back::before { color: rgba(245, 241, 234, 0.75); }

.detail-hero-band .hero-band-spacer { flex: 1; min-height: 2rem; }

.detail-hero-band .detail-header {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  max-width: 720px;
  gap: 1.25rem;
}
.detail-hero-band .detail-eyebrow { color: rgba(245, 241, 234, 0.78); }
.detail-hero-band .detail-eyebrow .cat { color: var(--accent-tint); }
.detail-hero-band .detail-eyebrow .sep { color: rgba(245, 241, 234, 0.38); }

.detail-hero-band .detail-title {
  color: var(--bg);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.detail-hero-band .detail-title em { color: var(--accent-tint); }

.detail-hero-band .detail-summary {
  color: rgba(245, 241, 234, 0.92);
  max-width: 52ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

/* When the band is present, the next <section> shouldn't double-pad on top */
.detail-hero-band + section { padding-top: clamp(2.5rem, 5vh, 4rem); }
.detail-hero-band + section .detail-meta-grid { margin-top: 0; }

/* WOTR detail page — field photo backdrop (overrides the default hero image) */
#page-proj-wotr .detail-hero-band {
  background-color: #4a5e3a; /* greenish field tone fallback */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/rutu-fields.jpg');
  background-position: center, center, center 45%;
}


/* Anant marcom detail page — exhibition photo backdrop */
#page-proj-anant-marcom .detail-hero-band {
  background-color: #1f1a14; /* warm dark fallback */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/img-5e6fb496e0.jpg');
  background-position: center, center, center 60%;
}


/* Anant press detail page — newspaper photo backdrop
   The Sunday Express front page is a mix of bright yellow masthead and busy
   text columns, so we use a stronger left-to-right scrim plus a top-darkening
   gradient to keep the eyebrow / title / summary all legible. */
#page-proj-anant-press .detail-hero-band {
  background-color: #1a1410;
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.82) 0%,
      rgba(20, 14, 8, 0.65) 38%,
      rgba(20, 14, 8, 0.30) 70%,
      rgba(20, 14, 8, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0.50) 0%,
      rgba(20, 14, 8, 0.28) 35%,
      rgba(20, 14, 8, 0.18) 60%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/press-banner.jpg');
  background-position: center, center, center 80%;
}


/* Ishan brand detail page — Ishan Technologies branded backdrop */
#page-proj-ishan-brand .detail-hero-band {
  background-color: #1a1f3a; /* deep blue fallback matching brand */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/img-de6dde9002.jpg');
  background-position: center, center, center center;
}


/* Freediving detail page — underwater photo backdrop */
#page-proj-freediving .detail-hero-band {
  background-color: #0a2030; /* deep ocean fallback */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/img-9b2e7c1bea.jpg');
  background-position: center, center, center center;
}


/* Ishan LinkedIn detail page — branded banner backdrop (fits width, lets the navy bg fill the rest) */
#page-proj-ishan-linkedin .detail-hero-band {
  background-color: rgb(12, 20, 57); /* match the banner's own navy so it blends edge-to-edge */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/img-3a50e3cab5.jpg');
  background-size: cover, cover, 100% auto;
  background-position: center, center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}


/* Websites detail page — Anant University site screenshot backdrop */
#page-proj-websites .detail-hero-band {
  background-color: #1a1a1a; /* neutral dark fallback */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/img-ffbc286fd2.jpg');
  background-position: center, center, center 50%;
}


/* BBC / Navrangi Re detail page — show promo backdrop */
#page-proj-bbc .detail-hero-band {
  background-color: #1a3a3a; /* teal fallback matching the artwork */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/img-1a652da0f5.jpg');
  background-position: center, center, center 35%;
}

#page-proj-saso .detail-hero-band {
  background-color: #1f1c18; /* warm dark fallback matching the B&W concert image */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.55) 0%,
      rgba(20, 14, 8, 0.30) 35%,
      rgba(20, 14, 8, 0.10) 65%,
      rgba(20, 14, 8, 0.00) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0.00) 30%,
      rgba(20, 14, 8, 0.10) 70%,
      rgba(20, 14, 8, 0.40) 100%
    ),
    url('images/saso.jpeg');
  background-position: center, center, center 30%;
  background-size: cover, cover, cover;
}

#page-proj-anant-bdes .detail-hero-band {
  background-color: #5a8bc8; /* Anant blue fallback matching the campaign artwork */
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 14, 8, 0.78) 0%,
      rgba(20, 14, 8, 0.55) 32%,
      rgba(20, 14, 8, 0.18) 62%,
      rgba(20, 14, 8, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0) 35%,
      rgba(20, 14, 8, 0.18) 70%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    url('images/anant-bdes-hero.jpeg');
  background-size: cover, cover, cover;
  background-position: center, center, center center;
}

@media (max-width: 720px) {
  .detail-hero-band {
    /* On mobile: keep per-page background-image (set by #page-proj-xxx rules above)
       and only nudge the overlay gradient slightly darker for legibility. */
    background-position: center, center 45%;
    background-size: cover, cover;
  }
  .detail-hero-band__inner {
    min-height: 340px;
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2.5rem, 7vw, 4rem);
  }
  .detail-hero-band .detail-summary { max-width: none; }
}

.detail-section {
  margin: 3rem 0;
}
.detail-section h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 400;
}
.detail-section h3 em { font-style: italic; color: var(--accent); }
.detail-section p {
  max-width: 62ch;
  margin-bottom: 1rem;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.detail-nav a {
  flex: 1 1 0;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s;
  padding: 0.5rem 0;
  min-width: 0;
}
.detail-nav a:hover { color: var(--accent); }
.detail-nav .next { text-align: right; }
.detail-nav .label-row {
  color: var(--ink-3);
  font-size: 0.62rem;
  margin-bottom: 0.35rem;
}
.detail-nav .title-row {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.25;
}

/* DECORATIVE SECTION DIVIDER */
.section-mark {
  text-align: center;
  margin: clamp(2rem, 5vh, 4rem) 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.section-mark::before,
.section-mark::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL PAGE: VISUAL ASSETS
   Galleries · Document showcases · Pull quotes · Metric rows · Lightbox
   ═══════════════════════════════════════════════════════════════ */

/* Asset block — a wrapper that gives breathing room between visual
   chunks and the prose detail-sections. Visual blocks live OUTSIDE the
   .detail-section text columns so they can break the text width. */
.asset-block {
  margin: 3.5rem 0;
}
.asset-block + .detail-section { margin-top: 3.5rem; }
.detail-section + .asset-block { margin-top: 3.5rem; }

/* Eyebrow that introduces an asset block */
.asset-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.asset-eyebrow::before {
  content: '';
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── ASSET IMAGE GRID ────────────────────────────────────────
   Equal-square tiles arranged in a responsive grid, used for sets
   of related campaign / programme creative that share a single
   caption. Click any tile to open the lightbox; all tiles in the
   block are browseable as one group. */
.asset-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.asset-image-grid .frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft, #efeae0);
  cursor: pointer;
}
.asset-image-grid .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out, ease);
}
.asset-image-grid .frame:hover img {
  transform: scale(1.04);
}
.asset-grid-caption {
  margin-top: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
@media (max-width: 900px) {
  .asset-image-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .asset-image-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* ─── PLACEHOLDER ASSETS ───────────────────────────────────────
   Designed cards that stand in for real imagery until the user
   supplies actual files. Replace any .placeholder-asset div with
   <img src="..."> when real assets are available. */

.placeholder-asset {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background:
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}
.placeholder-asset::before {
  /* paper texture hint */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(0,0,0,0.012) 3px,
      rgba(0,0,0,0.012) 4px
    );
  pointer-events: none;
}
.placeholder-asset .pa-tag {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.placeholder-asset .pa-title {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  position: relative;
  z-index: 1;
  font-style: italic;
}
.placeholder-asset .pa-foot {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.placeholder-asset .pa-glyph {
  /* legacy corner glyph — superseded by .pa-art SVG scenes */
  display: none;
}
.placeholder-asset .pa-glyph svg { width: 100%; height: 100%; }

/* The ".pa-art" SVG that fills the placeholder with subject-specific imagery.
   JS injects an <svg class="pa-art"><use href="#scene-X"/></svg> based on
   the placeholder's variant or its data-scene attribute (override). */
.placeholder-asset .pa-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--ink-2);
  opacity: 0.85;
  z-index: 0;
}
/* Default scene placement leaves room for top-left tag and bottom-right foot */
.placeholder-asset.report .pa-art {
  color: var(--accent);
  opacity: 0.55;
}
.placeholder-asset.poster .pa-art {
  color: var(--ink);
  opacity: 0.45;
}
.placeholder-asset.press .pa-art {
  color: var(--ink-2);
  opacity: 0.85;
}
.placeholder-asset.photo .pa-art {
  color: rgba(245,241,234,0.85);
  opacity: 1;
  mix-blend-mode: soft-light;
}
.placeholder-asset.video .pa-art {
  color: rgba(245,241,234,0.7);
  opacity: 0.95;
}

/* All overlay text sits above the art layer */
.placeholder-asset .pa-tag,
.placeholder-asset .pa-title,
.placeholder-asset .pa-foot {
  z-index: 2;
}

/* ─── NEEDS IMAGE badge ─────────────────────────────────────────
   Marks every placeholder where a real image hasn't been provided
   yet. Displays as a small dashed accent border + a corner ribbon
   so missing assets are visually obvious. The user supplies real
   images to swap; once swapped, the .placeholder-asset is removed
   entirely (replaced with <img>) and this badge no longer renders. */
.placeholder-asset.needs-image {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  /* diagonal hatched overlay so it reads as "work in progress" */
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 9px,
      rgba(199, 102, 60, 0.10) 9px,
      rgba(199, 102, 60, 0.10) 10px
    ),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 100%);
}
/* For the website-variant mockup, skip the hatching so the browser-chrome
   composition stays legible — outline + bottom band is enough */
.placeholder-asset.website.needs-image {
  background: var(--bg-card);
  background-image: none;
}
/* Dim the SVG scene so it reads as a stand-in not a finished asset */
.placeholder-asset.needs-image .pa-art {
  opacity: 0.35;
}
.placeholder-asset.needs-image::after {
  content: '⚠  IMAGE NEEDED  ⚠';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 0.6rem;
  text-align: center;
  z-index: 5;
  font-weight: 500;
  pointer-events: none;
  line-height: 1;
}
/* Override the video play arrow when needs-image is present */
.placeholder-asset.video.needs-image::after {
  content: '⚠  IMAGE NEEDED  ⚠';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  inset: auto 0 0 0;
  display: block;
  align-items: initial;
  justify-content: initial;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 0.6rem;
  text-align: center;
  font-weight: 500;
  line-height: 1;
}
/* In document-showcase tiny page-thumbs, just show the band (no text fits) */
.asset-document .doc-pages-row .page-thumb .placeholder-asset.needs-image {
  outline-width: 1px;
  outline-offset: -1px;
}
.asset-document .doc-pages-row .page-thumb .placeholder-asset.needs-image::after {
  content: '!';
  font-size: 0.7rem;
  padding: 2px 0;
  letter-spacing: 0;
}
/* In lightbox view, badge is centered, big, and unmissable */
.lightbox-media .placeholder-asset.needs-image::after {
  content: '⚠  IMAGE NEEDED — PLEASE SUPPLY  ⚠';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  inset: auto 0 0 0;
  font-size: 1rem;
  padding: 1.1rem 1rem;
  letter-spacing: 0.24em;
}

/* Variants */
.placeholder-asset.report {
  background:
    linear-gradient(160deg, #f8efe2 0%, #ecdcc2 100%);
}
.placeholder-asset.report .pa-tag { color: var(--accent); }

.placeholder-asset.press {
  background: var(--bg-card);
  padding-top: 2rem;
}

.placeholder-asset.website {
  padding: 0;
  background: var(--bg-card);
}
.placeholder-asset.website .browser-chrome {
  height: 28px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
}
.placeholder-asset.website .browser-chrome::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule);
  box-shadow: 14px 0 0 var(--rule), 28px 0 0 var(--rule);
}
.placeholder-asset.website .browser-chrome span {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.placeholder-asset.website .site-body {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}
.placeholder-asset.website .site-body .h {
  height: 14px;
  background: var(--rule);
  width: 60%;
}
.placeholder-asset.website .site-body .l {
  height: 6px;
  background: var(--rule-soft);
  width: 100%;
}
.placeholder-asset.website .site-body .l.short { width: 75%; }
.placeholder-asset.website .site-body .l.shorter { width: 45%; }
.placeholder-asset.website .site-body .blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
  height: 38%;
}
.placeholder-asset.website .site-body .blocks > div {
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
}
.placeholder-asset.website .site-pa-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-top: 0.4rem;
}

.placeholder-asset.poster {
  background:
    linear-gradient(180deg, var(--accent) 0%, var(--accent) 32%, var(--bg-card) 32%, var(--bg-card) 100%);
  color: var(--bg);
}
.placeholder-asset.poster .pa-tag { color: rgba(245, 241, 234, 0.85); }
.placeholder-asset.poster .pa-title { color: var(--ink); margin-top: auto; }
.placeholder-asset.poster .pa-foot { color: var(--ink-3); }

.placeholder-asset.photo {
  background:
    radial-gradient(ellipse at 30% 40%, #d6c8ad 0%, #b8a37e 60%, #8b7651 100%);
  color: var(--bg);
}
.placeholder-asset.photo .pa-tag,
.placeholder-asset.photo .pa-title,
.placeholder-asset.photo .pa-foot { color: rgba(245, 241, 234, 0.92); }
.placeholder-asset.photo .pa-glyph { color: rgba(255, 255, 255, 0.22); }

.placeholder-asset.video {
  background: linear-gradient(140deg, #2a2520 0%, #44362a 100%);
  color: rgba(245,241,234,0.92);
}
.placeholder-asset.video .pa-tag { color: var(--accent-soft); }
.placeholder-asset.video .pa-title,
.placeholder-asset.video .pa-foot { color: rgba(245,241,234,0.92); }
.placeholder-asset.video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: rgba(245,241,234,0.35);
  pointer-events: none;
}

/* ─── DOCUMENT SHOWCASE ────────────────────────────────────────
   Featured multi-page report. Cover on the left, metadata + page
   thumbnail strip + "view full" CTA on the right. Click cover, any
   thumbnail, or button to open the lightbox at the appropriate page. */
.asset-document {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 1.4fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.asset-document .doc-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow:
    -10px 10px 0 -1px var(--accent-tint),
    -10px 10px 0 0 var(--rule);
  transition: transform 0.4s var(--ease-out);
  display: block;
}
.asset-document .doc-cover:hover {
  transform: translate(-3px, -3px);
}
.asset-document .doc-cover img,
.asset-document .doc-cover .placeholder-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-document .doc-info { padding-top: 0.25rem; }
.asset-document .doc-info h4 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}
.asset-document .doc-info h4 em { font-style: italic; }
.asset-document .doc-info p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: 42ch;
  color: var(--ink-2);
}
.asset-document .doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding: 1rem 0;
  margin: 1.25rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.asset-document .doc-meta .label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}
.asset-document .doc-meta .value {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.3;
}
.asset-document .doc-pages {
  margin-top: 1.25rem;
}
.asset-document .doc-pages-label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
}
.asset-document .doc-pages-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.asset-document .doc-pages-row::-webkit-scrollbar { height: 5px; }
.asset-document .doc-pages-row::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
}
.asset-document .doc-pages-row .page-thumb {
  flex: 0 0 56px;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  display: block;
}
.asset-document .doc-pages-row .page-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.asset-document .doc-pages-row .page-thumb .page-num {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  color: var(--ink-3);
  background: rgba(245,241,234,0.9);
  padding: 0 2px;
  letter-spacing: 0.05em;
}
.asset-document .doc-pages-row .page-thumb img,
.asset-document .doc-pages-row .page-thumb .placeholder-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 0.5rem;
  padding: 0.4rem;
}
.asset-document .doc-pages-row .page-thumb .placeholder-asset .pa-title { font-size: 0.55rem; }
.asset-document .doc-pages-row .page-thumb .placeholder-asset .pa-tag,
.asset-document .doc-pages-row .page-thumb .placeholder-asset .pa-foot { display: none; }

.asset-document .doc-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.asset-document .doc-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.asset-document .doc-cta::after { content: '→'; transition: transform 0.3s; }
.asset-document .doc-cta:hover::after { transform: translateX(3px); }

@media (max-width: 720px) {
  .asset-document {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .asset-document .doc-cover {
    max-width: 240px;
  }
  .asset-document .doc-meta {
    grid-template-columns: 1fr;
  }
}

/* ─── PULL QUOTE ─────────────────────────────────────────────── */
.asset-pullquote {
  margin: 3.5rem 0;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.asset-pullquote blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--ink-2);
  max-width: 32ch;
  margin: 0 auto;
  letter-spacing: -0.012em;
}
.asset-pullquote blockquote::before { content: '“'; color: var(--accent); margin-right: 0.05em; }
.asset-pullquote blockquote::after { content: '”'; color: var(--accent); margin-left: 0.05em; }
.asset-pullquote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
}

/* ─── METRIC ROW ─────────────────────────────────────────────── */
.asset-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2.25rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.asset-metrics .metric {
  position: relative;
  padding-top: 0.65rem;
}
.asset-metrics .metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
}
.asset-metrics .metric-num {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.asset-metrics .metric-num sup {
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: super;
  letter-spacing: 0;
}
.asset-metrics .metric-lbl {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}
.asset-metrics .metric-lbl em {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  display: block;
  margin-top: 0.25rem;
}
@media (max-width: 720px) {
  .asset-metrics { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ─── PRESS LIST ─────────────────────────────────────────────── */
.asset-press-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  margin: 1rem 0;
  border-top: 1px solid var(--rule);
}
.asset-press-list .outlet {
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.asset-press-list .outlet:nth-child(odd) { border-right: 1px solid var(--rule-soft); padding-right: 1.5rem; }
.asset-press-list .outlet:nth-child(even) { padding-left: 1.5rem; }
.asset-press-list .outlet .name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}
.asset-press-list .outlet .name a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.asset-press-list .outlet .name a:hover {
  color: var(--accent, var(--ink));
  border-bottom-color: currentColor;
}
.asset-press-list .outlet .kind {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .asset-press-list { grid-template-columns: 1fr; }
  .asset-press-list .outlet:nth-child(odd) { border-right: 0; padding-right: 0.25rem; }
  .asset-press-list .outlet:nth-child(even) { padding-left: 0.25rem; }
}

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.lightbox-media {
  max-width: min(820px, calc(100vw - 6rem));
  max-height: calc(100vh - 9rem);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.lightbox-media.wide { aspect-ratio: 4 / 3; }
.lightbox-media.square { aspect-ratio: 1 / 1; }
/* Video / iframe content: 16:9, allow up to 1080px wide for video clarity */
.lightbox-media.video {
  aspect-ratio: 16 / 9;
  width: min(1080px, calc(100vw - 6rem));
  max-width: min(1080px, calc(100vw - 6rem));
  background: #000;
  border-color: rgba(0,0,0,0.6);
}
.lightbox-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-media img,
.lightbox-media .placeholder-asset {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox-media .placeholder-asset {
  font-size: 1.2rem;
}
.lightbox-media .placeholder-asset .pa-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.lightbox-media .placeholder-asset .pa-tag {
  font-size: 0.78rem;
}
.lightbox-media .placeholder-asset .pa-foot {
  font-size: 0.7rem;
}
.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.75);
  text-align: center;
  max-width: 60ch;
  line-height: 1.5;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(245,241,234,0.3);
  color: rgba(245,241,234,0.85);
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(245,241,234,0.1);
  border-color: rgba(245,241,234,0.6);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.65);
}
.lightbox.single .lightbox-nav,
.lightbox.single .lightbox-counter { display: none; }

@media (max-width: 720px) {
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-nav.prev { left: 0.75rem; }
  .lightbox-nav.next { right: 0.75rem; }
  .lightbox-counter { top: 1.25rem; left: 1rem; }
}

/* Hide body scroll when lightbox is open */
body.lb-open { overflow: hidden; }

/* Detail-page asset image-card pages-row override:
   on detail pages we want the image gallery to behave like the
   projects-page carousel, which already exists. We just give the
   detail-page version a slightly different feel. */
.detail-section + .asset-block .image-track,
.asset-block .image-track {
  scroll-padding-left: 0;
}
.asset-block .image-card .frame {
  cursor: zoom-in;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.asset-block .image-card .frame:hover {
  border-color: var(--accent);
}
