/* ==========================================================================
   NORTHCLAY ATELIER - BIOCLIMATIC ARCHITECTURAL SHOWCASE
   Top-Agency Lead Design: Full-Width Unconstrained Viewport Canvas,
                           Fluid Kinetic Motion & Architectural Tectonics.
   Conforms strictly to DESIGN.md tokens & WCAG 2.2 AA.
   Zero em dashes. Zero slop antipatterns.
   ========================================================================== */

@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/azeret-mono-1.woff2) format('woff2');
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/azeret-mono-2.woff2) format('woff2');
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/azeret-mono-3.woff2) format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/cinzel-4.woff2) format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/cinzel-5.woff2) format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/cinzel-6.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/manrope-7.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/manrope-8.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/manrope-9.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/manrope-10.woff2) format('woff2');
}

:root {
  /* Strict DESIGN.md Palette */
  --fired-terracotta: #B84324;
  --terracotta-ink: #9E3B1F;
  --terracotta-glow: #E57350;
  --gallery-white: #FFFFFF;
  --architectural-carbon: #111111;
  --carbon-elevated: #1B1918;
  --carbon-rule: #2E2B28;
  --carbon-frame: #3A3530;
  --graphite-secondary: #4A4743;
  --quarry-muted: #5C5852;
  --hairline-sand: #DCD7CE;

  /* Architectural Secondary Tones & Tokens */
  --bg-limestone: #F8F7F4;
  --ink-secondary: #4A4743;
  --ink-on-dark-muted: rgba(255, 255, 255, 0.72);
  --accent-terracotta-on-dark: #E57350;
  --accent-terracotta-text: #9E3B1F;

  --rule-structural: 1px solid #111111;
  --rule-subtle: 1px solid #DCD7CE;
  --rule-dark: 1px solid #2E2B28;

  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Azeret Mono', monospace;

  /* Emil Kowalski & Apple Fluid Motion Curves */
  --ease-agency: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);

  /* Architectural Layered Depth & Ambient Elevation */
  --shadow-elevation-low: 0 1px 2px rgba(17, 17, 17, 0.04), 0 2px 4px rgba(17, 17, 17, 0.04);
  --shadow-elevation-mid: 0 4px 8px -2px rgba(17, 17, 17, 0.06), 0 12px 24px -4px rgba(17, 17, 17, 0.08);
  --shadow-elevation-high: 0 8px 16px -4px rgba(17, 17, 17, 0.08), 0 24px 48px -8px rgba(17, 17, 17, 0.12);
  --shadow-terracotta-glow: none;
  --shadow-monograph: 0 12px 36px -6px rgba(17, 17, 17, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--gallery-white);
  color: var(--architectural-carbon);
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--quarry-muted) var(--bg-limestone);
}

/* Custom Architectural Gallery Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-limestone);
  border-left: 1px solid var(--hairline-sand);
}
::-webkit-scrollbar-thumb {
  background: var(--quarry-muted);
  border-radius: 0;
  transition: background 0.2s var(--ease-out);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fired-terracotta);
}

::selection {
  background-color: var(--fired-terracotta);
  color: #FFFFFF;
}
::-moz-selection {
  background-color: var(--fired-terracotta);
  color: #FFFFFF;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--architectural-carbon);
  background-color: var(--gallery-white);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Caret Color & Form Input Baseline */
input, textarea, select {
  font: inherit;
  color: inherit;
  caret-color: var(--fired-terracotta);
  font-size: 16px;
}

/* Eliminate 300ms Click Latency on Touch Surfaces */
button,
a,
select,
input[type="submit"],
input[type="button"],
[role="button"],
.specimen-tab,
.filter-btn,
.cycle-ring-btn,
.brand-lockup,
.nav-link,
.mobile-menu-toggle {
  touch-action: manipulation;
}

