:root {
  --ink: #101416;
  --paper: #eee8db;
  --white: #fffdfa;
  --teal: #087f8c;
  --red: #e23e2b;
  --yellow: #e9b52f;
  --gray: #9ca5a5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
h1, h2, h3, p, li { overflow-wrap: anywhere; }

.map-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 48px;
  align-items: center;
  gap: 24px;
  padding: 10px 4vw;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #3b4143;
  position: sticky;
  top: 0;
  z-index: 20;
}

.map-brand { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.map-brand span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); font-size: 19px; }

nav { display: flex; gap: 4px; }
nav a { padding: 9px 12px; color: #d7dcdb; font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
nav a:hover,
nav a.active { color: var(--ink); background: var(--white); }

.contact-dot { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--red); font-size: 18px; font-weight: 900; text-decoration: none; }

.map-hero {
  min-height: min(790px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: url("assets/argument-collage.webp") center / cover no-repeat;
}

.map-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 20, 22, 0.78) 0%, rgba(16, 20, 22, 0.52) 38%, rgba(16, 20, 22, 0.02) 69%);
}

.map-hero-copy { width: min(680px, 78vw); margin-left: 6vw; padding: 65px 0 110px; }

.signal,
.logic-label,
.pin-label {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-hero .signal { color: #71dde1; }

.map-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(88px, 15vw, 210px);
  font-weight: 500;
  line-height: 0.82;
}

.hero-line { max-width: 600px; margin: 36px 0 30px; font-size: clamp(21px, 2.2vw, 31px); line-height: 1.2; }
.map-link { display: inline-block; padding: 12px 16px; color: var(--ink); background: var(--yellow); font-size: 13px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.hero-coordinate { position: absolute; right: 3vw; bottom: 25px; display: flex; gap: 20px; color: #eee7d9; font-family: monospace; font-size: 11px; }

.argument-section { padding: 90px 6vw 110px; background-color: var(--paper); background-image: linear-gradient(rgba(16,20,22,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16,20,22,0.08) 1px, transparent 1px); background-size: 40px 40px; }
.argument-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(250px, 0.55fr); gap: 4vw; margin-bottom: 70px; }
.argument-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(43px, 6vw, 78px); font-weight: 500; line-height: 1; }
.argument-heading > p:last-child { margin: 8px 0 0; }

.argument-map { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(80px, auto); gap: 24px; position: relative; }
.argument-map::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; background: var(--red); transform: rotate(-8deg); transform-origin: center; }

.node { z-index: 1; min-height: 185px; padding: 24px; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 rgba(16, 20, 22, 0.18); }
.node summary { cursor: pointer; font-family: Georgia, serif; font-size: 24px; font-weight: 700; list-style: none; }
.node summary::-webkit-details-marker { display: none; }
.node summary span { display: block; margin-bottom: 34px; color: var(--red); font-family: Arial, sans-serif; font-size: 12px; }
.node p { font-size: 14px; }
.node a { font-size: 12px; font-weight: 900; text-transform: uppercase; }
.node-one { grid-column: 1 / span 5; grid-row: 1; }
.node-two { grid-column: 8 / span 5; grid-row: 1; background: #cfe7e3; }
.node-three { grid-column: 2 / span 5; grid-row: 3; background: #f6d66d; }
.node-four { grid-column: 8 / span 5; grid-row: 3; color: white; background: var(--red); }
.node-four summary span { color: var(--yellow); }

.conclusion-band { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4vw; padding: 65px 7vw; color: white; background: var(--teal); }
.conclusion-band span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.conclusion-band p { max-width: 1050px; margin: 0; font-family: Georgia, serif; font-size: clamp(31px, 4vw, 55px); line-height: 1.12; }

.map-page-title { min-height: 520px; display: grid; grid-template-columns: 160px minmax(0, 1.4fr) minmax(260px, 0.6fr); gap: 4vw; align-items: end; padding: 90px 6vw 70px; color: var(--white); background: var(--ink); border-bottom: 8px solid var(--teal); }
.map-page-title h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(62px, 9vw, 128px); font-weight: 500; line-height: 0.92; }
.map-page-title > p:last-child { margin: 0; font-size: 18px; }
.position-title { border-color: var(--red); }
.record-title { border-color: var(--yellow); }

.evidence-trail { padding: 70px 6vw; background-image: linear-gradient(90deg, transparent calc(6vw + 70px), var(--red) calc(6vw + 70px), var(--red) calc(6vw + 73px), transparent calc(6vw + 73px)); }
.evidence-trail article { display: grid; grid-template-columns: 145px minmax(0, 1fr) minmax(220px, 0.45fr); gap: 4vw; align-items: center; padding: 42px 0; }
.trail-marker { width: 140px; min-height: 140px; display: grid; place-items: center; align-content: center; color: white; background: var(--ink); border: 8px solid var(--paper); position: relative; z-index: 1; }
.trail-marker span { font-family: Georgia, serif; font-size: 53px; line-height: 1; }
.trail-marker small { color: var(--yellow); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.trail-copy { padding: 30px; border: 2px solid var(--ink); background: var(--white); }
.trail-copy h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 38px; }
.trail-copy p:last-child { margin-bottom: 0; }
.trail-result { margin: 0; padding: 20px; color: white; background: var(--teal); }
.trail-result strong { display: block; margin-bottom: 10px; color: var(--yellow); font-size: 10px; text-transform: uppercase; }

.map-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 55px 6vw; color: white; background: var(--red); }
.map-next span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.map-next a { font-family: Georgia, serif; font-size: clamp(31px, 5vw, 66px); text-decoration: none; }

