/* ==========================================================================
   PAGES.CSS - The FJ Company
   Page-specific layouts, hero openings, Plate Book composition,
   Self-Drawing SVG timeline, 3D model stage, and the Three Legal Architectures:
   1. Privacy (Reading column with margin notes)
   2. Cookies (Clause ledger table-driven)
   3. Terms (Stack of details disclosures with print controls)
   Plus restorations, workshop, contact inquiry layouts, and 404.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The First Screen & Hero Opening (`data-opening`)
   Recipe: "Stacked, picture under"
   Headline opens alone on page ground, lede beside last line;
   Landscape photograph bleeds edge to edge to fold, subject lower left,
   Single action on photograph's upper right.
   Turnable 3D stage (`data-model-stage`) sits inside the opening beside headline.
   -------------------------------------------------------------------------- */
.hero-opening {
  position: relative;
  width: 100%;
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: var(--hairline);
  background-color: var(--ground);
}

@media (min-width: 1024px) {
  .hero-opening {
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }
}

.hero-opening-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .hero-opening-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: var(--space-10);
  }
}

.hero-opening-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-lede-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .hero-lede-row {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-6);
  }
}

.hero-lede-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-pricing-tag {
  display: inline-flex;
  flex-direction: column;
  background-color: var(--surface);
  border: var(--hairline);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.hero-pricing-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.hero-pricing-val {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
}

/* 3D Model Stage (`data-model-stage`) inside Opening */
.model-stage-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  background: radial-gradient(circle at 50% 55%, var(--surface) 0%, var(--ground) 75%);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-stage img[data-model-still] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
  transition: opacity var(--duration-normal) var(--ease-mechanical);
  z-index: 1;
}

.model-stage canvas[data-model-canvas] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
}

.model-stage canvas[data-model-canvas]:active {
  cursor: grabbing;
}

/* When runtime attaches data-model-live attribute, hide still cleanly */
.model-stage[data-model-live] img[data-model-still] {
  opacity: 0;
  pointer-events: none;
}

.model-stage-indicator {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background-color: rgba(228, 234, 227, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: var(--hairline);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.model-stage-indicator .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Edge-to-Edge Hero Plate Bleed under the headline */
.hero-plate-bleed {
  position: relative;
  width: 100%;
  margin-top: var(--space-8);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  overflow: hidden;
  background-color: var(--surface);
}

.hero-plate-bleed img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: bottom left; /* Brief: cropped so subject is on lower left */
  display: block;
}

@media (min-width: 768px) {
  .hero-plate-bleed img {
    aspect-ratio: 16 / 9;
    max-height: 620px;
  }
}

.hero-plate-action-corner {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 5;
}

@media (min-width: 768px) {
  .hero-plate-action-corner {
    top: var(--space-8);
    right: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   2. Plate Book Composition (Every section is ONE plate, varied crop, narrow caption)
   No side-by-side photo-text pairs, no numbered eyebrows, no card grids
   -------------------------------------------------------------------------- */
.plate-stack {
  display: flex;
  flex-direction: column;
}

.plate-item {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--hairline);
  background-color: var(--ground);
}

@media (min-width: 1024px) {
  .plate-item {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.plate-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-6);
}

.plate-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Distinct varied crops to avoid identical rectangles */
.plate-crop-wide img {
  aspect-ratio: 16 / 9;
}

.plate-crop-square img {
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .plate-crop-square img {
    aspect-ratio: 1.25 / 1;
    max-height: 600px;
  }
}

.plate-crop-tall img {
  aspect-ratio: 3 / 2;
}

@media (min-width: 1024px) {
  .plate-crop-tall img {
    aspect-ratio: 16 / 10;
  }
}

.plate-meta-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background-color: rgba(39, 42, 39, 0.88);
  color: var(--ground);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(228, 234, 227, 0.2);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.plate-meta-badge span.price-accent {
  color: #e59938;
  font-weight: 700;
}

.plate-text-measure {
  max-width: var(--max-ch);
}

.plate-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.plate-paragraph {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-soft);
}

.plate-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: var(--hairline);
}

.plate-spec-item {
  display: flex;
  flex-direction: column;
}

.plate-spec-key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.plate-spec-val {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. Self-Drawing SVG Scroll Section (Milestone / Restoration Timeline)
   Motion & scroll: Line diagram draws stroke-dashoffset scrubbed to scroll
   -------------------------------------------------------------------------- */
.process-scroll-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
  background-color: var(--surface);
  border-bottom: var(--hairline);
}

@media (min-width: 1024px) {
  .process-scroll-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
  }
}