/* Control Text Selection Isolation */
button,
[role="button"],
.nav-link,
.brand-lockup,
.specimen-tab,
.filter-btn,
.cycle-ring-btn,
.btn-primary,
.btn-carbon,
.btn-outline,
.btn-header,
.mobile-menu-toggle,
.comparator-handle {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Tabular Numerals for Architectural Telemetry, Coordinates & Measurements */
.hero-telemetry-grid,
.telemetry-metric,
.plate-coord,
.monograph-tag,
.specimen-code,
.specimen-spec-value,
.comparator-readout,
.tectonic-ribbon,
.plate-meta,
.plate-specs,
.data-metric,
.thermal-metric,
.delta-num,
code,
time {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Balanced Headings & Refined Typographic Measure */
h1, h2, h3, h4,
.hero-title,
.monograph-title,
.section-heading,
.specimen-title,
.kiln-quote {
  text-wrap: balance;
}

p a,
.concept-notice a,
.footer-col a:not(.brand-lockup) {
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 5.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--architectural-carbon);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--architectural-carbon);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--architectural-carbon);
}

h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--architectural-carbon);
}

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

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

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

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

:focus:not(:focus-visible) {
  outline: none;
}

.gallery-hero :focus-visible,
.site-footer :focus-visible,
.section-dark-kiln :focus-visible {
  outline-color: var(--terracotta-glow);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  z-index: 1000;
  background: var(--fired-terracotta);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.3s var(--ease-agency);
}

.skip-link:focus {
  top: 1.5rem;
}

/* ==========================================================================
   Fluid Scroll-Triggered Reveal System & Bespoke Heading Kinematics
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-agency), transform 0.85s var(--ease-agency);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-agency), transform 0.75s var(--ease-agency);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* Bespoke Masked Typographic Kinematics (Agency Line & Word Reveals) */
.split-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  line-height: 1.05;
}

.split-line-inner {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1.1s var(--ease-agency), opacity 0.75s ease;
  will-change: transform, opacity;
}

/* Hero & Top Page Title Entrance Line Reveals */
.hero-stage .split-line-inner,
.section-header-grid .split-line-inner {
  animation: heroLineRise 0.85s var(--ease-agency) forwards;
}

.hero-stage .split-line-inner.delay-1,
.section-header-grid .split-line-mask:nth-child(2) .split-line-inner {
  animation-delay: 0.1s;
}

.hero-stage .split-line-inner.delay-2,
.section-header-grid .split-line-mask:nth-child(3) .split-line-inner {
  animation-delay: 0.2s;
}

