/* ============================================================
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  --terracotta:  #C1440E;
  --terracotta-dark: #8B2F08;
  --deep-brown:  #3B1F0E;
  --sand:        #E8D5A3;
  --sand-light:  #F5EDD5;
  --off-white:   #F5F0E8;
  --warm-grey:   #8B7355;
  --charcoal:    #2C1810;
  --gold:        #B8860B;
  --gold-light:  #D4A017;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-max: 1100px;
  --radius: 4px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--off-white);
  overflow-x: hidden;
}

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

a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

sup a {
  text-decoration: none;
  font-size: 0.75em;
  color: var(--terracotta);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--deep-brown);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);  font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem);  font-weight: 600; }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 600; }

p { margin-bottom: 1.2em; }

p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--warm-grey);
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--terracotta);
  line-height: 1.4;
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
  display: block;
}

.terracotta-rule {
  width: 60px;
  height: 3px;
  background: var(--terracotta);
  margin-bottom: 1.5rem;
  border: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.stat-callout {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
}

/* ============================================================
   5. SCROLL REVEAL SYSTEM
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger > *:nth-child(2)  { transition-delay: 0.15s; }
.stagger > *:nth-child(3)  { transition-delay: 0.25s; }
.stagger > *:nth-child(4)  { transition-delay: 0.35s; }
.stagger > *:nth-child(5)  { transition-delay: 0.45s; }
.stagger > *:nth-child(6)  { transition-delay: 0.55s; }
.stagger > *:nth-child(7)  { transition-delay: 0.65s; }
.stagger > *:nth-child(8)  { transition-delay: 0.75s; }

/* ============================================================
   6. HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(193, 68, 14, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 134, 11, 0.12) 0%, transparent 60%),
    var(--deep-brown);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle linen texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding-block: 6rem;
}

.hero-text .section-label {
  color: var(--gold-light);
}

.hero-title {
  color: var(--off-white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--sand);
  margin-bottom: 2rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--warm-grey);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 2rem;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 380px;
  border-radius: 2px;
  animation: float 7s ease-in-out infinite;
  filter: sepia(0.2) contrast(1.05);
  box-shadow:
    0 0 0 1px rgba(184,134,11,0.3),
    0 20px 60px rgba(0,0,0,0.5);
}

.hero-image-wrap .image-caption {
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  font-size: 0.7rem;
  color: var(--warm-grey);
  text-align: right;
  max-width: 280px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--warm-grey);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--warm-grey);
  border-bottom: 2px solid var(--warm-grey);
  transform: rotate(45deg);
  animation: bounceArrow 1.8s ease-in-out infinite;
}

/* ============================================================
   7. OVERVIEW / MAP SECTION
   ============================================================ */
#overview {
  padding-block: var(--section-pad);
  background: var(--sand-light);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.overview-map-wrap {
  position: relative;
}

.overview-map-wrap img {
  width: 100%;
  border-radius: var(--radius);
  clip-path: polygon(0 3%, 3% 0, 97% 0, 100% 4%, 100% 96%, 97% 100%, 3% 100%, 0 97%);
  box-shadow: 0 8px 30px rgba(59,31,14,0.2);
}

.map-caption {
  font-size: 0.75rem;
  color: var(--warm-grey);
  margin-top: 0.75rem;
  font-style: italic;
}

.overview-stat-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat-block {
  flex: 1;
  min-width: 140px;
}

.stat-block .stat-callout {
  display: block;
  margin-bottom: 0.25rem;
}

.stat-block .stat-label {
  font-size: 0.8rem;
  color: var(--warm-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   8. TIMELINE SECTION
   ============================================================ */
#timeline {
  padding-block: var(--section-pad);
  background: var(--deep-brown);
}

#timeline h2 {
  color: var(--off-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

#timeline .section-label {
  text-align: center;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

#timeline .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
  background: var(--gold);
}

.timeline {
  position: relative;
  list-style: none;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 2.5rem;
}

/* The vertical spine */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 3px;
  background: linear-gradient(to bottom, var(--terracotta), var(--gold), var(--terracotta-dark));
}

.timeline li {
  position: relative;
  margin-bottom: 0;
  cursor: pointer;
}

/* The node dot */
.timeline li::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 1.3rem;
  width: 16px;
  height: 16px;
  background: var(--terracotta);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}

