:root {
  /* Light/airy palette — warm off-white surfaces with dark-navy text.
     Yellow stays as the brand accent; the deep navy from the old design
     survives as headings and the occasional accent (header, footer). */
  --ink: #1c1f3d;
  --ink-soft: rgba(28, 31, 61, 0.7);
  --ink-faint: rgba(28, 31, 61, 0.5);
  --muted: rgba(28, 31, 61, 0.62);
  --paper: #ffffff;
  --surface: #ffffff;
  --bg: #fbf9f5;
  --bg-alt: #f1ece2;
  --bg-cream: #f6f1e6;
  --line: rgba(28, 31, 61, 0.12);
  --line-soft: rgba(28, 31, 61, 0.07);
  --blue: #242954;
  --blue-dark: #171a36;
  --blue-light: #303766;
  --sky: #d7e8ff;
  --yellow: #f8b51d;
  --yellow-soft: #ffd96d;
  --lime: #dff75f;
  --aqua: #6be7ff;
  --shadow: 0 26px 70px rgba(6, 26, 66, 0.08);
  --shadow-soft: 0 12px 32px rgba(28, 31, 61, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(4, 17, 45, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 54px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
}

.brand-logo {
  display: block;
  height: 42px;
  max-width: min(235px, 44vw);
  object-fit: contain;
  width: auto;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
}

nav a {
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 650;
  min-height: 42px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--yellow);
}

nav a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}

nav a.header-cta {
  background: var(--yellow);
  border-radius: 10px;
  color: #04112d;
  padding: 0 14px;
}

nav a.header-cta:hover,
nav a.header-cta:focus-visible {
  background: #ffd66b;
  color: #04112d;
  transform: translateY(-1px);
}