@keyframes heroLineRise {
  0% {
    transform: translateY(115%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Section Heading Scroll Reveals */
.reveal.is-visible .split-line-inner,
.is-visible .split-line-inner,
.split-line-inner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.split-line-inner.delay-1 { transition-delay: 0.12s; }
.split-line-inner.delay-2 { transition-delay: 0.24s; }
.split-line-inner.delay-3 { transition-delay: 0.36s; }

/* Unslopped: eliminated redundant decorative accent bars */
.heading-accent-line {
  display: none !important;
}

/* ==========================================================================
   Minimalistic Independent Concept Disclosure Strip
   ========================================================================== */

.concept-notice {
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-bottom: var(--rule-dark);
  padding: 10px 4vw;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  width: 100%;
}

.concept-notice-left {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notice-dot {
  width: 8px;
  height: 8px;
  background: var(--terracotta-glow);
  display: inline-block;
}

.concept-notice a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.concept-notice a:hover {
  color: var(--terracotta-glow);
}

/* ==========================================================================
   Full-Width Sticky Header & Cinematic Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--rule-structural);
  width: 100%;
  transition: background-color 0.3s ease;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 4vw;
  min-height: 76px;
  gap: 3vw;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--architectural-carbon);
  transition: opacity 0.2s ease;
}

.brand-mark-svg {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.16);
  transition: transform 0.3s var(--ease-agency);
}

.brand-lockup:hover .brand-mark-svg {
  transform: translateY(-1px) scale(1.04);
}

.brand-text-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--architectural-carbon);
  text-transform: uppercase;
  transition: color 0.2s ease;
  line-height: 1;
}

.brand-descriptor {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fired-terracotta);
  line-height: 1;
}

.brand-lockup:hover .brand-wordmark {
  color: var(--fired-terracotta);
}

.brand-lockup-dark {
  color: #FFFFFF;
}

.brand-lockup-dark .brand-wordmark {
  color: #FFFFFF;
}

.brand-lockup-dark .brand-descriptor {
  color: var(--terracotta-glow);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5vw;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--graphite-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fired-terracotta);
  transition: width 0.3s var(--ease-agency);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--terracotta-ink);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.btn-header:active {
  transform: scale(0.97);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-header:hover {
    background: var(--fired-terracotta);
    color: #FFFFFF;
  }
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--architectural-carbon);
  border-radius: 0;
  padding: 10px 18px;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--architectural-carbon);
  align-items: center;
  justify-content: center;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-menu-toggle:hover {
    background: var(--architectural-carbon);
    color: #FFFFFF;
  }
}

/* ==========================================================================
   Full-Width Monumental Hero (100vw Bleed & Atmospheric Transition)
   ========================================================================== */

.gallery-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-bottom: var(--rule-structural);
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 78vh, 800px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--architectural-carbon);
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0);
  transform: scale(1.02);
  transition: transform 12s ease-out, opacity 1.4s var(--ease-agency);
  will-change: transform, opacity;
}

.gallery-hero:hover .hero-layer {
  transform: scale(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.3) 0%,
    rgba(17, 17, 17, 0.2) 40%,
    rgba(17, 17, 17, 0.82) 85%,
    rgba(17, 17, 17, 0.98) 100%
  );
  pointer-events: none;
}

/* Floating Atmosphere Bar */
.hero-atmosphere-bar {
  position: absolute;
  top: 2rem;
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 10;
  max-width: calc(100% - 8vw);
  box-sizing: border-box;
}

.hero-plate-coord {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cycle-control-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 18px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cycle-ring-btn {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.75rem;
}

.cycle-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cycle-ring-progress {
  fill: none;
  stroke: var(--terracotta-glow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 0.1s linear;
}

.cycle-state-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #FFFFFF;
}

/* Hero Content */
.hero-content-row {
  position: relative;
  z-index: 10;
  padding: 6rem 4vw 3.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: flex-end;
  gap: 4vw;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.8vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 44ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  background: var(--fired-terracotta);
  color: #FFFFFF;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
  align-self: flex-start;
}

.btn-primary:active {
  transform: scale(0.97);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #FFFFFF;
    color: var(--architectural-carbon);
  }

  .btn-primary:hover .btn-arrow {
    transform: translateX(4px);
  }
}

.btn-arrow {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}

/* Telemetry Strip - Full Bleed */
.hero-telemetry-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(17, 17, 17, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.telemetry-cell {
  padding: 24px 4vw;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.telemetry-cell:last-child {
  border-right: none;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--architectural-carbon);
}

.hero-telemetry-grid .telemetry-label {
  color: rgba(255, 255, 255, 0.65);
}

.telemetry-value {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.telemetry-value .accent {
  color: #E57350;
}

/* ==========================================================================
   Full-Width Tectonic Statement Ribbon
   ========================================================================== */

.tectonic-statement-ribbon {
  width: 100%;
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-top: var(--rule-structural);
  border-bottom: var(--rule-structural);
  padding: 24px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.tectonic-statement-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tectonic-dot {
  color: #E57350;
  font-size: 0.75rem;
}

/* ==========================================================================
   Full-Width Gallery Section System
   ========================================================================== */

.gallery-section {
  width: 100%;
  padding: 120px 4vw;
  border-bottom: var(--rule-structural);
  background: var(--gallery-white);
}

.section-header-grid {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 4vw;
  margin-bottom: 72px;
  align-items: flex-start;
}

.section-index-cell {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--terracotta-ink);
}

.section-title-cell h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--architectural-carbon);
  margin-bottom: 18px;
}

