/* ==========================================================================
   Bobbalucci’s Woodworking & Hobby Shop - Direction: The Specimen Catalogue
   Type: STIX Two Text · Palette: Material-Rooted Specimen Fields (No gradients,
   no hairlines, no shadows at rest, no monospace, no 01/02/03 numbering)
   ========================================================================== */

:root {
  /* Ground, Surface, Ink, Accent (Crisp Archival Paper + Timber/Epoxy Specimen Fields) */
  --bg: #f6f6f4;
  --surface: #ecece8;
  --ink: #121211;
  --muted: #52514e;
  --accent: #184e59;        /* Deep Great Lakes Teal Epoxy */
  --accent-strong: #103840;
  --accent-ink: #ffffff;

  /* 4 Rotating Specimen Tile Fields */
  --field-1: #d4e2e5;
  --field-1-ink: #121211;
  --field-2: #d8e3d2;
  --field-2-ink: #121211;
  --field-3: #e3dfd7;
  --field-3-ink: #121211;
  --field-4: #dad6df;
  --field-4-ink: #121211;

  /* Dark Workshop Field for CTA & Footer */
  --dark-field: #181715;
  --dark-ink: #f6f6f4;
  --dark-muted: #b5b3ad;

  /* Typography - Dealt Libre Franklin + Source Serif 4 */
  --font-display: "Libre Franklin", system-ui, sans-serif;
  --font-text: "Source Serif 4", Georgia, serif;

  /* Strictly 5 Fluid Type Steps */
  --step-small: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);   /* 14-15px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);      /* 17-19px */
  --step-lead: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);         /* 20-24px */
  --step-head: clamp(1.875rem, 1.4rem + 2.2vw, 3.125rem);       /* 30-50px */
  --step-display: clamp(2.35rem, 1.6rem + 3.6vw, 4.5rem);       /* 37-72px */

  /* Frame & Rhythm */
  --margin: clamp(1.25rem, 2.5vw, 2.25rem);
  --gutter: clamp(1rem, 1.8vw, 1.75rem);
  --section: clamp(5.5rem, 10vw, 10.5rem);
  --radius: 0px;

  /* Motion Tokens */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
  --t-reveal: 800ms;
  --stagger-line: 95ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, video, svg, canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  background-color: var(--surface);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background-color: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Typography Helpers ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  hyphens: none;
}