.hero {
  align-items: center;
  background: var(--bg);
  display: grid;
  gap: clamp(36px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px) 70px;
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(248, 181, 29, 0.08), transparent 40%),
    radial-gradient(circle at 90% 92%, rgba(36, 41, 84, 0.06), transparent 45%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-copy,
.hero-stack {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
}

/* The "earns its place" phrase gets a yellow underline-style accent via
   <em> tags. Used sparingly so the headline reads cleanly on cream. */
h1 em,
.section-heading h2 em,
.cta-strip h2 em {
  background: linear-gradient(110deg, #f8b51d 0%, #f5a302 50%, #f8b51d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.section-heading h2,
.cta-strip h2 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Footer keeps the dark navy bookend, so its h2 stays white */
.footer-brand-block h2 {
  color: white;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.05rem, 2.72vw, 3.15rem);
  line-height: 1.1;
  max-width: 860px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  max-width: 900px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.icon-button,
.segmented button {
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  padding: 10px 12px;
}

.primary-action {
  background: var(--yellow);
  box-shadow: 0 14px 28px rgba(248, 181, 29, 0.22);
  color: #04112d;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ffd66b;
  box-shadow: 0 18px 38px rgba(248, 181, 29, 0.32);
  color: #04112d;
  outline: none;
  transform: translateY(-1px);
}

.secondary-action {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: rgba(248, 181, 29, 0.08);
  border-color: rgba(248, 181, 29, 0.7);
  box-shadow: 0 12px 24px rgba(28, 31, 61, 0.06);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

/* ===== Hero marquees — 3 horizontal rows of brochures drifting at
   different speeds in alternating directions. Each row's track holds the
   set of mockups twice so the loop is seamless (animate -50% on x). ===== */
.hero-marquees {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  min-height: 560px;
  overflow: hidden;
  position: relative;
  /* Vertical fade so the marquee fades into the dark hero backdrop
     instead of clipping hard at the top/bottom. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.marquee-row {
  overflow: hidden;
  position: relative;
}

/* Right-edge fade where the strip meets the viewport edge */
.marquee-row::after {
  background: linear-gradient(90deg, transparent 0%, transparent 70%, var(--bg) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.marquee-track {
  align-items: center;
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  height: 100%;
  width: max-content;
  will-change: transform;
}

.marquee-row--ltr .marquee-track {
  animation: marqueeLtr var(--marquee-speed, 38s) linear infinite;
}
.marquee-row--rtl .marquee-track {
  animation: marqueeRtl var(--marquee-speed, 32s) linear infinite;
}

@keyframes marqueeLtr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}
@keyframes marqueeRtl {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

.marquee-tile {
  align-items: center;
  /* No paper backing or border: each brochure's own colored artwork sits
     directly on the cream hero. A soft shadow keeps it lifted off the page
     (printed-piece feel) without a gray plate around it. */
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(28, 31, 61, 0.14);
  display: inline-flex;
  flex: 0 0 auto;
  height: clamp(140px, 16vh, 200px);
  justify-content: center;
  overflow: hidden;
  /* Slight tilt makes the row of brochures feel like a casually-stacked
     print run rather than a clinical grid. */
  transform: rotate(-2deg);
  width: auto;
}

.marquee-row:nth-child(2) .marquee-tile { transform: rotate(2deg); }
.marquee-row:nth-child(3) .marquee-tile { transform: rotate(-1.5deg); }

.marquee-tile img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: auto;
}

/* No hover reaction. Changing animation-duration mid-loop forces the browser
   to recompute the strip's position and snap it sideways — that was the "jump"
   / "the image disappears when I hover" bug. The rows just drift continuously
   and ignore the pointer, like an ambient backdrop. */

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

.intro-copy {
  background: var(--bg-cream);
  color: var(--ink);
  padding: clamp(40px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.intro-copy p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.42vw, 1.24rem);
  font-weight: 400;
  line-height: 1.62;
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
}

/* ===== Hero stats strip ===== */
.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 38px 0 0;
  max-width: 540px;
  padding: 22px 0 0;
}

.hero-stats li {
  display: grid;
  gap: 4px;
}

.hero-stats strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-stats span {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ===== Capabilities (what we design) ===== */
.capabilities {
  background: var(--bg);
  padding: clamp(64px, 10vw, 130px) clamp(18px, 5vw, 72px) clamp(48px, 8vw, 100px);
  position: relative;
}

.capabilities::before {
  background: linear-gradient(180deg, transparent 0%, var(--bg-cream) 100%);
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.capabilities-heading {
  margin: 0 auto clamp(36px, 5vw, 56px);
  max-width: 760px;
  position: relative;
  text-align: center;
}

.capabilities-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 6px auto 14px;
  max-width: 720px;
}

.capability-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
}

.capability-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 26px 24px 22px;
  position: relative;
  transition:
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.capability-card:hover {
  border-color: rgba(248, 181, 29, 0.6);
  box-shadow: 0 22px 40px rgba(28, 31, 61, 0.09);
  transform: translateY(-3px);
}

.capability-card--feature {
  background: linear-gradient(145deg, #ffffff 0%, var(--bg-cream) 100%);
  border-color: rgba(248, 181, 29, 0.55);
  grid-column: span 1;
}

.capability-glyph {
  align-items: center;
  background: rgba(248, 181, 29, 0.14);
  border: 1px solid rgba(248, 181, 29, 0.35);
  border-radius: 12px;
  color: #b67c00;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 8px;
  width: 56px;
}

.capability-glyph svg {
  height: 24px;
  width: 32px;
}

.capability-card h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}

.capability-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
}

.capability-meta {
  color: #b67c00;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-transform: uppercase;
}

.capability-footnote {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: clamp(28px, 4vw, 44px) auto 0;
  max-width: 700px;
  position: relative;
  text-align: center;
}

.capability-footnote a {
  color: #b67c00;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.capability-footnote a:hover {
  color: #f8b51d;
}

/* ===== Shared "lead" paragraph used in section headings ===== */
.section-heading .lead {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  margin: 14px auto 0;
  max-width: 640px;
}

.viewer-section .section-heading .lead {
  margin: 14px auto 0;
}

.work-heading {
  margin: 0 auto clamp(20px, 3vw, 32px);
  max-width: 820px;
  text-align: center;
}

.work-heading h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 6px auto 0;
}

.work-heading .lead a {
  color: #b67c00;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ===== Filter chip bar above the portfolio grid ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto clamp(28px, 4vw, 44px);
  max-width: 920px;
}

.filter-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 8px 16px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  background: var(--bg-cream);
  border-color: rgba(248, 181, 29, 0.55);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1c1f3d;
}

.filter-chip-count {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
  opacity: 0.6;
}

.filter-chip.is-active .filter-chip-count {
  opacity: 0.7;
}

/* ===== CTA strip just above the footer — warm cream with the yellow
   accent doing the heavy lifting via the primary CTA. ===== */
.cta-strip {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(248, 181, 29, 0.18), transparent 50%),
    radial-gradient(ellipse at 88% 100%, rgba(36, 41, 84, 0.08), transparent 55%),
    var(--bg-cream);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  position: relative;
}

.cta-strip .eyebrow {
  color: var(--ink-faint);
}

.cta-strip p {
  color: var(--ink-soft);
}

.cta-inner {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.4fr) auto;
  margin: 0 auto;
  max-width: 1180px;
}