.section-title-cell p {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--graphite-secondary);
  max-width: 58ch;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: transparent;
  color: var(--architectural-carbon);
  border: 1px solid var(--architectural-carbon);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out), border-color 160ms var(--ease-out);
}

.btn-outline:active {
  transform: scale(0.97);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: var(--architectural-carbon);
    color: #FFFFFF;
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   Architectural Monographs (Edge-to-Edge Hover Scale Cards)
   ========================================================================== */

.monograph-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
}

.monograph-plate.span-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.monograph-plate {
  background: var(--gallery-white);
  border: var(--rule-structural);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.monograph-plate:active {
  transform: scale(0.99);
  transition: transform 120ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .monograph-plate:hover {
    transform: translateY(-6px);
    border-color: var(--fired-terracotta);
    box-shadow: var(--shadow-monograph);
  }

  .monograph-plate:hover .plate-media img {
    transform: scale(1.05);
  }
}

.plate-media {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: var(--architectural-carbon);
}

.monograph-plate.span-full .plate-media {
  height: 560px;
}

.plate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}

.plate-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 14px;
}

.plate-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  flex: 1;
}

.plate-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--architectural-carbon);
  margin-bottom: 12px;
}

.plate-summary {
  font-size: 1.0625rem;
  color: var(--graphite-secondary);
  line-height: 1.6;
}

.plate-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--gallery-white);
  border: var(--rule-subtle);
}

.plate-specs dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--quarry-muted);
  margin-bottom: 4px;
}

.plate-specs dd {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--architectural-carbon);
}

.plate-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--terracotta-ink);
  transition: gap 0.2s var(--ease-agency);
  min-height: 44px;
  padding: 6px 0;
}

.plate-link:hover {
  gap: 14px;
}

.study-note {
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--quarry-muted);
  font-style: italic;
}

/* ==========================================================================
   Full-Width Material Specimen Lab (Split Interactive Bench)
   ========================================================================== */

.material-bench-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4vw;
  align-items: stretch;
  width: 100%;
}

.specimen-selector-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.specimen-tab {
  background: var(--gallery-white);
  border: var(--rule-structural);
  border-radius: 0;
  padding: 24px 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 180ms var(--ease-out), border-color 160ms var(--ease-out);
}

.specimen-tab:active {
  transform: scale(0.98);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .specimen-tab:not([aria-selected="true"]):hover {
    background: var(--bg-limestone);
    transform: translateX(4px);
  }
}

.specimen-tab[aria-selected="true"] {
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-color: var(--architectural-carbon);
  transform: translateX(10px);
}

.specimen-tab-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.specimen-tab-origin {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--quarry-muted);
  letter-spacing: 0.01em;
}

.specimen-tab[aria-selected="true"] .specimen-tab-origin {
  color: var(--terracotta-ink);
}

.specimen-stage {
  background: var(--gallery-white);
  border: var(--rule-structural);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-agency);
}

.specimen-visual-box {
  position: relative;
  height: 100%;
  min-height: 440px;
  background: var(--architectural-carbon);
  overflow: hidden;
}

.specimen-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-agency);
}

.specimen-visual-box:hover img {
  transform: scale(1.05);
}

.specimen-swatch-strip {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #FFFFFF;
}

.specimen-details {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.specimen-details h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--architectural-carbon);
  margin-bottom: 16px;
}