.display {
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.head {
  font-size: var(--step-head);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.38;
  max-width: 48ch;
}

.small {
  font-size: var(--step-small);
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

p {
  max-width: 62ch;
  text-wrap: pretty;
}

.nums {
  font-variant-numeric: tabular-nums;
}

/* ---------- Palette Field Classes ---------- */
.field-1 { background-color: var(--field-1); color: var(--field-1-ink); }
.field-2 { background-color: var(--field-2); color: var(--field-2-ink); }
.field-3 { background-color: var(--field-3); color: var(--field-3-ink); }
.field-4 { background-color: var(--field-4); color: var(--field-4-ink); }

/* ---------- Layout & Frame ---------- */
.wrap {
  padding-inline: var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section {
  padding-block: calc(var(--section) * 0.34);
}

/* ---------- Controls ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.45rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-size: var(--step-body);
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.button:active {
  transform: scale(0.97);
}

.button--surface {
  background-color: var(--surface);
  color: var(--ink);
}

.button--paper {
  background-color: var(--bg);
  color: var(--ink);
}

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease, opacity var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background-color: var(--accent-strong);
  }
  .button--surface:hover,
  .button--paper:hover {
    background-color: var(--ink);
    color: var(--bg);
  }
  .link:hover {
    text-decoration-color: currentColor;
  }
}

/* ==========================================================================
   HERO - Statement beside specimen mosaic (50/50 split by tone)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background-color: var(--bg);
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--margin);
  background-color: var(--bg);
}

.hero__topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero__mobile-link {
  display: none;
  font-size: var(--step-body);
}

.hero__headline-wrap {
  margin-block: auto;
  padding-block: 2.5rem;
}

.hero__headline-wrap h1 {
  max-width: 14ch;
}

.hero__sub {
  margin-top: 2rem;
  font-size: var(--step-lead);
  line-height: 1.38;
  color: var(--ink);
  max-width: 38ch;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__note {
  font-size: var(--step-body);
  color: var(--muted);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__right {
  background-color: var(--surface);
  padding: var(--margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: clip;
}

.hero__nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--step-body);
}

.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(140px, 23svh));
  gap: 12px;
  margin-block: auto;
}

.mosaic-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  overflow: clip;
  transition: transform var(--t-ui) var(--ease-out);
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
}

.mosaic-tile--featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Staggered specimen placement across the 4x3 mosaic */
.hero__mosaic > .mosaic-tile:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.hero__mosaic > .mosaic-tile:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.hero__mosaic > .mosaic-tile:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
.hero__mosaic > .mosaic-tile:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 3; }
.hero__mosaic > .mosaic-tile:nth-child(6) { grid-column: 1 / 3; grid-row: 3 / 4; }
.hero__mosaic > .mosaic-tile:nth-child(7) { grid-column: 3 / 5; grid-row: 3 / 4; }

.mosaic-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: var(--bg);
  color: var(--ink);
  padding: 3px 8px;
  font-size: var(--step-small);
}

@media (hover: hover) and (pointer: fine) {
  .mosaic-tile:hover {
    transform: scale(0.985);
  }
}

/* ==========================================================================
   SECTION 1: SHOWCASE - Two objects, two fields (50/50 split)
   ========================================================================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92svh;
}

.showcase__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--margin);
  min-height: 88svh;
  overflow: clip;
}

.showcase__header {
  position: relative;
  z-index: 2;
  max-width: 34ch;
}

.showcase__statement {
  font-size: var(--step-lead);
  line-height: 1.3;
  max-width: 28ch;
}

.showcase__media {
  margin-block: 1.5rem;
  height: 54svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .showcase__panel:hover .showcase__media img {
    transform: scale(1.03);
  }
}

.showcase__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  z-index: 2;
  padding-bottom: 1.75rem;
}

.showcase__title {
  font-size: var(--step-lead);
  font-weight: 600;
}

.showcase__fact {
  font-size: var(--step-body);
  color: var(--muted);
  margin-top: 0.25rem;
  max-width: 36ch;
}

.showcase__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ==========================================================================
   SECTION 2: 3D WORKSHOP STUDIO ("The One Live Thing")
   ========================================================================== */
.studio {
  background-color: var(--bg);
}

.studio__intro {
  align-items: end;
  margin-bottom: 2.5rem;
}

.studio__heading-col {
  grid-column: 1 / 6;
}

.studio__desc-col {
  grid-column: 6 / 13;
}

.studio__workspace {
  align-items: stretch;
  row-gap: 1.5rem;
}

.studio__stage-wrap {
  grid-column: 1 / 8;
  background-color: var(--dark-field);
  color: var(--dark-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  position: relative;
  overflow: clip;
}

#workshop-canvas {
  width: 100%;
  height: 450px;
  display: block;
  cursor: grab;
}

#workshop-canvas:active {
  cursor: grabbing;
}

.studio__stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background-color: #26211d;
  font-size: var(--step-small);
}

.studio__cam-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.studio__cam-btn {
  padding: 0.4rem 0.75rem;
  background-color: #38312b;
  color: var(--dark-ink);
  font-size: var(--step-small);
  transition: background-color var(--t-hover) ease;
}

