/* ==========================================================================
   Tommi Keyes — portfolio stylesheet
   One design system: tokens → base → layout → components → pages → motion.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Lovelo';
  src: url('/assets/fonts/Lovelo-Black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Steel blue / slate palette */
  --bg: #080a0b;
  --surface: #15191b;
  --surface-2: #1c2b31;
  --line: #1c2b31;
  --line-strong: #263338;
  --ink: #eef0f0;
  --soft: #aeb8bc;
  --muted: #8b9498;
  --accent: #557a8b;
  --accent-bright: #7ea6b8;
  --accent-light: #b5cdd7;
  --success: #6fcf97;

  --font-display: 'Lovelo', 'Arial Black', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --page-width: 1440px;
  --gutter: clamp(24px, 5vw, 80px);
  --head-height: 96px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: normal; }
p { text-wrap: pretty; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 5px;
}

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px;
}
.skip:focus { left: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap, .project-hero { max-width: var(--page-width); margin-inline: auto; }
.wrap { padding-inline: var(--gutter); }
.section { padding-block: 85px 110px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; }
.section.two-col { padding-top: 25px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font: 900 13px/1.6 var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.note { font-size: 13px; color: var(--muted); }

.text-link {
  display: inline-block;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s, transform .35s var(--ease);
}
.text-link:hover { color: var(--accent-light); border-color: var(--accent-light); }

.breadcrumb { font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--accent); }
.breadcrumb:hover { color: var(--accent-light); }
.crumb-divider { margin: 0 12px; color: var(--muted); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 164px; padding: 17px 26px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  font: 900 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn.light { background: transparent; color: var(--ink); border-color: var(--muted); }
.btn.light:hover { background: var(--surface-2); border-color: var(--accent); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header & navigation ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Blur lives on a pseudo-element so the mobile menu (a child) can stay fully opaque. */
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 10, 11, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.head-inner {
  min-height: var(--head-height);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  transition: min-height .35s var(--ease);
}
.site-head.is-scrolled .head-inner { min-height: 72px; }

.wordmark {
  display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0;
  width: clamp(155px, 19vw, 260px);
  transition: width .35s var(--ease);
}
.site-head.is-scrolled .wordmark { width: clamp(140px, 15vw, 210px); }
.wordmark img { width: 100%; height: auto; max-height: 66px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 32px); }
.nav a {
  font: 900 14px/1.2 var(--font-display);
  letter-spacing: .025em; text-transform: uppercase; white-space: nowrap;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.nav .contact-pill {
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 11px 17px; color: var(--ink);
  transition: background-color .25s, border-color .25s;
}
.nav .contact-pill:hover, .nav .contact-pill[aria-current] {
  background: var(--surface-2); text-decoration: none;
}

.menu-button {
  display: none; background: none; border: 0; color: var(--ink);
  font-size: 24px; line-height: 1; padding: 8px; cursor: pointer;
}

.work-nav-top { display: flex; align-items: center; gap: 4px; }
.work-toggle {
  background: transparent; color: var(--ink); border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 10px;
  transition: transform .25s var(--ease);
}
.work-nav.open .work-toggle { transform: rotate(180deg); }
.work-nav { position: relative; }
/* Work menu: one narrow column. Hovering or focusing a category opens its projects in a side pop-out. */
.work-dropdown {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 30;
  width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  transform-origin: top;
  animation: menu-arrive 220ms var(--ease);
}
/* Invisible bridge so the menu stays open while the pointer travels down to it. */
.work-dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; }
.work-dropdown a:hover { text-decoration: none; }
.work-menu { list-style: none; margin: 0; padding: 4px 0; border-block: 1px solid var(--line-strong); }
.work-item { position: relative; }
.nav .work-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius);
  font: 600 15px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap;
  color: var(--soft);
}
.nav .work-dropdown a:hover, .nav .work-item:hover > .work-cat, .nav .work-item:focus-within > .work-cat { background: var(--surface-2); color: var(--ink); }
.work-caret { color: var(--muted); font-size: 18px; line-height: 1; }
.work-flyout {
  display: none; position: absolute; top: -9px; right: calc(100% + 10px);
  width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
/* Bridge across the gap between the category and its pop-out. */
.work-flyout::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 12px; }
.work-item:hover > .work-flyout, .work-item:focus-within > .work-flyout { display: block; }
.nav .work-featured { margin-bottom: 6px; color: var(--ink); }
.work-featured-label {
  order: 2; padding: 4px 8px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--accent);
  font: 900 10px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light);
}
.nav .work-all { margin-top: 6px; font-size: 14px; color: var(--muted); }
.work-nav.open .work-dropdown { display: block; }
@media (hover: hover) and (min-width: 631px) {
  .work-nav:hover .work-dropdown { display: block; }
  .work-nav.dismissed:hover .work-dropdown { display: none; }
}

/* ---------- Hero ---------- */
.hero-banner { position: relative; isolation: isolate; }
.hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 25%, rgba(8, 10, 11, .45) 42%, transparent 61%),
    linear-gradient(0deg, var(--bg), transparent 22%),
    var(--hero-image) var(--hero-position, center) / cover no-repeat;
}
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 600px);
  justify-content: start; align-content: center; gap: 28px;
  min-height: clamp(500px, 46vw, 680px);
  padding-block: 70px;
}
.hero h1 {
  font-size: clamp(44px, 4.3vw, 64px); line-height: 1.12;
  max-width: 600px; margin: 0 0 24px;
}
.hero h1 em { color: var(--accent-bright); }
.hero .eyebrow { margin-bottom: 14px; }
.hero-side { max-width: 420px; }
.hero-side p { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0 0 28px; }

.status {
  display: inline-flex; align-items: center; gap: 10px; width: max-content;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(21, 25, 27, .75);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(111, 207, 151, .18);
}

@media (min-width: 1800px) {
  .hero-banner::before {
    background:
      linear-gradient(90deg, var(--bg) calc(50% - 900px), transparent calc(50% - 720px), transparent calc(50% + 720px), var(--bg) calc(50% + 900px)),
      linear-gradient(90deg, var(--bg) calc(50% - 660px), rgba(8, 10, 11, .55) calc(50% - 260px), transparent calc(50% + 100px)),
      linear-gradient(0deg, var(--bg), transparent 22%),
      var(--hero-image) var(--hero-position, center) / 1800px auto no-repeat,
      var(--bg);
  }
}

