:root {
  --cream: #faf7f2;
  --white: #ffffff;
  --beige: #efe4d2;
  --beige-line: #e2d5bd;
  --gold: #b8925a;
  --gold-deep: #8a6a3a;
  --ink: #2f2a22;
  --muted: #756a5b;
  --shadow-sm: 0 1px 3px rgba(47, 42, 34, 0.06);
  --shadow-md: 0 14px 30px rgba(47, 42, 34, 0.12);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.page {
  height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vh, 28px) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 32px);
}

.hero {
  text-align: center;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--gold-deep);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.7vh, 15px);
  line-height: 1.5;
}

/* --- brain-dump diagram --- */

.diagram {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-template-areas:
    "left1 hub right1"
    "left2 hub right2";
  column-gap: clamp(22px, 4vw, 52px);
  row-gap: clamp(12px, 2.2vh, 20px);
  align-items: center;
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wires path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.45;
}

.hub {
  grid-area: hub;
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: clamp(16px, 2.8vh, 24px) clamp(20px, 2.4vw, 30px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: clamp(140px, 16vw, 190px);
}

.hub-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(16px, 2.1vh, 20px);
}

.hub-sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.6);
}

.node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
  background: var(--white);
  border: 1px solid var(--beige-line);
  border-radius: 14px;
  padding: clamp(10px, 1.7vh, 15px) clamp(13px, 1.5vw, 17px);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  width: max-content;
  max-width: 230px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.node:hover,
.node:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  outline: none;
}

.area-left1 { grid-area: left1; justify-self: end; }
.area-left2 { grid-area: left2; justify-self: end; }
.area-right1 { grid-area: right1; justify-self: start; }
.area-right2 { grid-area: right2; justify-self: start; }

.area-left1 .node-text,
.area-left2 .node-text {
  text-align: right;
  align-items: flex-end;
}

.icon-tile {
  width: clamp(34px, 4.4vh, 42px);
  height: clamp(34px, 4.4vh, 42px);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--beige);
  color: var(--gold-deep);
  transition: background 0.16s ease, color 0.16s ease;
}

.icon-tile svg {
  width: 55%;
  height: 55%;
}

.node:hover .icon-tile,
.node:focus-visible .icon-tile {
  background: var(--gold);
  color: var(--white);
}

.node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.node-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(13px, 1.7vh, 15px);
  color: var(--ink);
  white-space: nowrap;
}

.node-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.foot p { margin: 0; }

@media (max-width: 720px), (max-height: 560px) {
  html, body { overflow: auto; height: auto; }

  .page {
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
    padding: 36px 22px;
    gap: 28px;
  }

  .wires { display: none; }

  .diagram {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hub"
      "left1"
      "left2"
      "right1"
      "right2";
    row-gap: 12px;
  }

  .hub, .node {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .area-left1 .node-text,
  .area-left2 .node-text {
    text-align: left;
    align-items: flex-start;
  }

  .node-title, .node-sub { white-space: normal; }
}
