/* Richard Poplak — site styles
   Clean editorial layout with light graphic-novel touches:
   stencil wordmark, typewriter metadata, photocopy grain, orange underlines. */

:root {
  --ink: #141414;
  --paper: #ffffff;
  --body: #45433f;
  --muted: #5a5853;
  --rule: #e4e2dd;
  --tint: #f4f2ee;
  --placeholder: #f1efea;
  --accent: #e0552b;
  --max: 1240px;
  --gutter: 32px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --font-stencil: "Big Shoulders Stencil Display", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 20px; } }

/* ---------- Shared bits ---------- */

.mono { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.grain { position: absolute; inset: 0; background-image: url("../img/grain.png"); background-size: 240px 240px; pointer-events: none; }

/* Animated orange underlines.
   .ul  — text links: a 2px line at rest; on hover a thicker band sweeps in left to right.
   .lnk — linked names/titles: no line at rest; on hover a 2px line sweeps in.
   Drawn with background gradients (content-box) so they animate and wrap across lines. */
.ul, .lnk, .nav a {
  text-decoration: none;
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-origin: content-box;
  background-clip: content-box;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ul {
  font-weight: 600;
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  background-size: 0% 5px, 100% 2px;
}
.ul:hover, .ul:focus-visible, .card:hover .ul { background-size: 100% 5px, 100% 2px; }
.lnk {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
}
a:hover .lnk, a:focus-visible .lnk { background-size: 100% 2px; }
@media (prefers-reduced-motion: reduce) { .ul, .lnk, .nav a { transition: none; } }

/* Orange marker stroke — used once, in the hero */
.mark {
  background-image: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 2px;
}

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { background: #000; color: #fff; }

.tag { display: inline-block; padding: 3px 8px 2px; background: var(--ink); color: #fff; }
.tag--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 2px 7px 1px; }

/* Section header: number + heading + optional link */
.sec { padding-bottom: 112px; }
.sec--top { padding-top: 112px; }
.more { margin: 40px 0 0; font-size: 15px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 44px; }
.sec-head__title { display: flex; align-items: baseline; gap: 14px; }
.sec-head__num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--muted); }
.sec-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
.sec-head .ul { font-size: 15px; padding: 10px 0; }

/* ---------- Header & navigation ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.wordmark { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 7px 14px 3px; font-family: var(--font-stencil); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.wordmark:hover { color: #fff; }
.wordmark--invert { background: #fff; color: var(--ink); }
.wordmark--invert:hover { color: var(--ink); }

.nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.nav a { padding: 6px 0; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 3px; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { background-size: 100% 3px; }

.menu-btn { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; border-bottom: 1px solid var(--ink); padding: 4px var(--gutter) 16px; flex-direction: column; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] span { background-image: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 90%, transparent 90%); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .wordmark { font-size: 26px; }
}
@media (min-width: 761px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

/* ---------- Hero ---------- */

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 80px; align-items: center; padding-top: 96px; padding-bottom: 112px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.hero__lede { margin: 0; max-width: 500px; font-size: 19px; color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 4px; }
.hero__actions .ul { font-size: 15px; display: inline-block; padding: 15px 0; }
@media (max-width: 640px) { .hero { gap: 48px; padding-top: 56px; padding-bottom: 80px; } }

/* Photo with grain and boxed caption */
.photo { margin: 0; position: relative; }
.photo__frame { position: relative; overflow: hidden; background: #e9e7e2; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo__frame .grain { opacity: 0.3; }
.photo--portrait .photo__frame { aspect-ratio: 4 / 5; }
.photo--portrait img { object-position: 50% 15%; }
.photo--wide .photo__frame { aspect-ratio: 3 / 2; }
.photo--wide img { object-position: 30% 40%; }
.photo__credit { position: absolute; left: -14px; bottom: 32px; background: #fff; border: 2px solid var(--ink); padding: 6px 12px; font-family: var(--font-mono); font-size: 13px; }
.photo__credit--below { position: static; display: inline-block; margin-top: 10px; border: 0; padding: 0; color: var(--muted); }
@media (max-width: 640px) { .photo__credit { left: 0; } }

/* ---------- Project cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 48px; }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--placeholder); overflow: hidden; }
.card__media--dark { background: var(--ink); }
.card__media--dark .grain { opacity: 0.6; }
.card__media .grain { opacity: 0.25; }
.card__media img { position: relative; height: 86%; width: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.card__media-title { position: relative; font-family: var(--font-stencil); font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: 0.9; text-transform: uppercase; color: #fff; text-align: center; padding: 0 24px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.card__title { align-self: flex-start; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.card__sub { font-size: 18px; color: var(--body); }
.card .ul { align-self: flex-start; font-size: 15px; padding: 6px 0; }

/* ---------- About teaser & stats ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: start; }
.lead { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.38; font-weight: 500; letter-spacing: -0.015em; }
.prose p { margin: 0 0 1.1em; color: var(--body); }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.stats { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; border-top: 1px solid var(--ink); }
.stats div { padding-top: 22px; }
.stats dt { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 8px 0 0; font-size: clamp(28px, 2.8vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }

/* ---------- Ballast band ---------- */

.ballast { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.ballast .grain { opacity: 0.35; }
.ballast__inner { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.ballast__brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ballast .mono { color: #b5b2ab; }
.ballast__brand .mono { color: #cfcdc8; }
.ballast__logo { margin: 0; }
.ballast__logo img { width: min(100%, 420px); height: auto; mix-blend-mode: screen; }
.ballast__tagline { margin: 0; font-size: 20px; line-height: 1.5; color: #e8e6e1; max-width: 480px; }
.ballast__latest { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ballast__posts { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid #3a3936; }
.ballast__posts li { border-bottom: 1px solid #3a3936; }
.ballast__posts a { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 14px 0; color: #fff; text-decoration: none; font-weight: 600; }
.ballast__posts .mono { color: #b5b2ab; padding-top: 3px; }
.ballast .btn { background: var(--accent); color: var(--ink); }
.ballast .btn:hover { background: #fff; color: var(--ink); }
.ballast .ul { color: #fff; font-size: 15px; }

/* ---------- Journalism rows ---------- */

.rows { border-top: 1px solid var(--rule); }
.sec-head + .rows { border-top: 0; }
.row { display: grid; grid-template-columns: minmax(150px, 250px) minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.row__title { justify-self: start; font-size: 23px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.row__dek { grid-column: 2; margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.row__arrow { font-size: 20px; color: #9a978f; }
.row:hover .row__arrow { color: var(--accent); }
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row > .mono { grid-column: 1 / -1; }
  .row__dek { grid-column: 1; }
}
.year-label { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--muted); margin: 48px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.year-label:first-child { margin-top: 0; }

/* ---------- Books & films ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 32px 20px; }
.tile { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.tile__cover { aspect-ratio: 2 / 3; background: var(--placeholder); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile__cover img { width: 100%; height: 100%; object-fit: cover; }
.tile__cover--contain { background: #000; }
.tile__cover--contain img { object-fit: contain; }
.tile__cover--blank { background: var(--ink); color: #fff; font-family: var(--font-stencil); font-weight: 900; font-size: 22px; line-height: 0.95; text-transform: uppercase; text-align: center; padding: 12px; }
.tile__title { align-self: flex-start; font-weight: 700; font-size: 16px; line-height: 1.25; }

.works { display: flex; flex-direction: column; }
.work { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 24px 48px; padding: 48px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.work:first-child { padding-top: 0; }
.work__cover { aspect-ratio: 2 / 3; background: var(--placeholder); overflow: hidden; }
.work__cover img { width: 100%; height: 100%; object-fit: cover; }
.work__cover.tile__cover--contain { background: #000; }
.work__cover.tile__cover--contain img { object-fit: contain; }
.work__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.work h2 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.work__subtitle { margin: -4px 0 0; font-size: 20px; color: var(--body); }
.work__desc { margin: 0; max-width: 640px; color: var(--body); }
.work__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.work__buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; font-size: 15px; }
.work__buy .mono { color: var(--ink); font-weight: 700; }
.work__awards { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; max-width: 640px; border-top: 1px solid var(--rule); }
.work__awards li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 500; }
.work__awards li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 4px; background: var(--accent); }
.work__press { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.work__press q { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; quotes: "“" "”"; }
.work__press .mono { margin-left: 6px; }
.laurels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; background: #000; padding: 22px 26px; width: 100%; max-width: 640px; }
.laurels img { height: 64px; width: auto; }
@media (max-width: 640px) { .laurels { gap: 10px 18px; padding: 18px; } .laurels img { height: 44px; } }
@media (max-width: 640px) { .work { grid-template-columns: minmax(0, 1fr); } .work__cover { max-width: 220px; } }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-top: 88px; padding-bottom: 64px; }
.page-head h1 { margin: 12px 0 0; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
.page-head p { margin: 20px 0 0; max-width: 640px; font-size: 20px; color: var(--body); }
.page-head--solo { padding-bottom: 160px; }
@media (max-width: 640px) { .page-head { padding-top: 56px; padding-bottom: 40px; } }

/* ---------- Events & contact ---------- */

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.panel { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.panel h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
.panel p { margin: 0; color: var(--body); }
.panel .ul { font-size: 15px; padding: 8px 0; }
.contact-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.contact-list li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 640px) { .contact-list li { grid-template-columns: minmax(0, 1fr); } }
.link-list { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.empty { padding: 28px; background: var(--tint); width: 100%; }

/* ---------- Events ---------- */
.events { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px 48px; padding: 8px 0 48px; border-bottom: 1px solid var(--rule); }
.event + .event { padding-top: 48px; }
.event__date { display: flex; flex-direction: column; gap: 6px; }
.event__day { font-size: 88px; line-height: 0.85; font-weight: 700; letter-spacing: -0.05em; background-image: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 90%, transparent 90%); align-self: flex-start; padding: 0 4px; }
.event__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 760px; }
.event h3 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.event__meta { margin: 0; font-size: 18px; font-weight: 600; }
.event__role { margin: 0; font-weight: 600; }
.event__desc { margin: 0; color: var(--body); }
.event__people { margin: 4px 0 8px; padding: 0; list-style: none; width: 100%; border-top: 1px solid var(--rule); }
.event__people li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--body); }
.event-teaser { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; text-decoration: none; }
@media (max-width: 640px) { .event { grid-template-columns: minmax(0, 1fr); } .event__day { font-size: 64px; } }

/* ---------- Footer ---------- */

.site-footer { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.site-footer .grain { opacity: 0.4; }
.site-footer__inner { position: relative; display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .wordmark--invert { color: var(--ink); }
.site-footer .ul { font-weight: 500; }
.site-footer__legal { margin: 0; border-top: 1px solid #3a3936; padding-top: 20px; font-size: 14px; color: #cfcdc8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.work__cover.tile__cover--blank { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 26px; }

/* ---------- Orange slash through photographs ----------
   The marker stroke from the headline, cut across each portrait.
   Multiply lets the photo's blacks print through the orange. */
.photo__frame::after {
  --slash-angle: -15deg;
  content: ""; position: absolute; left: -10%; right: -10%; top: 72%; height: 22%;
  background: var(--accent); mix-blend-mode: multiply; opacity: 0.92;
  transform: rotate(var(--slash-angle)); transform-origin: left center; pointer-events: none;
}
.photo--wide .photo__frame::after { --slash-angle: -11deg; top: 76%; height: 25%; }

/* ---------- Video embed ---------- */
.work__video { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; background: #000; margin-top: 8px; }
.work__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Draw-in reveal ----------
   A quick "blueprint" build as things load and scroll into view:
   rules draw across left to right, images wipe in, then text settles.
   Only active when the inline script in base.njk adds .reveal to <html>
   (JavaScript on, reduced motion not requested), so nothing is ever hidden
   otherwise. --reveal-delay staggers items that arrive together. */

@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.reveal {
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Header rule draws on load */
.reveal .site-header { position: relative; border-bottom-color: transparent; }
.reveal .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--rule); transform-origin: left; animation: draw-x 0.9s var(--ease-draw) 0.1s both;
}

/* 1. Ruled containers: the line draws, then the contents settle */
.reveal :is(.sec-head, .panel, .stats > div) { border-top-color: transparent; }
.reveal :is(.row, .year-label, .work) { border-bottom-color: transparent; }
.reveal .stats { border-top: 0; }
.reveal :is(.sec-head, .panel, .stats > div, .row, .year-label, .work) { position: relative; }
.reveal :is(.sec-head, .panel, .stats > div)::before,
.reveal :is(.row, .year-label, .work)::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-draw) var(--reveal-delay, 0s);
}
.reveal :is(.sec-head, .panel, .stats > div)::before { top: -1px; background: var(--ink); }
.reveal :is(.row, .work)::after { bottom: -1px; background: var(--rule); }
.reveal .year-label::after { bottom: -1px; background: var(--ink); }
.reveal :is(.sec-head, .panel, .stats > div).is-in::before,
.reveal :is(.row, .year-label, .work).is-in::after { transform: scaleX(1); }

.reveal :is(.sec-head, .panel, .stats > div, .row, .year-label, .work) > * {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.15s);
}
.reveal :is(.sec-head, .panel, .stats > div, .row, .year-label, .work).is-in > * { opacity: 1; transform: none; }

/* 2. Blocks of content fade up */
.reveal :is(.hero__copy > *, .hero .photo, .page-head > *, .card, .split > *, .ballast__brand, .ballast__latest, .tile, .event) {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal :is(.hero__copy > *, .hero .photo, .page-head > *, .card, .split > *, .ballast__brand, .ballast__latest, .tile, .event).is-in { opacity: 1; transform: none; }

/* 3. Images wipe in left to right */
.reveal :is(.photo__frame, .card__media, .tile__cover, .work__cover) {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.75s var(--ease-draw) calc(var(--reveal-delay, 0s) + 0.1s);
}
.reveal .is-in :is(.photo__frame, .card__media, .tile__cover, .work__cover) { clip-path: inset(0 0 0 0); }

/* 4. The hero marker stroke sweeps in once the headline lands */
.reveal :is(.hero, .page-head) h1 .mark { background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.6s var(--ease-draw) 0.55s; }
.reveal :is(.hero, .page-head) h1.is-in .mark { background-size: 100% 100%; }

/* 4b. The orange slash across photographs sweeps in after the photo */
.reveal .photo__frame::after { transform: rotate(var(--slash-angle)) scaleX(0); transition: transform 0.6s var(--ease-draw) calc(var(--reveal-delay, 0s) + 0.8s); }
.reveal .is-in .photo__frame::after { transform: rotate(var(--slash-angle)) scaleX(1); }

/* 5. The wordmark builds on load: the black box wipes across, then the name rises into it */
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
.wordmark__text { display: inline-block; }
.reveal .site-header .wordmark { animation: wipe-in 0.55s var(--ease-draw) 0.05s both; }
.reveal .site-header .wordmark__text { animation: rise-in 0.5s var(--ease-out) 0.4s both; }
