/* =====================================================
   PAGE-SPECIFIC STYLES
   ===================================================== */

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-content .label {
  margin-bottom: var(--sp-5);
}

.hero h1 {
  margin-bottom: var(--sp-5);
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin-bottom: var(--sp-7);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 300px; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: var(--sp-8) 0; }
  .hero-visual svg { max-width: 260px; }
}

@media (max-width: 400px) {
  .hero { min-height: auto; padding: var(--sp-6) 0; }
  .hero-visual svg { max-width: 220px; }
}

@media (max-width: 340px) {
  .hero-visual svg { max-width: 180px; }
}

/* =====================================================
   DIFFERENCE GRID
   ===================================================== */
.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}

.difference-item {
  padding: var(--sp-5);
  border: 1px solid var(--line-mid-light);
  border-radius: var(--radius-md);
  background: var(--surface-light);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.difference-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.difference-item h3 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--text-lg);
}

.difference-item p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

.difference-item .state-dot {
  width: 10px;
  height: 10px;
}

@media (max-width: 768px) {
  .difference-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .difference-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   METHOD PREVIEW
   ===================================================== */
.method-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--sp-7);
}

.method-stage {
  background: var(--surface-deep);
  padding: var(--sp-6);
}

.method-stage .annotation {
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-3);
}

.method-stage h3 {
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
  font-size: var(--text-lg);
}

.method-stage p {
  color: var(--text-muted-dark);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .method-preview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .method-preview { grid-template-columns: 1fr; }
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  text-align: center;
  padding: var(--sp-10) 0;
}

.cta-band h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--sp-4);
}

.cta-band p {
  color: var(--text-muted-dark);
  font-size: var(--text-lg);
  margin: 0 auto var(--sp-6);
}

/* =====================================================
   OS MAP SECTION
   ===================================================== */
.osmap-intro {
  color: var(--text-muted-dark);
  margin-bottom: var(--sp-7);
  max-width: 60ch;
}

.os-map-fallback {
  padding: var(--sp-6);
  background: var(--surface-mid);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-mid);
  margin-top: var(--sp-6);
}
.os-map-fallback h3 {
  color: var(--text-on-dark);
  margin-bottom: var(--sp-4);
}
.os-map-fallback ol {
  padding-left: var(--sp-6);
  color: var(--text-muted-dark);
  margin-bottom: var(--sp-4);
}
.os-map-fallback li {
  margin-bottom: var(--sp-2);
  font-size: var(--text-sm);
}
.os-map-fallback p {
  color: var(--text-dim-dark);
  font-size: var(--text-sm);
}

/* =====================================================
   PAGE HEADERS (sub-pages)
   ===================================================== */
.sub-page-section {
  padding: var(--sp-9) 0;
}

/* =====================================================
   PROBLEMS PAGE — Failure Chain
   ===================================================== */
.problem-chain {
  position: relative;
  margin-top: var(--sp-7);
  max-width: 700px;
}

.problem-chain::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--state-defect) 0%,
    var(--state-defect) 30%,
    var(--accent) 70%,
    var(--state-good) 100%
  );
}

.problem-link-item {
  position: relative;
  padding-left: 48px;
  padding-bottom: var(--sp-7);
}

.problem-link-item:last-child {
  padding-bottom: 0;
}

.problem-link-marker {
  position: absolute;
  left: 0;
  top: 0;
}

.marker-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--state-defect);
  border: 3px solid var(--surface-light);
  box-shadow: 0 0 0 2px var(--state-defect);
  display: block;
  margin: 0 auto;
}

.marker-line {
  width: 2px;
  height: 40px;
  background: var(--line-mid-light);
  margin: 0 auto;
}

.problem-link-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
  color: var(--text-on-light);
}

.problem-link-content p {
  color: var(--text-muted-light);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Chain depth indicator */
.chain-depth-indicator {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  padding: 0 var(--sp-2);
}

.chain-depth-bar {
  flex: 1;
  background: var(--state-defect);
  border-radius: 2px 2px 0 0;
  opacity: 0.3;
  transition: opacity var(--duration-base);
}
.chain-depth-bar:nth-child(1) { opacity: 0.9; }
.chain-depth-bar:nth-child(2) { opacity: 0.8; }
.chain-depth-bar:nth-child(3) { opacity: 0.7; }
.chain-depth-bar:nth-child(4) { opacity: 0.6; }
.chain-depth-bar:nth-child(5) { opacity: 0.5; }
.chain-depth-bar:nth-child(6) { opacity: 0.4; }
.chain-depth-bar:nth-child(7) { opacity: 0.3; }

/* =====================================================
   METHOD PAGE — Pipeline Visual
   ===================================================== */
.method-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-7);
  padding: var(--sp-5);
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-mid-light);
}

