:root {
  /* TRIAL Oct 22: "Greens" palette (row 1: #10443E #32745C #62A29A #B29361 #EDE4D6), gold accent.
     To go back to Clay and sage, swap these for the commented block below. */
  --ink: #10443E;
  --ink-soft: #3F5F5A;
  --stone: #F5F0E8;
  --white: #FFFFFF;
  --clay: #EDE4D6;
  --sage: #D5E7E4;
  --sand: #DCE9E2;
  --teal: #D3EFE9;
  --mint: #D3EFE9;
  --goldtint: #F1E7D3;
  --accent: #B29361;
  --accent-text: #8A6D3B;
  --rule: #E3DDD2;
  /* Clay and sage (previous):
  --ink: #2B2621; --ink-soft: #5A524A; --stone: #F4F1EC; --clay: #EED9CC;
  --sage: #DCE3D3; --sand: #F1E6CF; --accent: #B4532F; --accent-text: #B4532F; --rule: #E2DDD5; */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --wrap: 1100px;
  --text: 920px;
  --r-lg: 16px;
  --r-md: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.text { max-width: var(--text); margin: 0 auto; padding: 0 24px; }

/* Top nav: floating, rounded, translucent */
.nav {
  position: sticky; top: 14px; z-index: 50;
  max-width: calc(var(--wrap) + 48px); margin: 14px auto 0; padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 1px 1px 8px -5px var(--ink);
  padding: 12px 22px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Clear at the top of the page; the bar fades in once you scroll */
.js .nav:not(.scrolled) .nav-inner { background: rgba(255, 255, 255, 0); box-shadow: none; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; }

/* Accent underline that draws in on hover */
.u {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.35s ease;
  padding-bottom: 3px;
}
a:hover .u, a.u:hover, a:focus-visible .u, a.u:focus-visible { background-size: 100% 2px; }

/* Labels and headings */
.label {
  font-family: var(--sans); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; }
h3 { font-size: 22px; line-height: 1.3; }
p { margin: 0 0 14px; }

/* Home */
.intro { padding: 96px 0 72px; }
.intro h1 { max-width: 820px; }
.intro p { max-width: 640px; color: var(--ink-soft); font-size: 19px; margin-top: 18px; }

.cards { display: grid; gap: 22px; padding-bottom: 96px; }
.card {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px;
  background: var(--stone); border-radius: var(--r-lg);
  padding: 26px; text-decoration: none; min-height: 340px;
  transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-3px); }
.card-copy { display: flex; flex-direction: column; padding: 10px 4px; }
.card h2 { font-size: 30px; }
.card p { color: var(--ink-soft); margin-top: 10px; max-width: 360px; }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid #CFC7BB; border-radius: 999px; padding: 5px 12px; color: var(--ink-soft);
}
.card-img { border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.card-img img { height: 100%; object-fit: cover; }
.soon { font-size: 12px; color: var(--accent-text); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 12px; }

/* Work page */
.hero { margin-top: 26px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1.88 / 1; background: var(--white); }
.hero img { height: 100%; object-fit: cover; }

.head { padding: 64px 0 28px; border-bottom: 1px solid var(--rule); }
.overview { display: grid; grid-template-columns: 1.7fr 1fr; gap: 64px; padding: 36px 0 72px; }
.overview p { font-size: 17px; }
.side .label { margin-top: 0; }
.side ul { list-style: none; padding: 0; margin: 0 0 26px; }
.side li { padding: 2px 0; }
.todo { color: #9A8F82; font-style: italic; font-size: 14px; }

/* Flex, not a fixed 4-column grid, so 2 or 3 stats center as a group instead of packing left
   into unused grid tracks, BD, Nov 3. */
.stats {
  background: var(--stone); border-radius: var(--r-md);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 40px;
  padding: 40px 36px; text-align: center; margin-bottom: 120px;
}
.stat { flex: 0 1 220px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

.chapter { padding-bottom: 120px; }
.chapter-head { margin-bottom: 30px; }
.chapter-head .num { color: var(--accent-text); margin-right: 8px; }
.action { margin-bottom: 22px; }
.action strong { display: block; font-weight: 700; margin-bottom: 2px; }

.media { margin: 48px auto 0; }
/* Tighter grid sitewide: back-to-back boxes with no caption between them sit close (14px). A box
   that carries a caption (direct sibling .cap, or a caption nested inside it, as in video/pair
   figures) gets more breathing room before the next box (20px), since the caption needs to read
   as belonging to the box above it, not crowding into the one below. */
.media + .media { margin-top: 14px; }
.media:has(.cap) + .media { margin-top: 20px; }
p.cap + .media { margin-top: 20px; }
.panel { border-radius: var(--r-md); padding: 56px; }
.panel img, .plain img, .pair img { border-radius: 8px; }
.plain img { border-radius: var(--r-md); }
.bg-clay { background: var(--clay); }
.bg-sage { background: var(--sage); }
.bg-sand { background: var(--sand); }
.bg-stone { background: var(--stone); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair.panel { gap: 32px; }
.cap { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.results { padding-bottom: 120px; }
.results ul { margin: 18px 0 0; padding-left: 20px; }
.results li { margin-bottom: 8px; }

.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); padding: 36px 0 30px; }
.pager a { text-decoration: none; font-family: var(--serif); font-size: 26px; }
.pager small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pager .next { text-align: right; }

.footer { background: var(--ink); color: var(--stone); margin-top: 40px; padding: 64px 0; }
.footer h2 { color: var(--stone); }
.footer a { color: var(--stone); }
.footer p { color: #CFC7BB; margin-top: 12px; }

/* LinkedIn icon in place of the text link, BD, Nov 3. Opacity hover instead of the underline used
   on text links, since that trick doesn't read well on an icon. */
.social-link { display: inline-flex; }
.social-link img { display: block; width: 24px; height: 24px; opacity: 0.85; transition: opacity 0.2s ease; }
.social-link:hover img, .social-link:focus-visible img { opacity: 1; }

/* Carousel: data-mode="fade" (cross-fade, can autoplay) or "slide" (moves sideways) */
.carousel { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1.88 / 1; background: var(--white); }
.carousel.square { aspect-ratio: 1.13 / 1; }
.carousel .track { position: absolute; inset: 0; }
.carousel .slide { margin: 0; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel[data-mode="fade"] .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.carousel[data-mode="fade"] .slide.is-active { opacity: 1; }
.carousel[data-mode="slide"] .track { display: flex; transition: transform 0.5s ease; }
.carousel[data-mode="slide"] .slide { flex: 0 0 100%; height: 100%; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.8); color: var(--ink); font-size: 22px; line-height: 44px;
  box-shadow: 1px 1px 8px -5px var(--ink); opacity: 0.6; transition: opacity 0.3s ease;
}
.car-prev { left: 16px; } .car-next { right: 16px; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.55); transition: background 0.3s ease, width 0.3s ease; }
.car-dots button[aria-current="true"] { background: var(--white); width: 22px; border-radius: 4px; }
.panel .carousel { border-radius: 8px; }

/* Editorial layout (reference: anbui.co/kintsugi): pages shown on light gray tiles */
.feature { border-radius: var(--r-md); overflow: hidden; background: var(--white); aspect-ratio: 1.33 / 1; padding: 6%; }
.feature img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(43, 38, 33, 0.18)); }
.spreads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spread { border-radius: var(--r-md); overflow: hidden; background: var(--white); aspect-ratio: 1.38 / 1; padding: 7%; }
.spread img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(43, 38, 33, 0.16)); transition: transform 0.6s ease; }
.spread:hover img, .feature:hover img { transform: scale(1.04); }
.feature img { transition: transform 0.6s ease; }
.carousel.contain { background: var(--white); }
.carousel.contain .slide { padding: 4% 6% 7%; }
.carousel.contain .slide img { object-fit: contain; filter: drop-shadow(0 10px 18px rgba(43, 38, 33, 0.18)); }
.carousel.contain .car-dots button { background: rgba(43, 38, 33, 0.25); }
.carousel.contain .car-dots button[aria-current="true"] { background: var(--ink); }
@media (max-width: 820px) { .spreads { grid-template-columns: 1fr; } }