.cta-copy {
  display: grid;
  gap: 8px;
}

.cta-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0;
}

.cta-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 6px 0 0;
  max-width: 620px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-self: end;
}

.cta-actions .primary-action,
.cta-actions .secondary-action {
  padding: 14px 22px;
}

.viewer-section,
.work-section {
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

/* Viewer section gets a slightly warmer band so the brochure stage
   visually anchors against the surrounding cream pages. */
.viewer-section {
  background: var(--bg);
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(56px, 8vw, 110px);
  position: relative;
}

.work-section {
  background: var(--bg-cream);
  position: relative;
}

.section-heading {
  margin-bottom: clamp(30px, 5vw, 58px);
}

.viewer-section .section-heading {
  margin-bottom: clamp(18px, 3vw, 32px);
  text-align: center;
}

.viewer-section .section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0 auto;
  max-width: none;
  white-space: nowrap;
}

.work-section .section-heading h2 {
  max-width: none;
}

/* ===== Open layout — industry tabs, stage, and picker all flow as
   full-width siblings inside the section. No bordered card boxing them
   in; the section padding provides the rhythm. ===== */
.viewer-card {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
}

/* Industry tabs sit centered above the stage. Pill row, no surrounding box. */
.industry-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
}

.industry-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 8px 16px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.industry-tab:hover,
.industry-tab:focus-visible {
  background: var(--bg-cream);
  border-color: rgba(248, 181, 29, 0.55);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.industry-tab.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1c1f3d;
}

.industry-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
  opacity: 0.55;
}

/* Legacy class kept so old responsive rules don't break — the new layout
   is a single column grid inside .viewer-card. */
.viewer-layout {
  display: contents;
}

