/* ─── PAGE HERO (dark version — Architectural Applications) ─── */
.page-hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 60px 80px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(184,150,74,0.04) 79px,
      rgba(184,150,74,0.04) 80px
    );
  pointer-events: none;
}


.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
}

.page-breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.2s;
}

.page-breadcrumb a {
  color: rgba(184,150,74,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumb a:hover { color: var(--gold); }

.page-breadcrumb span { margin: 0 10px; opacity: 0.4; }

.page-hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--paper);
  max-width: 820px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.35s;
}

.page-hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.page-hero-sub {
  font-size: 18px;
  color: rgba(244,241,235,0.6);
  max-width: 580px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

/* ─── INTRO ─── */
.intro {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.intro-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.intro-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.intro-note {
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--paper-dim);
  margin-top: 36px;
}

.intro-note-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.primitive-map {
  background: var(--paper-dim);
  padding: 40px;
}

.primitive-map-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.primitive-map-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.primitive-map-item:last-child { border-bottom: none; }

.primitive-map-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

.primitive-map-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.primitive-map-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.primitive-map-bridge {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.primitive-map-bridge a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.primitive-map-bridge a:hover {
  border-color: var(--gold);
}

/* ─── APPLICATION SECTIONS ─── */
.application {
  border-bottom: 1px solid var(--rule);
}

.application:nth-child(even) {
  background: var(--paper-dim);
}

.application:nth-child(odd) {
  background: var(--paper);
}

.app-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.app-sidebar {
  position: sticky;
  top: 120px;
}

.app-index {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: rgba(184,150,74,0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.app-category {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.app-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.app-primitives-used {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.app-primitives-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.app-primitive-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  margin: 3px 3px 3px 0;
}

.app-content {}

.app-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.app-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.app-requirements {
  margin-top: 36px;
  background: var(--ink);
  padding: 36px 40px;
}

.app-req-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.app-req-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184,150,74,0.1);
  align-items: flex-start;
}

.app-req-item:last-child { border-bottom: none; }

.app-req-dash {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.app-req-text {
  font-size: 17px;
  color: rgba(244,241,235,0.65);
  line-height: 1.65;
}

.app-how {
  margin-top: 28px;
  padding: 28px 32px;
  border-left: 3px solid var(--gold);
  background: var(--paper-dim);
}

/* for even sections, invert note color */
.application:nth-child(even) .app-how {
  background: var(--paper);
}

.app-how-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.app-how-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── CLOSING STATEMENT ─── */
.closing {
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: 'ARCHITECTURE';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  font-weight: 300;
  color: rgba(184,150,74,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.closing-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 300;
  color: var(--paper);
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 24px;
  position: relative;
}

.closing-body {
  font-size: 17px;
  color: rgba(244,241,235,0.6);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.8;
  position: relative;
}

.closing-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-gold {
  display: inline-block;
  padding: 15px 44px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: all 0.25s;
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  display: inline-block;
  padding: 15px 44px;
  background: transparent;
  color: rgba(244,241,235,0.7);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(244,241,235,0.2);
  transition: all 0.25s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── FOOTER ─── */
footer {
  background: #080a0e;
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(184,150,74,0.15);
}

.footer-brand {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(244,241,235,0.3);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .intro-layout { grid-template-columns: 1fr; gap: 48px; }
  .app-layout { grid-template-columns: 1fr; gap: 40px; }
  .app-sidebar { position: static; }
  .app-index { font-size: 56px; }
  .closing { padding: 80px 24px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
}