/* Four-across static row (Chalice book covers), same per-tile box as the two-column pairs, just more of them in one row. */
.spreads.quad { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .spreads.quad { grid-template-columns: 1fr 1fr; } }

/* Subtle zoom on image hover */
.hero, .plain, .card-img { overflow: hidden; }
.plain { border-radius: var(--r-md); }
.hero img, .plain img, .card-img img, .panel img { transition: transform 0.6s ease; }
.hero:hover img, .plain:hover img, .card:hover .card-img img { transform: scale(1.04); }
.panel img:hover { transform: scale(1.02); }

/* Dark band to break up the white */
.dark { background: var(--ink); color: var(--stone); padding: 96px 0; margin-bottom: 0; }
.dark .label { color: var(--stone); }
.dark li { color: #E6DFD5; }
.results.dark { padding-bottom: 96px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .carousel .slide, .carousel .track, .car-btn, .car-dots button { transition: none; }
  .u, .card, .hero img, .plain img, .card-img img, .panel img { transition: none; }
  .hero:hover img, .plain:hover img, .card:hover .card-img img, .panel img:hover { transform: none; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .card { grid-template-columns: 1fr; }
  .card-img { order: -1; aspect-ratio: 16 / 10; }
  .overview { grid-template-columns: 1fr; gap: 28px; }
  .stat { flex-basis: 45%; }
  .panel { padding: 22px; }
  .pair { grid-template-columns: 1fr; }
  .pager a { font-size: 20px; }
}

/* Accent line alongside "the work" (reference: anbui.co, 1px mustard; here 2px terracotta) */
.work { border-left: 1px solid var(--accent); padding-left: 15px; margin: 8px 0 0; }
.work .action:last-child { margin-bottom: 0; }

/* Book covers: portrait tiles on gray */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cover { margin: 0; }
.cover .tile { border-radius: var(--r-md); overflow: hidden; background: var(--white); aspect-ratio: 0.8 / 1; padding: 10%; }
.cover img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(43, 38, 33, 0.2)); transition: transform 0.6s ease; }
.cover:hover img { transform: scale(1.04); }
.cover figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 820px) { .covers { grid-template-columns: 1fr 1fr; } }