.process-diagram-wrap {
  width: 100%;
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  background-color: var(--ground);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-6);
  overflow-x: auto;
}

.process-svg-canvas {
  width: 100%;
  min-width: 600px;
  height: auto;
  display: block;
}

.process-svg-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-svg-path-active {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0; /* Fully visible default for progressive enhancement */
  transition: stroke-dashoffset 0.1s linear;
}

.process-milestones-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .process-milestones-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.milestone-step-card {
  background-color: var(--ground);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-4);
  position: relative;
  transition: border-color var(--duration-fast) var(--ease-mechanical),
              background-color var(--duration-fast) var(--ease-mechanical);
}

.milestone-step-card.is-current {
  border-color: var(--accent);
  background-color: #f0f4ef;
}

.milestone-step-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  display: block;
}

.milestone-step-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.milestone-step-desc {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Advertising Compliance & Dealer ID Section (Google Ads / Bing / Meta)
   Requires visible on load without extra clicks:
   Dealership name, location, vehicle price, VIN, availability, mileage
   -------------------------------------------------------------------------- */
.compliance-ad-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: var(--space-6);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 640px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .compliance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.compliance-unit {
  display: flex;
  flex-direction: column;
}

.compliance-key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.compliance-val {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   5. Legal Architecture 1: PRIVACY.HTML
   Recipe: "Reading column with margin notes"
   Main reading column with narrow margin column beside it carrying definitions,
   dates, retention clocks and cross-references.
   Below tablet breakpoint, each note moves inline directly under its paragraph as marked aside.
   -------------------------------------------------------------------------- */
.legal-margin-container {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.privacy-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .privacy-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px) 280px;
    gap: var(--space-10);
    align-items: start;
  }
}

.privacy-main-column {
  min-width: 0;
}

.privacy-section-block {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: var(--hairline);
}

.privacy-section-block:last-child {
  border-bottom: 0;
}

.privacy-section-block h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.privacy-section-block h3 {
  font-size: var(--text-md);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.privacy-section-block p {
  margin-bottom: var(--space-4);
  line-height: 1.65;
}

/* The Margin Notes */
.margin-note {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--ink);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.margin-note strong {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.margin-note .note-meta {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  margin-top: var(--space-1);
}

/* Desktop behavior: Sidebar moves notes alongside text */
@media (min-width: 900px) {
  .privacy-aside-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    position: sticky;
    top: var(--space-8);
  }

  /* Inline mobile notes are hidden on desktop, desktop notes displayed in aside */
  .margin-note-inline {
    display: none;
  }

  .margin-note-desktop {
    display: block;
  }
}

@media (max-width: 899px) {
  .privacy-aside-column {
    display: none;
  }

  .margin-note-inline {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   6. Legal Architecture 2: COOKIES.HTML
   Recipe: "Clause ledger"
   Table-driven: the substance is carried by a styled ledger where each clause
   is a row — clause, what it means in plain words, and why it applies.
   On a phone each row becomes its own labelled block, never squeezed and never scrolling horizontally.
   -------------------------------------------------------------------------- */
.ledger-container {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.clause-ledger-table-wrap {
  width: 100%;
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  background-color: var(--surface);
}

.clause-ledger-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.clause-ledger-table th {
  background-color: var(--ground);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: var(--space-4);
  border-bottom: 2px solid var(--line);
}

.clause-ledger-table td {
  padding: var(--space-4);
  border-bottom: var(--hairline);
  vertical-align: top;
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.55;
}

.clause-ledger-table tr:last-child td {
  border-bottom: 0;
}

.clause-ledger-table tr:hover td {
  background-color: var(--surface-2);
}

.ledger-cell-mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile transformation: Each row becomes a standalone labelled card */
@media (max-width: 767px) {
  .clause-ledger-table,
  .clause-ledger-table tbody,
  .clause-ledger-table tr,
  .clause-ledger-table td {
    display: block;
    width: 100%;
  }

  .clause-ledger-table thead {
    display: none;
  }

  .clause-ledger-table tr {
    margin-bottom: var(--space-4);
    background-color: var(--ground);
    border: var(--hairline);
    border-radius: var(--radius-xs);
    padding: var(--space-4);
  }

  .clause-ledger-table tr:last-child {
    margin-bottom: 0;
  }

  .clause-ledger-table td {
    padding: var(--space-2) 0;
    border-bottom: var(--hairline);
  }

  .clause-ledger-table td:last-child {
    border-bottom: 0;
  }

  .clause-ledger-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    margin-bottom: 2px;
  }
}

/* --------------------------------------------------------------------------
   7. Legal Architecture 3: TERMS.HTML
   Recipe: "Stack of disclosures"
   The whole page is a stack of <details> blocks — one per section,
   first open, rest closed, with 'open everything' and 'print this page' controls.
   Deep-linking to an id opens it.
   -------------------------------------------------------------------------- */
.terms-container {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.terms-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-xs);
}

.disclosures-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.disclosure-block {
  background-color: var(--ground);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  transition: border-color var(--duration-fast) var(--ease-mechanical),
              background-color var(--duration-fast) var(--ease-mechanical);
}

.disclosure-block[open] {
  border-color: var(--ink);
  background-color: var(--surface);
}

.disclosure-summary {
  list-style: none;
  padding: var(--space-4) var(--space-6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.disclosure-summary::-webkit-details-marker {
  display: none;
}

.disclosure-summary:hover {
  background-color: var(--surface-2);
}

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

.disclosure-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform var(--duration-fast) var(--ease-snappy);
}

.disclosure-block[open] .disclosure-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.disclosure-body {
  padding: var(--space-4) var(--space-6) var(--space-6) var(--space-6);
  border-top: var(--hairline);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink);
}

.disclosure-body p + p {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   8. Program Catalogue / Restorations Layout (`restorations.html`)
   Engineering specs, donor requirements, RestoManufacturing standards
   -------------------------------------------------------------------------- */
.program-hero {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--hairline);
}

.program-card-flow {
  display: flex;
  flex-direction: column;
}

.program-entry {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--hairline);
}

@media (min-width: 1024px) {
  .program-entry {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.program-split-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 900px) {
  .program-split-specs {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-category-box {
  background-color: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-6);
}

.spec-category-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: var(--hairline);
}

.spec-list-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.spec-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.5;
}

.spec-list-item .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Workshop & Facility Layout (`workshop.html`)
   Juan & Craftspeople, 6897 NE 4th Ave, Miami tools and procedures
   -------------------------------------------------------------------------- */
.workshop-stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .workshop-stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workshop-stat-unit {
  background-color: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-4);
}