.specimen-details p {
  font-size: 1.0625rem;
  color: var(--graphite-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.specimen-metrics-table {
  width: 100%;
  border-collapse: collapse;
}

.specimen-metrics-table tr {
  border-bottom: 1px solid var(--hairline-sand);
}

.specimen-metrics-table th,
.specimen-metrics-table td {
  padding: 12px 0;
  font-size: 0.9375rem;
}

.specimen-metrics-table th {
  font-weight: 500;
  color: var(--quarry-muted);
  text-align: left;
}

.specimen-metrics-table td {
  font-weight: 700;
  text-align: right;
  color: var(--architectural-carbon);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Full-Width Diurnal Thermal Comparator
   ========================================================================== */

.comparator-wrapper {
  width: 100%;
}

.comparator-frame {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  border: var(--rule-structural);
  user-select: none;
  background: var(--architectural-carbon);
}

.comparator-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comparator-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparator-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.05s linear;
}

.comparator-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 20;
}

.comparator-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--architectural-carbon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.25), 0 12px 28px rgba(17, 17, 17, 0.35);
  pointer-events: none;
  z-index: 25;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.comparator-frame:active .comparator-handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.3), 0 16px 36px rgba(17, 17, 17, 0.45);
}

.comparator-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
  margin: 0;
}

.comparator-tag {
  position: absolute;
  top: 24px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  z-index: 15;
  pointer-events: none;
}

.comparator-tag-left { left: 24px; }
.comparator-tag-right { right: 24px; }

.comparator-caption-box {
  position: absolute;
  bottom: 24px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(14px);
  color: #FFFFFF;
  padding: 18px 24px;
  max-width: 360px;
  z-index: 15;
  pointer-events: none;
}

.comparator-caption-left { left: 24px; }
.comparator-caption-right { right: 24px; }

.comparator-caption-box h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--terracotta-glow);
  margin-bottom: 6px;
}

.comparator-caption-box p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.comparator-controls-bar {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Filter Toolbar & Typology Selectors */
.filter-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0 32px;
  border-bottom: var(--rule-structural);
  margin-bottom: 48px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 44px;
  background: var(--gallery-white);
  border: var(--rule-structural);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--architectural-carbon);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out), border-color 160ms var(--ease-out);
}

.filter-btn:active {
  transform: scale(0.96);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .filter-btn:not([aria-pressed="true"]):hover {
    background: var(--bg-limestone);
    color: var(--architectural-carbon);
  }
}

.filter-btn[aria-pressed="true"] {
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-color: var(--architectural-carbon);
  box-shadow: inset 0 -3px 0 var(--fired-terracotta);
}
  box-shadow: inset 0 -3px 0 var(--fired-terracotta);
}

.filter-status {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--graphite-secondary);
  margin: 0;
}

/* Tectonic Pillar Cards (Zone Specifications & Bioclimatic Tenets) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  margin-top: 48px;
}

.pillar-cell {
  position: relative;
  background: var(--gallery-white);
  border: var(--rule-structural);
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  transition: transform 0.4s var(--ease-agency), box-shadow 0.4s var(--ease-agency), border-color 0.4s var(--ease-agency);
}

.pillar-cell:hover {
  transform: translateY(-6px);
  border-color: var(--fired-terracotta);
  box-shadow: 0 24px 48px -12px rgba(17, 17, 17, 0.1);
}

.pillar-cell h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--architectural-carbon);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pillar-cell p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--graphite-secondary);
}

.pillar-cell .plate-specs {
  margin-top: auto;
  padding-top: 24px;
  border-top: var(--rule-structural);
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.pillar-cell .telemetry-label {
  margin-top: auto;
  padding: 10px 14px;
  background: var(--bg-limestone);
  border: var(--rule-structural);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--architectural-carbon);
  display: inline-block;
  width: fit-content;
}

.practice-col .telemetry-label {
  padding: 8px 14px;
  background: var(--gallery-white);
  border: var(--rule-structural);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--architectural-carbon);
  display: inline-block;
  width: fit-content;
  margin-bottom: 20px;
}

/* Practice Split Grid & Commission Cards */
.practice-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
  width: 100%;
  margin-top: 40px;
}