/* Split row: 2/3 image + 1/3 carousel, same height. Left sets the height; right fills it. */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: stretch; }
.split > * { min-width: 0; }
.split .main { border-radius: var(--r-md); overflow: hidden; background: var(--white); aspect-ratio: 16 / 10; padding: 5%; }
.split .main img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(43, 38, 33, 0.18)); transition: transform 0.6s ease; }
.split .main:hover img { transform: scale(1.03); }
.split .carousel { aspect-ratio: auto; height: 100%; }
.split .carousel.contain .slide { padding: 10% 8% 16%; }
.split.flip { grid-template-columns: 1fr 2fr; }
.split.flip .main { order: 2; }
@media (max-width: 820px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split .carousel { aspect-ratio: 16 / 10; height: auto; }
  .split.flip .main { order: 0; }
}

/* Contact form in the footer (reference: anbui.co "Drop me a line") */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-intro p { margin-top: 14px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 400; color: var(--stone); }
.contact-form input, .contact-form textarea {
  font: 400 16px/1.5 var(--sans); color: var(--white); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 3px; padding: 8px 12px;
  transition: border-color 0.25s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button {
  justify-self: start; font: 400 16px var(--sans); color: var(--white); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 3px; padding: 9px 22px; cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-form button:hover, .contact-form button:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 0; color: var(--stone); font-size: 15px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 28px; } }

/* Results band: lighter teal from the Greens swatch (#62A29A lifted for legibility), dark green text.
   Keeps it distinct from the dark green contact footer below. Contrast 5.5:1. */
.teal { background: var(--teal); color: var(--ink); padding: 96px 0; }
.teal .label, .teal li, .teal h2 { color: var(--ink); }
.results.teal { margin-bottom: 0; }
.results.teal + nav .pager { border-top: 0; }

/* Pastel backings rotate block by block (reference: anbui.co), alternating cool and warm.
   mint #D3EFE9, cream #EDE4D6, sage #DCE9E2, sand #F1E7D3. Any tile type can take a bg- class. */
.bg-mint { background: var(--mint); }
.bg-cream { background: var(--clay); }
.bg-sagetint { background: var(--sand); }
.bg-goldtint { background: var(--goldtint); }
.spread.bg-mint, .feature.bg-mint, .carousel.bg-mint, .main.bg-mint, .tile.bg-mint { background: var(--mint); }
.spread.bg-cream, .feature.bg-cream, .carousel.bg-cream, .main.bg-cream, .tile.bg-cream { background: var(--clay); }
.spread.bg-sagetint, .feature.bg-sagetint, .carousel.bg-sagetint, .main.bg-sagetint, .tile.bg-sagetint { background: var(--sand); }
.spread.bg-goldtint, .feature.bg-goldtint, .carousel.bg-goldtint, .main.bg-goldtint, .tile.bg-goldtint { background: var(--goldtint); }