.timeline li:hover::before,
.timeline li:focus-within::before {
  background: var(--gold);
  transform: scale(1.3);
}

.phase-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-left: 2px solid transparent;
  transition: border-color 0.2s;
}

.timeline li:hover .phase-header,
.timeline li:focus-within .phase-header {
  border-left-color: var(--terracotta);
}

.phase-date {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold-light);
  white-space: nowrap;
  min-width: 140px;
}

.phase-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--off-white);
  font-weight: 600;
}

/* Expandable card */
.phase-card {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.timeline li:hover .phase-card,
.timeline li:focus-within .phase-card {
  max-height: 600px;
}

.phase-card-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 0 1.25rem 1.5rem 1.25rem;
  border-left: 2px solid var(--terracotta);
  margin-left: 0;
}

.phase-thumb {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(184,134,11,0.3);
}

.phase-thumb-placeholder {
  width: 120px;
  height: 100px;
  background: rgba(193,68,14,0.15);
  border-radius: var(--radius);
  border: 1px dashed rgba(184,134,11,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bowl-icon {
  width: 50px;
  height: 30px;
  border: 2px solid var(--gold);
  border-radius: 0 0 50px 50px;
  border-top: none;
}

.phase-info h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.phase-info p {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.phase-info .phase-tag {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(193,68,14,0.3);
  color: var(--sand-light);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-right: 0.4rem;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
}

/* ============================================================
   9. NAMED WARES GRID
   ============================================================ */
#named-wares {
  padding-block: var(--section-pad);
  background: var(--charcoal);
}

#named-wares h2 {
  color: var(--off-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

#named-wares .section-label {
  color: var(--gold-light);
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#named-wares .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
  background: var(--gold);
}

.wares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ware-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ware-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(184,134,11,0.4);
}

.ware-card-image {
  height: 200px;
  overflow: hidden;
  background: rgba(59,31,14,0.8);
  position: relative;
}

.ware-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ware-card:hover .ware-card-image img {
  transform: scale(1.05);
}

.ware-card-body {
  padding: 1.25rem;
}

.ware-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.ware-date {
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.ware-features {
  list-style: none;
  padding: 0;
}

.ware-features li {
  font-size: 0.875rem;
  color: var(--sand);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.ware-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  background: var(--terracotta);
  border-radius: 50%;
}

/* ============================================================
   10. TECHNOLOGY SECTION
   ============================================================ */
#technology {
  padding-block: var(--section-pad);
  background: var(--sand-light);
}

#technology h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

#technology .section-label {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#technology .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
}

.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.tech-block h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* CSS flame animation */
.flame-icon {
  position: relative;
  width: 28px;
  height: 40px;
  display: inline-block;
}

.flame-icon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  background: radial-gradient(ellipse at 50% 80%, var(--terracotta) 0%, var(--gold) 40%, transparent 70%);
  border-radius: 50% 50% 30% 30%;
  animation: flamePulse 1.8s ease-in-out infinite;
}

.flame-icon::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 80%, var(--off-white) 0%, var(--gold-light) 40%, transparent 70%);
  border-radius: 50% 50% 30% 30%;
  animation: flamePulse 1.8s ease-in-out infinite 0.3s;
}

/* CSS wheel animation */
.wheel-icon {
  width: 36px;
  height: 36px;
  border: 3px solid var(--terracotta);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  animation: spin 8s linear infinite;
}

.wheel-icon::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.wheel-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--deep-brown);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--terracotta);
}

/* Technology timeline bar */
.tech-bar {
  background: var(--deep-brown);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tech-bar-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--off-white);
  margin-bottom: 2rem;
  text-align: center;
}

.tech-bar-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 20px;
}

.tech-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to right, var(--terracotta), var(--gold));
  border-radius: 2px;
}

.tech-milestones {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 10px;
  padding-top: 1.5rem;
}

.tech-milestone {
  position: relative;
  text-align: center;
  flex: 1;
}

.tech-milestone::before {
  content: '';
  position: absolute;
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--deep-brown);
}

.milestone-date {
  font-size: 0.7rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.25rem;
}

.milestone-label {
  font-size: 0.7rem;
  color: var(--sand);
  line-height: 1.3;
}

/* ============================================================
   11. QUALITY DEBATE SPLIT
   ============================================================ */
#quality-debate {
  padding-block: var(--section-pad);
  background-attachment: fixed;
  background-color: var(--off-white);
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(193,68,14,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 50%, rgba(59,31,14,0.06) 0%, transparent 60%);
}