.pipeline-node {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-on-light);
  background: var(--surface-light);
  border: 1px solid var(--line-mid-light);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  white-space: nowrap;
}

.pipeline-node--exit {
  background: var(--state-good);
  color: #fff;
  border-color: var(--state-good);
}

.pipeline-connector {
  color: var(--text-dim-light);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

/* Method detail */
.method-detail {
  margin-top: var(--sp-7);
}

.method-phase {
  display: grid;
  grid-template-columns: var(--sp-7) 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-mid-light);
}

.method-phase:last-child {
  border-bottom: none;
}

.method-phase-number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.method-phase-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: var(--text-on-light);
}

.method-phase-content p {
  color: var(--text-muted-light);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.method-phase-detail {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-mid-light);
}

.method-phase-detail h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
  color: var(--text-on-light);
}

.method-phase-detail p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

.method-quote {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  border-left: 3px solid var(--accent);
  background: var(--surface-warm);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-on-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 60ch;
}

/* =====================================================
   DELIVERABLES PAGE
   ===================================================== */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.deliverable-card {
  padding: var(--sp-5);
  background: var(--surface-light);
  border: 1px solid var(--line-mid-light);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.deliverable-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(200, 122, 48, 0.1);
}

.del-icon {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: var(--sp-3);
  padding: var(--sp-1) var(--sp-2);
  background: rgba(200, 122, 48, 0.08);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.deliverable-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
  color: var(--text-on-light);
}

.deliverable-card p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

.deliverable-note {
  margin-top: var(--sp-7);
  padding: var(--sp-5);
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-mid-light);
}

.deliverable-note p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .deliverable-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .deliverable-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.about-block {
  padding: var(--sp-5);
  background: var(--surface-warm);
  border: 1px solid var(--line-mid-light);
  border-radius: var(--radius-md);
}

.about-block h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-3);
  color: var(--text-on-light);
}

.about-block p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

.atc-visual {
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  background: var(--surface-warm);
  border: 1px solid var(--line-mid-light);
  border-radius: var(--radius-md);
}

.atc-visual h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-4);
}

.atc-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.atc-principle {
  padding: var(--sp-4);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.atc-principle .annotation {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--accent);
}

.atc-principle p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .atc-principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .atc-principles { grid-template-columns: 1fr; }
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-6);
  align-items: start;
}

.contact-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-4);
}

.contact-info p {
  color: var(--text-muted-light);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-5);
}

.contact-alt {
  list-style: none;
  padding: 0;
}

.contact-alt li {
  margin-bottom: var(--sp-3);
}

/* Touch targets for contact alternatives */
.contact-alt a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-on-light);
  transition: color var(--duration-fast);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.contact-alt a:hover {
  color: var(--accent);
  background: rgba(200, 122, 48, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  border: 1.5px solid var(--line-mid-light);
  border-radius: var(--radius-sm);
  background: var(--surface-light);
  color: var(--text-on-light);
  transition: border-color var(--duration-fast);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--state-defect);
  margin-top: var(--sp-1);
  display: none;
}