.practice-col {
  background: var(--gallery-white);
  border: var(--rule-structural);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.practice-col[style*="bg-limestone"],
.practice-col.limestone {
  background: var(--bg-limestone);
}

.practice-col h2,
.practice-col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--architectural-carbon);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.practice-col p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--graphite-secondary);
}

.cta-group,
.practice-col .cta-group,
.practice-col .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.practice-col .btn-carbon,
.practice-col .btn-outline,
.cta-group .btn-carbon,
.cta-group .btn-outline {
  width: auto;
  min-height: 48px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Full-Bleed Dark Kiln & Earth Manifesto Section
   ========================================================================== */

.section-dark-kiln {
  width: 100%;
  background: var(--architectural-carbon);
  color: #FFFFFF;
  padding: 140px 4vw;
  border-top: var(--rule-structural);
  border-bottom: var(--rule-structural);
}

.kiln-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}

.kiln-quote {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.kiln-quote em {
  font-style: normal;
  color: var(--terracotta-glow);
}

.kiln-pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kiln-pillar-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.kiln-pillar-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--terracotta-glow);
  padding: 6px 14px;
  background: rgba(229, 115, 80, 0.15);
  border: 1px solid rgba(229, 115, 80, 0.3);
}

.kiln-pillar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.kiln-pillar-desc {
  font-size: 1rem;
  color: var(--hairline-sand);
  line-height: 1.6;
}

/* ==========================================================================
   Project Enquiry & Commission Section
   ========================================================================== */

.commission-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4vw;
  width: 100%;
}

.commission-form-pane {
  background: var(--gallery-white);
  border: var(--rule-structural);
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--architectural-carbon);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--gallery-white);
  border: var(--rule-structural);
  border-radius: 0;
  font-size: 16px;
  color: var(--architectural-carbon);
  caret-color: var(--fired-terracotta);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fired-terracotta);
  box-shadow: 0 0 0 1px var(--fired-terracotta), var(--shadow-elevation-low);
}

.consent-line {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--graphite-secondary);
  line-height: 1.5;
  cursor: pointer;
  min-height: 44px;
  padding: 6px 0;
}

.consent-line input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  accent-color: var(--fired-terracotta);
  flex-shrink: 0;
}

.btn-carbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 32px;
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--architectural-carbon);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
  width: auto;
}

.btn-carbon:active {
  transform: scale(0.97);
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-carbon:hover {
    background: var(--fired-terracotta);
    border-color: var(--fired-terracotta);
    color: #FFFFFF;
  }
}

.enquiry-form .btn-carbon,
.btn-block {
  width: 100%;
}

.commission-aside-pane {
  background: var(--gallery-white);
  border: var(--rule-structural);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.commission-aside-pane h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--architectural-carbon);
  margin-bottom: 12px;
}

.spam-trap {
  display: none !important;
}

/* ==========================================================================
   Full-Width Footer
   ========================================================================== */

.site-footer {
  background: var(--architectural-carbon);
  color: #FFFFFF;
  border-top: var(--rule-structural);
  padding: 90px 4vw 40px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 4vw;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--hairline-sand);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--terracotta-glow);
  transform: translateX(4px);
}