.viewer-controls label,
.range-label {
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: space-between;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.segmented button {
  background: transparent;
  color: rgba(238, 246, 255, 0.72);
  min-height: 40px;
  padding: 8px 10px;
}

.segmented button.is-active {
  background: var(--yellow);
  box-shadow: 0 7px 18px rgba(6, 26, 66, 0.1);
  color: #04112d;
}

.button-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.icon-button {
  align-items: center;
  background: var(--yellow);
  color: #04112d;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 12px;
}

.icon-button:first-child {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

input[type="range"] {
  accent-color: var(--yellow);
  width: 100%;
}

.controls-hint {
  color: rgba(238, 246, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 4px;
}

/* Stage on the open layout — soft cream surface, no hard card edge.
   Subtle radial vignette gives the brochure a "lit from above" feel
   without darkening the page. */
.viewer-stage-wrap {
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(248, 181, 29, 0.06), transparent 55%),
    radial-gradient(ellipse at 50% 92%, rgba(28, 31, 61, 0.04), transparent 60%),
    var(--bg-cream);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  min-height: clamp(320px, 46vw, 540px);
  overflow: hidden;
  padding: clamp(48px, 5vw, 70px) clamp(20px, 3vw, 44px) clamp(90px, 9vw, 120px);
  position: relative;
}

.stage-shadow {
  background: radial-gradient(ellipse, rgba(28, 31, 61, 0.14), transparent 70%);
  bottom: 16%;
  height: 50px;
  left: 24%;
  position: absolute;
  right: 24%;
}

/* Floating "Now previewing" chip pinned to top of the stage. */
.viewer-overlay--top {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(28, 31, 61, 0.06);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 50%;
  padding: 8px 18px;
  pointer-events: none;
  position: absolute;
  top: clamp(14px, 2vw, 22px);
  transform: translateX(-50%);
  z-index: 4;
}

/* Floating controls cluster pinned to bottom of the stage. Idles at
   lower opacity so it doesn't fight the brochure; returns to full when
   the user hovers anywhere over the stage. */
.viewer-overlay--bottom {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  bottom: clamp(14px, 2.5vw, 22px);
  box-shadow: 0 14px 36px rgba(28, 31, 61, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  left: 50%;
  opacity: 0.92;
  padding: 10px 14px;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 4;
}

.viewer-stage-wrap:hover .viewer-overlay--bottom,
.viewer-stage-wrap:focus-within .viewer-overlay--bottom {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ---- Quick-view chips (compact, pill row) ---- */
.view-presets {
  display: inline-flex;
  gap: 4px;
}

.view-preset {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 650;
  gap: 6px;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.view-preset:hover,
.view-preset:focus-visible {
  background: rgba(248, 181, 29, 0.08);
  border-color: rgba(248, 181, 29, 0.6);
  color: var(--ink);
  outline: none;
}

.view-preset.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1c1f3d;
}

.view-preset-glyph {
  align-items: center;
  color: var(--ink-faint);
  display: inline-flex;
  justify-content: center;
}
.view-preset-glyph svg { width: 18px; height: 14px; display: block; }
.view-preset.is-active .view-preset-glyph { color: #1c1f3d; }

/* ---- Fold slider ---- */
.fold-track {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(120px, 180px) auto;
}

.fold-track-end {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fold-track input[type="range"] {
  margin: 0;
  width: 100%;
}

/* Tip line — sits at the very bottom of the stage, low contrast. */
.viewer-tip {
  bottom: 8px;
  color: var(--ink-faint);
  font-size: 0.7rem;
  left: 50%;
  margin: 0;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 3;
}

/* "Now previewing" chip — used inside .viewer-overlay--top */
.viewer-current-label {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.viewer-overlay--top strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}
.viewer-current-meta {
  color: var(--ink-soft);
  font-size: 0.84rem;
}
.viewer-current-meta::before { content: "· "; opacity: 0.5; }

.trifold {
  --fold: 0;
  --fold-right: 0;
  --fold-left: 0;
  --spin: 0deg;
  --tilt: 4deg;
  aspect-ratio: 18 / 14;
  cursor: grab;
  display: flex;
  filter: drop-shadow(0 28px 38px rgba(6, 26, 66, 0.24));
  /* Constrain so the stage doesn't stretch unbounded inside the wider
     viewer-card. Trifold is at most ~480px wide (~370px tall). */
  max-width: clamp(280px, 38vw, 480px);
  perspective: 2600px;
  perspective-origin: 50% 40%;
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
  z-index: 1;
}

.trifold-stage {
  height: 100%;
  position: relative;
  /* X applied AFTER Y in matrix terms — so tilt is world-space and the brochure
     doesn't barrel-roll when you spin it after tilting. */
  transform: rotateX(var(--tilt)) rotateY(var(--spin));
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  display: flex;
}

.trifold.is-dragging { cursor: grabbing; }
.trifold.is-dragging .trifold-stage,
.trifold.is-dragging .panel {
  transition: none;
}

.panel {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms ease,
    box-shadow 520ms ease;
}

.panel-face {
  background-repeat: no-repeat;
  background-size: 300% 100%;
  border: 1px solid rgba(23, 32, 38, 0.12);
  inset: 0;
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front face = INSIDE of the brochure. Back face = OUTSIDE.
   This mirrors physical paper: there are two real sides and they don't swap.
   When the brochure folds closed, the back (outside) of the topmost panel is
   what you see — the front cover. */
.panel-face--front { background-image: var(--brochure-inside); }
.panel-face--back {
  background-image: var(--brochure-outside);
  transform: rotateY(180deg);
}

/* Inside slices read left→right: [Inside 1 | Inside 2 | Inside 3 (flap)]
   Outside slices read left→right: [Flap | Back | Front cover]
   The flap is physically the same panel on both sides — so when we flip the
   brochure, what was on the RIGHT of inside (Inside 3) lands on the LEFT of
   outside (Flap), and vice versa. The back-face slice positions are mirrored
   relative to the front-face positions to honor this. */
.panel-left .panel-face--front  { background-position: left center; }
.panel-left .panel-face--back   { background-position: right center; }   /* Front cover */
.panel-center .panel-face       { background-position: center center; }
.panel-right .panel-face--front { background-position: right center; }
.panel-right .panel-face--back  { background-position: left center; }    /* Flap */

/* The flap is narrower than the other panels so it can tuck inside when
   the brochure folds closed. In the inside-up view this narrow panel is on
   the right (Inside 3 / Flap). */
.panel-right { flex: 0.88 1 0; }

/* translateZ is listed BEFORE rotateY so the depth offset is applied in
   world space AFTER the rotation — otherwise the lift gets flipped to
   negative-Z by the 180deg fold and the panel ends up behind the center. */
.panel-left {
  transform-origin: right center;
  transform:
    translateZ(calc(2px + 10px * var(--fold-left)))
    rotateY(calc(180deg * var(--fold-left)));
  z-index: 3;
}

.panel-center {
  z-index: 1;
}

.panel-right {
  transform-origin: left center;
  transform:
    translateZ(calc(1px + 5px * var(--fold-right)))
    rotateY(calc(-180deg * var(--fold-right)));
  z-index: 2;
}

.panel-right .panel-face--back,
.panel-left .panel-face--back {
  box-shadow: inset 0 0 60px rgba(6, 26, 66, 0.18);
}

.trifold.is-folded .panel-left {
  box-shadow: 0 24px 44px rgba(6, 26, 66, 0.28);
}

/* Paper-like top highlight and bottom shadow on every panel face — gives the
   panels a subtle material feel instead of looking like flat printed rectangles. */
.panel-face::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.08) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

/* During the slow idle spin the snap-back transition would fight the per-frame
   updates, so suspend it. The drag handler already does this for active drags;
   this covers the idle path. */
.trifold.is-idle-spinning .trifold-stage,
.trifold.is-idle-spinning .panel {
  transition: none;
}

/* Idle hint: a soft cursor + faint accent so users discover the brochure is
   draggable without needing to read the controls hint. */
.trifold { cursor: grab; }
.trifold.is-dragging { cursor: grabbing; }
.trifold:hover .panel-left { box-shadow: 0 28px 56px rgba(6, 26, 66, 0.32); }

/* Picker flows as its own band below the stage. No card border — the
   tab strip above + stage above + section padding already group it. */
.brochure-picker {
  background: transparent;
  display: grid;
  padding: 0;
}

.picker-heading { display: none; }

/* Horizontal scrolling strip — calm, no auto-ticker. Users browse at their
   own pace using the scrollbar, drag, or the prev/next chevrons. */
.picker-strip {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  position: relative;
}

.picker-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.picker-track::-webkit-scrollbar { height: 6px; }
.picker-track::-webkit-scrollbar-track { background: transparent; }
.picker-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.picker-track {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.picker-nav {
  align-items: center;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.picker-nav:hover,
.picker-nav:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1c1f3d;
  outline: none;
}



.preview-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  flex: 0 0 clamp(180px, 20vw, 220px);
  gap: 10px;
  padding: 10px;
  scroll-snap-align: start;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.preview-card:hover,
.preview-card:focus-visible {
  border-color: rgba(248, 181, 29, 0.7);
  box-shadow: 0 16px 28px rgba(28, 31, 61, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.preview-card.is-active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(248, 181, 29, 0.18);
  transform: translateY(-4px);
}

.preview-thumb {
  align-items: center;
  aspect-ratio: 18 / 14;
  background: var(--bg-cream);
  border-radius: 10px;
  display: flex;
  overflow: hidden;
}

.preview-thumb img {
  width: 100%;
}

.preview-card strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.2;
}

.preview-card span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 18px;
  overflow: hidden;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(248, 181, 29, 0.55);
  box-shadow: 0 24px 48px rgba(28, 31, 61, 0.1);
  outline: none;
  transform: translateY(-4px);
}

/* On hover, the two stacked thumbnails inside the card separate slightly —
   a quiet hint that this card represents a two-sided brochure. */
.portfolio-card:hover .card-art img:nth-child(1) {
  transform: rotate(-2deg) translate(-4px, 4px);
}
.portfolio-card:hover .card-art img:nth-child(2) {
  transform: rotate(8deg) translate(6px, -6px);
}
.card-art img {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:disabled {
  cursor: default;
}

.portfolio-card:disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.card-art {
  align-items: center;
  background:
    radial-gradient(ellipse at 35% 25%, rgba(248, 181, 29, 0.08), transparent 55%),
    var(--bg);
  display: grid;
  min-height: 260px;
  padding: 28px;
  place-items: center;
  position: relative;
}

.card-art img {
  border-radius: 7px;
  box-shadow: 0 16px 32px rgba(28, 31, 61, 0.12);
  width: 92%;
}

.card-art img:nth-child(2) {
  position: absolute;
  right: 22px;
  top: 34px;
  transform: rotate(4deg);
  width: 62%;
}

.card-copy {
  padding: 0 20px 22px;
}

.card-copy h3 {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
}

.card-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 8px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  background: var(--bg-cream);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  padding: 5px 9px;
}

.site-footer {
  background:
    radial-gradient(circle at 84% 4%, rgba(48, 55, 102, 0.58), transparent 28%),
    #151832;
  color: white;
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 72px) 28px;
}

.site-footer .eyebrow {
  color: #d8e1ff;
}

.footer-main {
  align-items: start;
  display: grid;
  gap: clamp(32px, 6vw, 92px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

.footer-brand-block {
  display: grid;
  gap: 24px;
}

.footer-brand-block p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  max-width: 650px;
}

.footer-branding {
  max-width: min(260px, 56vw);
  opacity: 0.92;
}

.footer-columns {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  justify-self: end;
  max-width: 320px;
  width: 100%;
}

.footer-column {
  align-content: start;
  display: grid;
  gap: 10px;
}

.footer-column h3 {
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(238, 246, 255, 0.72);
  font-weight: 500;
  line-height: 1.35;
  font-size: 1rem;
}

.footer-column a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(238, 246, 255, 0.58);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: clamp(44px, 8vw, 88px);
  padding-top: 22px;
}

.footer-bottom a {
  color: rgba(238, 246, 255, 0.68);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

@media (max-width: 980px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-self: stretch;
  }

  .hero,
  .viewer-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stack {
    min-height: 430px;
  }

  .viewer-controls {
    position: relative;
    top: auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-columns {
    grid-template-columns: 1fr;
    justify-self: stretch;
    max-width: none;
  }

  .carousel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-controls {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .range-label,
  .viewer-controls input[type="range"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .hero-stats li:nth-child(3) {
    grid-column: span 2;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
  }

  nav a.header-cta {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.05rem, 9.5vw, 3.05rem);
  }

  .hero-stack {
    min-height: 310px;
  }

  .viewer-section,
  .work-section {
    padding-inline: 14px;
  }

  .viewer-section .section-heading h2 {
    font-size: clamp(1.55rem, 6.7vw, 2.25rem);
    white-space: normal;
  }

  .footer-columns {
    justify-self: stretch;
    max-width: none;
  }

  .portfolio-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .stage-wrap {
    min-height: 330px;
    padding: 18px;
  }

  .carousel-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel-control {
    display: none;
  }

  .viewer-controls {
    grid-template-columns: 1fr;
  }

  .preview-card {
    flex-basis: min(74vw, 250px);
  }

  .trifold {
    transform: none;
  }

  .panel-left {
    transform: translateX(calc(200% * var(--fold))) rotateY(calc(-10deg * var(--fold)))
      translateZ(calc(-14px * var(--fold)));
  }

  .panel-center {
    transform: translateX(calc(100% * var(--fold))) rotateY(calc(10deg * var(--fold)))
      translateZ(calc(-8px * var(--fold)));
  }

  .panel-right {
    transform: translateZ(calc(22px * var(--fold)));
  }
}

.brochure-detail-page {
  background: var(--bg);
  min-height: 100vh;
}

.detail-hero {
  align-items: center;
  background: var(--bg);
  display: grid;
  gap: clamp(28px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px) 70px;
  position: relative;
}

.detail-hero::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(248, 181, 29, 0.08), transparent 40%),
    radial-gradient(circle at 90% 92%, rgba(36, 41, 84, 0.06), transparent 45%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.detail-hero-copy,
.detail-hero-art {
  position: relative;
  z-index: 1;
}

.back-link {
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #b67c00;
}

.detail-hero p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 680px;
}

.detail-facts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 0;
  max-width: 680px;
  overflow: hidden;
}

.detail-facts div {
  background: transparent;
  border-right: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  padding: 16px 18px;
}

.detail-facts div:nth-child(-n+2) {
  border-top: none;
}

.detail-facts div:nth-child(2n) {
  border-right: none;
}

.detail-facts dt {
  color: var(--ink-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-facts dd {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 0;
}

.detail-hero-art {
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(248, 181, 29, 0.06), transparent 55%),
    var(--bg-cream);
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  min-height: clamp(330px, 44vw, 620px);
  padding: clamp(20px, 4vw, 46px);
}

.detail-hero-art img {
  border-radius: 9px;
  box-shadow: 0 24px 46px rgba(28, 31, 61, 0.14);
  width: 100%;
}

.mockup-section {
  background: var(--bg-cream);
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.detail-section-heading {
  margin-bottom: clamp(28px, 4vw, 48px);
  text-align: center;
}

.detail-section-heading h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin: 6px auto 0;
  max-width: 720px;
}

.detail-section-heading .lead {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  margin: 14px auto 0;
  max-width: 620px;
}

.mockup-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.mockup-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
}

.mockup-frame {
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(248, 181, 29, 0.05), transparent 55%),
    var(--bg);
  border-radius: 12px;
  display: flex;
  min-height: clamp(260px, 34vw, 520px);
  padding: clamp(16px, 3vw, 34px);
}

.mockup-frame img {
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(28, 31, 61, 0.1);
  width: 100%;
}

.mockup-card h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
}

.mockup-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 8px 0 0;
}

.detail-viewer {
  padding-top: 0;
}

.detail-footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .detail-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .mockup-section {
    padding-inline: 14px;
  }
}


/* Mobile and tablet refinements */
html,
body {
  overflow-x: hidden;
}

.primary-action,
.secondary-action,
.icon-button,
.segmented button,
.header-cta {
  text-align: center;
}

@media (max-width: 980px) {
  .site-header {
    padding: 12px clamp(14px, 3vw, 30px);
  }

  .hero,
  .detail-hero {
    gap: 34px;
    padding-top: clamp(36px, 7vw, 70px);
  }

  .hero-copy p:not(.eyebrow),
  .detail-hero p:not(.eyebrow),
  .footer-brand-block p:not(.eyebrow),
  .mockup-card p,
  .card-copy p {
    font-size: 1rem;
  }

  .detail-section-heading h2,
  .work-section .section-heading h2 {
    max-width: 100%;
  }

  .stage-wrap {
    min-height: clamp(340px, 64vw, 620px);
  }

  .detail-hero-art {
    min-height: clamp(300px, 58vw, 540px);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    height: 38px;
    max-width: min(225px, 74vw);
  }

  nav {
    gap: 8px;
    justify-content: space-between;
  }

  nav a {
    border-radius: 10px;
    font-size: 0.84rem;
    justify-content: center;
    min-height: 38px;
    padding: 0 8px;
  }

  nav a.header-cta {
    padding: 0 10px;
  }

  .hero,
  .detail-hero {
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(2rem, 7.8vw, 3.15rem);
    line-height: 1.06;
  }

  h2,
  .detail-section-heading h2,
  .work-section .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3.35rem);
    line-height: 1.08;
  }

  .viewer-section .section-heading h2 {
    font-size: clamp(1.72rem, 7vw, 2.55rem);
    white-space: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .primary-action,
  .secondary-action {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 46px;
    width: 100%;
  }

  .hero-stack {
    min-height: clamp(280px, 78vw, 430px);
  }


  .viewer-controls {
    gap: 12px;
    padding: 14px;
  }

  .button-row {
    gap: 8px;
  }

  .stage-wrap {
    border-radius: 14px;
    min-height: clamp(300px, 82vw, 440px);
    padding: 14px;
  }

  .trifold {
    width: min(112%, 720px);
  }

  .carousel-heading span {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .portfolio-card,
  .mockup-card {
    border-radius: 12px;
  }

  .card-art {
    min-height: clamp(230px, 62vw, 330px);
    padding: 18px;
  }

  .card-copy {
    padding: 0 16px 18px;
  }

  .detail-facts {
    gap: 8px;
  }

  .detail-facts div {
    padding: 14px;
  }

  .detail-hero-art,
  .mockup-frame {
    border-radius: 14px;
    min-height: clamp(250px, 72vw, 420px);
    padding: 14px;
  }

  .mockup-card {
    padding: 14px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-branding {
    max-width: min(230px, 72vw);
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
  }

  nav {
    gap: 6px;
  }

  nav a {
    font-size: 0.78rem;
    min-height: 36px;
    padding-inline: 6px;
  }

  nav a.header-cta {
    padding-inline: 8px;
  }

  h1 {
    font-size: clamp(1.82rem, 8.7vw, 2.45rem);
  }

  .hero,
  .detail-hero,
  .viewer-section,
  .work-section,
  .mockup-section {
    padding-inline: 12px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .icon-button {
    width: 100%;
  }

  .tag-row span {
    font-size: 0.72rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
