/* ==========================================================================
   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(--muted); border-radius: var(--radius);
  padding: 12px 18px; color: var(--ink);
  transition: background-color .25s, border-color .25s;
}
.nav .contact-pill:hover, .nav .contact-pill[aria-current] {
  background: var(--surface-2); border-color: var(--accent); 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 menu: one panel. Categories on the left; hovering one shows its projects on the right.
   With nothing hovered, the right side shows the featured case study. */
.head-inner { position: relative; }
.work-nav { position: static; }
.work-dropdown {
  display: none; position: absolute; top: 100%; right: var(--gutter); z-index: 30;
  width: min(640px, calc(100vw - 2 * var(--gutter)));
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: visible;
  animation: menu-arrive 200ms var(--ease);
}
.work-dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; }
.work-dropdown a:hover { text-decoration: none; }
.work-left { display: flex; flex-direction: column; padding: 10px; border-right: 1px solid var(--line-strong); }
.work-right { position: relative; padding: 10px; min-height: 300px; }
.work-menu { list-style: none; margin: 0; padding: 0; }
.work-item { position: static; }
.nav .work-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 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); transition: background-color .15s, color .15s;
}
.nav .work-cat { justify-content: space-between; }
.work-cat > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.work-cat small { font-size: 12px; font-weight: 400; color: var(--muted); }
.work-caret { color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s var(--ease), color .2s; }
.nav .work-item:hover > .work-cat, .nav .work-item:focus-within > .work-cat { background: var(--surface-2); color: var(--ink); }
.work-item:hover .work-caret, .work-item:focus-within .work-caret { color: var(--accent-light); transform: translateX(3px); }
.nav .work-all { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-strong); border-radius: 0; font-size: 14px; color: var(--muted); }
.nav .work-all:hover { color: var(--ink); }
/* Right pane: the hovered category's projects sit on top of the featured card. */
.work-flyout {
  display: none; position: absolute; top: 0; bottom: 0; left: 251px; right: 0; z-index: 2;
  flex-direction: column; padding: 18px 16px; gap: 2px;
  background: var(--surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.work-item:hover > .work-flyout, .work-item:focus-within > .work-flyout { display: flex; }
.work-flyout-title { padding: 0 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-strong);
  font: 900 12px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); }
.nav .work-flyout a:hover { background: var(--surface-2); color: var(--ink); }
.nav .work-flyout .work-flyout-all { margin-top: auto; font-size: 13px; color: var(--muted); }
.nav .work-dropdown .work-featured { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 8px; white-space: normal; color: var(--ink); text-align: left; justify-content: flex-start; }
.nav .work-featured:hover { background: var(--surface-2); }
.work-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--line); }
.work-featured-label { font: 900 10px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); }
.work-featured strong { font: 900 18px/1.2 var(--font-display); }
.work-featured-sub { font-size: 13px; color: var(--muted); }
.work-nav.open .work-dropdown { display: grid; }
@media (hover: hover) and (min-width: 631px) {
  .work-nav:hover .work-dropdown { display: grid; }
  .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; }
.work-card .visual img.moe-card-img { object-position: 61% center; }
.work-card .visual img.banana-card-img { object-position: 45% center; }
.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 {
  padding: 14px 20px;
  border: 1px solid var(--muted); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 900 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .25s, border-color .25s;
}
.category-index a:hover { background: var(--surface-2); border-color: var(--accent); }

/* "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);
}
.services-grid > li { display: flex; }
.services-grid > li > .service { flex: 1; }
.service:hover, .service:focus-visible { border-color: var(--accent); }
.service-link {
  margin-top: auto; padding-top: 6px;
  font: 900 11px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-bright); transition: color .2s;
}
.service:hover .service-link { color: var(--accent-light); }
.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 pages: at-a-glance stats and interior spreads. */
.pub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-block: 28px; margin-bottom: 20px; border-block: 1px solid var(--line); }
.pub-stats .stat strong { font-size: clamp(22px, 2.2vw, 32px); }
.spread-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.spread { margin: 0; }
.spread-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #000; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.spread-pages .project-image-trigger { display: block; }
.spread-pages img { display: block; width: 100%; height: auto; }
.spread-pages .project-image-trigger + .project-image-trigger { box-shadow: inset 8px 0 12px -8px rgba(0, 0, 0, .5); }
.spread figcaption { padding-top: 14px; color: var(--soft); font-size: 15px; }
.spread figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 850px) { .spread-grid { grid-template-columns: 1fr; } }
@media (max-width: 630px) { .pub-stats { grid-template-columns: 1fr; gap: 18px; } .pub-stats .stat, .pub-stats .stat:first-child { border: 0; padding-left: 0; } }

