  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
    background: #FDF3E7;
    color: #3A0F08;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .page-shell {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .side-nav {
    position: sticky;
    top: 0;
    flex: 0 0 240px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 64px 24px 64px 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13.5px;
    align-self: flex-start;
    border-right: 1px solid #ececec;
  }
  .side-nav .nav-list { list-style: none; padding: 0; margin: 0; }
  .side-nav .nav-list li { margin: 0; }
  .side-nav a.nav-item {
    display: block;
    color: #525252;
    text-decoration: none;
    line-height: 1.45;
    padding: 8px 14px;
    border-left: 2px solid #ececec;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
    font-weight: 500;
  }
  .side-nav a.nav-item + a.nav-item { margin-top: 6px; }
  .side-nav a.nav-item:hover { color: #161616; background: #fafafa; }
  .side-nav a.nav-item.active {
    color: #161616;
    border-left-color: #c0382f;
    font-weight: 600;
  }
  .nav-prefix {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #a8a8a8;
    margin-right: 6px;
  }
  .side-nav a.nav-item.active .nav-prefix { color: #c0382f; }

  .container.with-nav {
    flex: 1 1 auto;
    max-width: 1100px;
    margin: 0;
    padding-top: 12px;
    padding-bottom: 24px;
    padding-left: 48px;
    padding-right: 24px;
  }

  header { margin-bottom: 44px; }
  h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #161616;
  }
  .subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #525252;
    line-height: 1.5;
    max-width: 760px;
  }
  .byline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c0382f;
    font-weight: 500;
    margin: -8px 0 20px;
  }

  /* -------- Artistic hero header (index-revised) -------- */
  .hero-header {
    position: relative;
    margin: 0 0 40px;
    padding: 0;
    background: transparent;
  }
  .hero-header .hero-svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .hero-header .hero-title {
    font-family: 'Playfair Display', 'DM Serif Display', serif;
    font-weight: 800;
    font-size: clamp(42px, 5.4vw, 76px);
    letter-spacing: -0.01em;
    line-height: 1;
    color: #6E1712;
    margin: 4px 0 8px 40px;    /* just below the skyline, slightly nudged right */
  }
  .hero-header .hero-byline,
  .hero-header .hero-subtitle {
    margin-left: 40px;
  }
  .hero-header .hero-nav {
    margin-left: 40px;
  }
  .hero-header .hero-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 600;
    font-style: normal;
    line-height: 1.35;
    color: #6E1712;
    margin: 0 0 4px 40px;
    max-width: 54ch;
  }
  .hero-header .hero-byline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #161616;
    margin: 0 0 8px 40px;
  }
  .hero-header .hero-byline a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #b3846b;
    padding-bottom: 1px;
    transition: border-color .12s;
  }
  .hero-header .hero-byline a:hover {
    border-bottom-color: #6E1712;
  }
  .hero-header .hero-credit {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #6b3f36;
    margin: 22px 0 20px 40px;
    max-width: none;
  }
  .hero-header .hero-credit strong {
    font-weight: 700;
    color: #6E1712;
  }
  .hero-header .hero-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .hero-header .nowrap { white-space: nowrap; }
  .hero-header .hero-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #393939;
    margin: 0 40px 28px 40px;
    max-width: 760px;
  }
  /* Nav moved into header, aligned left */
  .hero-nav {
    display: flex;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid #6E1712;
    max-width: 720px;
    margin-left: 40px;
  }
  .hero-nav-item {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A72020;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
  }
  .hero-nav-item:hover { color: #6E1712; }
  .hero-nav-item.active {
    color: #3A0F08;
    border-bottom-color: #6E1712;
  }

  /* Hide the sticky sidebar; nav is now in the header */
  .side-nav { display: none !important; }
  .page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .container.with-nav {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  /* -------- Mercury thermometer (aligned with body start) -------- */
  .scroll-thermo {
    position: fixed;
    left: max(12px, calc(50vw - 640px));
    top: 40px;                 /* dynamically set by JS */
    width: 180px;
    height: 280px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;                /* faded in by JS as reader enters body */
    transition: opacity .3s linear;
  }
  .scroll-thermo svg {
    width: 44px;
    height: 100%;
    display: block;
    position: absolute;
    right: 0;   /* SVG on the right of the widget so labels fit on its left */
    top: 0;
  }
  .scroll-thermo .thermo-label {
    position: absolute;
    right: 56px;
    text-align: right;
    font-family: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #8a4a3a;
    white-space: nowrap;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: opacity .35s ease, color .35s ease, font-weight .35s ease;
  }
  .scroll-thermo .thermo-label.active {
    opacity: 1;
    color: #6E1712;
    font-weight: 700;
  }
  @media (max-width: 780px) {
    .scroll-thermo { display: none; }
  }

  .anchor-target { scroll-margin-top: 40px; }

  /* Top slider view switch */
  .view-switch {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 34px 0 44px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
  }
  .view-switch .vs-item {
    flex: 1 1 0;
    text-align: center;
    padding: 18px 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8a8a8;
    cursor: pointer;
    position: relative;
    transition: color .18s ease;
    user-select: none;
  }
  .view-switch .vs-item:hover { color: #525252; }
  .view-switch .vs-item.active { color: #161616; }
  .view-switch .vs-divider {
    flex: 0 0 auto;
    width: 40px;
    height: 1px;
    background: #c6c6c6;
    align-self: center;
  }
  .view-switch .vs-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #c0382f;
    transition: left .35s cubic-bezier(.4,.0,.2,1), width .35s cubic-bezier(.4,.0,.2,1);
  }
  .view { display: none; }
  .view.active { display: block; animation: viewFadeIn .35s ease; }
  .view {
    max-width: 780px;
    margin: 0 40px;
  }
  @keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Warming chart */
  .warming-section { margin-bottom: 32px; }
  .warming-lede,
  .story-para {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6b3f36;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 760px;
  }
  .warming-lede a,
  .story-para a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #b3846b;
    padding-bottom: 1px;
    transition: border-color .12s;
  }
  .warming-lede a:hover,
  .story-para a:hover { border-bottom-color: #6E1712; }
  .warming-chart-wrap {
    margin-top: 18px;
    margin-bottom: 28px;
    position: relative;
    max-width: 900px;
  }
  .warming-chart-title,
  .panes-title,
  .insight-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #6E1712;
    margin: 0 0 2px 0;
    line-height: 1.25;
    max-width: 820px;
    letter-spacing: -0.005em;
  }
  .warming-chart-title {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(15px, 2.05vw, 20px);
  }
  .warming-chart-subtitle,
  .panes-subtitle,
  .insight-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #262626;
    margin: 0 0 22px 0;
    line-height: 1.55;
    max-width: 820px;
  }
  .panes-hl { font-weight: 600; }
  .panes-hl.recorded { color: #f59e0b; }
  .panes-hl.felt     { color: #e8202a; }
  .panes-section .panes-subtitle { max-width: none; white-space: nowrap; }
  .inline-swatch {
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px 0 1px;
  }
  .inline-swatch.red {
    width: 12px; height: 12px;
    background: #c0382f;
    border-radius: 2px;
  }
  .inline-swatch.blue {
    width: 10px; height: 10px;
    background: #1f6fb0;
    border-radius: 50%;
  }
  .inline-swatch.yellow {
    width: 10px; height: 10px;
    background: #f1c21b;
    border-radius: 50%;
  }
  #warmingChart { width: 100%; height: auto; display: block; overflow: visible; }
  #warmingChart .axis-tick { font-family: 'IBM Plex Mono', monospace; font-size: 14px; fill: #000; }
  #warmingChart .axis-label {
    font-family: 'IBM Plex Sans', sans-serif; font-size: 14px;
    font-weight: 600;
    letter-spacing: 0; text-transform: none; fill: #161616;
  }
  #warmingChart .gridline { stroke: #ececec; stroke-width: 1; shape-rendering: crispEdges; }
  #warmingChart .bar { transition: opacity .15s; }
  #warmingChart .bar:hover { opacity: 0.78; }
  .warming-legend {
    display: flex; flex-wrap: wrap; gap: 18px;
    margin-top: 14px; font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px; color: #393939;
  }
  .wl-item { display: inline-flex; align-items: center; gap: 8px; }
  .wl-swatch { display: inline-block; width: 64px; height: 10px; border-radius: 2px; }
  .wl-swatch-line { position: relative; background: transparent !important; }
  .wl-swatch-line::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 0; border-top: 2.5px dashed #c0382f; transform: translateY(-50%);
  }
  .apr-source-right {
    text-align: right; font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; color: #6f6f6f; margin-top: 8px;
  }
  .chart-source {
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8a8a8a;
    margin: -12px 0 0;
    letter-spacing: 0;
  }
  .warming-tooltip {
    position: absolute; pointer-events: none; background: #161616;
    color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    padding: 6px 9px; border-radius: 3px;
    opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 10;
  }

  /* UTCI explainer box */
  .utci-box {
    max-width: 820px;
    margin: 8px 0 44px;
    padding: 28px 32px;
    background: #f5ede4;
    border: none;
    border-radius: 4px;
    box-shadow: none;
  }
  .utci-box-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #161616;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
  }
  .utci-meta {
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 24px;
    row-gap: 14px;
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #393939;
  }
  .utci-meta dt {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6E1712;
    padding-top: 1px;
  }
  .utci-meta dd {
    margin: 0;
    color: #262626;
  }
  .utci-meta a {
    color: #6E1712;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
  }
  .utci-inputs {
    margin: 6px 0 0;
    padding-left: 20px;
    color: #262626;
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .utci-inputs li { margin: 2px 0; }
  .utci-strip {
    margin-top: 6px;
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .utci-strip-bar {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0;
    border-radius: 2px;
    overflow: hidden;
  }
  .utci-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 4px;
    min-width: 0;
    line-height: 1.1;
  }
  .utci-band .ub-label {
    font-size: 9.5px;
    font-weight: 600;
    color: inherit;
  }
  .utci-band .ub-range {
    font-size: 8.5px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 1px;
    color: inherit;
    white-space: nowrap;
  }
  .utci-band.c5 { background: #1e3a5f; color: #ffffff; }
  .utci-band.c4 { background: #2b5484; color: #ffffff; }
  .utci-band.c3 { background: #4a7bb0; color: #ffffff; }
  .utci-band.c2 { background: #8fb2d4; }
  .utci-band.c1 { background: #cddceb; }
  .utci-band.b1 { background: #f2ecd6; }
  .utci-band.b2 { background: #fde047; }
  .utci-band.b3 { background: #f59e0b; color: #ffffff; }
  .utci-band.b4 { background: #c2410c; color: #ffffff; }
  .utci-band.b5 { background: #7f1d1d; color: #ffffff; }

  /* Copernicus ThermalTrace screenshot — nested inside .utci-box, which
     already carries the outer white frame, so no inner frame here. */
  .thermal-figure {
    margin: 20px 0 0;
    max-width: 100%;
  }
  .thermal-figure a {
    display: block;
    position: relative;
    z-index: 5;
    cursor: pointer;
  }
  .thermal-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    pointer-events: auto;
  }
  .thermal-figure figcaption {
    margin-top: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    color: #6b3f36;
    line-height: 1.55;
    text-align: center;
  }

  /* Panes panel */
  .panes-section { margin-top: 20px; margin-bottom: 40px; }
  .panes-controls {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 20px; margin-bottom: 14px;
  }
  .panes-controls-left  { display: flex; align-items: center; gap: 20px; }
  .panes-controls-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
  .clock-block { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .clock-digital {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 26px; font-weight: 500;
    color: #161616; letter-spacing: 0.02em;
    line-height: 1; font-variant-numeric: tabular-nums;
  }
  .clock-digital .ampm {
    font-size: 14px; color: #6f6f6f; margin-left: 4px; letter-spacing: 0;
  }
  .play-btn {
    font-family: 'IBM Plex Sans', sans-serif; font-size: 13px;
    font-weight: 600;
    letter-spacing: 0; text-transform: none; color: #6E1712;
    background: transparent; border: 1.5px solid #6E1712;
    border-radius: 3px;
    padding: 8px 20px; cursor: pointer;
    transition: background .12s, color .12s;
  }
  .play-btn:hover { background: #6E1712; color: #fff; }
  .hour-scrubber {
    display: block; width: 100%;
    margin: 4px 0 24px; -webkit-appearance: none; appearance: none;
    background: transparent; height: 22px;
  }
  .hour-scrubber:focus { outline: none; }
  .hour-scrubber::-webkit-slider-runnable-track {
    height: 3px; background: #e0e0e0; border-radius: 2px;
  }
  .hour-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; height: 18px; width: 18px;
    background: #a30b0b; border-radius: 50%; margin-top: -8px; cursor: pointer;
    border: 2px solid #fff; box-shadow: 0 0 0 1px #a30b0b;
  }
  .hour-scrubber::-moz-range-track { height: 3px; background: #e0e0e0; border-radius: 2px; }
  .hour-scrubber::-moz-range-thumb {
    height: 16px; width: 16px; background: #a30b0b; border-radius: 50%;
    cursor: pointer; border: 2px solid #fff;
  }
  .panes-legend {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-family: 'IBM Plex Sans', sans-serif; font-size: 14px;
    color: #161616; margin-bottom: 18px;
  }
  .panes-legend .label { font-weight: 600; }
  .panes-legend .label.felt { color: #e8202a; }
  .panes-legend .label.actual { color: #f59e0b; }
  .panes-legend .muted { color: #525252; font-weight: 500; }
  .panes-legend .dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    vertical-align: middle;
  }
  .panes-legend .dot.actual    { background: #f59e0b; }
  .panes-legend .dot.felt      { background: #e8202a; }
  .panes-legend .dot.felt-cool { background: #1f6fb0; }
  .panes-legend .ref-sw {
    display: inline-block; width: 22px; height: 0; border-top: 2px dashed #8a0a0a;
  }
  .panes-legend .ref-sw.very     { border-top-color: #d04a3a; }
  .panes-legend .ref-sw.strong   { border-top-color: #ff832b; }
  .panes-legend .ref-sw.moderate { border-top-color: #f1c21b; }
  .panes-legend .sep {
    display: inline-block; width: 1px; height: 20px;
    background: rgba(0,0,0,0.14); margin: 0 4px;
  }
  .panes-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px;
  }
  /* Desktop: hide the mobile-only toggles */
  .city-toggle.panes-city-toggle { display: none; }
  .city-toggle.cal-mode-toggle { display: none; }
  @media (max-width: 900px) { .panes-grid { grid-template-columns: 1fr; } }
  .pane-card { display: flex; flex-direction: column; gap: 10px; }
  .pane-card-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 22px; font-weight: 600; color: #161616;
    letter-spacing: -0.01em;
  }
  .pane-card svg { width: 100%; height: auto; display: block; }

  /* Insights section */
  .insight-section { margin-top: 60px; }
  .story-para + .insight-section { margin-top: 24px; }
  .story-para + .story-para { margin-top: -8px; }
  .insight-title { margin-bottom: 2px; }
  .insight-subtitle { margin-bottom: 20px; }
  .insight-subtitle em { font-style: normal; font-weight: 600; color: #161616; }
  .insight-finding {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #161616;
    line-height: 1.45;
    margin: 4px 0 14px;
    padding-left: 14px;
    border-left: 3px solid #c0382f;
    max-width: 780px;
  }
  .findings-header {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: #161616;
    margin: 90px 0 20px;
  }

  /* Insight header row: title on left, toggle on right */
  .insight-header-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; margin-bottom: 20px; flex-wrap: wrap;
  }
  /* Chart controls: right-aligned row above the chart (matches buildings viz) */
  .chart-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin: 16px 0 18px;
    flex-wrap: wrap;
  }
  .chart-controls.chart-controls-split {
    justify-content: space-between;
  }
  /* Title + toggle on one line: chart title left, toggle(s) right */
  .title-with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }
  .title-with-toggle .insight-title,
  .title-with-toggle .panes-title,
  .title-with-toggle .warming-chart-title {
    margin: 0;
    flex: 1 1 auto;
  }
  .title-with-toggle .city-toggle,
  .title-with-toggle .chart-controls-cluster {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    align-self: center;
  }
  /* Subtitle + toggle on one line: subtitle left, toggle(s) right */
  .subtitle-with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .subtitle-with-toggle .insight-subtitle {
    margin: 0;
    flex: 1 1 auto;
    max-width: none;
  }
  .subtitle-with-toggle .city-toggle {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    align-self: flex-start;
  }
  .subtitle-with-toggle .chart-controls-cluster {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    align-self: flex-start;
  }
  .chart-controls-cluster {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .insight-header-left { flex: 1 1 500px; min-width: 0; }
  .insight-header-left .insight-title { margin-bottom: 2px; }
  .insight-header-left .insight-subtitle { margin-bottom: 0; }

  /* City toggle — shared across panes/calendar/clocks/buildings */
  .city-toggle,
  .wcom-city-toggle {
    display: inline-flex;
    border: 1.5px solid #6E1712;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0;
  }
  .city-toggle.city-toggle-right { flex: 0 0 auto; align-self: flex-start; }
  .city-toggle button,
  .wcom-city-toggle button {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #6E1712;
    background: transparent;
    border: none;
    border-right: 1px solid #6E1712;
    padding: 8px 16px;
    cursor: pointer;
    transition: background .12s, color .12s;
  }
  .city-toggle button:last-child,
  .wcom-city-toggle button:last-child { border-right: none; }
  .city-toggle button.active,
  .wcom-city-toggle button.active {
    background: #6E1712;
    color: #ffffff;
  }
  .city-toggle button:hover:not(.active),
  .wcom-city-toggle button:hover:not(.active) {
    background: #f7ede9;
  }

  /* Calendar (insight 1) — two panels side-by-side, sized like old-version */
  .cal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin-bottom: 18px;
  }
  @media (max-width: 900px) {
    .cal-grid-2 { grid-template-columns: 1fr; }
  }
  .cal-panel { min-width: 0; }
  .cal-panel-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px; font-weight: 700; color: #161616;
    letter-spacing: -0.005em; margin-bottom: 8px;
  }
  .cal-panel.t2m  .cal-panel-title { color: #b57000; }
  .cal-panel.utci .cal-panel-title { color: #c0382f; }
  .cal-stat-row {
    display: flex; align-items: baseline; gap: 12px;
    margin: 6px 0 14px;
    flex-wrap: wrap;
  }
  .cal-stat { display: inline-flex; align-items: baseline; gap: 6px; }
  .cal-stat-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 26px; font-weight: 600;
    line-height: 1; color: #161616;
    font-variant-numeric: tabular-nums;
  }
  .cal-stat-num.t2m   { color: #b45309; }
  .cal-stat-num.utci  { color: #b91c1c; }
  .cal-stat-num.night { color: #b57000; }
  .cal-stat-lbl {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px; color: #525252;
    letter-spacing: 0.01em;
  }
  .cal-stat-sep {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #c6c6c6; font-weight: 300;
    font-size: 22px; line-height: 1;
  }
  .cal-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  @media (max-width: 520px) {
    .cal-months { grid-template-columns: repeat(2, 1fr); }
  }
  .cal-month {
    border: none;
    padding: 6px;
    background: transparent;
    border-radius: 0;
  }
  .cal-month-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #161616;
    margin-bottom: 4px;
    font-weight: 600;
  }
  .cal-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .cal-cell {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 1px;
  }
  .cal-cell.placeholder { background: transparent; border-color: transparent; }
  .cal-cell { position: relative; }
  /* Actual (T2M) panel — amber ramp */
  .cal-panel.t2m .cal-cell.hot     { background: #fbbf24; border-color: #b45309; }
  .cal-panel.t2m .cal-cell.hot.med  { background: #f59e0b; }
  .cal-panel.t2m .cal-cell.hot.high { background: #b45309; }
  /* Feels-like (UTCI) panel — red ramp */
  .cal-panel.utci .cal-cell.hot     { background: #dc2626; border-color: #7f1d1d; }
  .cal-panel.utci .cal-cell.hot.med  { background: #b91c1c; }
  .cal-panel.utci .cal-cell.hot.high { background: #7f1d1d; }
  /* Warm-night dot — three tiers of yellow.
     Base = pale yellow at threshold, mid at +2°, deep amber at +4°. */
  .cal-cell.night::after {
    content: '';
    position: absolute;
    right: 2px; bottom: 2px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #fde68a;
  }
  .cal-cell.night.night-med::after  { background: #f1c21b; }
  .cal-cell.night.night-high::after { background: #b57000; }
  .cal-legend {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-family: 'IBM Plex Sans', sans-serif; font-size: 12px;
    color: #393939; margin-top: 6px;
  }
  .cal-legend .swatch {
    display: inline-block; width: 12px; height: 12px;
    border-radius: 2px; margin-right: 6px; vertical-align: -2px;
  }
  .cal-legend .swatch.t2m-lo { background: #fbbf24; }
  .cal-legend .swatch.t2m-mid { background: #f59e0b; }
  .cal-legend .swatch.t2m-hi { background: #b45309; }
  .cal-legend .swatch.utci-lo { background: #dc2626; }
  .cal-legend .swatch.utci-mid { background: #b91c1c; }
  .cal-legend .swatch.utci-hi { background: #7f1d1d; }
  /* Tropical-night swatches — small dot on a white tile, mirrors the calendar cell. */
  .cal-legend .swatch.night-lo,
  .cal-legend .swatch.night-mid,
  .cal-legend .swatch.night-hi {
    background: #ffffff; border: 1px solid #c6c6c6; position: relative;
  }
  .cal-legend .swatch.night-lo::after,
  .cal-legend .swatch.night-mid::after,
  .cal-legend .swatch.night-hi::after {
    content: ''; position: absolute; right: 1px; bottom: 1px;
    width: 5px; height: 5px; border-radius: 50%;
  }
  .cal-legend .swatch.night-lo::after  { background: #93c5fd; }
  .cal-legend .swatch.night-mid::after { background: #3b82f6; }
  .cal-legend .swatch.night-hi::after  { background: #1d4ed8; }

  /* Half-day toggle for the dual-ring clocks */
  .clock-halfday-toggle {
    display: inline-flex; border: 1px solid #161616; border-radius: 2px;
    overflow: hidden; margin: 4px 0 22px;
  }
  .clock-halfday-toggle button {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase; color: #161616;
    background: transparent; border: none; border-right: 1px solid #161616;
    padding: 9px 16px; cursor: pointer;
    transition: background .12s, color .12s;
  }
  .clock-halfday-toggle button:last-child { border-right: none; }
  .clock-halfday-toggle button.active { background: #161616; color: #fff; }
  .clock-halfday-toggle button:hover:not(.active) { background: #f4f4f4; }

  .clocks-supertitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a30b0b;
    font-weight: 600;
    margin-bottom: 14px;
  }

  /* Insight 2 clocks — two per city (Recorded / Felt), airy no-face design */
  .clocks-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 90px;
    max-width: 980px;
    margin: 32px auto 8px;
    flex-wrap: wrap;
  }
  .clocks-caption {
    font-family: 'IBM Plex Sans', sans-serif;
    text-align: center;
    max-width: 980px;
    margin: 8px auto 48px;
  }
  .clocks-caption .caption-main {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #6E1712;
    margin-bottom: 4px;
  }
  .clocks-caption .caption-sub {
    display: block;
    font-size: 12.5px;
    color: #8a6b5f;
    font-style: italic;
  }
  .clock-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px;
    width: 220px;
    max-width: 260px;
  }
  .clock-card-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; font-weight: 600;
    letter-spacing: 0;
  }
  .clock-card-title.rec  { color: #b57000; }
  .clock-card-title.felt { color: #c0382f; }

  .clock-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    overflow: visible;
    background: transparent;
  }
  .clock-svg .ring-track {
    fill: none;
    stroke: #d6c5bc;
    stroke-width: 1;
  }
  .clock-svg .clock-tick {
    stroke: #b3a49b;
    stroke-width: 1;
    stroke-linecap: round;
  }
  .clock-svg .clock-tick.cardinal {
    stroke: #6b3f36;
    stroke-width: 1.6;
  }
  .clock-svg .clock-hour-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10.5px;
    fill: #8a6b5f;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .clock-svg .clock-boundary-tick {
    stroke: #6E1712;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .clock-svg .clock-boundary-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 9.5px;
    fill: #6E1712;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .clock-svg .seg-recorded,
  .clock-svg .seg-felt {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: clock-arc-sweep 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }
  .clock-svg .seg-recorded { stroke: #f1c21b; }
  .clock-svg .seg-felt     { stroke: #e8202a; }
  @keyframes clock-arc-sweep {
    to { stroke-dashoffset: 0; }
  }
  .clock-svg .clock-count {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
  }
  .clock-svg .clock-count.zero {
    fill: #c6b7ae;
  }
  .clock-card.rec  .clock-svg .clock-count.active { fill: #b57000; }
  .clock-card.felt .clock-svg .clock-count.active { fill: #c0382f; }
  .clock-svg .clock-count-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    fill: #8a6b5f;
    font-weight: 500;
  }
  .clock-legend-row .sw.actual { background: #f1c21b; }
  .clock-legend-row .sw.felt   { background: #ff832b; }

  /* Windows of Comfort — buildings graphic */
  .wcom-controls {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 16px 24px;
    margin: 8px 0 22px;
  }
  .wcom-controls-left  { display: flex; align-items: center; gap: 14px; }
  .wcom-controls-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
  /* wcom-city-toggle now inherits from the shared .city-toggle rule above */
  .wcom-clock-block {
    display: flex; align-items: center; gap: 10px;
  }
  .wcom-clock-digital {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 26px; font-weight: 500; color: #161616;
    letter-spacing: 0.02em; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .wcom-clock-digital .ampm {
    font-size: 14px; color: #6f6f6f; margin-left: 4px; letter-spacing: 0;
  }

  .wcom-buildings {
    display: grid; grid-template-columns: auto auto; gap: 40px;
    align-items: end; justify-content: center;
    max-width: 640px; margin: 0 auto 12px;
  }
  @media (max-width: 720px) { .wcom-buildings { grid-template-columns: 1fr; gap: 32px; } }
  .wcom-col {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    padding: 0;
  }
  /* Top cap sits above each tower: title + big day-count. */
  .wcom-topcap {
    text-align: center;
    margin-bottom: 6px;
    min-height: 0;
  }
  .wcom-topcap-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; font-weight: 600; color: #161616;
    letter-spacing: 0.01em;
  }
  .wcom-topcap-count {
    margin-top: 4px;
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.2;
  }
  .wcom-topcap-count .cap-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 24px; font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
  .wcom-topcap-count .cap-suffix {
    color: #525252; font-size: 12px;
    margin-left: 4px;
  }
  .wcom-topcap.left  .cap-num { color: #b45309; }
  .wcom-topcap.right .cap-num { color: #c2410c; }
  /* Header-style building: maroon-brown facade, cross-mullion panes.
     Kept original column count (10) for width; shrunk row height to fit vertically. */
  .wcom-building {
    background: linear-gradient(#6E4536, #4A2A20);
    border: 1px solid #3A241B;
    border-radius: 2px 2px 0 0;
    display: grid;
    grid-template-columns: repeat(10, 11px);
    grid-auto-rows: 12px;
    gap: 3px 4px;
    padding: 8px 8px 8px;
    position: relative;
  }
  .wcom-building::after {
    content: ""; position: absolute;
    left: -10px; right: -10px; bottom: -6px;
    height: 6px; background: #3A241B; border-radius: 1px;
  }
  /* Windows: cross-mullion pane, matches header aesthetic */
  .wcom-building .win {
    border: 0.5px solid #3A241B;
    background: #c9c4e0;   /* lavender base — same as header windows */
    position: relative;
    transition: background 0.35s ease;
  }
  .wcom-building .win::before,
  .wcom-building .win::after {
    content: "";
    position: absolute;
    background: #3A241B;
    opacity: 0.55;
    pointer-events: none;
  }
  .wcom-building .win::before {
    left: 50%; top: 0; bottom: 0;
    width: 1px; transform: translateX(-0.5px);
  }
  .wcom-building .win::after {
    top: 50%; left: 0; right: 0;
    height: 1px; transform: translateY(-0.5px);
  }
  /* Tiny black stick-figure silhouettes doing different things — 4 action poses.
     Feet rest on the pane's bottom edge (background pinned to bottom, no gap). */
  .wcom-building .win.has-figure {
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 92% 100%;
  }
  /* Pose 1: arms straight up — asking for help */
  .wcom-building .win.has-figure.pose-1 {
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12' stroke='%23111' stroke-width='1.3' stroke-linecap='round' fill='none'><circle cx='5' cy='4.2' r='1.1' fill='%23111'/><line x1='5' y1='5.4' x2='5' y2='8.4'/><line x1='4.2' y1='4.6' x2='3.6' y2='0.6'/><line x1='5.8' y1='4.6' x2='6.4' y2='0.6'/><line x1='5' y1='8.4' x2='3.4' y2='12'/><line x1='5' y1='8.4' x2='6.6' y2='12'/></svg>");
  }
  /* Pose 2: walking / mid-stride */
  .wcom-building .win.has-figure.pose-2 {
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12' stroke='%23111' stroke-width='1.3' stroke-linecap='round' fill='none'><circle cx='5' cy='2.4' r='1.1' fill='%23111'/><line x1='5' y1='3.6' x2='5' y2='7.6'/><line x1='5' y1='4.6' x2='7' y2='6.2'/><line x1='5' y1='4.6' x2='3.2' y2='5.4'/><line x1='5' y1='7.6' x2='3' y2='12'/><line x1='5' y1='7.6' x2='7.5' y2='12'/></svg>");
  }
  /* Pose 3: sitting (at a desk / on floor) */
  .wcom-building .win.has-figure.pose-3 {
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12' stroke='%23111' stroke-width='1.3' stroke-linecap='round' fill='none'><circle cx='4.3' cy='4' r='1.1' fill='%23111'/><line x1='4.3' y1='5.2' x2='4.3' y2='8'/><line x1='4.3' y1='5.9' x2='7.2' y2='6.6'/><line x1='4.3' y1='8' x2='7.5' y2='8'/><line x1='7.5' y1='8' x2='7.5' y2='12'/><line x1='4.3' y1='8' x2='4.3' y2='12'/></svg>");
  }
  /* Pose 4: looking out (leaning) */
  .wcom-building .win.has-figure.pose-4 {
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12' stroke='%23111' stroke-width='1.3' stroke-linecap='round' fill='none'><circle cx='5.6' cy='2.6' r='1.1' fill='%23111'/><line x1='5.6' y1='3.8' x2='4.2' y2='7.6'/><line x1='5.2' y1='4.8' x2='7.6' y2='5.4'/><line x1='4.2' y1='7.6' x2='3.2' y2='12'/><line x1='4.2' y1='7.6' x2='6.4' y2='12'/></svg>");
  }

  /* Magnifier callout on the right tower — arrows emerge from a real pane region */
  .wcom-col.right { position: relative; }
  .wcom-magnifier {
    position: absolute;
    top: 42%;
    /* Anchor left edge INSIDE the tower so arrows can begin on a real pane region. */
    left: calc(100% - 80px);
    width: 320px;
    height: 240px;
    pointer-events: none;
  }
  .wcom-magnifier .mag-circle {
    position: absolute;
    right: 0;
    top: -40px;                /* circle floats above the widget's mid-line */
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3A241B;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #ffffff;
  }
  .wcom-magnifier .mag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .wcom-magnifier .mag-arrows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .wcom-magnifier .mag-caption {
    position: absolute;
    right: 0;
    top: calc(-40px + 180px + 10px);   /* circle top + circle height + gap */
    width: 180px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-style: italic;
    color: #6b3f36;
    text-align: center;
    line-height: 1.35;
  }
  @media (max-width: 900px) {
    .wcom-magnifier { display: none; }
  }

  /* Buildings centered — legend removed */
  .wcom-panel {
    display: block;
    max-width: 1000px;
    margin-bottom: 8px;
  }
  @media (max-width: 820px) {
    .wcom-panel { grid-template-columns: 1fr; }
  }
  .wcom-severity {
    padding: 18px 20px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 2px;
  }
  .wcom-severity-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: #6f6f6f;
    font-weight: 600; margin-bottom: 14px;
  }
  .wcom-severity ul { list-style: none; padding: 0; margin: 0; }
  .wcom-severity li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px; color: #262626;
    border-bottom: 1px dashed #e0e0e0;
  }
  .wcom-severity li:last-child { border-bottom: none; }
  .wcom-sw {
    display: inline-block; width: 18px; height: 12px;
    border: 1px solid #0a0a0a; flex: 0 0 auto;
  }
  .wcom-severity-name { font-weight: 500; color: #161616; }
  .wcom-severity-range {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px; color: #525252;
  }

  /* Full-width, full-viewport-tall white section panel above the physicalisation heading */
  .exhibit-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
    margin-top: 80px;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
  }
  .exhibit-panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 48px;
  }
  .exhibit-panel-title {
    font-family: 'Playfair Display', 'DM Serif Display', serif;
    font-weight: 800;
    font-size: clamp(36px, 4.6vw, 64px);
    letter-spacing: -0.01em;
    line-height: 1;
    color: #6E1712;
    margin: 0;
    text-align: center;
  }
  .exhibit-panel-image {
    max-height: 72vh;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
  }
  /* Carousel: arrow | fixed 3-thumb viewport | arrow | counter */
  /* Sizing tokens */
  .exhibit-carousel {
    --thumb-w: 56px;
    --thumb-h: 88px;
    --thumb-gap: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
  }
  /* Viewport shows exactly 5 thumbs; only horizontal overflow is clipped
     so the active-thumb underline (rendered below) remains visible. */
  .exhibit-thumbs-viewport {
    width: calc(var(--thumb-w) * 5 + var(--thumb-gap) * 4);
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 6px;
  }
  .exhibit-thumbs {
    display: flex;
    gap: var(--thumb-gap);
    transition: transform .3s cubic-bezier(.4,.0,.2,1);
    will-change: transform;
  }
  /* Vertical window-pane thumbnail */
  .exhibit-thumb {
    flex: 0 0 var(--thumb-w);
    position: relative;
    width: var(--thumb-w);
    height: var(--thumb-h);
    padding: 0;
    background: #5B3A2E;
    border: 3px solid #3A241B;
    border-radius: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: opacity .2s ease;
    opacity: 0.55;
  }
  .exhibit-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* Cross-mullion overlay for the window feel — bolder mullion */
  .exhibit-thumb::before,
  .exhibit-thumb::after {
    content: "";
    position: absolute;
    background: #3A241B;
    opacity: 1;
    pointer-events: none;
  }
  .exhibit-thumb::before { left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-2px); }
  .exhibit-thumb::after  { top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-2px); }
  .exhibit-thumb:hover { opacity: 0.85; }
  .exhibit-thumb.active {
    opacity: 1;
  }
  /* Placeholder pane: dashed frame, small number, not selectable */
  .exhibit-thumb.placeholder {
    background: #FDF3E7;
    border: 1px dashed #8a4a3a;
    cursor: not-allowed;
    opacity: 0.55;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .exhibit-thumb.placeholder .placeholder-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #8a4a3a;
    font-weight: 500;
  }
  .exhibit-thumb.placeholder:hover { opacity: 0.55; }
  /* Suppress the cross-mullion for placeholders */
  .exhibit-thumb.placeholder::before,
  .exhibit-thumb.placeholder::after { display: none; }
  /* Minimalist arrows: no fill, just an outline stroke */
  .carousel-arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    color: #6E1712;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease, transform .15s ease;
  }
  .carousel-arrow:hover { opacity: 0.7; }
  .carousel-arrow:active { transform: scale(0.94); }
  .carousel-arrow[disabled] { opacity: 0.25; cursor: not-allowed; }
  .carousel-arrow svg { width: 20px; height: 20px; display: block; }
  /* Counter (1 / n) — light mono */
  .exhibit-counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #6b3f36;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: right;
  }

  @media (max-width: 900px) {
    .exhibit-panel-inner { padding: 24px; }
    .exhibit-panel-title { font-size: 34px; }
    .exhibit-panel-image { max-height: 60vh; }
    .exhibit-carousel { --thumb-w: 44px; --thumb-h: 68px; --thumb-gap: 8px; gap: 12px; }
  }

  /* Data Physicalisation */
  .physicalisation-section {
    margin-top: 60px;
    padding-top: 0;
    max-width: 980px;
    counter-reset: phys-step-counter;
  }
  .phys-step { counter-increment: phys-step-counter; }
  .phys-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #c0382f; margin-bottom: 8px; font-weight: 600;
  }
  .phys-title {
    font-family: 'Playfair Display', 'DM Serif Display', serif;
    font-weight: 800;
    font-size: clamp(36px, 4.6vw, 64px);
    letter-spacing: -0.01em;
    line-height: 1;
    color: #6E1712;
    margin: 0 0 14px 0;
  }
  .phys-h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 600;
    line-height: 1.35;
    color: #6E1712;
    letter-spacing: 0;
    margin: 0 0 36px 0;
    max-width: 54ch;
  }
  .phys-step {
    display: block;
    padding: 30px 0;
    border-top: none;
  }
  .phys-step:first-of-type { border-top: none; }
  .phys-step-num {
    display: none;
  }
  .phys-step-body { min-width: 0; }
  .phys-step-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 22px; font-weight: 600;
    color: #161616; letter-spacing: -0.01em;
    margin-bottom: 10px;
  }
  .phys-step-title::before { content: none; }
  .phys-shopping-line {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #6E1712;
    line-height: 1.25;
    margin: 28px 0 18px;
    letter-spacing: -0.01em;
  }
  .phys-shopping-line em {
    font-style: italic;
    font-weight: 800;
  }
  .phys-step-title .phys-em {
    font-style: italic;
    color: #6E1712;
    font-weight: 700;
  }
  .phys-step-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px; color: #6b3f36;
    line-height: 1.75; max-width: 760px;
    margin-bottom: 22px;
  }
  .phys-gallery {
    display: grid;
    grid-template-columns: 180px minmax(0, 420px);
    gap: 24px;
    margin: 12px auto 0;
    justify-content: center;
  }
  @media (max-width: 720px) {
    .phys-gallery { grid-template-columns: 1fr; }
  }
  /* Single-image step (no carousel) — centred, smaller than the carousel width */
  .phys-single {
    margin: 12px auto 0;
    max-width: 280px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 3px;
  }
  .phys-single img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
  }
  /* Two-image step (sketch party) */
  .phys-duo {
    margin: 12px auto 0;
    max-width: 720px;
    text-align: center;
  }
  .phys-duo-imgs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .phys-duo-imgs img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 3px;
    box-sizing: border-box;
  }
  .phys-duo figcaption {
    margin-top: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6E1712;
    font-style: italic;
  }

  /* Closing block — photos, thank-you + logo, credits, before methodology */
  .closing {
    max-width: 900px;
    margin: 100px auto 60px;
    text-align: center;
  }
  /* Auto-scrolling closing photo carousel — breaks out to full viewport width */
  .closing-carousel {
    overflow: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 8px 0;
  }
  .closing-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: closing-slide 60s linear infinite;
  }
  .closing-carousel:hover .closing-track { animation-play-state: paused; }
  .closing-track figure {
    margin: 0;
    flex: 0 0 auto;
    height: 340px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .closing-track img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: 2px;
  }
  @keyframes closing-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .closing-track { animation: none; }
  }
  .closing-thanks {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #262626;
    line-height: 1.5;
    margin: 0 0 20px;
  }
  .closing-thanks strong {
    color: #6E1712;
    font-weight: 700;
  }
  .closing-logo {
    display: block;
    margin: 0 auto 8px;
    max-width: 140px;
    height: auto;
  }
  .closing-credits {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6b3f36;
    line-height: 1.75;
    padding-top: 0;
  }
  .closing-credits p { margin: 0; }
  .closing-credits strong { color: #6E1712; font-weight: 600; }
  .closing-credits a,
  .closing-credits a:link,
  .closing-credits a:visited {
    color: #6b3f36;
    text-decoration: none;
    border-bottom: 1px dotted #b3846b;
    padding-bottom: 1px;
    transition: border-color .12s;
  }
  .closing-credits a:hover { color: #6E1712; border-bottom-color: #6E1712; }
  .closing-exhibits {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .closing-exhibits li { margin: 0; }
  @media (max-width: 700px) {
    .phys-duo-imgs { grid-template-columns: 1fr; }
    .closing-track figure { height: 270px; }
  }
  /* Thumbnail grid — just the six window tiles, no building facade around them. */
  .phys-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
  }
  .phys-thumb {
    aspect-ratio: 11 / 17;
    background: #eef0ea;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #3A241B;
    border-radius: 1px;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: opacity .2s ease;
    opacity: 0.55;
  }
  /* Cross-mullion overlay — bolder to read clearly as window panes */
  .phys-thumb::before,
  .phys-thumb::after {
    content: "";
    position: absolute;
    background: #3A241B;
    opacity: 1;
    pointer-events: none;
  }
  .phys-thumb::before { left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-2px); }
  .phys-thumb::after  { top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-2px); }
  .phys-thumb:hover { opacity: 0.85; }
  .phys-thumb.active { opacity: 1; }
  .phys-view {
    aspect-ratio: 3 / 4;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 3px;
    background-size: calc(100% - 20px) calc(100% - 20px);
    background-position: center;
    background-repeat: no-repeat;
    background-origin: border-box;
    min-height: 320px;
    max-height: 480px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }
  .phys-view-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; color: #8d8d8d;
  }
  .phys-view.loaded .phys-view-empty { display: none; }
  .phys-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(22, 22, 22, 0.72);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px; font-weight: 600;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    padding: 0;
    z-index: 3;
  }
  .phys-arrow:hover { background: rgba(22, 22, 22, 0.9); }
  .phys-arrow.prev { left: 10px; }
  .phys-arrow.next { right: 10px; }
  .phys-counter {
    position: absolute;
    bottom: 10px; right: 12px;
    padding: 4px 10px;
    background: rgba(22, 22, 22, 0.72);
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    border-radius: 2px;
    z-index: 3;
  }
  .phys-materials {
    background: transparent;
    border: none;
    padding: 0;
    margin: 4px 0 26px;
    max-width: 720px;
  }
  .phys-materials-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px; letter-spacing: -0.005em;
    text-transform: none; color: #6E1712;
    margin-bottom: 14px; font-weight: 700;
    font-style: italic;
  }
  .phys-materials-list {
    list-style: none; padding: 0; margin: 0;
  }
  .phys-materials-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14.5px; color: #262626;
    display: flex; flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }
  .phys-materials-list li:last-child { border-bottom: none; }
  .phys-mat-name { font-weight: 600; color: #161616; }
  .phys-mat-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; color: #525252;
  }

  /* Simple bullet list of materials */
  .phys-bom-simple {
    list-style: disc;
    padding: 0 0 0 20px;
    margin: 0;
  }
  .phys-bom-simple li {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14.5px;
    color: #262626;
    line-height: 1.7;
    padding: 0;
  }
  .phys-bom-simple li::marker { color: #6E1712; }

  /* Grouped BOM: Structure / Lighting / Control / Power */
  .phys-bom-grouped {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
    margin: 0;
  }
  .phys-bom-group-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    color: #6E1712;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .phys-bom-group ul {
    list-style: disc;
    padding: 0 0 0 18px;
    margin: 0;
  }
  .phys-bom-group li {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14.5px;
    color: #262626;
    line-height: 1.7;
    padding: 0;
  }
  .phys-bom-group li::marker { color: #6E1712; }

  /* Two-column BOM table — full brown grid, no fill */
  .phys-bom-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14.5px;
    color: #262626;
    background: transparent;
  }
  .phys-bom-table th,
  .phys-bom-table td {
    border: 1.5px solid #6E1712;
    padding: 10px 16px;
    vertical-align: top;
    line-height: 1.55;
    background: transparent;
  }
  .phys-bom-table thead th {
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    color: #6E1712;
    font-weight: 600;
  }
  .phys-bom-table tbody td:first-child {
    font-weight: 600;
    color: #161616;
    width: 38%;
  }
  .phys-bom-link {
    color: #6E1712;
    text-decoration: underline;
    font-weight: 500;
    font-size: 13px;
    margin-left: 4px;
    white-space: nowrap;
  }
  .phys-bom-link:hover { text-decoration: none; }

  /* Feature figures inside a phys-step — smaller, stacked, centred */
  .phys-feature {
    margin: 22px auto 8px;
    max-width: 420px;
    text-align: center;
  }
  .phys-feature.phys-feature-wide { max-width: 460px; }
  .phys-feature-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
    align-items: stretch;
  }
  .phys-feature-pair img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 3px;
    box-sizing: border-box;
  }
  .phys-feature-imgs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .phys-feature-imgs img {
    display: block;
    width: 100%;
    height: auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 3px;
    box-sizing: border-box;
  }
  .phys-feature figcaption {
    margin-top: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6E1712;
    font-style: italic;
    text-align: center;
  }

  /* End credits at bottom of page */
  .end-credits {
    margin: 80px 0 60px;
    padding: 40px 0;
    border-top: 1px solid #ececec;
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    color: #6b3f36;
    line-height: 1.9;
  }
  .end-credits p { margin: 0; }
  .end-credits strong { color: #6E1712; font-weight: 600; }

  /* Methodology — warm cream card, sits after the closing block */
  .methodology-block {
    position: relative;
    margin: 0 auto;
    max-width: 720px;
    padding: 28px 32px;
    background: #f5ede4;
    border-radius: 4px;
  }
  .methodology-block h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; font-weight: 600; color: #161616;
    margin: 22px 0 6px;
  }
  .methodology-block p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13.5px; color: #393939; line-height: 1.65;
    margin-bottom: 12px;
  }
  .methodology-block p strong { font-weight: 500; color: #262626; }
  .methodology-block a {
    color: #6E1712;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
  }
  .methodology-block .back-to-article {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6E1712;
    text-decoration: none;
  }
  .methodology-block .back-to-article:hover { text-decoration: underline; }
  .methodology-block ul {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; line-height: 1.7;
    color: #393939; padding-left: 20px; margin: 0 0 18px;
  }
  .methodology-block li { margin-bottom: 6px; }
  .method-defs { margin: 0 0 22px; }
  .method-defs dt {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; font-weight: 600; color: #161616;
    margin: 14px 0 4px;
  }
  .method-defs dt:first-of-type { margin-top: 0; }
  .method-defs dd {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; line-height: 1.65;
    color: #393939; margin: 0 0 6px 0;
  }
  .method-defs code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px; background: #f4f4f4;
    padding: 1px 5px; border-radius: 2px;
  }
  .method-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px; line-height: 1.5; color: #161616;
    background: transparent;
    border: none;
    padding: 8px 0; margin: 8px 0 18px;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: hidden;
  }
  .method-table-wrap { margin: 8px 0 28px; overflow-x: auto; }
  .method-table {
    width: 100%; border-collapse: collapse;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13.5px; color: #262626;
  }
  .method-table thead th {
    text-align: left; font-weight: 600;
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.04em; color: #393939;
    padding: 10px 12px;
    border-bottom: 1px solid #161616;
    background: #fff;
  }
  .method-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
  }
  .method-table tbody tr:last-child td { border-bottom: 1px solid #e0e0e0; }
  .method-strap {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px; font-weight: 400;
    color: #525252; margin: 0 0 14px 0;
  }

  /* Placeholder view */
  .placeholder-view {
    padding: 80px 24px; border: 1px dashed #d0d0d0; text-align: center;
    color: #6f6f6f; font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px; margin-top: 20px;
  }

  /* Shared tooltip */
  #tt {
    position: fixed; pointer-events: none; z-index: 100;
    background: #ffffff; color: #262626;
    font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px;
    line-height: 1.45; padding: 12px 14px; border-radius: 3px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    opacity: 0; transition: opacity 0.12s ease;
    min-width: 200px; max-width: 260px;
  }
  #tt.on { opacity: 1; }
  #tt .tt-head {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ececec;
    line-height: 1.35;
    white-space: nowrap;
  }
  #tt .tt-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px; color: #161616; font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
  #tt .tt-date {
    font-size: 12.5px; color: #161616; font-weight: 600;
  }
  #tt .tt-city {
    font-size: 12.5px; color: #6E1712; font-weight: 700;
    letter-spacing: -0.005em;
  }
  #tt .tt-conn {
    font-size: 12px; color: #a8a8a8; font-weight: 400;
    margin: 0 5px;
  }
  #tt .tt-row {
    display: flex; justify-content: space-between; gap: 14px;
    font-feature-settings: "tnum";
    padding: 2px 0;
  }
  #tt .tt-row .lbl { color: #262626; font-weight: 500; }
  #tt .tt-row .val { color: #161616; font-weight: 600; }
  #tt .tt-row.rec .lbl,
  #tt .tt-row.rec .val  { color: #b57000; }
  #tt .tt-row.felt .lbl,
  #tt .tt-row.felt .val { color: #c0382f; }
  #tt .tt-scale {
    position: relative;
    height: 14px;
    margin: 8px 0 4px;
  }
  #tt .tt-scale-track {
    position: absolute; left: 0; right: 0; top: 50%;
    height: 2px; background: #ececec; transform: translateY(-50%);
    border-radius: 1px;
  }
  #tt .tt-scale-bar {
    position: absolute; top: 50%;
    height: 2px; transform: translateY(-50%);
    border-radius: 1px;
  }
  #tt .tt-scale-dot {
    position: absolute; top: 50%;
    width: 8px; height: 8px; border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid #fff;
  }
  #tt .tt-scale-dot.rec  { background: #f59e0b; }
  #tt .tt-scale-dot.felt { background: #e8202a; }
  #tt .tt-gap-row {
    font-size: 11.5px; font-weight: 600;
    text-align: right; margin-top: 2px;
  }

  /* ============================================================
     Mobile responsiveness
     — collapse the side-nav into a horizontal strip
     — single-column charts, insight header stacks
     — reduced type sizes, tighter paddings
     ============================================================ */
  @media (max-width: 900px) {
    .page-shell {
      display: block;
      padding: 0 16px;
    }
    .side-nav {
      position: static;
      flex: none;
      width: 100%;
      max-height: none;
      overflow-y: visible;
      padding: 20px 0 12px;
      border-right: none;
      border-bottom: 1px solid #ececec;
    }
    .side-nav .nav-list {
      display: flex; flex-wrap: wrap; gap: 4px 6px;
    }
    .side-nav a.nav-item {
      border-left: none;
      border-bottom: 2px solid #ececec;
      padding: 6px 10px;
      font-size: 12.5px;
    }
    .side-nav a.nav-item + a.nav-item { margin-top: 0; }
    .side-nav a.nav-item.active {
      border-left-color: transparent;
      border-bottom-color: #c0382f;
    }

    .container.with-nav {
      max-width: 100%;
      padding: 24px 4px 24px;
    }

    header { margin-bottom: 28px; }
    h1 { font-size: 30px; margin-bottom: 12px; }
    .subtitle { font-size: 15px; }
    .byline { font-size: 11px; margin: -4px 0 16px; }

    /* Warming chart — grow the SVG text so it stays readable when the chart
       shrinks to phone width. Because viewBox is 900×420, "font-size" is in
       user-space units — bumping it up compensates for the shrink. */
    .warming-chart-title { font-size: 16px; }
    .warming-chart-subtitle { font-size: 12px; }
    #warmingChart .axis-tick { font-size: 22px; }
    #warmingChart .axis-label { font-size: 20px; letter-spacing: 0.02em; }
    /* Hide every second x-tick label to prevent year-label collision */
    #warmingChart g:nth-of-type(3) text:nth-child(odd) { opacity: 0; }
    /* Beef up the 1.5° threshold label + dashed line so they read at small size */
    #warmingChart g > text[fill='#c0382f'] { font-size: 22px; font-weight: 700; }
    .warming-legend { font-size: 11px; gap: 12px; }
    .apr-source-right { font-size: 10px; }
    .chart-source { font-size: 11px; }

    /* Dumbbell charts — scale up in-SVG type so the °C ticks and month labels
       stay legible when the chart is <= 340 px wide. */
    .pane-svg text { font-size: 22px !important; }
    /* Baseline/reference lines get a touch thicker so they don't disappear */
    .pane-svg line[stroke-dasharray] { stroke-width: 2 !important; }
    /* The 40°/46° reference labels — make them larger + right-align inside */
    .pane-svg text[text-anchor='end'] { font-size: 18px !important; }

    /* Story text */
    .warming-lede, .story-para { font-size: 15px; line-height: 1.65; }

    /* UTCI box */
    .utci-box { padding: 20px 20px; }
    .utci-box-title { font-size: 22px; margin-bottom: 14px; }
    .utci-meta { grid-template-columns: 1fr; row-gap: 4px; font-size: 13.5px; }
    .utci-meta dt { padding-top: 10px; }
    .utci-band .ub-label { font-size: 9.5px; }
    .utci-band .ub-range { font-size: 8.5px; }

    /* Panes dumbbell grid */
    .panes-title, .insight-title { font-size: 18px; }
    .panes-subtitle, .insight-subtitle { font-size: 13.5px; }
    .panes-grid { grid-template-columns: 1fr; gap: 22px; }
    .pane-card-title { font-size: 18px; }
    .clock-digital { font-size: 22px; }
    .clock-digital .ampm { font-size: 12px; }
    .panes-controls { gap: 12px; }
    .panes-legend { font-size: 12px; gap: 8px; }

    /* Insight 1 header + calendar */
    .insight-header-row { flex-direction: column; gap: 12px; }
    .city-toggle.city-toggle-right { margin-bottom: 6px; }
    .cal-grid-2 { grid-template-columns: 1fr; gap: 18px; }
    .cal-months { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cal-stat-num { font-size: 22px; }
    .cal-stat-lbl { font-size: 12px; }

    /* Clocks */
    .clocks-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .clocks-grid { gap: 32px; }
    .clock-card { max-width: 200px; }
    .clock-card-title { font-size: 14px; }
    .clock-svg { max-width: 180px; }
    .clock-svg .clock-count { font-size: 17px; }

    /* Buildings */
    .wcom-controls { gap: 12px; }
    .wcom-controls-right { align-items: flex-end; gap: 8px; }
    .wcom-clock-digital { font-size: 22px; }
    .wcom-clock-digital .ampm { font-size: 12px; }
    .wcom-city-toggle button { padding: 7px 9px; font-size: 10px; }
    .wcom-panel { grid-template-columns: 1fr; gap: 22px; }
    .wcom-buildings { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 100%; }
    .wcom-building {
      grid-template-columns: repeat(10, minmax(0, 1fr));
      grid-auto-rows: 14px;
      max-width: 100%;
      padding: 10px 10px 8px;
    }
    .wcom-topcap { min-height: auto; margin-bottom: 10px; }
    .wcom-topcap-title { font-size: 13px; }
    .wcom-topcap-count .cap-num { font-size: 20px; }
    .wcom-severity { padding: 14px 16px; }
    .wcom-severity li { font-size: 12px; padding: 6px 0; }

    /* Physicalisation */
    .physicalisation-section { margin-top: 60px; padding-top: 28px; }
    .phys-title { font-size: 34px; margin-bottom: 10px; }
    .phys-h2 { font-size: 22px; margin-bottom: 22px; }
    .phys-step { padding: 22px 0; }
    .phys-step-num { font-size: 18px; }
    .phys-step-title { font-size: 18px; }
    .phys-step-text { font-size: 14px; }
    .phys-gallery { grid-template-columns: 1fr; gap: 14px; }
    .phys-thumbs { grid-template-columns: repeat(3, 1fr); }
    .phys-view { min-height: 220px; }
    .phys-arrow { width: 34px; height: 34px; font-size: 18px; }
    .phys-counter { font-size: 10px; padding: 3px 8px; bottom: 6px; right: 8px; }
    .phys-materials { padding: 16px 18px; }
    .phys-materials-list li {
      font-size: 13.5px;
      flex-direction: column; gap: 2px;
    }
    .phys-mat-note { font-size: 11.5px; }

    /* Fetching / methodology */
    .method-code { font-size: 11.5px; padding: 12px; }
    .method-table { font-size: 12px; }
    .method-table thead th { font-size: 10.5px; padding: 8px 8px; }
    .method-table tbody td { padding: 6px 8px; }
    .methodology-block h3 { font-size: 16px; margin: 24px 0 8px; }
    .methodology-block p, .method-defs dd, .method-defs dt { font-size: 14px; }
  }

  /* ============================================================
     Phone-first layout (≤ 640px) — one column, tighter type,
     stronger control targets, no horizontal overflow.
     ============================================================ */
  @media (max-width: 640px) {
    html, body { overflow-x: hidden; }

    /* ---- Hero — mobile-native ordering ----
       Structure: TITLE first, then TAGLINE (immediately, so the phone user sees
       what the story is before the illustration). Then a decorative SKYLINE
       STRIP that crops the SVG to just the buildings band (viewBox 0 150 → 260),
       used as a visual bookend. Then byline + credit. Text runs 14 px in from
       the edges; the skyline strip bleeds edge-to-edge. */
    .hero-header {
      margin: 0 -2px 24px;
      padding: 0;
      display: flex;
      flex-direction: column;
    }
    /* Scale the skyline larger via a bleed wrapper — keeps the clock visible
       because the SVG maintains its own aspect (viewBox preserveAspectRatio meet),
       just rendered at a wider ~130% viewport width. */
    .hero-header .hero-svg {
      order: 4;
      display: block;
      width: 115%;
      max-width: none;
      height: auto;
      /* Overhang split ~2:1 to the left so the clock (right side of viewBox)
         stays inside the phone frame instead of getting clipped. */
      margin: 14px -5% 4px -10%;
    }
    .hero-header .hero-title    { order: 1; }
    .hero-header .hero-tagline  { order: 2; }
    .hero-header .hero-byline   { order: 3; }
    .hero-header .hero-credit   { order: 5; }
    .hero-header .hero-title,
    .hero-header .hero-tagline,
    .hero-header .hero-byline,
    .hero-header .hero-credit {
      margin-left: 14px;
      margin-right: 14px;
      max-width: none;
    }
    .hero-header .hero-title {
      font-size: clamp(38px, 12vw, 52px);
      line-height: 1;
      margin-top: 24px;
      margin-bottom: 10px;
    }
    .hero-header .hero-tagline {
      font-size: 15.5px;
      line-height: 1.4;
      margin-bottom: 0;
    }
    .hero-header .hero-byline   { font-size: 13px; margin-top: 12px; }
    .hero-header .hero-credit   {
      font-size: 13px;
      margin-top: 10px;
      line-height: 1.55;
      text-align: center;
    }

    /* ---- Container padding — minimal phone gutters ---- */
    .page-shell { padding: 0 4px; }
    .container.with-nav { padding: 12px 2px 24px; }

    /* ---- Warming chart title/subtitle ---- */
    .warming-chart-title {
      white-space: normal;
      font-size: 15px;
    }
    .warming-chart-subtitle { font-size: 13px; }

    /* ---- Titles + subtitle-with-toggle should stack on phone ---- */
    .title-with-toggle,
    .subtitle-with-toggle {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .title-with-toggle .city-toggle,
    .title-with-toggle .chart-controls-cluster,
    .subtitle-with-toggle .city-toggle,
    .subtitle-with-toggle .chart-controls-cluster {
      margin-left: 0;
    }
    .chart-controls-cluster {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      gap: 8px;
    }
    .chart-controls-cluster .city-toggle {
      width: 100%;
      justify-content: stretch;
    }
    .chart-controls-cluster .city-toggle button { flex: 1 1 0; }
    .insight-title, .panes-title { font-size: 19px; line-height: 1.2; }
    .insight-subtitle, .panes-subtitle { font-size: 13.5px; line-height: 1.5; }
    .panes-section .panes-subtitle { white-space: normal; }
    .warming-chart-title { font-size: 14px; line-height: 1.3; }
    .warming-chart-subtitle { font-size: 12.5px; }

    /* ---- City-toggle buttons scale for tap targets ---- */
    .city-toggle button, .wcom-city-toggle button {
      font-size: 12px; padding: 8px 12px;
    }
    .play-btn { font-size: 12px; padding: 8px 16px; }

    /* ---- Panes / dumbbells: show one city at a time via toggle ---- */
    .panes-section { margin-bottom: 28px; }
    .city-toggle.panes-city-toggle { display: inline-flex; }
    .panes-grid { grid-template-columns: 1fr; gap: 0; }
    .panes-grid[data-selected-city] .pane-card { display: none; }
    .panes-grid[data-selected-city="delhi"]   .pane-card:has(.pane-svg[data-city="delhi"])   { display: flex; flex-direction: column; }
    .panes-grid[data-selected-city="kolkata"] .pane-card:has(.pane-svg[data-city="kolkata"]) { display: flex; flex-direction: column; }
    .panes-grid[data-selected-city="mumbai"]  .pane-card:has(.pane-svg[data-city="mumbai"])  { display: flex; flex-direction: column; }
    .panes-grid[data-selected-city="chennai"] .pane-card:has(.pane-svg[data-city="chennai"]) { display: flex; flex-direction: column; }
    .pane-card-title { font-size: 18px; }
    .pane-svg text { font-size: 20px !important; }
    .panes-controls { flex-wrap: wrap; gap: 12px; }
    .clock-block { flex: 1 1 auto; }

    /* ---- UTCI cream card ---- */
    .utci-box { padding: 20px 18px; }
    .utci-box-title { font-size: 20px; }
    .utci-meta { grid-template-columns: 1fr; row-gap: 4px; font-size: 13.5px; }
    .utci-meta dt { padding-top: 8px; }
    .utci-strip-bar { grid-template-columns: repeat(5, 1fr); }
    .utci-band .ub-label { font-size: 9px; }
    .utci-band .ub-range { font-size: 8px; }

    /* ---- Thermal Trace figure ---- */
    .thermal-figure figcaption { font-size: 12px; }

    /* ---- Calendar on phone ----
       One single card: months as columns across, days flowing top→bottom.
       All 366 days visible without scrolling. */
    /* Recorded/Felt toggle: right-aligned on phone */
    .city-toggle.cal-mode-toggle {
      display: flex;
      margin: 0 0 14px auto;
      width: fit-content;
    }
    .cal-panel-title { display: none; }
    .cal-grid-2 {
      grid-template-columns: 1fr;
      gap: 0;
      touch-action: pan-y;
    }
    .cal-grid-2 .cal-panel { display: none; }
    .cal-grid-2[data-cal-mode="t2m"]  .cal-panel.t2m  { display: block; }
    .cal-grid-2[data-cal-mode="utci"] .cal-panel.utci { display: block; }

    /* Twelve months laid out as columns of days */
    .cal-months {
      display: flex;
      gap: 3px;
      align-items: flex-start;
    }
    .cal-month {
      flex: 1 1 0;
      padding: 0;
      min-width: 0;
    }
    .cal-month-name {
      font-size: 9px;
      margin-bottom: 3px;
      letter-spacing: 0.02em;
      text-align: center;
    }
    /* Turn each month's 7-column DoW grid into a single vertical strip */
    .cal-cells {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }
    .cal-cell.placeholder { display: none; }
    .cal-cell {
      width: 100%;
      aspect-ratio: auto;
      height: 9px;
      font-size: 0;
      border-width: 0;
      border-radius: 0;
      background: #f0e6dd;
    }
    .cal-cell.hot { background: #ffd88a; }
    .cal-cell.night::after {
      width: 3px; height: 3px;
      right: 0.5px; bottom: 0.5px;
    }
    .cal-stat-num { font-size: 22px; }
    .cal-stat-lbl { font-size: 11px; }
    .cal-stat-row { gap: 8px; margin-bottom: 12px; }

    /* ---- Clocks: stack the two per city ---- */
    .clocks-grid { flex-direction: column; align-items: center; gap: 24px; }
    .clock-card { width: 100%; max-width: 260px; }
    .clock-svg { max-width: 240px; }
    .clocks-caption .caption-main { font-size: 13px; }
    .clocks-caption .caption-sub { font-size: 11.5px; }

    /* ---- Buildings viz — keep both towers side by side, controls compact ---- */
    .wcom-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .wcom-controls-left {
      width: 100%;
      justify-content: flex-start;
    }
    .wcom-controls-right {
      flex-direction: row;
      flex-wrap: wrap;
      width: 100%;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
    }
    .wcom-clock-block { flex: 0 0 auto; }
    .wcom-city-toggle {
      flex: 1 1 auto;
      max-width: 100%;
    }
    .wcom-city-toggle button {
      font-size: 11px;
      padding: 7px 10px;
      flex: 1 1 auto;
    }
    .wcom-panel { grid-template-columns: 1fr; }
    /* Force side-by-side on phone (overrides earlier stacking rules) */
    .wcom-buildings {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      max-width: 100%;
    }
    .wcom-col { width: 100%; align-items: center; }
    .wcom-building {
      grid-template-columns: repeat(10, minmax(0, 1fr));
      grid-auto-rows: 8px;
      gap: 2px 3px;
      padding: 6px;
      width: 100%;
      max-width: 150px;
    }
    .wcom-topcap-title { font-size: 11.5px; }
    .wcom-topcap-count .cap-num { font-size: 18px; }
    .wcom-topcap-count .cap-suffix { font-size: 10px; }

    /* ---- Physicalisation stepper ---- */
    .phys-title { font-size: 28px; }
    .phys-step { padding: 20px 0; }
    .phys-step-num { font-size: 16px; margin-bottom: 6px; }
    .phys-step-title { font-size: 17px; }
    .phys-step-text { font-size: 14px; }
    /* Photos always come UNDER the text on phone (main image + thumbs stack below) */
    .phys-gallery {
      display: flex;
      flex-direction: column-reverse;
      gap: 12px;
    }
    .phys-thumbs { grid-template-columns: repeat(4, 1fr); }
    .phys-view { min-height: 300px; }
    .phys-duo-imgs { grid-template-columns: 1fr; }
    .phys-feature { max-width: 100%; }
    /* Stack side-by-side pairs on phone (one-strip/one-box, built-master/built-3) */
    .phys-feature-pair {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .phys-feature-pair img { aspect-ratio: auto; }

    /* Materials box on phone: shrink padding + tighten table */
    .phys-materials { padding: 0; margin: 4px 0 20px; }
    .phys-materials-title { font-size: 15px; margin-bottom: 10px; }
    .phys-bom-table { font-size: 13px; }
    .phys-bom-table th,
    .phys-bom-table td { padding: 8px 10px; line-height: 1.45; }
    .phys-bom-table thead th { font-size: 12.5px; }
    .phys-bom-table tbody td:first-child { width: 42%; }
    .phys-bom-link { font-size: 12px; display: inline-block; margin-left: 2px; }

    /* Shopping-line headline: smaller on phone so it doesn't dominate */
    .phys-shopping-line { font-size: 20px; margin: 20px 0 14px; }

    /* ---- Closing carousel — reduce card size, faster loop ---- */
    .closing { max-width: 100%; margin: 60px auto 40px; }
    .closing-track figure { height: 240px; }
    .closing-track { gap: 12px; animation-duration: 42s; }
    .closing-thanks { font-size: 16px; }
    .closing-logo { max-width: 100px; margin-bottom: 8px; }
    .closing-credits { font-size: 15px; line-height: 1.7; }

    /* ---- Methodology card ---- */
    .methodology-block { padding: 22px 20px; }
    .methodology-block h3 { font-size: 15px; }
    .methodology-block p { font-size: 13.5px; }
    .method-code { font-size: 10.5px; }

    /* ---- Story paragraphs ---- */
    .warming-lede, .story-para { font-size: 15px; line-height: 1.7; }
  }

  @media (max-width: 480px) {
    h1 { font-size: 26px; }
    .subtitle { font-size: 14px; }
    .clock-svg { max-width: 220px; }
    .phys-materials-list li { padding: 6px 0; }
  }