/* ---------- Stats ---------- */
.stats { background: var(--surface); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { border-left: 1px solid var(--line-strong); padding-left: 28px; }
.stat:first-child { border: 0; padding-left: 0; }
.stat strong { display: block; font: 900 clamp(27px, 3vw, 42px)/1.1 var(--font-display); }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Brand strip ---------- */
.brand-strip { border-bottom: 1px solid var(--line); padding-block: 26px; }
.brand-strip .wrap { display: flex; align-items: center; gap: 18px 36px; flex-wrap: wrap; }
.brand-strip .eyebrow { color: var(--muted); }
.brand-strip ul {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  list-style: none; margin: 0; padding: 0;
}
.brand-strip li { font: 900 15px/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.brand-strip li a { display: inline-block; padding-block: 4px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.brand-strip li a:hover, .brand-strip li a:focus-visible { color: var(--ink); border-color: var(--accent); }

/* ---------- Section headings ---------- */
.section h2, .intro h1 { margin: 10px 0; }
.section h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.14; }
.section-top {
  display: flex; justify-content: space-between; align-items: end; gap: 30px;
  margin-bottom: 34px;
}
.section-top p { max-width: 420px; color: var(--muted); margin: 0; }

/* ---------- Page intro ---------- */
.intro { padding-block: 85px 55px; }
.intro h1 {
  font-size: clamp(36px, 4.8vw, 68px); line-height: 1.15;
  max-width: 900px; margin: 17px 0; overflow-wrap: break-word;
}
.intro p { font-size: 20px; max-width: 760px; color: var(--muted); margin: 0; }
.intro .actions { margin-top: 30px; }
.intro .status { margin-bottom: 8px; }
.intro > .breadcrumb { display: inline-block; margin-bottom: 18px; }

/* ---------- Work collection cards ---------- */
.collection-section { padding-top: 12px; padding-bottom: 100px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.work-card { display: block; }
.work-card .visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2 / 1; overflow: hidden;
  background: #000; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, filter .3s;
}
.work-card .visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.collection-card .packaging-card-hero { aspect-ratio: 16 / 9; }
.collection-card .visual:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
@media (hover: hover) {
  .collection-card .visual:hover { border-color: var(--accent); }
  .collection-card .visual:hover img { transform: scale(1.03); }
}
.collection-info { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; }
.collection-info h3 { font-size: 28px; line-height: 1.1; margin: 0 0 7px; }
.collection-info h3 a {
  display: inline-block;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px;
  transition: color .2s;
}
.collection-info h3 a:hover { color: var(--accent-light); }
.collection-info p { font-size: 16px; color: var(--muted); margin: 0; }
.collection-info > span { font-size: 14px; color: var(--muted); white-space: nowrap; padding-top: 5px; }

.category-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.category-index a {
  font-size: 14px; padding: 9px 15px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  transition: background-color .2s;
}
.category-index a:hover { background: var(--surface-2); }

/* "Simple" heroes: plain title above original artwork */
.simple-visual { aspect-ratio: auto !important; display: block !important; background: var(--bg) !important; border-color: var(--line-strong); }
.simple-hero {
  display: flex; flex-direction: column; gap: 28px;
  width: 100%; padding-block: 32px;
  background: var(--bg); color: var(--ink);
}
.simple-hero-title { display: block; margin: 0; font: 900 clamp(24px, 3vw, 42px)/1.15 var(--font-display); }
.simple-hero-examples {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  align-items: center; gap: 20px; min-width: 0;
}
.simple-hero-examples img { width: 100%; height: auto; transform: none !important; }
.collection-card .simple-visual .simple-hero { min-height: 335px; }
.collection-card .simple-visual .simple-hero-title { font-size: 26px; padding-inline: 32px; }
.simplified-project-hero .simple-hero { padding: clamp(24px, 4vw, 56px) var(--gutter); }

/* ---------- Home: about callout ---------- */
.callout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7vw; }
.callout img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.callout p { font-size: 19px; max-width: 520px; color: var(--muted); }

/* ---------- Services (home) ---------- */
.services { padding-top: 0; }
.services-cta { margin-top: 32px; }
.services-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.service {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s, transform .5s var(--ease);
}
.service:hover { border-color: var(--accent); }
.service-number { font: 900 13px/1 var(--font-display); color: var(--accent-bright); letter-spacing: .08em; }
.service h3 { font-size: 21px; line-height: 1.2; margin: 6px 0 0; }
.service p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }

/* ---------- Project pages ---------- */
.project-hero { position: relative; background: #000; }
.project-hero > img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Title first: breadcrumb → H1 → one-line summary, with facts on the right. */
.project-intro {
  display: grid; grid-template-columns: 1.5fr .5fr; gap: 65px; align-items: end;
  padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 48px);
}
.project-intro h1 {
  font-size: clamp(36px, 4.8vw, 68px); line-height: 1.12;
  margin: 18px 0 14px; overflow-wrap: break-word;
}
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--soft); border-bottom: 1px solid var(--accent); transition: color .2s; }
.breadcrumbs a:hover { color: var(--ink); }
.project-subtitle { font-size: 22px; margin: 0; color: var(--soft); }
.boards-role { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 760px; margin: 28px 0 0; }
.project-intro dl { margin: 0; }
.project-intro dl div { border-top: 1px solid var(--line); padding: 15px 0; }
.project-intro dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.project-intro dd { font-size: 16px; margin: 0; }

.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px;
  border-top: 1px solid var(--line);
  padding-top: 45px; padding-bottom: 55px;
}
/* Overview row: supporting detail, deliberately quieter than gallery headings. */
.process-grid h3 { font-size: 20px; line-height: 1.25; margin: 10px 0 12px; }
.process-grid .eyebrow { color: var(--muted); }
.process-grid p { font-size: 16px; line-height: 1.7; color: var(--soft); margin: 0; }
.boards-process-image {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 35%;
  margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 5px;
}