/* 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: clamp(16px, 3vw, 48px);
  padding-block: 48px 80px; border-top: 1px solid var(--line);
}
.pager-link, .pager-back {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0;
  width: 100%; max-width: 340px; justify-self: center;
  height: 50px; padding: 0 22px; white-space: nowrap;
  border: 1px solid var(--muted); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 900 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .25s, background-color .25s;
}
.pager-link:hover, .pager-back:hover { background: var(--surface-2); border-color: var(--accent); }
.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-link:hover .pager-label { color: var(--accent-light); }
.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; }
:is(.chapter-media, .flyers-hero) .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; }


/* Web & Social hero: a browser window and three phones built from the real banners and posts. */
.device-hero { max-width: var(--page-width); margin: 0 auto 56px; overflow: hidden;
  background: radial-gradient(ellipse at 45% 40%, #22333b 0%, #121a1e 45%, #070909 100%); }
.dh-stage { position: relative; aspect-ratio: 2.4 / 1; container-type: inline-size; }
.dh-browser { position: absolute; left: 7%; top: 11%; width: 62%; border-radius: 1cqw; overflow: hidden;
  background: #0e1214; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .55); }
.dh-bar { display: flex; align-items: center; gap: .55cqw; height: 2.6cqw; padding: 0 1cqw; background: #1b2226; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dh-bar > span { width: .8cqw; height: .8cqw; border-radius: 50%; background: #3a464c; }
.dh-bar > span:nth-child(1) { background: #e0605a; } .dh-bar > span:nth-child(2) { background: #e2b04a; } .dh-bar > span:nth-child(3) { background: #5bb36a; }
.dh-url { margin-left: 1.5cqw; flex: 0 1 40%; height: 1.5cqw; border-radius: 1cqw; background: #0e1214; color: var(--muted);
  font: 500 .85cqw/1.5cqw var(--font-body); padding-left: 1cqw; overflow: hidden; white-space: nowrap; }
.dh-page { padding: 1.2cqw; display: grid; gap: 1cqw; }
.dh-page img { display: block; width: 100%; height: auto; border-radius: .4cqw; }
.dh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.dh-phone { position: absolute; width: 14.5%; aspect-ratio: 9 / 18.5; padding: .7cqw; border-radius: 2.4cqw;
  background: #0b0d0e; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 3cqw 5cqw rgba(0, 0, 0, .6); }
.dh-phone-screen { height: 100%; border-radius: 1.8cqw; overflow: hidden; background: #f3f4f4; display: flex; flex-direction: column; padding-top: 2.2cqw; }
.dh-post-head { display: flex; align-items: center; gap: .6cqw; padding: 0 .9cqw .7cqw; }
.dh-avatar { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: linear-gradient(135deg, #e0605a, #e2b04a); }
.dh-handle { font: 600 .8cqw/1 var(--font-body); color: #222; }
.dh-phone-screen img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.dh-post-lines { padding: .9cqw; display: grid; gap: .6cqw; }
.dh-post-lines span { height: .6cqw; border-radius: .3cqw; background: #d4d8da; }
.dh-post-lines span + span { width: 60%; }
.dh-phone.p1 { left: 60%; top: 14%; transform: rotate(-6deg); z-index: 1; }
.dh-phone.p2 { left: 71.5%; top: 6%; z-index: 3; width: 16%; }
.dh-phone.p3 { left: 84%; top: 16%; transform: rotate(6deg); z-index: 2; }
@media (max-width: 630px) { .device-hero { margin-bottom: 36px; } .dh-stage { aspect-ratio: 1.6 / 1; }
  .dh-browser { left: 4%; top: 8%; width: 66%; } .dh-phone { width: 19%; } .dh-phone.p2 { width: 21%; left: 66%; top: 10%; } .dh-phone.p1 { left: 54%; top: 22%; } .dh-phone.p3 { left: 79%; top: 24%; } }

/* Flyers hero: the sell-sheet stack on charcoal, lit from the top left. */
.flyers-hero { max-width: var(--page-width); margin-inline: auto; aspect-ratio: 21 / 9; overflow: hidden; }
.flyers-hero, .work-card .visual.flyers-hero {
  background: radial-gradient(ellipse 70% 90% at 8% 0%, rgba(255, 244, 228, .16) 0%, rgba(255, 244, 228, .05) 35%, transparent 65%), linear-gradient(160deg, #24282a 0%, #141718 55%, #0b0d0e 100%); }
.flyers-hero { position: relative; }
/* Seven flyers fanned across the banner: Go-Thru upright in front, the rest tilting and stepping back. */
.flyer-arc { position: absolute; inset: 0; container-type: size; }
.flyer-arc img {
  --a: calc(var(--i) * 1);
  position: absolute; left: 50%; top: 52%; height: 74%; width: auto; aspect-ratio: 1081 / 1400;
  border-radius: 3px; box-shadow: 0 2.5cqh 5cqh rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05);
  transform: translate(-50%, -50%) translateX(calc(var(--i) * 12.5cqw)) translateY(calc(var(--i) * var(--i) * 1.4cqh)) rotate(calc(var(--i) * 5deg)) scale(calc(1 - (var(--i) * var(--i)) * .035));
  z-index: calc(10 - var(--i) * var(--i));
  filter: brightness(calc(1 - (var(--i) * var(--i)) * .05));
  transition: transform .7s var(--ease), filter .4s;
}
.flyer-arc img[style*="--i:-"] { transform: translate(-50%, -50%) translateX(calc(var(--i) * 12.5cqw)) translateY(calc(var(--i) * var(--i) * 1.4cqh)) rotate(calc(var(--i) * 5deg)) scale(calc(1 - (var(--i) * var(--i)) * .035)); }
@media (hover: hover) { :is(.flyers-hero:hover, .collection-card:hover) .flyer-arc img { transform: translate(-50%, -50%) translateX(calc(var(--i) * 13.5cqw)) translateY(calc(var(--i) * var(--i) * 1.6cqh - 1cqh)) rotate(calc(var(--i) * 6deg)) scale(calc(1 - (var(--i) * var(--i)) * .035)); } }
@media (max-width: 630px) { .flyers-hero:not(.visual) { aspect-ratio: 4 / 3; } .flyers-hero:not(.visual) .flyer-arc img { height: 52%; } }

/* ---------- Web & Social: featured campaign, pairs, archive ---------- */
.campaign-hero { padding-top: 8px; padding-bottom: 56px; }
.campaign-pair { position: relative; }
.campaign-pair figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: #000; border: 1px solid var(--line-strong); }
.campaign-pair img { display: block; width: 100%; height: auto; }
.campaign-banner { width: 78%; }
.campaign-post { position: absolute; right: 0; bottom: -10%; width: 30%; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.campaign-pair.is-hero { padding-bottom: 9%; }
.campaign-pair.is-hero .campaign-banner { width: 80%; }
.campaign-pair.is-hero .campaign-post { width: 28%; bottom: 0; }
.campaign-more .campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.campaign-more article .campaign-pair { aspect-ratio: 2 / 1; margin-bottom: 22px; }
.campaign-more article .campaign-banner { position: absolute; top: 0; left: 0; width: 82%; }
.campaign-more article .campaign-post { width: 34%; bottom: 0; }
.campaign-more h3 { font-size: 22px; margin: 0 0 8px; }
.campaign-more article p { margin: 0; color: var(--soft); }
.archive-section .section-top h2 { font-size: clamp(24px, 2.4vw, 32px); }
.banner-archive { columns: 2; column-gap: 14px; }
.banner-archive .portfolio-image { break-inside: avoid; margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.banner-archive .portfolio-image img { height: auto; padding: 0; max-height: none; }
.post-archive { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.post-archive .portfolio-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.post-archive .portfolio-image img { aspect-ratio: 1; height: auto; padding: 0; object-fit: cover; }
@media (max-width: 850px) {
  .campaign-more .campaign-grid { grid-template-columns: 1fr; }
  .post-archive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .banner-archive { columns: 1; }
  .post-archive { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

/* ---------- 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: var(--radius);
  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; }
/* Moe Hill's label is wide; a square stage gives the three close-ups the same height as other packaging pages. */
@media (min-width: 851px) { .packaging-showcase[data-carousel-brand="moe-hill"] .packaging-artwork-stage { aspect-ratio: 1; display: grid; place-items: center; } }
.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: 0; object-fit: contain; }
.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: #e2d2c7; }
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); }
img.bg-black { background: #000; }
img.bg-white { background: #fff; }
.brand-logo-layout > .logo-still { grid-column: 1; grid-row: 1; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--moe-cream); }
.brand-logo-layout .logo-still .project-image-trigger img { width: 100%; height: auto; max-height: none; padding: 0; }
.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;
}
/* Moe Hill hero: one wide orchard photo. */
.moe-hero { max-width: var(--page-width); margin-inline: auto; background: #000; }
.moe-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.moe-hero img[src*="swaying-hero"] { aspect-ratio: 21 / 9; object-position: center 40%; }
/* Moe Hill: tall can mockup on the left, three square mockups stacked on the right. */
.moe-inuse { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.moe-inuse .portfolio-image { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: #000; border: 1px solid rgba(101, 140, 68, .55); }
.moe-inuse .project-image-trigger { height: 100%; }
.moe-inuse .portfolio-image img { display: block; width: 100%; height: 100%; max-height: none; padding: 0; object-fit: cover; }
.moe-inuse-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 14px; }
.moe-inuse-side .portfolio-image img { aspect-ratio: 1; }

/* ---------- 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 & Resume: short intro, photo strip, icon cards. */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn .icon { width: 16px; height: 16px; }
.about-intro p { max-width: 680px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 26px 0 30px; color: var(--soft); font-size: 15px; }
.about-facts li { display: flex; align-items: center; gap: 10px; }
.about-facts .icon { color: var(--accent-bright); }
.about-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; aspect-ratio: 2.2 / 1; }
.about-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #000; }
.about-photos .ap-main { grid-row: 1 / 3; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos .ap-main img { object-position: center 55%; }
.about-photos figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: rgba(8, 10, 11, .78); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.do-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.do-grid li, .kit-grid > div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.do-grid .icon, .kit-grid .icon { width: 30px; height: 30px; color: var(--accent-bright); margin-bottom: 14px; }
.do-grid h3, .kit-grid h3 { font-size: 19px; margin: 0 0 8px; }
.do-grid p, .kit-grid p { margin: 0; font-size: 15px; color: var(--soft); }
.about-do { padding-bottom: 40px; }
.kit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.section.about-kit { padding-top: 40px; }
@media (max-width: 850px) { .do-grid { grid-template-columns: 1fr 1fr; } .kit-grid { grid-template-columns: 1fr 1fr; } .about-photos { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; } .about-photos .ap-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; } .about-photos figure:not(.ap-main) { aspect-ratio: 4 / 3; } }
@media (max-width: 630px) { .do-grid { grid-template-columns: 1fr; } .about-photos figcaption { display: none; } }

.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: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.photo-section:last-of-type { padding-bottom: 100px; }
.photo-section .section-top .eyebrow { display: block; margin-bottom: 10px; }
.photo-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.photo-jump a {
  padding: 12px 18px; border: 1px solid var(--muted); border-radius: var(--radius);
  font: 900 13px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .25s, border-color .25s;
}
.photo-jump a:hover { background: var(--surface-2); border-color: var(--accent); }
.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: pointer;
}
.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(.7); } }

/* ---------- 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: 14px 20px; cursor: pointer;
  border: 1px solid var(--muted); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 900 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .25s, border-color .25s;
}
.lightbox button:hover { background: var(--surface-2); border-color: var(--accent); }
.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; }
/* Photo viewer: arrows on either side of the image. */
.lightbox-inner.no-controls { grid-template-rows: auto minmax(0, 1fr); }
.lightbox-view.has-arrows { position: relative; gap: clamp(8px, 2vw, 24px); }
.lightbox-view.has-arrows img { min-width: 0; }
.lightbox .lightbox-arrow {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
}
.lightbox-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 630px) {
  .lightbox .lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: rgba(8, 10, 11, .7); }
  .lightbox-arrow.prev { left: 4px; } .lightbox-arrow.next { right: 4px; }
}

.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: 12px 14px; font-size: 13px; }
  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, .work-right, .work-cat small { display: none !important; }
  .work-left { padding: 0; border: 0; }
  .work-nav.open .work-dropdown { display: block; }
  .nav .work-all { border: 0; padding-top: 10px; }
  .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-link, .pager-back { max-width: none; }
  .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; }
  .moe-inuse { grid-template-columns: 1fr; gap: 8px; }
  .moe-inuse-side { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
  .moe-hero img { aspect-ratio: 16 / 10; object-position: 62% center; }
  .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; }
}

/* ==========================================================================
   Spacing system: one rhythm for every page.
   XS 24 · S 48 · M 96 · L 160 (desktop), scaling down on smaller screens.
   Space separates sections, so most divider lines are removed.
   ========================================================================== */
:root {
  --space-xs: clamp(16px, 1.7vw, 24px);
  --space-s: clamp(32px, 3.4vw, 48px);
  --space-m: clamp(56px, 6.7vw, 96px);
  --space-l: clamp(80px, 11vw, 160px);
}

/* Section headers: supporting text sits under its heading, not stranded on the far right. */
.section-top { flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--space-s); }
.section-top > p { order: 2; flex-basis: 100%; max-width: 560px; margin-top: calc(var(--space-xs) * -0.33); }
.project-subtitle, .intro p { max-width: 640px; }

/* Homepage */
.stats { padding-block: 64px; }
.brand-strip { padding-block: var(--space-s); }
.brand-strip ul { gap: 12px 40px; }
.section.home-feature { padding-top: var(--space-m); }
.services-grid { gap: 20px; }
.service { padding: 32px; }
.section.callout { padding-bottom: var(--space-l); }

/* Work page */
.category-index { margin-bottom: var(--space-m); }
.collection-section { padding-top: var(--space-s); }

/* Project pages */
.process-grid { padding-block: var(--space-m); border-top: 0; }
.portfolio-section { padding-top: var(--space-m); padding-bottom: 0; border-top: 0; }
.vortex-design-story { padding-bottom: 0; }
.packaging-showcase .vortex-story-grid h3 { margin-top: 12px; }
.project-pager { margin-top: var(--space-m); padding-top: var(--space-s); }

/* Performance Tool case study */
.chapter { padding-block: 72px; border-bottom: 0; }
.chapter-wide { padding-block: 72px; border-bottom: 0; }
.flagship-stats { margin-top: 72px; }
.flagship-index { padding-top: var(--space-m); }
.flagship-pager { padding-top: var(--space-s); }

/* Web & Social */
.campaign-hero { padding-top: var(--space-m); }

/* Publication pages */
.pub-library { padding-top: var(--space-m); border-top: 0; }

/* About & Resume */
.section.about-do, .section.about-resume, .section.about-kit { padding-top: var(--space-m); padding-bottom: 0; border-top: 0; }
.section.about-kit { padding-bottom: var(--space-l); }
.resume-item { padding: 40px 0; }
.resume-points li { margin-bottom: 12px; }

/* Photography */
.photo-section { padding-top: 120px; padding-bottom: 0; border-top: 0; }
.photo-section:first-of-type { padding-top: var(--space-s); }
.photo-section:last-of-type { padding-bottom: var(--space-l); }
.photo-section .section-top { margin-bottom: 32px; }

/* Contact */
.section.two-col { padding-top: 64px; }

@media (max-width: 630px) {
  .stats { padding-block: 40px; }
  .photo-section { padding-top: 72px; }
  .service { padding: 24px; }
  .resume-item { padding: 28px 0; }
}
.section-top:has(> p) { flex-direction: column; align-items: flex-start; gap: 0; }
.section-top:has(> p) > p { margin-top: 14px; }
@media (max-width: 630px) { .section-top { align-items: flex-start; } }

/* ==========================================================================
   Interaction polish: transitions only, no keyframes.
   1. Collection cards respond as one object. 2. "Go" arrows slide 3px.
   3. Header hairline appears only once content scrolls beneath it.
   ========================================================================== */
@media (hover: hover) {
  .collection-card:hover .visual { border-color: var(--accent); }
  .collection-card:hover .visual > img { transform: scale(1.03); }
  .collection-card:hover .collection-info h3 a { color: var(--accent-light); }
}
.collection-card:focus-within .visual { border-color: var(--accent); }
.collection-info h3 a { transition: color .2s; }

.arrow { display: inline-block; transition: transform .2s var(--ease); }
a:is(:hover, :focus-visible) .arrow { transform: translateX(3px); }
a:is(:hover, :focus-visible) .arrow-back { transform: translateX(-3px); }

.site-head { border-bottom-color: transparent; transition: border-color .25s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .collection-card:hover .visual > img, a .arrow { transform: none !important; }
}

/* Merch mockups fill their frame edge to edge at the photo's own 3:2 shape. */
.portfolio-image.fill img,
.portfolio-grid > .portfolio-image.fill:only-child img { height: auto; max-height: none; aspect-ratio: 3 / 2; object-fit: cover; padding: 0; }

/* Home brand strip: one even line on wide desktops, two even rows of five below that. */
.brand-strip .wrap { display: block; }
.brand-strip .eyebrow { margin-bottom: 18px; }
@media (min-width: 761px) {
  .brand-strip ul { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 16px 32px; }
}
@media (min-width: 1360px) {
  .brand-strip ul { grid-template-columns: none; grid-auto-flow: column; }
}

/* 404 page */
.intro.not-found { padding-block: var(--space-l); }
.intro.not-found .actions { margin-top: var(--space-s); }