/* Home: dark navy at the top that eases to white as you scroll (reference: anbui.co) */
:root { --navy: #10182B; }
body.home { transition: background-color 0.7s ease, color 0.7s ease; }
body.home.at-top { background: var(--navy); color: #F2F4F8; }
body.home.at-top .intro p { color: #C3CAD8; }
body.home.at-top .logo, body.home.at-top .nav-links a { color: #FFFFFF; }
body.home.at-top .nav.scrolled .nav-inner { background: rgba(16, 24, 43, 0.6); box-shadow: none; }
body.home .logo, body.home .nav-links a, body.home .intro p { transition: color 0.7s ease; }
.home .intro { padding: 120px 0 96px; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }

/* Brand mark under the intro, in place of the reference's line and diamond */
.intro-mark { width: 150px; height: 150px; margin: 56px auto 0; align-self: center; will-change: transform; }
@media (max-width: 820px) { .home .intro { min-height: 0; padding: 88px 0 64px; } .intro-mark { width: 113px; height: 113px; margin-top: 40px; } }

/* Home intro centered */
.home .intro { align-items: center; text-align: center; }
.home .intro h1 { margin-left: auto; margin-right: auto; }
.home .intro p { margin-left: auto; margin-right: auto; }

/* Vertical pair: two portrait (9:16) videos or images side by side, centered and kept to a viewable height */
.vpair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; margin-left: auto; margin-right: auto; }
.vpair figure { margin: 0; }
.video.vertical { aspect-ratio: 9 / 16; }
.vpair img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 820px) { .vpair { gap: 14px; } }

/* Nov 10: image and video boxes are white while their media loads (was cream, and dark green behind
   videos), so an unloaded box reads as page, BD. Boxes with a bg-* class keep their backing. */

/* Oct 26: BD exports each image at the exact box shape (PNG, backgrounds baked in where wanted).
   Boxes show the file edge to edge, no padding, no added shadow.
   Hero, feature and carousels share one shape: 2400 x 1280 (15:8).
   Two-column pair: 1038 x 752 per image. */
.hero, .carousel { aspect-ratio: 15 / 8; }
.feature { aspect-ratio: 15 / 8; padding: 0; }
.feature img { object-fit: cover; filter: none; }
.carousel.contain .slide { padding: 0; }
.carousel.contain .slide img { object-fit: cover; filter: none; }
.spreads, .pair:not(.panel) { gap: 14px; }
.spread { aspect-ratio: 1038 / 752; padding: 0; }
.spread img { object-fit: cover; filter: none; }
.pair:not(.panel) .plain { aspect-ratio: 1038 / 752; }
.pair:not(.panel) .plain img { width: 100%; height: 100%; object-fit: cover; }

/* Oct 26, matched to anbui.co/kintsugi (measured):
   - Tall feature, for wireframes and long web pages: her large image is 4:3 (4167 x 3125). Ours: 2400 x 1800.
   - Two-column pair: her tiles are 3180 x 2300 (1.3826). Ours: 1038 x 751 each, 14px gap.
   - Only the hero keeps rounded corners; every image box after it is square, like hers.
   - Rule under the page title: hers is a 0.5px black line. Ours: 1px in the text color. */
.feature.tall { aspect-ratio: 4 / 3; }
.spread, .pair:not(.panel) .plain { aspect-ratio: 3180 / 2300; }
.feature, .spread, .carousel, .panel, .plain, .plain img, .pair img, .panel img, .panel .carousel,
.split .main, .cover .tile, .video, .vpair img, .media figure img { border-radius: 0; }
.hero { border-radius: var(--r-lg); }
.head { border-bottom: 1px solid var(--ink); }

/* Mark beside the name, top left. Name: 22px text on a 35.2px line (22 x 1.6); mark 10% larger = 39px. */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1.6; }
.logo-mark { width: 39px; height: 39px; flex: none; }
.nav-inner { align-items: center; }
@media (max-width: 820px) { .logo-mark { width: 32px; height: 32px; } .logo { gap: 8px; font-size: 18px; } .logo span { white-space: nowrap; } }

/* Vertical pair spans the full content width, same 14px gap as the other pairs (BD, Oct 26). */
.vpair { max-width: none; gap: 14px; }

/* Light gray backing for transparent PNGs (anbui.co uses #DDDDDD behind her carousel). */
.bg-lightgray, .carousel.bg-lightgray { background: #DDDDDD; }

/* Plain white backing, e.g. for contain-fit cells where the letterboxed margin should read as white
   page background rather than a gray card, BD, Nov 3. */
.bg-white, .carousel.bg-white, .plain.bg-white { background: #FFFFFF; }

/* Carousel arrows: drawn chevrons centered in the circle (text glyphs sat low on the baseline). */
.car-btn { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 0; font-size: 0; }
.car-btn svg { display: block; }

/* Wide banner image, BD's exact export 2400 x 1159, square corners. */
.banner { aspect-ratio: 2400 / 1159; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wide banner variant, BD's exact export 2400 x 1024 (agency ad collateral, transparent PNG on a gray backing). */
.banner.ads { aspect-ratio: 2400 / 1024; }

/* FlexTek mark (Weissman): one-off 2400 x 905 crop, just for this page. No background/panel. */
.feature.flextek { aspect-ratio: 2400 / 905; }

/* Catalog section openers (Weissman): native 2:1 art, shorter than the standard pair box by design. */
.pair.opener:not(.panel) .plain { aspect-ratio: 2 / 1; }

/* Static art paired with a Vimeo embed (Weissman "motion over static"): match the video's native 16:9
   so both sides of the row land at the same height, instead of the video letterboxing to fit. */
.pair.motion:not(.panel) .plain { aspect-ratio: 16 / 9; }

/* Square social-post grid (Vettex): Instagram-format posts, two rows of two, 1:1 instead of the standard pair ratio. */
.pair.square:not(.panel) .plain { aspect-ratio: 1 / 1; }

/* Two-column row of carousels: each cell is a pair box (1038 x 751 slides). */
.spreads .carousel { aspect-ratio: 3180 / 2300; }
/* Title rule lighter (BD, Oct 26): 0.7px. */
.head { border-bottom-width: 0.7px; }
.media.spreads + .media.spreads { margin-top: 14px; }
/* Same 14px gap when a spreads row is followed by any other single full-width media block (BD, Oct 28: the 24px default looked mismatched against the 14px column gap above it). */
.media.spreads + .media { margin-top: 14px; }

/* Report-spread carousel (Stifel): taller than the standard 15:8 box, matched to the document's own ISO spread ratio so dense chart/text pages aren't cropped. */
.carousel.report { aspect-ratio: 2400 / 1697; }

/* Wide asset carousel (FH chapter 02): same shape as the .banner.ads box used in chapter 01's "assets applied" section, BD, Oct 29. */
.carousel.ads { aspect-ratio: 2400 / 1024; }

/* Salvador's splash ads (Luxco): BD's final crop, wider/shorter than the standard 1038x751 pair box. */
.pair.splash:not(.panel) .plain { aspect-ratio: 1038 / 693; }

/* Varo baseball/softball audience banners: native 3880x2400 art, wider/shorter than the standard pair box.
   Named "lineup" not "banner" to avoid colliding with the unrelated standalone .banner class (2400/1159),
   which was forcing this row's outer box to the wrong fixed height and leaving a dead gap below it. */
.pair.lineup:not(.panel) .plain { aspect-ratio: 3880 / 2400; }

/* FH 75th anniversary mark development grid: two stacked rows, 1038x563 cells, mixing carousels
   and a static image, so the ratio has to cover both .plain and .carousel children. */
.pair.directions:not(.panel) .plain, .pair.directions .carousel { aspect-ratio: 1038 / 563; }

/* Hairline stroke for white-on-white image pairs (e.g. the Luxco neckers/shipper box) so they don't
   visually merge into the page background and each other across the gap, BD, Oct 31.
   Extended to .hero and .carousel (FH 75th anniversary hero + mark development grid), Nov 3. */
.hero.stroke, .plain.stroke, .carousel.stroke, .spread.stroke { border: 0.5px solid var(--rule); }

/* FH 75th directions grid: source images don't match the shared 1038x563 box ratio, so the sitewide
   cover-fit crops off content (tagline text, logo edges). .contain shows the whole image, shrunk to
   fit and letterboxed on white, with the box itself staying the same size. Specificity bumped above
   the sitewide .carousel.contain / .pair .plain img cover rules so it actually wins. */
.pair.directions .carousel.contain .slide { padding: 6% 8%; }
.pair.directions .carousel.contain .slide img { object-fit: contain; filter: none; }
.pair.directions:not(.panel) .plain.contain img { object-fit: contain; }

/* Cards keep their own dark text, so titles never inherit the white used on the navy intro. */
.card, .card h2 { color: var(--ink); }

/* Submit hover: full gold with dark green text. Contrast checked (WCAG AA needs 4.5:1 at this text size):
   white on gold 2.9 (fails), brand green #10443E on gold 3.77 (fails), deep green #0B2F2B on gold 4.97 (passes). */
.contact-form button { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.contact-form button:hover, .contact-form button:focus-visible { background: var(--accent); border-color: var(--accent); color: #0B2F2B; }
