/* Frigitorium — thinking | styles lifted verbatim from the supplied master */
:root {
    /* Foundation neutrals */
    --bg:           #05070c;
    --bg-2:         #0a0f18;
    --surface:      #0d131e;
    --line:         rgba(255,255,255,0.10);
    --line-strong:  rgba(255,255,255,0.18);
    --text:         #eef2f8;
    --text-dim:     #aab3c2;
    --text-mute:    #7a8597;

    /* Editorial blues */
    --frost:        #cfe7ff;
    --ice:          #8fd6ff;

    /* Editorial highlight — sparingly */
    --tangerine:    #f86a3f;

    --maxw: 1240px;
    --pad:  clamp(20px, 4vw, 56px);
    --r-lg: 22px;
    --r-md: 14px;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  a { color: inherit; }
  ::selection { background: rgba(143,214,255,0.25); color: #fff; }

  .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  /* ───────── Top bar ───────── */
  .topbar {
    position: sticky; top: 0; z-index: 20;
    background: linear-gradient(to bottom, rgba(5,7,12,0.92), rgba(5,7,12,0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
  }
  .brand { display: inline-flex; align-items: center; text-decoration: none; }
  .brand img { height: 44px; width: auto; display: block; }
  .nav {
    display: flex; gap: 28px;
    font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-dim);
  }
  .nav a {
    text-decoration: none;
    transition: color .2s ease;
  }
  .nav a:hover { color: var(--text); }
  .nav a.is-active { color: var(--ice); }
  @media (max-width: 720px) { .nav { display: none; } }

  /* ───────── Intro ───────── */
  .intro {
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;
  }
  .intro::before {
    content: "";
    position: absolute; inset: -10% -10% auto -10%; height: 80%;
    background:
      radial-gradient(50% 50% at 50% 30%, rgba(111,182,255,0.10), transparent 65%),
      radial-gradient(30% 40% at 80% 10%, rgba(192,152,255,0.07), transparent 70%),
      radial-gradient(30% 40% at 15% 20%, rgba(79,209,197,0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  .intro-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ice);
    font-weight: 600;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
  }
  .eyebrow .dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 14px;
    box-shadow: 0 0 12px currentColor;
  }
  .intro h1 {
    font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 6.4vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0 0 28px;
    color: var(--text);
  }
  .intro h1 em {
    font-style: italic;
    color: var(--frost);
  }
  .lede {
    color: var(--text-dim);
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.65;
    max-width: 64ch;
    margin: 0;
  }
  .lede + .lede-list { margin-top: 18px; }
  .lede-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 64ch;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .lede-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-dim);
    font-size: clamp(16px, 1.2vw, 17px);
    line-height: 1.55;
  }
  .lede-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ice);
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(143,214,255,0.45);
  }
  .lede-after { margin-top: 22px; }

  /* ───────── Map section ───────── */
  .map-section {
    position: relative;
    padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
  }

  .map-frame-wrap {
    position: relative;
  }
  /* soft halo behind the image — cold, atmospheric, never bright */
  .map-frame-wrap::before {
    content: "";
    position: absolute;
    inset: -8% -4% -4% -4%;
    background:
      radial-gradient(50% 40% at 50% 30%, rgba(143,214,255,0.10), transparent 70%),
      radial-gradient(40% 30% at 80% 70%, rgba(106,169,255,0.06), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
  }

  .map-frame {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(14px, 1.6vw, 22px);
    box-shadow:
      0 30px 80px rgba(0,0,0,0.55),
      inset 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease;
  }
  .map-frame:hover {
    border-color: rgba(143,214,255,0.22);
  }
  /* hairline accent at the top of the frame */
  .map-frame::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(143,214,255,0.4) 30%, rgba(143,214,255,0.4) 70%, transparent);
    opacity: 0.7;
  }

  /* ───────── Mind-map SVG ───────── */
  /* Colour tokens scoped to the mind-map — drawn from the original mind-map
     design but harmonised with the Frigitorium brand: the tagline at the
     foot of the SVG uses the canonical tangerine (#f86a3f) rather than the
     softer warm (#e8a157) the mind-map originally shipped with. */
  .map-frame {
    --mm-ink:        #e8edf2;
    --mm-ink-2:      #aebac8;
    --mm-ink-3:      #7d8a99;
    --mm-blue-line:  #5a89b0;
    --mm-blue-pill:  #6fa9d3;
    --mm-blue-bg:    #152a40;
    --mm-purple-line:#8a78b3;
    --mm-purple-pill:#b39ad8;
    --mm-purple-bg:  #241f36;
    --mm-green-line: #7a9b4d;
    --mm-green-pill: #a8c779;
    --mm-green-bg:   #1c2614;
    --mm-gold-line:  #b89254;
    --mm-gold-pill:  #d4a974;
    --mm-gold-bg:    #2c2415;
    --center-title-size: 25px;
  }
  .mindmap {
    display: block; width: 100%; height: auto;
    background: transparent;
    border-radius: calc(var(--r-lg) - 8px);
  }
  /* Hover focus — dim non-hovered branches */
  .mindmap .branch { transition: opacity .25s ease; }
  .mindmap:has(.branch:hover) .branch:not(:hover) { opacity: .22; }
  .mindmap .cat { transition: opacity .25s ease; }
  .mindmap .branch:has(.cat:hover) .cat:not(:hover) { opacity: .45; }
  /* Type */
  .mindmap text {
    font-family: "Manrope", system-ui, sans-serif;
    fill: var(--mm-ink); font-weight: 400;
  }
  .mindmap .pill-text { font-weight: 600; letter-spacing: .12em; font-size: 14px; text-anchor: middle; dominant-baseline: central; }
  .mindmap .pill-sub  { font-size: 11px; letter-spacing: .18em; fill: var(--mm-ink-3); text-anchor: middle; font-weight: 500; }
  .mindmap .leaf       { font-size: 14px; fill: var(--mm-ink-2); }
  .mindmap .leaf-r     { text-anchor: start; }
  .mindmap .leaf-l     { text-anchor: end; }
  .mindmap .leaf-c     { text-anchor: middle; }
  .mindmap .arc        { font-size: 12px; letter-spacing: .32em; fill: var(--mm-ink-3); font-weight: 600; }
  .mindmap .center-title { font-size: var(--center-title-size); letter-spacing: .08em; font-weight: 600; text-anchor: middle; fill: var(--mm-ink); }
  .mindmap .hygiene-title { font-size: 14px; font-weight: 600; letter-spacing: .18em; fill: var(--mm-green-pill); text-anchor: middle; }
  .mindmap .hygiene-leaf  { font-size: 13px; fill: var(--mm-ink-2); }
  .mindmap .who-name      { font-size: 13px; letter-spacing: .18em; font-weight: 600; fill: var(--mm-ink); text-anchor: middle; }
  .mindmap .who-desc      { font-size: 12px; fill: var(--mm-ink-3); text-anchor: middle; }
  .mindmap .who-title     { font-size: 14px; letter-spacing: .16em; font-weight: 600; fill: var(--mm-ink); text-anchor: middle; }
  .mindmap .who-sub       { font-size: 11px; letter-spacing: .22em; fill: var(--mm-ink-3); text-anchor: middle; font-weight: 500; }
  /* Tagline at the foot of the SVG uses the brand canonical tangerine */
  .mindmap .tagline { font-size: 12px; letter-spacing: .22em; fill: var(--tangerine); text-anchor: middle; font-weight: 500; }
  .mindmap .tag-sep { fill: var(--tangerine); opacity: .55; }
  /* Connectors */
  .mindmap .connector { fill: none; stroke-width: 1.2; }
  .mindmap .connector.blue   { stroke: var(--mm-blue-line); }
  .mindmap .connector.purple { stroke: var(--mm-purple-line); }
  .mindmap .connector.green  { stroke: var(--mm-green-line); }
  .mindmap .connector.gold   { stroke: var(--mm-gold-line); }
  /* Pills */
  .mindmap .pill-fill { stroke-width: 1; }
  .mindmap .pill-fill.blue   { fill: var(--mm-blue-bg);   stroke: var(--mm-blue-line); }
  .mindmap .pill-fill.purple { fill: var(--mm-purple-bg); stroke: var(--mm-purple-line); }
  .mindmap .pill-fill.green  { fill: var(--mm-green-bg);  stroke: var(--mm-green-line); }
  .mindmap .pill-fill.gold   { fill: var(--mm-gold-bg);   stroke: var(--mm-gold-line); }
  /* Centre */
  .mindmap .center-ring { fill: none; stroke: var(--mm-blue-line); stroke-width: 1.2; }
  .mindmap .center-fill { fill: #0a1828; }

  /* ───────── Footer ───────── */
  footer.site {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--text-mute);
    font-size: 12.5px;
    letter-spacing: 0.06em;
  }
  .foot-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .foot-tag {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0;
    color: var(--tangerine);
    text-transform: none;
  }