.workshop-stat-num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.workshop-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.equipment-manifest {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .equipment-manifest {
    grid-template-columns: repeat(2, 1fr);
  }
}

.equipment-item {
  background-color: var(--ground);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-4);
}

.equipment-item-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.equipment-item-desc {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Contact & Commission Consultation Layout (`contact.html`)
   Direct Miami Phone, Address, Consultation Form, Milestone Terms Notice
   -------------------------------------------------------------------------- */
.contact-section-wrap {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

.contact-layout-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .contact-layout-split {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.contact-info-card {
  background-color: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-8);
}

.contact-info-block {
  margin-bottom: var(--space-6);
}

.contact-info-block:last-child {
  margin-bottom: 0;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-2);
}

.contact-info-val {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.6;
}

.contact-info-val a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-info-val a:hover {
  color: var(--accent);
}

.contact-form-card {
  background-color: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius-xs);
  padding: var(--space-8);
}

.form-status-alert {
  padding: var(--space-4);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  display: none;
}

.form-status-alert.is-success {
  display: block;
  background-color: #d8e5d6;
  border: 1px solid #4a7746;
  color: #1b3819;
}

.form-status-alert.is-error {
  display: block;
  background-color: #fce8e6;
  border: 1px solid #d93829;
  color: #5c140d;
}

/* --------------------------------------------------------------------------
   11. 404 & Utility Views
   -------------------------------------------------------------------------- */
.view-404 {
  padding-top: var(--space-20);
  padding-bottom: var(--space-24);
  text-align: left;
}

.code-404 {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoint Overrides & Safeguards (320px to 1920px)
   NO horizontal scroll at any width. No text clipping or overflowing.
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  .content-container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .lockup-headline .lockup-offset {
    padding-left: var(--space-3);
  }

  .tool-box,
  .contact-info-card,
  .contact-form-card {
    padding: var(--space-4);
  }

  .model-stage-wrapper {
    aspect-ratio: 1 / 1;
  }
}

/* Print Styles */
@media print {
  .sidebar-header,
  .mobile-dock,
  .mobile-drawer-dialog,
  .cookie-banner,
  .chat-launcher,
  .chat-panel,
  .footer-back-to-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  .disclosure-block {
    border: 1px solid #000 !important;
  }

  .disclosure-block[open] .disclosure-body {
    display: block !important;
  }

  details:not([open]) > :not(summary) {
    display: block !important;
  }
}