.studio__cam-btn[aria-pressed="true"] {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.studio__controls {
  grid-column: 8 / 13;
  background-color: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.control-group__title {
  font-size: var(--step-lead);
  margin-bottom: 0.75rem;
}

.control-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.control-pill {
  padding: 0.7rem 0.85rem;
  background-color: var(--bg);
  color: var(--ink);
  text-align: left;
  font-size: var(--step-small);
  font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.control-pill.is-active {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background-color: var(--bg);
  font-size: var(--step-small);
  text-align: left;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.swatch-btn.is-active {
  background-color: var(--ink);
  color: var(--bg);
}

.swatch-color {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}

.studio__cta-box {
  background-color: var(--bg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.studio__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ==========================================================================
   SECTION 3: WORK - Names passing a held square (Index)
   ========================================================================== */
.work-index {
  position: relative;
  overflow: clip;
  background-color: var(--surface);
  padding-block: calc(var(--section) * 0.75);
}

.work-index__stage {
  position: sticky;
  top: calc(50svh - 190px);
  height: 380px;
  margin-bottom: -380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--margin);
  z-index: 1;
  pointer-events: none;
}

.work-index__frame {
  width: min(380px, 30vw);
  height: min(380px, 30vw);
  margin-inline: auto;
  position: relative;
  overflow: clip;
  background-color: var(--dark-field);
}

.work-index__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.work-index__scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(244, 242, 238, 0.76);
}

.work-index__fact {
  font-size: var(--step-body);
  color: var(--ink);
  background-color: var(--bg);
  padding: 0.35rem 0.75rem;
  min-width: 180px;
}

.work-index__fact--right {
  text-align: right;
}

.work-index__list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  padding-block: 2.5rem;
}

.work-index__item,
.work-index__heading-item {
  text-align: center;
  width: 100%;
}

.work-index__name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
  background-color: rgba(244, 242, 238, 0.88);
  padding: 0.15em 0.45em;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.work-index__name--muted {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .work-index__item .work-index__name:hover {
    background-color: var(--accent);
    color: var(--accent-ink);
  }
}

/* ==========================================================================
   SECTION 4: THE SPECIMEN CATALOGUE (25 Grouped Builds / 47 Photos)
   ========================================================================== */
.catalogue {
  position: relative;
  z-index: 3;
  background-color: var(--bg);
}

.catalogue__header {
  align-items: end;
  margin-bottom: 3rem;
  row-gap: 1.5rem;
}

.catalogue__title-col {
  grid-column: 1 / 5;
}

.catalogue__filter-col {
  grid-column: 5 / 13;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.catalogue__summary {
  font-size: var(--step-body);
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1rem;
  background-color: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.filter-btn:active {
  transform: scale(0.97);
}

.filter-btn.is-active {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.75rem 1.15rem;
}

.specimen-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.specimen-card--double {
  grid-column: span 2;
}

.specimen-card[hidden] {
  display: none;
}

.specimen-tile {
  aspect-ratio: 4 / 3.6;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.specimen-card--double .specimen-tile {
  aspect-ratio: 16 / 8.8;
}

.specimen-img-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.specimen-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  transition: transform 450ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .specimen-img-btn:hover img {
    transform: scale(1.035);
  }
}

.specimen-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.thumb-btn {
  width: 56px;
  height: 42px;
  padding: 3px;
  background-color: var(--surface);
  overflow: clip;
  opacity: 0.65;
  transition: opacity var(--t-hover) ease, background-color var(--t-hover) ease;
}

.thumb-btn.is-active {
  opacity: 1;
  background-color: var(--accent);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specimen-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.specimen-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.specimen-name {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.2;
}

.specimen-status {
  font-size: var(--step-small);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.specimen-fact {
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 5: GALLERY STRIP - Small frames, wide space
   ========================================================================== */
.gallery-strip {
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-block: 4.5rem;
}

.gallery-strip__title {
  font-size: var(--step-lead);
  font-weight: 600;
}

.gallery-strip__track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.85rem;
  padding-inline: var(--margin);
}

.gallery-frame {
  aspect-ratio: 1 / 1;
  overflow: clip;
  transition: transform 250ms var(--ease-out);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-frame:hover {
    transform: scale(1.06);
  }
}

/* ==========================================================================
   SECTION 6: HOW IT WORKS - Tiles that grow (30vh -> 44vh -> 60vh)
   ========================================================================== */
.how-it-works {
  background-color: var(--bg);
}

.how-grid {
  align-items: end;
  row-gap: 2.5rem;
}

.how-heading-wrap {
  grid-column: 1 / 8;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.how-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.how-stage--1 {
  grid-column: 1 / 4;
}

.how-stage--2 {
  grid-column: 4 / 8;
}

.how-stage--3 {
  grid-column: 8 / 13;
}

.how-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: clip;
}

.how-stage--1 .how-tile { height: 32svh; min-height: 240px; }
.how-stage--2 .how-tile { height: 44svh; min-height: 320px; }
.how-stage--3 .how-tile { height: 58svh; min-height: 420px; }

.how-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-title {
  font-size: var(--step-lead);
  font-weight: 600;
}

.how-text {
  font-size: var(--step-body);
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   SECTION 7: ABOUT - Workshop Principles on Colour Tiles
   ========================================================================== */
.about {
  background-color: var(--bg);
}

.about__heading {
  margin-bottom: 2.5rem;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 12px;
}

.about-tile {
  display: flex;
  flex-direction: column;
}

.about-tile__media {
  aspect-ratio: 4 / 5;
  overflow: clip;
  padding: 1rem;
}

.about-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-tile__name {
  margin-top: 0.75rem;
  font-size: var(--step-lead);
  font-weight: 600;
}

.about-tile__role {
  margin-top: 0.25rem;
  font-size: var(--step-small);
  color: var(--muted);
}

/* ==========================================================================
   SECTION 8: CTA - The Reply Card
   ========================================================================== */
.cta-section {
  background-color: var(--accent);
  color: var(--accent-ink);
  padding-block: 3.25rem;
  overflow: clip;
}

.cta-section__inner {
  width: 100%;
  align-items: center;
}

.cta-section__left {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-section__note {
  font-size: var(--step-lead);
  line-height: 1.4;
}

.cta-card {
  grid-column: 6 / 13;
  background-color: var(--bg);
  color: var(--ink);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transform: rotate(1.2deg);
}

.cta-card__heading {
  font-size: var(--step-head);
  max-width: 24ch;
}

.cta-card__text {
  font-size: var(--step-body);
  color: var(--muted);
  max-width: 44ch;
}

.cta-card__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  background-color: var(--ink);
  color: var(--bg);
  font-size: var(--step-lead);
  font-weight: 600;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.cta-card__bar:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .cta-card__bar:hover {
    background-color: var(--accent);
    color: var(--accent-ink);
  }
}

/* ==========================================================================
   SECTION 9: FOOTER - The mark, built large
   ========================================================================== */
.footer {
  background-color: var(--dark-field);
  color: var(--dark-ink);
  padding-block: 3rem 2.5rem;
}

.footer__mark {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 4px;
  height: 28svh;
  min-height: 160px;
  max-height: 260px;
  margin-bottom: 3.5rem;
}

.mark-block {
  height: var(--h, 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 1;
}

.footer__grid {
  row-gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer__col {
  grid-column: span 2;
}

.footer__col-title {
  font-size: var(--step-body);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: var(--step-small);
  color: var(--dark-muted);
}

.footer__contact {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__contact-title {
  font-size: var(--step-lead);
  font-weight: 600;
}

.footer__contact .muted,
.footer__bottom .muted {
  color: var(--dark-muted);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   LIGHTBOX DIALOG
   ========================================================================== */
.lightbox {
  border: 0;
  padding: var(--margin);
  background-color: rgba(23, 20, 18, 0.94);
  color: var(--dark-ink);
  max-width: 100vw;
  max-height: 100svh;
  width: 100vw;
  height: 100svh;
}

.lightbox::backdrop {
  background-color: rgba(23, 20, 18, 0.88);
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox__caption {
  font-size: var(--step-lead);
}

.lightbox__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 80svh;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: transparent;
}

/* ==========================================================================
   MOTION LAYER (Load sequence, Shutter image, Scroll Reveals)
   ========================================================================== */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.lines [data-line] {
  display: block;
}

.shutter {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] {
    transform: translateY(105%);
    animation: load-line 820ms var(--ease-expo) forwards;
    animation-delay: calc(100ms + var(--i) * var(--stagger-line));
  }

  .js .hero [data-load] {
    opacity: 0;
    transform: translateY(14px);
    animation: load-rise 540ms var(--ease-out) forwards;
    animation-delay: var(--d, 200ms);
  }

  .js .hero [data-open] {
    clip-path: inset(0 0 100% 0);
    animation: load-open 1050ms var(--ease-in-out) 140ms forwards;
  }

  .js .hero [data-open] img {
    transform: scale(1.12);
    animation: load-settle 1200ms var(--ease-expo) 140ms forwards;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 850ms var(--ease-out);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes load-open { to { clip-path: inset(0); } }
@keyframes load-settle { to { transform: none; } }

/* ==========================================================================
   PRINT / PDF EXPORT STYLESHEET
   ========================================================================== */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .js [data-reveal],
  .js .hero [data-load],
  .js .hero [data-line],
  .js .hero [data-open],
  .js .hero [data-open] img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
  }

  .work-index__stage {
    position: relative !important;
    top: auto !important;
    margin-bottom: 1.5rem !important;
    height: 260px !important;
  }

  .specimen-card,
  .about-tile,
  .how-stage,
  .cta-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet 768px & Phone 390px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__right {
    padding-bottom: 4.5rem;
  }

  .hero__mosaic {
    grid-template-rows: repeat(3, 160px);
  }

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

  .showcase__panel {
    min-height: 68svh;
    padding-bottom: 4.5rem;
  }

  .studio__heading-col,
  .studio__desc-col,
  .studio__stage-wrap,
  .studio__controls {
    grid-column: 1 / -1;
  }

  .catalogue__title-col,
  .catalogue__filter-col {
    grid-column: 1 / -1;
  }

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

  .gallery-strip__track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .how-heading-wrap,
  .how-stage--1,
  .how-stage--2,
  .how-stage--3 {
    grid-column: 1 / -1;
  }

  .how-stage--1 .how-tile { height: 34svh; }
  .how-stage--2 .how-tile { height: 42svh; }
  .how-stage--3 .how-tile { height: 50svh; }

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

  .cta-section__left,
  .cta-card {
    grid-column: 1 / -1;
  }

  .cta-section__left {
    padding-bottom: 2rem;
  }

  .footer__col {
    grid-column: span 3;
  }

  .footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --margin: 1.35rem;
    --step-display: clamp(2.15rem, 9.2vw, 2.75rem);
    --step-head: clamp(1.65rem, 7vw, 2.15rem);
  }

  .hero__nav {
    display: none;
  }

  .hero__mobile-link {
    display: inline-block;
  }

  .hero__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .mosaic-tile--featured,
  .hero__mosaic > .mosaic-tile:nth-child(2),
  .hero__mosaic > .mosaic-tile:nth-child(3),
  .hero__mosaic > .mosaic-tile:nth-child(4),
  .hero__mosaic > .mosaic-tile:nth-child(5),
  .hero__mosaic > .mosaic-tile:nth-child(6),
  .hero__mosaic > .mosaic-tile:nth-child(7) {
    grid-column: span 1;
    grid-row: auto;
    height: 190px;
  }

  .mosaic-tile--featured {
    grid-column: span 2;
    height: 240px;
  }

  .work-index__stage {
    top: calc(50svh - 130px);
    height: 260px;
    margin-bottom: -260px;
    flex-direction: column;
  }

  .work-index__frame {
    width: 62vw;
    height: 62vw;
  }

  .work-index__fact {
    display: none;
  }

  .specimen-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .specimen-card--double {
    grid-column: span 1;
  }

  .specimen-card--double .specimen-tile {
    aspect-ratio: 16 / 10;
  }

  .gallery-strip__track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .control-pills,
  .swatch-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 2rem 1.5rem;
    transform: rotate(1deg) translateY(20px);
  }

  .footer__mark {
    grid-template-columns: repeat(5, 1fr);
    height: 24svh;
  }

  .footer__col {
    grid-column: span 6;
  }
}