.portfolio-section { padding-top: 40px; padding-bottom: 50px; border-top: 1px solid var(--line); }
.portfolio-section { scroll-margin-top: 90px; }
.portfolio-section h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; margin: 0; }
.portfolio-section .section-top .eyebrow { display: block; margin-bottom: 10px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.portfolio-grid:has(> .portfolio-image:only-child) { grid-template-columns: 1fr; }
.portfolio-image { margin: 0; min-width: 0; background: #000; }
.portfolio-image a { display: block; }
.portfolio-image img {
  display: block; width: 100%; height: clamp(260px, 34vw, 490px);
  object-fit: contain; padding: 20px;
}
.portfolio-grid > .portfolio-image:only-child img { height: auto; max-height: 760px; padding: 0; }
.portfolio-image figcaption {
  font-size: 14px; color: var(--soft); background: #000;
  padding: 13px 20px; border-top: 1px solid var(--line-strong);
}

.project-image-trigger {
  display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: inherit; cursor: zoom-in;
}
.project-image-trigger img { transition: transform .85s var(--ease); }
.project-image-trigger:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
@media (hover: hover) { .project-image-trigger:hover img { transform: scale(1.025); } }

/* Publication library: cover cards linking to the full PDFs. Same card size everywhere. */
.pub-library { padding-top: 64px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.pub-library + .pub-library { padding-top: 48px; }
.pub-library .section-top .eyebrow { display: block; margin-bottom: 10px; }
.pub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pub-card {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
  transition: border-color .25s, background-color .25s;
}
.pub-card:hover { border-color: var(--accent); background: #191f22; }
.pub-card:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
.pub-cover { display: block; padding: 22px 22px 0; background: radial-gradient(ellipse at 50% 70%, #24303a 0%, var(--surface) 70%); }
.pub-cover img {
  width: 100%; height: auto; aspect-ratio: 1081 / 1400; object-fit: cover;
  border-radius: 3px; box-shadow: 0 14px 28px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease);
}
@media (hover: hover) { .pub-card:hover .pub-cover img { transform: translateY(-4px); } }
.pub-info { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 4px; }
.pub-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.pub-meta { font-size: 13px; color: var(--muted); }
.pub-action {
  margin-top: auto; padding: 12px 20px 18px;
  font: 900 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright);
}

.publication-links { padding-top: 60px; padding-bottom: 95px; }
.publication-links h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin: 10px 0 24px; }
.publication-links a {
  display: flex; justify-content: space-between; gap: 25px;
  border-top: 1px solid var(--line); padding: 17px 0; font-weight: 600;
}
.publication-links a:last-child { border-bottom: 1px solid var(--line); }
.publication-links a span { color: var(--muted); white-space: nowrap; transition: color .2s; }
.publication-links a:hover span { color: var(--ink); }

/* Project pager: Previous / Category / Next as three identical pill buttons.
   Equal widths (grid thirds) and one fixed height; long names truncate instead of wrapping. */
.project-pager {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding-block: 48px 80px; border-top: 1px solid var(--line);
}
.pager-link, .pager-back {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 52px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: transparent; color: var(--ink);
  font: 600 14px/1 var(--font-body); white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.pager-link:hover, .pager-back:hover { border-color: var(--accent); background: var(--surface-2); }
.pager-prev { justify-content: flex-start; }
.pager-back { justify-content: center; }
.pager-next { justify-content: flex-end; }
.pager-label {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font: 900 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pager-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pager-meta { display: none; }
.pager-next .pager-label { order: 2; }
.flagship-pager .pager-back { min-width: 240px; }

/* The Boards galleries */
.boards-gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.boards-gallery-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boards-gallery .portfolio-image img { height: clamp(240px, 26vw, 400px); }

/* ---------- Flagship brand page (Performance Tool) ---------- */
.flagship { --glow-rgb: 214, 34, 40; }
.flagship-kicker { display: block; margin-top: 22px; color: var(--accent-bright); }
.flagship-intro h1 { margin-top: 8px; }
.flagship-lead { font-size: 18px; line-height: 1.65; color: var(--soft); max-width: 720px; margin: 22px 0 0; }

.flagship-bento {
  display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px; height: clamp(420px, 44vw, 640px);
}
.bento-tile {
  position: relative; overflow: hidden; display: block; min-height: 0;
  background: #000; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s;
}
.bento-main { grid-row: 1 / -1; }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .3s; }
.bento-label {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 100px;
  background: rgba(8, 10, 11, .78); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 900 12px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
}
.bento-tile:hover { border-color: rgba(var(--glow-rgb), .7); }
@media (hover: hover) { .bento-tile:hover img { transform: scale(1.03); } }

.flagship-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: 56px; padding-block: 32px;
  border-block: 1px solid var(--line);
}

.flagship-stats .stat strong { font-size: clamp(22px, 2.2vw, 32px); }
.flagship-stats .stat span { max-width: 240px; }
.chapter {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 104px);
  border-bottom: 1px solid var(--line);
}
.chapter-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter-flip .chapter-media { order: 2; }
.chapter-copy h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 12px 0 16px; }
.chapter-copy p { font-size: 18px; line-height: 1.65; color: var(--soft); margin: 0 0 26px; max-width: 520px; }
.chapter-copy .eyebrow { color: var(--muted); }

.chapter-media {
  display: grid; place-items: center; gap: 16px; grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 4 / 3; padding: clamp(18px, 3vw, 40px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s;
}
.chapter-media:hover { border-color: rgba(var(--glow-rgb), .7); }
.chapter-media:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
.chapter-media img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; transition: transform .9s var(--ease); }
.chapter-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--glow-rgb), .55) 0%, rgba(var(--glow-rgb), .18) 35%, rgba(var(--glow-rgb), .05) 58%, #050607 80%);
  border-color: rgba(var(--glow-rgb), .3);
}
.chapter-glow img { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .45)); }
.chapter-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4%; align-items: center; width: 100%; height: 100%; }
.chapter-trio img { width: 100%; height: 100%; }
.chapter-trio { align-self: stretch; }
.chapter-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chapter-pair img { width: 100%; height: 100%; align-self: stretch; }
.chapter-single img { height: 100%; }
/* Seasonal specials: five covers fanned out, newest issue upright in the center. */
.cover-fan { position: relative; width: 100%; height: 100%; align-self: stretch; }
.chapter-media .cover-fan img {
  position: absolute; left: 50%; top: 50%;
  width: 36%; max-width: none; max-height: none; height: auto;
  aspect-ratio: 1081 / 1400; object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  filter: none;
  transform: translate(-50%, -50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
  transition: transform .7s var(--ease);
}
.cover-fan img:nth-child(1) { --x: -64%; --y: 9%;  --r: -16deg; z-index: 1; }
.cover-fan img:nth-child(2) { --x: -34%; --y: 3%;  --r: -8deg;  z-index: 2; }
.cover-fan img:nth-child(3) { --x: 0%;   --y: -2%; --r: 0deg;   z-index: 5; }
.cover-fan img:nth-child(4) { --x: 34%;  --y: 3%;  --r: 8deg;   z-index: 3; }
.cover-fan img:nth-child(5) { --x: 64%;  --y: 9%;  --r: 16deg;  z-index: 1; }
@media (hover: hover) {
  .chapter-fan:hover .cover-fan img:nth-child(1) { --x: -84%; --r: -20deg; }
  .chapter-fan:hover .cover-fan img:nth-child(2) { --x: -44%; --r: -10deg; }
  .chapter-fan:hover .cover-fan img:nth-child(3) { --y: -5%; }
  .chapter-fan:hover .cover-fan img:nth-child(4) { --x: 44%;  --r: 10deg; }
  .chapter-fan:hover .cover-fan img:nth-child(5) { --x: 84%;  --r: 20deg; }
  .chapter-media.chapter-fan:hover img { transform: translate(-50%, -50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r)); }
}