.form-submit {
  align-self: flex-start;
  min-height: 44px;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-success {
  display: none;
  padding: var(--sp-6);
  background: var(--surface-warm);
  border: 1px solid var(--state-good);
  border-radius: var(--radius-md);
  text-align: center;
}

.form-success h3 {
  color: var(--state-good);
  margin-bottom: var(--sp-3);
}

.form-success p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* =====================================================
   404
   ===================================================== */
.not-found {
  text-align: center;
  padding: var(--sp-10) 0;
}

.not-found h1 {
  font-size: var(--text-5xl);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.not-found p {
  color: var(--text-muted-light);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-6);
}

/* =====================================================
   SMOOTH SCROLL BEHAVIOR
   ===================================================== */
[data-scroll="smooth"] {
  scroll-behavior: smooth;
}

/* =====================================================
   MOBILE OVERFLOW FIXES — Comprehensive
   ===================================================== */
@media (max-width: 400px) {
  .container { padding: 0 var(--sp-3); }
  .hero { min-height: auto; padding: var(--sp-6) 0; }
  .hero-visual svg { max-width: 220px; }
  .method-preview { grid-template-columns: 1fr; }
  .method-stage { padding: var(--sp-4); }
  .difference-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .deliverable-grid { grid-template-columns: 1fr; }
  .atc-principles { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .method-phase { grid-template-columns: 1fr; gap: var(--sp-3); }
  .method-phase-number { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .problem-chain::before { left: 12px; }
  .problem-link-item { padding-left: 40px; }
  .marker-dot { width: 26px; height: 26px; }
  .method-pipeline { gap: var(--sp-1); padding: var(--sp-3); }
  .pipeline-node { font-size: 10px; padding: var(--sp-1) var(--sp-2); }
}

@media (max-width: 340px) {
  .container { padding: 0 var(--sp-2); }
  .section { padding: var(--sp-5) 0; }
  .page-header { padding: var(--sp-6) 0 var(--sp-5); }
  .deliverable-card { padding: var(--sp-3); }
  .atc-principle { padding: var(--sp-3); }
  .method-phase { padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); }
}
/* =====================================================
   Narrow-viewport geometry guards
   ===================================================== */

/* Ensure no element exceeds container width on mobile */
@media (max-width: 400px) {
  /* Hero SVG tight constraint */
  .hero-visual svg { max-width: 100%; }

  /* OS Map: ensure message and controls fit */
  .osmap-message { max-width: 100%; }
  .osmap-simplify-summary { max-width: 100%; }
  .osmap-selfop { max-width: 100%; flex-wrap: wrap; }
  .osmap-controls { max-width: 100%; }
  .osmap-header { max-width: 100%; }

  /* Ensure buttons dont overflow */
  .btn { max-width: 100%; }

  /* Difference and method grid items */
  .difference-item { max-width: 100%; }
  .method-stage { max-width: 100%; }

  /* Pipeline nodes */
  .method-pipeline { max-width: 100%; }
  .pipeline-node { max-width: 100%; white-space: normal; }

  /* Ensure chain depth indicator fits */
  .chain-depth-indicator { max-width: 100%; }

  /* Footer safety */
  .site-footer .container { max-width: 100%; }
}

/* Extra tight guard at 320px */
@media (max-width: 320px) {
  .hero-visual svg { max-width: 160px; }
  .osmap-node { min-height: 40px; padding: var(--sp-2); }
}
/* =====================================================
   ART DIRECTION ENHANCEMENTS
   Elevated design for secondary pages
   ===================================================== */

/* ---- Method page: Stage cards with intentional hierarchy ---- */
.method-phase {
  position: relative;
  padding: var(--sp-7) 0;
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-mid);
}

.method-phase:last-of-type {
  border-bottom: none;
}

.method-phase::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--sp-7);
  bottom: var(--sp-7);
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
  transition: opacity var(--duration-base);
}

.method-phase:hover::before {
  opacity: 0.7;
}

.method-phase-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
  opacity: 0.7;
}

.method-phase h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
  color: var(--text-on-light);
}

.method-phase > p {
  max-width: 62ch;
  color: var(--text-muted-light);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

/* What you see boxes with more intention */
.method-phase .method-output {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.method-output-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.method-output p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

/* ---- Problems page: Failure chain elevation ---- */
.chain-depth-indicator {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-5);
  padding: 0 var(--sp-3);
  position: relative;
}

.chain-depth-indicator::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 1px;
  background: var(--line-light);
}

.chain-depth-bar {
  flex: 1;
  background: var(--state-defect);
  border-radius: 2px 2px 0 0;
  transition: opacity var(--duration-base), transform var(--duration-base);
}

.chain-depth-bar:nth-child(1) { opacity: 0.95; }
.chain-depth-bar:nth-child(2) { opacity: 0.82; }
.chain-depth-bar:nth-child(3) { opacity: 0.70; }
.chain-depth-bar:nth-child(4) { opacity: 0.58; }
.chain-depth-bar:nth-child(5) { opacity: 0.45; }
.chain-depth-bar:nth-child(6) { opacity: 0.32; }
.chain-depth-bar:nth-child(7) { opacity: 0.20; }