#quality-debate .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

#quality-debate .section-label {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#quality-debate .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
}

.debate-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 8px 40px rgba(59,31,14,0.12);
}

.debate-panel {
  padding: 2.5rem;
}

.debate-panel.for {
  background: rgba(193,68,14,0.07);
  border: 1px solid rgba(193,68,14,0.15);
  border-right: none;
}

.debate-panel.against {
  background: rgba(59,31,14,0.05);
  border: 1px solid rgba(59,31,14,0.1);
}

.debate-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid;
}

.debate-panel.for h3 { border-color: var(--terracotta); color: var(--terracotta-dark); }
.debate-panel.against h3 { border-color: var(--warm-grey); color: var(--deep-brown); }

.debate-list {
  list-style: none;
  padding: 0;
}

.debate-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.debate-list li:last-child { border-bottom: none; }

.debate-panel.for .debate-list li::before {
  content: '↑';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: bold;
}

.debate-panel.against .debate-list li::before {
  content: '↔';
  position: absolute;
  left: 0;
  color: var(--warm-grey);
}

.verdict-box {
  background: var(--deep-brown);
  color: var(--off-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.verdict-box h3 {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.verdict-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--sand);
  max-width: 700px;
  margin-inline: auto;
}

/* ============================================================
   12. TRADE NETWORKS OVERLAY
   ============================================================ */
#trade-networks {
  padding-block: var(--section-pad);
  position: relative;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/97/Culture_ceramiche_del_Vicino_Oriente_nel_medio_Halaf_-_5200-4500_a.C.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#trade-networks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59, 31, 14, 0.82);
}

#trade-networks .container {
  position: relative;
  z-index: 1;
}

#trade-networks h2 {
  color: var(--off-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

#trade-networks .section-label {
  color: var(--gold-light);
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#trade-networks .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
  background: var(--gold);
}

.trade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.trade-card {
  background: rgba(245, 240, 232, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.trade-card-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.trade-card h3 {
  color: var(--off-white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.trade-card p {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.6;
  margin-bottom: 0;
}

.trade-stat {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0.75rem 0 0.25rem;
}

.trade-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-grey);
}

/* ============================================================
   13. SOCIAL STRATIFICATION
   ============================================================ */
#social-stratification {
  padding-block: var(--section-pad);
  background: var(--off-white);
}

#social-stratification h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

#social-stratification .section-label {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#social-stratification .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
}

.strat-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.strat-float-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(59,31,14,0.15);
  border: 1px solid rgba(184,134,11,0.2);
  position: sticky;
  top: 2rem;
}

.strat-subsections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.strat-block {
  border-left: 3px solid var(--terracotta);
  padding-left: 1.5rem;
}

.strat-block h3 {
  margin-bottom: 0.75rem;
}

/* ============================================================
   14. NEW QUESTIONS
   ============================================================ */
#new-questions {
  padding-block: var(--section-pad);
  background: var(--deep-brown);
}

#new-questions h2 {
  color: var(--off-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

#new-questions .section-label {
  color: var(--gold-light);
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#new-questions .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
  background: var(--gold);
}

#new-questions .intro-text {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
  color: var(--sand);
}

.questions-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.questions-list details {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.questions-list details[open] {
  border-color: var(--terracotta);
}

.questions-list summary {
  list-style: none;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--off-white);
  font-size: 1rem;
  line-height: 1.5;
  transition: background 0.2s;
}

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

.questions-list summary:hover {
  background: rgba(193,68,14,0.1);
}

.q-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  min-width: 2rem;
  flex-shrink: 0;
}

.q-arrow {
  margin-left: auto;
  color: var(--gold);
  transition: transform 0.2s;
  flex-shrink: 0;
  font-size: 1.2rem;
}

details[open] .q-arrow {
  transform: rotate(90deg);
}

.q-body {
  padding: 0 1.5rem 1.5rem 4.5rem;
  color: var(--sand);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* ============================================================
   15. BIBLIOGRAPHY
   ============================================================ */
#bibliography {
  padding-block: var(--section-pad);
  background: var(--sand-light);
}

#bibliography h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

#bibliography .section-label {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

#bibliography .terracotta-rule {
  margin-inline: auto;
  margin-bottom: 3rem;
}

.bib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}