/* Flyers: four sell sheets cascading diagonally, the Go-Thru sheet in front. */
.cover-fan.flyer-stack img { width: 38%; }
.cover-fan.flyer-stack img:nth-child(1) { --x: -54%; --y: -13%; --r: -7deg; z-index: 1; }
.cover-fan.flyer-stack img:nth-child(2) { --x: -20%; --y: -5%;  --r: -3deg; z-index: 2; }
.cover-fan.flyer-stack img:nth-child(3) { --x: 14%;  --y: 3%;   --r: 2deg;  z-index: 3; }
.cover-fan.flyer-stack img:nth-child(4) { --x: 50%;  --y: 11%;  --r: 6deg;  z-index: 4; }
@media (hover: hover) {
  .chapter-fan:hover .cover-fan.flyer-stack img:nth-child(1) { --x: -72%; --y: -16%; --r: -10deg; }
  .chapter-fan:hover .cover-fan.flyer-stack img:nth-child(2) { --x: -28%; --y: -7%;  --r: -4deg; }
  .chapter-fan:hover .cover-fan.flyer-stack img:nth-child(3) { --x: 20%;  --y: 4%;   --r: 3deg; }
  .chapter-fan:hover .cover-fan.flyer-stack img:nth-child(4) { --x: 66%;  --y: 13%;  --r: 9deg; }
}

.chapter-digital { grid-template-columns: 1fr; grid-template-rows: auto auto; place-items: stretch; gap: 12px; aspect-ratio: auto; }
.chapter-digital .digital-banner { width: 100%; height: auto; border-radius: var(--radius); }
.digital-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.digital-posts img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: var(--radius); }
@media (hover: hover) { .chapter-media:hover img { transform: scale(1.025); } }

/* Wide chapter: heading and copy above a photo grid (trade show). */
.chapter-wide { padding-block: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.chapter-wide-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end;
  gap: clamp(24px, 5vw, 80px); margin-bottom: 36px;
}
.chapter-wide-head h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 12px 0 0; }
.chapter-wide-head .eyebrow { color: var(--muted); }
.chapter-wide-head .chapter-copy p { margin: 0; max-width: 640px; }
.tradeshow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tradeshow-grid figure {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #000;
}
.tradeshow-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s var(--ease); }
.tradeshow-main { grid-column: span 2; grid-row: span 2; }
.tradeshow-main img { aspect-ratio: auto; }
.tradeshow-grid figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 6px 10px; border-radius: 100px;
  background: rgba(8, 10, 11, .78); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600;
}
@media (hover: hover) { .tradeshow-grid figure:hover img { transform: scale(1.03); } }

.flagship-index { padding-top: 72px; padding-bottom: 40px; }
.flagship-index .eyebrow { display: block; }
.flagship-pager { display: flex; justify-content: center; padding-block: 24px 90px; border-top: 0; }

/* Featured card used on the homepage, Work page and Work menu */
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch;
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .3s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-card-media { min-height: 320px; background: #000; overflow: hidden; }
.feature-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) { .feature-card:hover .feature-card-media img { transform: scale(1.03); } }
.feature-card-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.feature-card-copy .eyebrow { color: var(--accent-bright); }
.feature-card-copy h2, .feature-card-copy h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; margin: 0; }
.feature-card-copy p { margin: 0; color: var(--soft); font-size: 17px; }
.feature-card-copy .text-link { align-self: flex-start; margin-top: 8px; }
.home-feature { padding-bottom: 0; }
.work-feature { margin-bottom: 48px; }