/* Problem link items with more visual weight */
.problem-chain {
  position: relative;
  margin-top: var(--sp-8);
  max-width: 720px;
}

.problem-chain::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--state-defect), var(--state-good));
  border-radius: 1px;
}

.problem-link-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: var(--sp-7);
}

.problem-link-item:last-child {
  padding-bottom: 0;
}

.problem-link-marker {
  position: absolute;
  left: 0;
  top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-deep);
  border: 3px solid var(--state-defect);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--state-defect);
  flex-shrink: 0;
  z-index: 1;
}

.marker-dot::before {
  content: attr(data-step);
}

.marker-line {
  width: 2px;
  flex: 1;
  background: var(--line-light);
  margin-top: 2px;
}

.problem-link-item:last-child .marker-line {
  display: none;
}

.problem-link-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  margin-bottom: var(--sp-2);
}

.problem-link-content p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.7;
  max-width: 54ch;
}

/* Last item: transition to solution */
.problem-link-item:last-child .marker-dot {
  border-color: var(--state-good);
  color: var(--state-good);
}

/* ---- Deliverables page: Tangible outputs treatment ---- */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.deliverable-card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}

.deliverable-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(200, 122, 48, 0.08);
}

.deliverable-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.deliverable-card:hover::before {
  opacity: 1;
}

.deliverable-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  background: rgba(200, 122, 48, 0.08);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.deliverable-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  margin-bottom: var(--sp-2);
}

.deliverable-card p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.6;
}

/* Illustrative note */
.deliverable-note {
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  background: rgba(200, 122, 48, 0.04);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(200, 122, 48, 0.2);
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.7;
}

.deliverable-note strong {
  color: var(--text-on-light);
}

/* ---- About page: Operating principles elevation ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.atc-principle {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
}

.atc-principle h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
}

.atc-principle p {
  font-size: var(--text-sm);
  color: var(--text-muted-light);
  line-height: 1.7;
}

/* About page section headers */
.sub-page-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin-bottom: var(--sp-3);
}

.sub-page-section > .container > p:first-of-type {
  max-width: 62ch;
  color: var(--text-muted-light);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

/* ---- Global art direction enhancements ---- */

/* Page headers with more presence */
.page-header h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-on-dark);
}

.page-header p {
  font-size: var(--text-lg);
  color: var(--text-muted-dark);
  line-height: 1.7;
  max-width: 56ch;
  margin-top: var(--sp-4);
}

/* Section labels with more presence */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CTA sections */
.cta-section {
  text-align: center;
  padding: var(--sp-9) 0;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
}

.cta-section p {
  font-size: var(--text-base);
  color: var(--text-muted-dark);
  max-width: 52ch;
  margin: 0 auto var(--sp-5);
  line-height: 1.7;
}

/* Quote block for signature line */
.quote-block {
  position: relative;
  padding: var(--sp-7) var(--sp-7) var(--sp-7) var(--sp-8);
  background: var(--surface-warm);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--sp-8);
  max-width: 62ch;
}

.quote-block p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-on-light);
  line-height: 1.6;
  font-weight: 500;
}

/* Method pipeline with more intention */
.method-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-8);
  padding: var(--sp-6);
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
}

.pipeline-node {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-on-light);
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  text-transform: uppercase;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.pipeline-node:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pipeline-node--exit {
  background: var(--state-good);
  color: #fff;
  border-color: var(--state-good);
}

.pipeline-connector {
  color: var(--text-dim-light);
  font-size: var(--text-xs);
}


/* Final responsive overrides: keep late art-direction rules from re-opening grid overflow. */
.deliverable-card, .about-block { min-width: 0; }
@media (max-width: 768px) {
  .deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .deliverable-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-delivery-error {
  display: none;
  padding: var(--sp-5);
  margin-top: var(--sp-4);
  background: rgba(201, 85, 68, 0.06);
  border: 1px solid var(--state-defect);
  border-radius: var(--radius-md);
}
.form-delivery-error h3 { color: var(--state-defect); margin-bottom: var(--sp-2); }
.form-delivery-error p { font-size: var(--text-sm); color: var(--text-muted-light); }
.form-delivery-error a { color: var(--accent); text-decoration: underline; }
