:root {
  --surface: #fff;
  --off: #f4f6f8;
  --ink: #0e1418;
  --soft: #37424b;
  --muted: #65717a;
  --hair: #dfe5e8;
  --deep: #0b3a4a;
  --teal: #12697f;
  --cyan: #5fd8f2;
  --gold: #f0c469;
  --amber: #a66d08;
  --green: #16765a;
  --rail: clamp(20px, 5vw, 78px);
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 17px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.review-bar {
  padding: 9px var(--rail);
  color: #fff;
  background: #12191d;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 var(--rail);
  border-bottom: 1px solid rgba(255,255,255,.13);
  color: #fff;
  background: rgba(4,7,14,.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  margin-right: auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nav-link { text-decoration: none; font-size: 14px; color: rgba(255,255,255,.72); }
.nav-link:hover { color: #fff; }

.hero {
  min-height: 76vh;
  padding: clamp(80px, 11vw, 150px) var(--rail) clamp(70px, 9vw, 120px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 24%, rgba(95,216,242,.2), transparent 28%),
    radial-gradient(circle at 15% 100%, rgba(240,196,105,.09), transparent 30%),
    linear-gradient(135deg, #04070e 8%, #0b3a4a 74%, #12697f);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.crumb {
  margin: 0 0 34px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.crumb a { text-decoration: none; border-bottom: 1px solid rgba(95,216,242,.5); }
.hero h1 {
  max-width: 1050px;
  margin: 0;
  font: 500 clamp(48px, 7vw, 102px)/.96 var(--serif);
  letter-spacing: -.052em;
}
.hero-lede {
  max-width: 820px;
  margin: 36px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(19px, 1.65vw, 25px);
  line-height: 1.55;
}

.facts {
  padding: 0 var(--rail);
  color: #fff;
  background: var(--deep);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.fact { min-height: 138px; padding: 29px clamp(18px, 3vw, 42px); border-right: 1px solid rgba(255,255,255,.13); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fact span { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.45; }

.story-shell {
  padding: clamp(75px, 9vw, 130px) var(--rail);
  background:
    linear-gradient(90deg, rgba(18,105,127,.05) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--off);
  display: grid;
  grid-template-columns: minmax(190px, .28fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
}
.rail { align-self: start; position: sticky; top: 100px; }
.rail-title {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.rail a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid #ccd6da;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.rail a:last-child { border-bottom: 1px solid #ccd6da; }
.rail a:hover { color: var(--teal); }

.article { max-width: 980px; }
.chapter { scroll-margin-top: 100px; margin-bottom: clamp(88px, 10vw, 150px); }
.kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.chapter h2 {
  max-width: 820px;
  margin: 0 0 30px;
  font: 500 clamp(35px, 4.7vw, 66px)/1.04 var(--serif);
  letter-spacing: -.04em;
}
.chapter h3 { margin: 40px 0 14px; font: 500 clamp(25px, 2.8vw, 36px)/1.15 var(--serif); letter-spacing: -.02em; }
.chapter > p { max-width: 760px; color: var(--soft); }
.chapter > p.lead { color: var(--ink); font: 500 clamp(22px, 2vw, 29px)/1.48 var(--serif); }

.problem-grid, .result-grid, .decision-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  min-height: 220px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.94);
}
.tile small {
  display: block;
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tile h3 { margin: 0 0 13px; font-size: clamp(24px, 2.4vw, 34px); }
.tile p { margin: 0; color: var(--soft); font-size: 15px; }

.sequence { margin: 45px 0 0; border-top: 1px solid #cbd4d8; }
.step {
  padding: 30px 0;
  border-bottom: 1px solid #cbd4d8;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, .55fr);
  gap: 22px;
  align-items: start;
}
.step-no { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.step h3 { margin: 0; font-size: clamp(24px, 2.5vw, 34px); }
.step p { margin: 0; color: var(--soft); font-size: 15px; }

.failure {
  margin-top: 42px;
  padding: clamp(30px, 5vw, 60px);
  color: #fff;
  background: var(--deep);
}
.failure .kicker { color: var(--gold); }
.failure h3 { max-width: 720px; margin-top: 0; font-size: clamp(32px, 4vw, 54px); }
.failure p { max-width: 760px; color: rgba(255,255,255,.75); }

.decision {
  padding: 30px;
  border-top: 4px solid var(--teal);
  background: #fff;
}
.decision strong { display: block; margin-bottom: 10px; font: 500 25px/1.2 var(--serif); }
.decision p { margin: 0; color: var(--soft); font-size: 15px; }

.measure {
  min-height: 245px;
  padding: 32px;
  color: #fff;
  background: var(--deep);
}
.measure b { display: block; color: var(--cyan); font: 500 clamp(34px, 4vw, 56px)/1 var(--serif); }
.measure span { display: block; margin-top: 13px; color: rgba(255,255,255,.74); font-size: 15px; }
.measure--plain { color: var(--ink); background: #fff; border: 1px solid var(--hair); }
.measure--plain b { color: var(--teal); }
.measure--plain span { color: var(--soft); }

.limits {
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid #cfdae0;
  background: rgba(255,255,255,.74);
}
.limits h3 { margin-top: 0; }
.limits ul { margin: 22px 0 0; padding: 0; list-style: none; }
.limits li { padding: 18px 0 18px 34px; border-top: 1px solid var(--hair); position: relative; color: var(--soft); }
.limits li::before { content: "—"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

.quote {
  margin: 46px 0 0;
  padding: 0 0 0 30px;
  border-left: 3px solid var(--teal);
  font: 500 clamp(25px, 3vw, 39px)/1.34 var(--serif);
}
.quote cite { display: block; margin-top: 18px; color: var(--muted); font: 800 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.next {
  padding: clamp(70px, 9vw, 120px) var(--rail);
  color: #fff;
  background: #04070e;
}
.next-label { margin: 0 0 22px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next a {
  min-height: 230px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .2s, border-color .2s;
}
.next a:hover { background: rgba(95,216,242,.08); border-color: var(--cyan); }
.next small { color: rgba(255,255,255,.55); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.next strong { max-width: 520px; font: 500 clamp(25px, 3vw, 38px)/1.15 var(--serif); }
.next span { color: var(--cyan); }

.footer { padding: 30px var(--rail); color: var(--muted); background: #fff; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }

/* Pacific Merchandising story: visual and interactive layer */
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 0;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(95,216,242,.55);
}
.hero--visual {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, .7fr);
  align-items: end;
  gap: clamp(42px, 6vw, 96px);
}
.hero--visual h1 { font-size: clamp(46px, 6.2vw, 90px); }
.hero-copy { min-width: 0; }
.memory-graphic {
  position: relative;
  margin: 0;
  min-height: 510px;
  align-self: center;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(3,16,22,.24);
  overflow: hidden;
}
.memory-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(95,216,242,.2) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.memory-graphic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.memory-line {
  fill: none;
  stroke: rgba(95,216,242,.42);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: memory-flow 10s linear infinite;
}
.memory-ring { fill: rgba(18,105,127,.18); stroke: rgba(95,216,242,.48); stroke-width: 1.5; }
.memory-core { fill: #fff; }
.memory-label { fill: rgba(255,255,255,.66); font: 700 10px var(--sans); letter-spacing: 1.5px; }
.memory-main { fill: var(--ink); font: 500 20px var(--serif); }
.memory-note {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  margin: 0;
  color: rgba(255,255,255,.63);
  font-size: 12px;
  letter-spacing: .04em;
}
@keyframes memory-flow { to { stroke-dashoffset: -120; } }

.knowledge-explorer {
  margin-top: 42px;
  border: 1px solid #cdd8dc;
  background: rgba(255,255,255,.86);
}
.knowledge-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #cdd8dc;
}
.knowledge-tab {
  min-height: 82px;
  padding: 15px 12px;
  border: 0;
  border-right: 1px solid #dbe2e5;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 800 12px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.knowledge-tab:last-child { border-right: 0; }
.knowledge-tab:hover { color: var(--teal); background: rgba(18,105,127,.05); }
.knowledge-tab[aria-selected="true"] { color: #fff; background: var(--teal); }
.knowledge-panel {
  min-height: 250px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}
.knowledge-panel[hidden] { display: none; }
.knowledge-icon {
  width: 104px;
  aspect-ratio: 1;
  border: 1px solid rgba(18,105,127,.3);
  border-radius: 50%;
  color: var(--teal);
  background: rgba(18,105,127,.05);
  display: grid;
  place-items: center;
  font: 500 36px/1 var(--serif);
}
.knowledge-panel h3 { margin: 0 0 10px; }
.knowledge-panel p { margin: 0; max-width: 650px; color: var(--soft); }

.map-shell {
  margin: 42px 0 46px;
  border: 1px solid #cbd6da;
  background: #fff;
}
.map-tabs {
  padding: 12px;
  border-bottom: 1px solid #dce3e6;
  display: flex;
  gap: 8px;
}
.map-tab {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #d5dee2;
  color: var(--soft);
  background: var(--off);
  cursor: pointer;
  font: 800 12px/1.3 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.map-tab[aria-selected="true"] { color: #fff; border-color: var(--deep); background: var(--deep); }
.map-panel { min-height: 440px; padding: clamp(24px, 4vw, 42px); }
.map-panel[hidden] { display: none; }
.map-caption { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.system-map {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--hair);
  background:
    radial-gradient(circle at center, rgba(18,105,127,.09), transparent 34%),
    var(--off);
  overflow: hidden;
}
.system-map::before, .system-map::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 62%; height: 1px;
  background: #b9c6cc;
  transform-origin: center;
}
.system-map::before { transform: translate(-50%,-50%) rotate(28deg); }
.system-map::after { transform: translate(-50%,-50%) rotate(-28deg); }
.system-node {
  position: absolute;
  z-index: 2;
  min-width: 122px;
  padding: 14px 16px;
  border: 1px solid #cbd6da;
  color: var(--soft);
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px -22px rgba(14,20,24,.6);
}
.system-node:nth-child(1) { left: 6%; top: 12%; transform: rotate(-2deg); }
.system-node:nth-child(2) { right: 7%; top: 14%; transform: rotate(2deg); }
.system-node:nth-child(3) { left: 8%; bottom: 12%; transform: rotate(1deg); }
.system-node:nth-child(4) { right: 6%; bottom: 11%; transform: rotate(-2deg); }
.system-core {
  position: absolute;
  z-index: 3;
  left: 50%; top: 50%;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font: 500 22px/1.15 var(--serif);
}
.system-map--before::before, .system-map--before::after { background: transparent; border-top: 1px dashed #c8d1d5; }
.system-map--before .system-core { color: var(--muted); border: 1px dashed #9eacb3; background: transparent; }
.system-map--before .system-node { opacity: .72; }
.system-team {
  position: absolute;
  z-index: 4;
  left: 50%; bottom: 12px;
  padding: 7px 13px;
  color: var(--teal);
  background: #fff;
  border: 1px solid rgba(18,105,127,.35);
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map-panel.is-entering .system-node { animation: node-in .42s ease both; }
.map-panel.is-entering .system-node:nth-child(2) { animation-delay: .06s; }
.map-panel.is-entering .system-node:nth-child(3) { animation-delay: .12s; }
.map-panel.is-entering .system-node:nth-child(4) { animation-delay: .18s; }
@keyframes node-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 880px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:first-child { min-height: auto; padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .fact:last-child { border-bottom: 0; }
  .story-shell { grid-template-columns: 1fr; }
  .rail { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
  .rail-title { grid-column: 1 / -1; }
  .hero--visual { grid-template-columns: 1fr; }
  .memory-graphic { min-height: 390px; width: min(100%, 560px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-link { display: none; }
  .hero { min-height: 68vh; }
  .hero h1 { font-size: 50px; }
  .problem-grid, .result-grid, .decision-grid, .next-grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step p { grid-column: 2; }
  .footer { flex-direction: column; }
  .memory-graphic { min-height: 330px; }
  .knowledge-tabs { grid-template-columns: 1fr 1fr; }
  .knowledge-tab:nth-child(2) { border-right: 0; }
  .knowledge-tab:nth-child(-n+2) { border-bottom: 1px solid #dbe2e5; }
  .knowledge-panel { grid-template-columns: 1fr; }
  .knowledge-icon { width: 78px; }
  .map-panel { min-height: 510px; padding: 18px; }
  .system-map { min-height: 430px; }
  .system-node { min-width: 108px; max-width: 135px; padding: 11px 9px; font-size: 10px; }
  .system-node:nth-child(1) { left: 4%; top: 7%; }
  .system-node:nth-child(2) { right: 4%; top: 7%; }
  .system-node:nth-child(3) { left: 4%; bottom: 8%; }
  .system-node:nth-child(4) { right: 4%; bottom: 8%; }
  .system-core { width: 135px; font-size: 19px; }
  .system-team { bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