.reasoning-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.reasoning-grid article { min-height: 300px; padding: 38px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--white); }
.reasoning-grid article:nth-child(4) { border-right: 0; }
.reasoning-grid .premise { grid-column: span 3; min-height: 380px; display: grid; align-content: end; color: white; background: var(--teal); }
.reasoning-grid .inference { grid-column: span 3; min-height: 380px; display: grid; align-content: center; color: white; background: var(--red); }
.reasoning-grid h2 { max-width: 1050px; margin: 0; font-family: Georgia, serif; font-size: clamp(43px, 6vw, 79px); font-weight: 500; line-height: 1.03; }
.reasoning-grid h3 { margin: 80px 0 10px; font-family: Georgia, serif; font-size: 34px; }
.logic-label { color: var(--red); }
.premise .logic-label,
.inference .logic-label { color: var(--yellow); }

.open-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; padding: 80px 7vw; }
.open-questions h2 { margin: 0; font-family: Georgia, serif; font-size: 46px; }
.open-questions ul { margin: 0; padding: 0; list-style: none; }
.open-questions li { padding: 18px 0; border-top: 2px solid var(--ink); }
.open-questions li:last-child { border-bottom: 2px solid var(--ink); }

.evidence-board { min-height: 1000px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(80px, auto); gap: 25px; padding: 80px 6vw 120px; background-color: #b9b4aa; background-image: radial-gradient(#7b7770 1px, transparent 1px); background-size: 18px 18px; }
.board-item { padding: 28px; border: 2px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 rgba(16, 20, 22, 0.22); }
.board-item h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 34px; }
.board-item ul { padding-left: 18px; }
.pin-label { color: var(--red); }
.board-academics { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.board-service { grid-column: 8 / span 5; grid-row: 1 / span 3; color: white; background: var(--teal); transform: rotate(1deg); }
.board-service .pin-label { color: var(--yellow); }
.board-leadership { grid-column: 2 / span 5; grid-row: 4 / span 3; background: #f1d15f; transform: rotate(-1deg); }
.board-activities { grid-column: 8 / span 5; grid-row: 5 / span 2; }
.board-skills { grid-column: 1 / span 6; grid-row: 8 / span 2; color: white; background: var(--ink); }
.board-skills .pin-label { color: #71dde1; }
.board-awards { grid-column: 8 / span 5; grid-row: 8 / span 3; color: white; background: var(--red); transform: rotate(1deg); }
.board-awards .pin-label { color: var(--yellow); }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 4vw; color: var(--white); background: var(--ink); font-size: 12px; text-transform: uppercase; }
footer p { margin: 0; }
footer a { color: var(--yellow); font-weight: 900; }

@media (max-width: 900px) {
  .map-header { grid-template-columns: 1fr 44px; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  nav a { flex: 0 0 auto; }
  .contact-dot { grid-column: 2; grid-row: 1; }
  .map-hero::before { background: linear-gradient(90deg, rgba(16, 20, 22, 0.8), rgba(16, 20, 22, 0.25)); }
  .argument-heading,
  .map-page-title { grid-template-columns: 1fr; align-items: start; }
  .argument-map { grid-template-columns: 1fr 1fr; }
  .node-one,
  .node-two,
  .node-three,
  .node-four { grid-column: auto; grid-row: auto; }
  .argument-map::before { display: none; }
  .evidence-trail article { grid-template-columns: 145px 1fr; }
  .trail-result { grid-column: 2; }
  .reasoning-grid { grid-template-columns: 1fr 1fr; }
  .reasoning-grid .premise,
  .reasoning-grid .inference { grid-column: span 2; }
  .reasoning-grid article:nth-child(4) { grid-column: span 2; }
  .evidence-board { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; min-height: 0; }
  .board-academics,
  .board-service,
  .board-leadership,
  .board-activities,
  .board-skills,
  .board-awards { grid-column: auto; grid-row: auto; transform: none; }
}

@media (max-width: 600px) {
  .map-header { position: static; }
  .map-brand { font-size: 10px; }
  .map-hero { min-height: 680px; background-position: 60% center; }
  .map-hero::before { background: rgba(16, 20, 22, 0.55); }
  .map-hero-copy { width: 88vw; }
  .map-hero h1 { font-size: 91px; }
  .argument-heading,
  .argument-map,
  .conclusion-band,
  .open-questions,
  .reasoning-grid,
  .evidence-board { grid-template-columns: 1fr; }
  .evidence-trail { padding-left: 5vw; padding-right: 5vw; background-image: none; }
  .evidence-trail article { grid-template-columns: 1fr; }
  .trail-marker { width: 110px; min-height: 110px; }
  .trail-result { grid-column: auto; }
  .reasoning-grid .premise,
  .reasoning-grid .inference,
  .reasoning-grid article:nth-child(4) { grid-column: auto; }
  .reasoning-grid article { min-height: 250px; border-right: 0; }
  .reasoning-grid h3 { margin-top: 45px; }
  .map-next { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}