.footer-colophon {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

.footer-colophon a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints (Checkpoints: 320, 360, 390, 768, 1024, 1440, 1920)
   ========================================================================== */

/* 1. Large Tablets and Small Laptops (max-width: 1080px) */
@media (max-width: 1080px) {
  .hero-content-row,
  .section-header-grid,
  .kiln-inner-grid,
  .commission-layout,
  .material-bench-grid,
  .practice-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .monograph-plate.span-full {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .specimen-stage {
    grid-template-columns: 1fr;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .gallery-section {
    padding: 80px 4vw;
  }
  .section-dark-kiln {
    padding: 90px 4vw;
  }
}

/* 2. Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 4vw 6px;
  }
  .header-cta-cell {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .primary-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gallery-white);
    padding: 20px 4vw calc(24px + env(safe-area-inset-bottom, 0px));
    border-bottom: var(--rule-structural);
    gap: 4px;
    box-shadow: var(--shadow-monograph);
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 220ms var(--ease-out), transform 240ms var(--ease-drawer);
    will-change: transform, opacity;
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .primary-nav .nav-link {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--hairline-sand);
    font-size: 1rem;
  }
  .primary-nav .nav-link:last-of-type {
    border-bottom: none;
  }
  .primary-nav .nav-link[href*="contact"] {
    margin-top: 10px;
    padding: 12px 20px;
    background: var(--architectural-carbon);
    color: #FFFFFF;
    justify-content: center;
    font-weight: 700;
  }
  @media (hover: hover) and (pointer: fine) {
    .primary-nav .nav-link[href*="contact"]:hover {
      background: var(--fired-terracotta);
      color: #FFFFFF;
    }
  }

  .gallery-hero {
    height: auto;
    min-height: auto;
  }
  .hero-stage {
    min-height: auto;
    justify-content: flex-start;
  }
  .hero-atmosphere-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-width: 100%;
    padding: 1.5rem 4vw 0;
    margin-bottom: 1.5rem;
    gap: 12px;
  }
  .hero-content-row {
    padding: 0 4vw 2.5rem;
    gap: 24px;
  }
  .hero-telemetry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .telemetry-cell {
    padding: 18px 4vw;
  }

  .monograph-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .monograph-plate.span-full .plate-media,
  .monograph-plate .plate-media {
    height: 320px;
  }
  .plate-body {
    padding: 28px;
    gap: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .commission-form-pane,
  .commission-aside-pane {
    padding: 32px 28px;
  }

  .comparator-frame {
    height: 380px;
  }
  .comparator-caption-box {
    display: none;
  }
  .comparator-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .specimen-stage {
    grid-template-columns: 1fr;
  }
  .specimen-visual-box {
    min-height: 300px;
  }
  .specimen-details {
    padding: 28px;
  }

  .practice-col {
    padding: 36px 28px;
  }

  .pillar-cell {
    padding: 32px 28px;
  }

  .site-footer {
    padding: 64px 4vw 36px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 3. Phablets and Mobile Landscape (max-width: 640px) */
@media (max-width: 640px) {
  .hero-telemetry-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .telemetry-cell:last-child {
    border-bottom: none;
  }

  .plate-specs {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
  .plate-specs > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--hairline-sand);
    padding-bottom: 6px;
  }
  .plate-specs > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .plate-specs dt {
    margin-bottom: 0;
  }

  .comparator-tag-left {
    top: 12px;
    left: 12px;
    font-size: 0.6875rem;
    padding: 6px 10px;
    max-width: calc(50% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .comparator-tag-right {
    top: auto;
    bottom: 12px;
    right: 12px;
    font-size: 0.6875rem;
    padding: 6px 10px;
    max-width: calc(50% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-colophon {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 4. Standard Mobile Viewports (max-width: 480px) */
@media (max-width: 480px) {
  .concept-notice {
    padding: 8px 1rem;
    font-size: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .concept-notice a {
    display: inline-block;
    padding: 4px 0;
    min-height: 44px;
    line-height: 36px;
  }

  .header-grid {
    padding: 0 1rem;
    min-height: 60px;
  }
  .brand-lockup {
    gap: 8px;
  }
  .brand-mark-svg {
    width: 28px;
    height: 28px;
  }
  .brand-wordmark {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
  }
  .brand-descriptor {
    font-size: 0.625rem;
  }
  .mobile-menu-toggle {
    padding: 8px 14px;
  }
  .primary-nav.is-open {
    padding: 16px 1rem 20px;
  }

  .gallery-hero {
    min-height: auto;
  }
  .hero-stage {
    min-height: auto;
    justify-content: flex-start;
  }
  .hero-atmosphere-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 1rem 1rem 0;
    margin-bottom: 1.25rem;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero-plate-coord {
    font-size: 0.6875rem;
    padding: 6px 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cycle-control-group {
    padding: 4px 12px 4px 6px;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cycle-state-label {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .hero-content-row {
    padding: 0 1rem 2rem;
    gap: 20px;
  }
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    letter-spacing: -0.01em;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
  }
  .btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
  }

  .tectonic-statement-ribbon {
    padding: 14px 1rem;
    font-size: 0.8125rem;
    gap: 10px 14px;
    justify-content: flex-start;
  }

  .gallery-section {
    padding: 48px 1rem;
  }
  .section-header-grid {
    gap: 16px;
    margin-bottom: 28px;
  }
  .section-title-cell h2 {
    font-size: clamp(1.8rem, 7.5vw, 2.35rem);
    margin-bottom: 12px;
  }
  .section-title-cell p {
    font-size: 1rem;
    line-height: 1.55;
  }
  .section-action-cell {
    width: 100%;
  }
  .section-action-cell .btn-outline,
  .section-action-cell .btn-carbon {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .monograph-plate.span-full .plate-media,
  .monograph-plate .plate-media {
    height: 240px;
  }
  .plate-body {
    padding: 20px 16px;
    gap: 18px;
  }
  .plate-title {
    font-size: 1.45rem;
  }
  .plate-summary {
    font-size: 0.9375rem;
  }
  .plate-link {
    font-size: 0.875rem;
  }

  .filter-toolbar {
    padding: 12px 0 20px;
    margin-bottom: 24px;
    gap: 14px;
  }
  .filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .filter-btn {
    padding: 10px 12px;
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    min-height: 44px;
  }

  .comparator-frame {
    height: 280px;
  }
  .comparator-handle {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .specimen-tab {
    padding: 16px;
  }
  .specimen-tab[aria-selected="true"] {
    transform: none;
    border-left: 4px solid var(--fired-terracotta);
  }
  .specimen-tab-name {
    font-size: 1.1rem;
  }
  .specimen-visual-box {
    min-height: 220px;
  }
  .specimen-details {
    padding: 20px 16px;
  }
  .specimen-details h3 {
    font-size: 1.45rem;
  }
  .specimen-details p {
    font-size: 0.9375rem;
    margin-bottom: 18px;
  }
  .specimen-metrics-table th,
  .specimen-metrics-table td {
    font-size: 0.8125rem;
    padding: 8px 0;
  }

  .section-dark-kiln {
    padding: 48px 1rem;
  }
  .kiln-quote {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }
  .kiln-pillar-item {
    gap: 14px;
  }
  .kiln-pillar-title {
    font-size: 1.15rem;
  }
  .kiln-pillar-desc {
    font-size: 0.9375rem;
  }

  .pillar-cell {
    padding: 24px 16px;
    gap: 20px;
  }
  .pillar-cell h3 {
    font-size: 1.35rem;
  }

  .practice-col {
    padding: 24px 16px;
  }
  .practice-col h2,
  .practice-col h3 {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }
  .practice-col .btn-carbon,
  .practice-col .btn-outline,
  .cta-group .btn-carbon,
  .cta-group .btn-outline {
    width: 100%;
    min-height: 48px;
  }

  .commission-form-pane,
  .commission-aside-pane {
    padding: 24px 16px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 12px 14px;
    font-size: 1rem;
    min-height: 48px;
  }
  .btn-carbon {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
  }

  .site-footer {
    padding: 48px 1rem 28px;
  }
}

/* 5. Compact Mobile Viewports (max-width: 340px) */
@media (max-width: 340px) {
  .brand-wordmark {
    font-size: 1rem;
  }
  .brand-descriptor {
    display: none;
  }
  .filter-group {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .comparator-tag-left,
  .comparator-tag-right {
    font-size: 0.625rem;
    padding: 4px 8px;
  }
}