.bib-entry {
  font-size: 0.875rem;
  line-height: 1.6;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59,31,14,0.1);
  scroll-margin-top: 5rem;
}

.bib-entry:last-child { border-bottom: none; }

.bib-authors {
  font-weight: 600;
  color: var(--deep-brown);
}

.bib-year {
  color: var(--terracotta);
  font-weight: 600;
}

.bib-entry a {
  word-break: break-all;
  font-size: 0.8rem;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
#footer {
  background: var(--deep-brown);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0px,
    var(--terracotta) 20px,
    var(--gold) 20px,
    var(--gold) 22px,
    transparent 22px,
    transparent 30px
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

#footer p {
  color: var(--warm-grey);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

#footer a {
  color: var(--gold-light);
}

.footer-title {
  font-family: var(--font-serif);
  color: var(--sand);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   16b. HERO EMAIL CAPTURE BAR
   ============================================================ */
.hero-capture {
  background: rgba(0,0,0,0.30);
  border-top: 1px solid rgba(232,213,163,0.15);
  padding: 1.75rem 0;
}

.hero-capture-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-capture-label {
  color: var(--sand);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.hero-capture-label strong {
  color: var(--off-white);
}

.hero-capture-form .dl-input-row {
  max-width: 560px;
}

.dl-label {
  display: block;
  color: var(--sand);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.dl-input-row {
  display: flex;
  gap: 0.5rem;
}

.dl-input-row input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(232,213,163,0.35);
  border-radius: 3px;
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.dl-input-row input[type="email"]::placeholder {
  color: var(--warm-grey);
}

.dl-input-row input[type="email"]:focus {
  border-color: var(--terracotta);
}

.dl-input-row button {
  background: var(--terracotta);
  border: none;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.dl-input-row button:hover:not(:disabled) {
  background: #a03208;
}

.dl-input-row button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

button.loading .btn-spinner { display: block; }
button.loading .btn-text    { opacity: 0.6; }

.dl-note {
  color: var(--warm-grey);
  font-size: 0.78rem;
  margin: 0.6rem 0 0;
  line-height: 1.5;
}

.dl-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(193,68,14,0.15);
  border: 1px solid rgba(193,68,14,0.4);
  border-radius: 4px;
  padding: 1.25rem;
}

.dl-success-icon {
  font-size: 1.5rem;
  color: #6dbf6d;
  font-weight: 700;
  flex-shrink: 0;
}

.dl-success p {
  color: var(--sand);
  margin: 0;
  font-size: 0.95rem;
}

.dl-error {
  background: rgba(180,40,20,0.18);
  border: 1px solid rgba(180,40,20,0.45);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  color: #f5a898;
  font-size: 0.88rem;
}

/* ============================================================
   17. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceArrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes flamePulse {
  0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1); }
  30%       { transform: translateX(-50%) scaleY(1.12) scaleX(0.92); filter: hue-rotate(8deg); }
  60%       { transform: translateX(-50%) scaleY(0.94) scaleX(1.06); }
}

/* ============================================================
   18. RESPONSIVE (768px breakpoint)
   ============================================================ */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 4rem;
  }

  .hero-image-wrap {
    display: none;
  }

  .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tech-split    { grid-template-columns: 1fr; gap: 2rem; }
  .debate-split  { grid-template-columns: 1fr; }
  .debate-panel.for { border-right: 1px solid rgba(193,68,14,0.15); border-bottom: none; }
  .strat-content { grid-template-columns: 1fr; }
  .strat-float-image { position: static; margin-bottom: 1.5rem; max-width: 300px; }
  .bib-grid      { grid-template-columns: 1fr; }
  .two-col       { grid-template-columns: 1fr; }

  .tech-milestones { flex-wrap: wrap; gap: 1rem; }
  .tech-milestone  { min-width: 80px; }
  .tech-milestone::before { display: none; }

  .trade-cards { grid-template-columns: 1fr; }
  .wares-grid  { grid-template-columns: 1fr; }

  .dl-input-row   { flex-direction: column; max-width: 100% !important; }
  .dl-input-row button { width: 100%; justify-content: center; }

  .timeline { padding-left: 2rem; }
  .phase-card-inner { grid-template-columns: 1fr; }
  .phase-thumb { width: 100%; height: 160px; }
  .phase-thumb-placeholder { width: 100%; height: 80px; }
  .phase-date { min-width: auto; }

  .q-body { padding-left: 3.5rem; }
}