/* ---------- Carousel ---------- */
.project-carousel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px 0 14px;
  background: #fff; color: #111; border-radius: var(--radius-lg);
}
.project-carousel .carousel-track { display: flex; gap: 24px; overflow-x: auto; margin: 0; padding: 0; background: #fff; }
.project-carousel .carousel-slide { flex: 0 0 70%; min-width: 0; margin: 0; border: 0; background: #fff !important; }
.project-carousel.carousel-ready .carousel-track {
  position: relative; display: block; overflow: hidden; touch-action: pan-y;
  height: clamp(350px, 43vw, 590px);
}
.project-carousel.carousel-ready .carousel-slide {
  position: absolute; left: 50%; top: 0; width: 62%; height: 100%;
  visibility: hidden; opacity: 0; transform-origin: center;
  transition: transform 650ms cubic-bezier(.22, .68, 0, 1), opacity 650ms ease;
}
.project-carousel.carousel-ready .carousel-slide.is-active { visibility: visible; opacity: 1; }
.project-carousel.carousel-ready .carousel-slide.is-neighbor { visibility: visible; opacity: .42; }
.project-carousel .carousel-slide .project-image-trigger {
  width: 100%; height: 100%; display: grid; place-items: center; touch-action: pan-y;
  background: #fff !important;
}
.project-carousel .carousel-slide img {
  display: block; width: 100%; height: 100%; max-height: 590px; min-height: 0;
  object-fit: contain; padding: 14px; transform: none !important;
}
.project-carousel .carousel-slide figcaption { display: none; }

.carousel-overlay-controls {
  position: absolute; inset: 28px 0 54px; z-index: 4; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.carousel-overlay-controls button, .carousel-play {
  display: grid; place-items: center; padding: 0; cursor: pointer; pointer-events: auto;
  color: #18252b; background: rgba(255, 255, 255, .95);
  border: 1px solid #d5dce0; border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .07);
  transition: background-color .2s, border-color .2s;
}
.carousel-overlay-controls button { width: 48px; height: 48px; }
.carousel-overlay-controls button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-overlay-controls button:hover, .carousel-play:hover { background: #eaf0f3; }
.carousel-footer {
  position: relative; z-index: 4;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  min-height: 36px; padding: 4px 62px 0;
}
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.carousel-dot { position: relative; display: block; width: 22px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 50%; background: #c4cdd2;
  transition: width .25s, height .25s, background-color .25s;
}
.carousel-dot.is-active::after { width: 9px; height: 9px; background: #314e5d; }
.carousel-play { position: absolute; right: 20px; top: 2px; width: 32px; height: 32px; box-shadow: none; }
.carousel-play svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linejoin: round; }
.project-carousel button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Vertical carousel (web banners) */
.project-carousel.carousel-ready[data-carousel-axis="vertical"] .carousel-slide { width: 84%; }
.project-carousel[data-carousel-axis="vertical"] .carousel-overlay-controls { flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; }
.project-carousel[data-carousel-axis="vertical"] .carousel-overlay-controls svg { transform: rotate(90deg); }

/* Glow carousel: transparent artwork on a brand-colored radial glow */
.project-carousel.glow-carousel, .packaging-showcase { --glow-rgb: 122, 158, 182; }
:is(.project-carousel, .packaging-showcase):is([data-carousel-brand="performance-tool"], [data-carousel-brand="pro-point"], [data-carousel-brand="surebilt"]) { --glow-rgb: 214, 34, 40; }
:is(.project-carousel, .packaging-showcase)[data-carousel-brand="vortex"] { --glow-rgb: 220, 160, 34; }
:is(.project-carousel, .packaging-showcase)[data-carousel-brand="atak"] { --glow-rgb: 235, 214, 28; }
:is(.project-carousel, .packaging-showcase)[data-carousel-brand="lil-drug"] { --glow-rgb: 28, 112, 231; }
:is(.project-carousel.glow-carousel, .packaging-artwork-stage) {
  background: radial-gradient(ellipse at 50% 48%, rgba(var(--glow-rgb), .72) 0%, rgba(var(--glow-rgb), .27) 32%, rgba(var(--glow-rgb), .08) 53%, #050607 77%);
  color: var(--ink);
  border: 1px solid rgba(var(--glow-rgb), .35);
  border-radius: var(--radius-lg);
}
.project-carousel.glow-carousel :is(.carousel-track, .carousel-slide, .carousel-slide .project-image-trigger) { background: transparent !important; }
:is(.project-carousel.glow-carousel .carousel-slide, .packaging-artwork-stage) img { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .45)); }
.project-carousel.glow-carousel :is(.carousel-overlay-controls button, .carousel-play) {
  background: rgba(8, 10, 12, .72); color: var(--ink);
  border-color: rgba(255, 255, 255, .22); box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.project-carousel.glow-carousel :is(.carousel-overlay-controls button, .carousel-play):hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .5); }
.project-carousel.glow-carousel .carousel-dot::after { background: rgba(255, 255, 255, .33); }
.project-carousel.glow-carousel .carousel-dot.is-active::after { background: #fff; }
.project-carousel.glow-carousel button:focus-visible { outline-color: #fff; }

/* ---------- Packaging design story ---------- */
.vortex-design-story { padding-bottom: 65px; }
.vortex-design-story .section-top { align-items: end; gap: 40px; }
.vortex-design-story .eyebrow { display: block; margin-bottom: 16px; color: #dca022; }
.packaging-showcase .section-top .eyebrow { color: rgb(var(--glow-rgb)); }
.packaging-showcase-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(225px, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.packaging-artwork-stage { padding: clamp(12px, 2vw, 24px); overflow: hidden; }
.packaging-artwork-stage .portfolio-image { margin: 0; background: transparent; }
.packaging-artwork-stage .project-image-trigger { margin-inline: auto; width: min(100%, 880px); }
.packaging-artwork-stage .portfolio-image img { width: 100%; height: auto; max-height: none; padding: 0; }

.vortex-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vortex-story-grid .portfolio-image { margin: 0 0 26px; overflow: hidden; }
.vortex-story-grid .portfolio-image img { width: 100%; height: auto; max-height: none; aspect-ratio: 1; object-fit: contain; padding: 0; background: #000; }
.vortex-story-grid .project-image-trigger { width: 100%; display: block; }
.vortex-story-grid h3 { font-size: 23px; line-height: 1.2; margin: 10px 0 14px; }
.vortex-story-grid article > p { font-size: 16px; line-height: 1.7; color: var(--soft); margin: 0; }

.packaging-showcase .vortex-story-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.5vw, 22px); text-align: center; }
.packaging-showcase .vortex-story-grid h3 { font-size: 16px; margin: 0; }
.packaging-showcase .vortex-story-grid article > p { font-size: 14px; line-height: 1.4; }
.packaging-showcase .vortex-story-grid .portfolio-image { border: 1px solid rgba(var(--glow-rgb), .35); border-radius: var(--radius-lg); }
@media (min-width: 851px) {
  .packaging-showcase .vortex-story-grid { contain: size; grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .packaging-showcase .vortex-story-grid article { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 5px; min-height: 0; }
  .packaging-showcase .vortex-story-grid article > p { min-height: 2.8em; }
  .packaging-showcase .vortex-story-grid .portfolio-image { justify-self: center; height: 100%; max-width: 100%; aspect-ratio: 1; margin: 0; }
  .packaging-showcase .vortex-story-grid :is(.project-image-trigger, .portfolio-image img) { height: 100%; }
}

/* ---------- Brand logo layout ---------- */
.brand-logo-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; }
.brand-logo-layout > .project-carousel { grid-column: 1; grid-row: 1; padding-top: 0; background: var(--bg); }
.brand-logo-description { grid-column: 2; grid-row: 1; }
.brand-logo-description .eyebrow { display: block; margin-bottom: 10px; }
.brand-logo-description p { margin: 16px 0 0; color: var(--soft); line-height: 1.65; }
.brand-logo-layout .project-carousel.carousel-ready .carousel-track { height: auto; aspect-ratio: 2 / 1; }
.brand-logo-layout .project-carousel.carousel-ready .carousel-slide { width: 100%; }
.brand-logo-layout .project-carousel :is(.carousel-track, .carousel-slide, .carousel-slide .project-image-trigger) { background: var(--bg) !important; }
.brand-logo-layout .project-carousel .carousel-slide.is-neighbor { visibility: hidden; }
.brand-logo-layout .project-carousel .carousel-slide img { padding: 0; max-height: none; }
.brand-logo-layout .carousel-overlay-controls { top: 0; }
.brand-logo-layout .carousel-dot::after { background: rgba(255, 255, 255, .4); }
.brand-logo-layout .carousel-dot.is-active::after { background: #fff; }
.alternate-logo-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.alternate-logo-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alternate-logo-grid :is(.portfolio-image, .project-image-trigger) { background: var(--bg); }
.alternate-logo-grid .portfolio-image img { height: auto; aspect-ratio: 2 / 1; object-fit: contain; padding: 0; }
.alternate-logo-grid figcaption { display: none; }

/* Moe Hill Farm: logos sit on white so the brown linework reads; callouts stay visible. */
:is(.project-carousel, .packaging-showcase)[data-carousel-brand="moe-hill"] { --glow-rgb: 101, 140, 68; }
.brand-logo-layout.logo-light > .project-carousel { background: var(--moe-cream); }
.brand-logo-layout.logo-light .project-carousel :is(.carousel-track, .carousel-slide, .carousel-slide .project-image-trigger) { background: transparent !important; }
.brand-logo-layout.logo-light .project-carousel.carousel-ready .carousel-track { aspect-ratio: 4 / 3; }
.brand-logo-layout.logo-light .project-carousel .carousel-slide img { padding: 28px; }
.brand-logo-layout.logo-light .carousel-dot::after { background: #c4cdd2; }
.brand-logo-layout.logo-light .carousel-dot.is-active::after { background: #314e5d; }
.logo-light .alternate-logo-grid :is(.portfolio-image, .project-image-trigger) { background: transparent; }
.logo-light .alternate-logo-grid .portfolio-image { overflow: hidden; border-radius: var(--radius); }
.logo-light .alternate-logo-grid .portfolio-image img { aspect-ratio: 4 / 3; padding: 18px; }
.alternate-logo-grid.with-callouts figcaption {
  display: block; padding: 14px 16px 16px;
  background: var(--surface); border-top: 1px solid var(--line-strong);
  font-size: 14px; line-height: 1.5; color: var(--soft);
}
.alternate-logo-grid.with-callouts figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
/* Moe Hill palette: logos sit on brand colors instead of white. */
:root { --moe-brown: #441b00; --moe-green: #6e9042; --moe-pink: #d23c61; --moe-orange: #f47937; --moe-cream: #e9dccb; }
img.bg-cream { background: var(--moe-cream); }
img.bg-brown { background: var(--moe-brown); }
img.bg-green { background: var(--moe-green); }
img.bg-pink { background: var(--moe-pink); }
img.bg-orange { background: var(--moe-orange); }
.boards-process-image.bg-cream { object-fit: contain; padding: 14px; }
.palette-tile { display: grid; grid-template-rows: repeat(4, 1fr); overflow: hidden; padding: 0; }
.palette-tile span {
  display: flex; align-items: center; padding: 0 18px;
  background: var(--c); color: var(--moe-cream);
  font: 600 14px/1 var(--font-body); letter-spacing: .04em;
}
/* Orchard banner: soft-focus scene, cream logo on the left, the can on the right. */
.moe-banner { position: relative; overflow: hidden; background: #1a2414; isolation: isolate; }
.moe-banner-bg {
  position: absolute; inset: -60px; z-index: -1;
  background: var(--banner) 0% 42% / 250% auto no-repeat;
  filter: blur(3px) brightness(.9) saturate(1.1);
}
.moe-banner-inner {
  display: flex; justify-content: flex-end; align-items: center;
  height: clamp(340px, 40vw, 560px); overflow: hidden;
}
.moe-banner-can {
  height: clamp(340px, 40vw, 560px); width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 38%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 38%, #000 88%, transparent);
}
.portfolio-grid > .moe-mockup { width: min(100%, 680px); justify-self: center; background: transparent; border-radius: var(--radius-lg); overflow: hidden; }
.portfolio-grid > .moe-mockup img { max-height: none !important; }
/* Wide label artwork: let the close-up column grow taller than the label so the squares stay readable. */
@media (min-width: 851px) {
  .packaging-showcase.wide-artwork .packaging-showcase-layout { grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); align-items: stretch; }
  .packaging-showcase.wide-artwork .packaging-artwork-stage { display: grid; place-items: center; }
  .packaging-showcase.wide-artwork .vortex-story-grid { contain: none; grid-template-rows: none; }
  .packaging-showcase.wide-artwork .vortex-story-grid { gap: 14px; align-content: center; }
  .packaging-showcase.wide-artwork .vortex-story-grid article { display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-content: center; text-align: left; }
  .packaging-showcase.wide-artwork .vortex-story-grid article > .portfolio-image { grid-row: 1 / 3; }
  .packaging-showcase.wide-artwork .vortex-story-grid h3 { align-self: end; }
  .packaging-showcase.wide-artwork .vortex-story-grid .portfolio-image { width: 100%; height: auto; margin: 0; }
  .packaging-showcase.wide-artwork .vortex-story-grid :is(.project-image-trigger, .portfolio-image img) { height: auto; }
  .packaging-showcase.wide-artwork .vortex-story-grid article > p { min-height: 0; margin-top: 6px; align-self: start; }
}

/* ---------- Master catalogs ---------- */
.master-catalog-editions, .master-catalog-spreads { display: grid; gap: 24px; }
.master-catalog-editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.master-catalog-spreads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.master-catalog-edition {
  min-width: 0; padding: clamp(16px, 2.5vw, 32px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.master-catalog-edition h3 { font-size: clamp(24px, 3vw, 40px); margin: 8px 0 0; }
.master-catalog-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 12px 0 22px; color: var(--soft); }
.master-catalog-stats strong { color: var(--ink); }
.master-catalog-showcase .portfolio-image img { height: auto; max-height: none; padding: 0; }
.master-catalog-showcase .project-image-trigger { width: 100%; }

/* ---------- About / resume / contact ---------- */
.body-copy p { font-size: 19px; color: var(--soft); max-width: 720px; margin-top: 0; }
.aside-box { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.aside-box h2 { font-size: 23px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.aside-box p { color: var(--soft); }
/* About: merged resume */
.tool-list li { display: flex; flex-direction: column; gap: 4px; color: var(--soft); }
.tool-list strong { color: var(--ink); font-size: 15px; }
.about-resume { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.about-resume .section-top { margin-bottom: 10px; }
.resume-points { margin: 12px 0 0; padding-left: 18px; color: var(--soft); }
.resume-points li { margin: 0 0 8px; padding-left: 4px; }
.resume-points li::marker { color: var(--accent); }
.section.about-skills { padding-top: 40px; padding-bottom: 80px; }
.about-skills .eyebrow { display: block; margin-bottom: 16px; }
.about-skills aside .resume-list { margin-top: 0; }
.about-skills aside .resume-item { grid-template-columns: 1fr; gap: 6px; padding-top: 0; }
.about-photo { padding-bottom: 100px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 760px; object-fit: cover; object-position: center 55%; border-radius: var(--radius); }

.resume-list { border-top: 1px solid var(--line-strong); margin-top: 30px; }
.resume-list + .eyebrow { margin-top: 60px; }
.resume-item { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.resume-item > div:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.resume-item h3 { font-size: 22px; margin: 0; }
.resume-item strong { display: block; margin-top: 6px; }
.resume-item p { margin: 8px 0 0; color: var(--muted); }
.resume-aside h2 { font-size: 28px; }
.resume-aside .aside-box { margin-top: 55px; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist span {
  padding: 7px 13px; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: 100px; background: var(--surface);
}

.contact-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.contact-path {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .3s;
}
.contact-path:hover { border-color: var(--accent); }
.contact-path h2 { font-size: 22px; margin: 0; }
.contact-path p { margin: 0; color: var(--soft); }
.contact-path .text-link { align-self: flex-start; margin-top: auto; }
.contact-mail {
  font: 600 clamp(24px, 3.4vw, 46px)/1.2 var(--font-body); letter-spacing: -.02em;
  border-bottom: 2px solid var(--accent); overflow-wrap: anywhere;
  transition: color .2s, border-color .2s;
}
.contact-mail:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* ---------- Photography ---------- */
.photo-section { padding-top: 12px; }
.photo-grid { display: block; }
.photo-row { display: flex; gap: 8px; margin-bottom: 8px; overflow: hidden; }
.photo-tile {
  flex: none; height: 100%; padding: 0; border: 0; overflow: hidden;
  background: var(--surface); cursor: zoom-in;
}
.photo-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s ease;
}
.photo-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-tile:focus-visible:not(:hover) img { filter: brightness(.78); }
@media (hover: hover) { .photo-tile:hover img { filter: brightness(.75); transform: scale(1.035); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: #000; }
.lightbox[open] { animation: viewer-arrive 250ms var(--ease); }
.lightbox-inner {
  height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px;
  padding: 12px clamp(12px, 3vw, 40px) 20px;
}
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.lightbox-top span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox button {
  padding: 9px 18px; cursor: pointer; font-weight: 700;
  color: #fff; background: var(--surface-2);
  border: 1px solid var(--accent); border-radius: var(--radius);
  transition: background-color .2s, color .2s;
}
.lightbox button:hover { background: var(--accent); color: var(--bg); }
.lightbox button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lightbox-view { min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-controls { display: flex; justify-content: center; gap: 15px; }
.image-arrive { animation: image-arrive 350ms var(--ease); }

/* ---------- Footer ---------- */
.site-foot { background: var(--surface); color: var(--ink); padding: 80px 0 32px; }
.foot-top {
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 60px;
}
.foot-top h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1.2; max-width: 660px; margin: 15px 0 0; }
.foot-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot-cta .foot-mail { font-size: 18px; border-bottom: 1px solid var(--accent); padding-bottom: 5px; transition: color .2s; }
.foot-cta .foot-mail:hover { color: var(--accent-light); }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  padding-block: 28px; border-bottom: 1px solid var(--line-strong);
}
.foot-links a { font: 900 13px/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; font-size: 13px; color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes menu-arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes viewer-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes image-arrive { from { opacity: .2; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

.motion-item {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 800ms var(--ease), transform 950ms var(--ease);
  transition-delay: var(--motion-delay, 0ms);
}
.motion-item.motion-visible { opacity: 1; transform: none; }
.project-hero.motion-item {
  transform: translate3d(0, 18px, 0); clip-path: inset(0 0 12% 0);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease), clip-path 1100ms var(--ease);
}
.project-hero.motion-visible { transform: none; clip-path: inset(0); }
@media (hover: hover) {
  .btn:hover, .text-link:hover { transform: translateY(-2px); }
  .service:hover { transform: translateY(-4px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pager-label { font-size: 0; letter-spacing: 0; gap: 0; }
  .pager-label span { font-size: 15px; }
  .project-intro { grid-template-columns: 1fr; gap: 15px; }
  .project-intro dl { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 0; }
  .process-grid { gap: 25px; }
  .collection-info { display: block; }
  .collection-info > span { display: block; margin-top: 10px; }
}
@media (max-width: 850px) {
  .two-col, .callout { grid-template-columns: 1fr; gap: 32px; }
  .callout img { height: 330px; }
  .stats-grid { gap: 18px; }
  .hero h1 { max-width: 680px; font-size: clamp(44px, 7vw, 60px); }
  .hero-side { max-width: 560px; }
  .packaging-showcase-layout { grid-template-columns: minmax(0, 1fr); }
  .packaging-showcase .vortex-story-grid .portfolio-image { width: min(100%, 310px); margin: 0 auto 8px; }
  .contact-paths { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pub-cover { padding: 14px 14px 0; }
  .pub-info { padding: 14px 14px 4px; }
  .pub-action { padding: 10px 14px 14px; }
  .pub-title { font-size: 14px; }
  .flagship-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .bento-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .bento-tile:not(.bento-main) { aspect-ratio: 4 / 3; }
  .flagship-stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .flagship-stats .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .chapter { grid-template-columns: 1fr; }
  .chapter-flip .chapter-media { order: 0; }
  .chapter-wide-head { grid-template-columns: 1fr; }
  .tradeshow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .hero { align-content: end; min-height: 560px; padding-bottom: 35px; }
  .hero-banner::before {
    background:
      linear-gradient(0deg, var(--bg) 8%, rgba(8, 10, 11, .94) 29%, rgba(8, 10, 11, .35) 70%, rgba(8, 10, 11, .08)),
      var(--hero-image) var(--hero-position-mobile, 76% center) / cover no-repeat;
  }
  .simple-hero { padding-block: 22px; gap: 20px; }
  .collection-card .simple-visual .simple-hero-title { padding-inline: 22px; }
  .collection-card .simple-visual .simple-hero { min-height: 275px; }
  .simple-hero-examples { gap: 12px; }
  .vortex-story-grid { grid-template-columns: 1fr; gap: 38px; }
  .vortex-design-story .section-top { display: block; }
  .vortex-design-story .section-top > p { margin-top: 20px; }
  .vortex-story-grid .portfolio-image { margin-bottom: 20px; }
}
@media (max-width: 740px) {
  .brand-logo-layout { grid-template-columns: 1fr; gap: 20px; }
  .brand-logo-description { grid-column: 1; grid-row: 2; }
  .brand-logo-layout .alternate-logo-grid { gap: 6px; }
}
@media (max-width: 650px) {
  .collection-grid, .portfolio-grid, .process-grid, .services-grid { grid-template-columns: 1fr; }
  .collection-grid { gap: 34px; }
  .collection-section { padding-bottom: 60px; }
  .collection-info h3 { font-size: 23px; line-height: 1.3; }
  .project-intro { padding-top: 35px; padding-bottom: 35px; }
  .project-intro dl { grid-template-columns: 1fr; gap: 0; }
  .project-subtitle { font-size: 19px; }
  .process-grid { padding-top: 30px; padding-bottom: 35px; gap: 30px; }
  .boards-gallery, .boards-gallery-posters { grid-template-columns: 1fr; }
  .portfolio-section .section-top { gap: 14px; }
  .portfolio-image img { height: auto; max-height: 600px; padding: 15px; }
  .project-hero > img { aspect-ratio: 4 / 3; }
  .category-index { gap: 8px; }
  .category-index a { padding: 8px 11px; }
  h2 { overflow-wrap: break-word; }
  .master-catalog-editions, .master-catalog-spreads { grid-template-columns: 1fr; gap: 16px; }
  .project-carousel { padding-top: 18px; border-radius: 5px; }
  .project-carousel.carousel-ready .carousel-track { height: 360px; }
  .project-carousel.carousel-ready .carousel-slide { width: 76%; }
  .project-carousel.carousel-ready[data-carousel-axis="vertical"] .carousel-slide { width: 76%; left: 44%; }
  .project-carousel .carousel-slide img { padding: 8px; max-height: 360px; }
  .carousel-overlay-controls { padding: 0 8px; top: 18px; }
  .carousel-overlay-controls button { width: 38px; height: 38px; }
  .carousel-footer { padding-inline: 45px; }
  .carousel-dots { gap: 2px; }
  .carousel-dot { width: 18px; }
  .carousel-play { right: 10px; }
  .motion-item { transform: translate3d(0, 20px, 0); transition-duration: 650ms, 750ms; }
}
@media (max-width: 630px) {
  :root { --head-height: 76px; }
  .site-head.is-scrolled .head-inner { min-height: 64px; }
  .wordmark, .site-head.is-scrolled .wordmark { width: min(60vw, 220px); max-width: calc(100% - 60px); }
  .menu-button { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 13px;
    padding: 18px 24px 26px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; animation: menu-arrive 250ms var(--ease); }
  .nav a { padding: 8px; }
  .nav .contact-pill { text-align: center; }
  .work-nav-top { justify-content: space-between; }
  .work-toggle { padding: 10px 16px; }
  .work-dropdown {
    position: static; width: auto; padding: 4px 0 4px 12px; margin: 4px 0 6px;
    background: none; border: 0; border-left: 1px solid var(--line-strong); border-radius: 0;
    box-shadow: none; animation: none;
  }
  .work-dropdown::before, .work-caret, .work-flyout { display: none !important; }
  .work-menu { border: 0; padding: 0; }
  /* On phones the menu lists categories only; projects are one more tap away. */
  .nav .work-dropdown a { padding: 10px 8px; font-size: 14px; }

  .section { padding-block: 65px 80px; }
  .section-top { flex-direction: column; align-items: start; }
  .intro { padding-block: 65px 35px; }
  .intro p { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat, .stat:first-child { border: 0; border-top: 1px solid var(--line-strong); padding: 17px 0 0; }
  .stat:first-child { border: 0; }
  .resume-item { grid-template-columns: 1fr; gap: 6px; }
  .project-pager { grid-template-columns: 1fr; padding-block: 36px 64px; }
  .pager-prev, .pager-next { justify-content: space-between; }
  .pager-label { font-size: 11px; letter-spacing: .08em; gap: 6px; }
  .pager-label span { font-size: inherit; }
  .flagship-pager { padding-block: 16px 64px; }
  .tradeshow-grid { gap: 8px; }
  .alternate-logo-grid.with-callouts { grid-template-columns: 1fr; gap: 12px; }
  .alternate-logo-grid.with-callouts .portfolio-image { display: grid; grid-template-columns: 42% 1fr; }
  .alternate-logo-grid.with-callouts figcaption { border-top: 0; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; justify-content: center; }
  .tradeshow-grid figcaption { display: none; }
  .flagship-stats { column-gap: 20px; border-top: 0; padding-top: 0; }
  .flagship-stats .stat:first-child { border-top: 1px solid var(--line-strong); padding-top: 17px; }
  .foot-top, .foot-bottom { display: block; }
  .foot-cta { margin-top: 30px; }
  .foot-bottom span { display: block; margin: 8px 0; }
  .photo-row { gap: 5px; margin-bottom: 5px; }
  .lightbox-inner { padding: 10px 10px 20px; }
  .publication-links a { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .motion-item, .project-hero.motion-item { opacity: 1; transform: none; clip-path: none; }
  .btn:hover, .text-link:hover, .service:hover,
  .project-image-trigger:hover img, .photo-tile:hover img, .collection-card .visual:hover img { transform: none; }
}
