/* Barchinet Community (barchinetglobal.com/community/), built from the approved design, version 3.
   An architectural publication rather than a game: the photograph and the drawings carry the page, type does the
   rest. Brand colours, header and footer follow barchinetglobal.com (site-chrome.css, habitat.css). Display face:
   Instrument Serif, already used by the Barchinet workspace; text: Inter, as on the site.
   Surfaces are square, rules are hairlines, there are no shadows. One accent, a deep bronze, used for marks only. */
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --night: #102c31; --ink: #173337; --muted: #4f6567; --paper: #f7f6f0; --sheet: #fdfcf8; --stone: #ecebe3;
  --rule: #c9cfca; --rule-dark: rgba(247, 246, 240, .22); --sand: #dfc29d; --bronze: #8a5a14; --on-dark: #c9d7d3;
  --sans: Inter, "Segoe UI", Arial, sans-serif; --serif: 'Instrument Serif', Georgia, "Times New Roman", serif;
  /* Type scale, a fourth (1.333) from a 17 px text size. */
  --t-xs: .8125rem; --t-s: .9375rem; --t-m: 1.0625rem; --t-l: 1.3125rem; --t-xl: 1.75rem; --t-2xl: 2.375rem;
  --t-3xl: clamp(2.5rem, 1.6rem + 2.6vw, 3.875rem); --t-4xl: clamp(2.75rem, 1.3rem + 4vw, 5.25rem);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 120px;
  --wrap: 1264px; --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-m)/1.6 var(--sans); font-feature-settings: 'cv11', 'ss03'; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.on-dark :focus-visible, .plate-bar :focus-visible { outline-color: var(--sand); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--night); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---- Site chrome ------------------------------------------------------------------------------------------ */
.site-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 72px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--night); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 128px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--ink); font-size: .875rem; text-decoration: none; border-bottom: 1px solid transparent; }
.site-header nav a:hover { color: var(--night); border-bottom-color: var(--night); }
.site-header nav a[aria-current="page"] { font-weight: 600; color: var(--night); box-shadow: inset 0 -2px 0 var(--night); }
.site-header nav .nav-secondary { color: var(--muted); }
.nav-divider { width: 1px; height: 18px; margin: 0 6px; background: var(--rule); }
.menu-button { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--night); border-radius: 0; background: transparent; cursor: pointer; font-size: .875rem; }
.menu-lines { display: inline-block; width: 16px; height: 7px; border-block: 1px solid currentColor; }
@media (max-width: 1300px) {
  .menu-button { display: inline-flex; align-items: center; gap: 10px; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: var(--s3); }
  .site-header.is-open nav { display: flex; }
  .site-header nav a { min-height: 48px; border-bottom: 1px solid var(--rule); padding: 0 4px; }
  .site-header nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--night); padding-left: 12px; }
  .nav-divider { display: none; }
}

/* ---- Buttons: flat, square, precise ---------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--night); border-radius: 0; font-size: var(--t-s); font-weight: 500; letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--night); color: var(--paper); }
.btn-primary:hover { background: #22474d; border-color: #22474d; }
.btn-primary:active { background: #081a1d; }
.btn-quiet { background: transparent; color: var(--night); }
.btn-quiet:hover { background: var(--stone); }
.btn-light { background: var(--paper); color: var(--night); border-color: var(--paper); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.on-dark .btn-quiet { color: var(--paper); border-color: rgba(247, 246, 240, .6); }
.on-dark .btn-quiet:hover { border-color: var(--paper); background: rgba(247, 246, 240, .08); }
.btn-line { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--night); font-size: var(--t-xs); font-weight: 500; cursor: pointer; }
.btn-line:hover { border-color: var(--night); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--night); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.on-dark .text-link { color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }


/* ---- Section rhythm and headings -------------------------------------------------------------------------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-s { padding-block: clamp(56px, 6vw, 88px); }
.rule-top { border-top: 1px solid var(--night); }
.section-head { display: grid; gap: var(--s4); max-width: 46rem; margin-bottom: clamp(40px, 5vw, 72px); }
.kicker { color: var(--bronze); font-size: var(--t-s); font-weight: 500; }
.display { font: 400 var(--t-3xl)/1.02 var(--serif); letter-spacing: -.01em; color: var(--night); text-wrap: balance; }
.display-s { font: 400 var(--t-2xl)/1.05 var(--serif); color: var(--night); }
.lede { max-width: 36rem; color: var(--muted); font-size: var(--t-l); line-height: 1.5; }

/* Marker: the numbered bubble used on the photograph, the key plan, the key and the joining steps. */
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--night); border-radius: 50%; background: var(--paper); color: var(--night); font: 400 .9375rem/1 var(--serif); font-variant-numeric: lining-nums; flex: none; }

/* ---- Opening: the photograph, whole, as large as the first screen allows ------------------------------------ */
/* The stage keeps the picture's own 16:10 shape: full width where the height allows, otherwise as tall as the
   screen leaves room for (under the header, above the view controls), with the picture centred. The picture is
   never cropped; where the stage is wider than the picture, a soft, dimmed continuation of its own edges fills
   the sides. --fit-h is the most height the picture may take. */
.hero { --fit-h: max(200px, calc(100svh - 24px)); background: var(--paper); }
.plate-wrap { position: relative; }
.stage { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 10; max-height: var(--fit-h); overflow: clip; isolation: isolate; background: #31473c; touch-action: pan-y; }
.plate { position: absolute; inset: 0; overflow: hidden; }
.plate::before { content: ""; position: absolute; inset: -48px; background: url('img/campus-hero-1200.jpg') center / cover no-repeat; filter: blur(28px) saturate(.8) brightness(.78); transition: filter 1.4s var(--ease); }
[data-light="morning"] .plate::before { filter: blur(28px) saturate(.7) brightness(.82) sepia(.16); }
[data-light="sunset"] .plate::before { filter: blur(28px) saturate(.9) brightness(.7) sepia(.32) hue-rotate(-14deg); }
[data-light="night"] .plate::before { filter: blur(28px) saturate(.5) brightness(.36); }
.plate-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.plate-inner > img { width: 100%; height: 100%; transition: filter 1.4s var(--ease); }
.grade { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.grade::after { content: ""; position: absolute; inset: 0; background: #fff; mix-blend-mode: soft-light; opacity: 0; }
.moving .grade::after { animation: exposure 22s ease-in-out infinite alternate; }
@keyframes exposure { from { opacity: 0; } to { opacity: .07; } }
:not(.moving) > body .plate-inner > img, :not(.moving) > body .grade, :not(.moving) > body .plate::before { transition: none; }

/* Time of day as a grade over the daytime render (not final renders). */
[data-light="morning"] .plate-inner > img { filter: brightness(1.04) contrast(.95) saturate(.88) sepia(.16) hue-rotate(-6deg); }
[data-light="morning"] .grade { opacity: 1; mix-blend-mode: soft-light; background: linear-gradient(115deg, rgba(255, 206, 160, .7) 0%, rgba(255, 228, 200, .25) 45%, rgba(170, 200, 230, .3) 100%); }
[data-light="sunset"] .plate-inner > img { filter: brightness(.9) contrast(1.06) saturate(1.05) sepia(.32) hue-rotate(-14deg); }
[data-light="sunset"] .grade { opacity: 1; mix-blend-mode: multiply; background: linear-gradient(100deg, rgba(255, 196, 140, .55) 0%, rgba(214, 140, 120, .45) 55%, rgba(110, 90, 130, .55) 100%); }
[data-light="night"] .plate-inner > img { filter: brightness(.46) contrast(1.12) saturate(.5) hue-rotate(6deg); }
[data-light="night"] .grade { opacity: 1; mix-blend-mode: multiply; background: radial-gradient(120% 90% at 50% 45%, rgba(120, 140, 190, .75), rgba(40, 60, 110, .95)); }

/* Callouts: marker on the building, thin leader, compact label. The label is the button. */
.notes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.note-item { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.note-item.is-away { visibility: hidden; }
.lead { position: absolute; left: 0; top: 0; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(8, 22, 25, .7)); }
.lead path { fill: none; stroke: var(--paper); stroke-width: 1; }
.note-item > .mark { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 22px; height: 22px; font-size: .875rem; pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 1px var(--paper); }
.note-item > .mark.dot { width: 8px; height: 8px; pointer-events: none; }
.note { position: absolute; left: var(--lx); top: var(--ly); transform: translateY(-50%); display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--night); border-radius: 0; background: var(--paper); color: var(--night); font: 500 .8125rem/1.2 var(--sans); letter-spacing: .005em; white-space: nowrap; text-decoration: none; cursor: pointer; pointer-events: auto; transition: background-color .15s, color .15s; }
.to-left > .note { transform: translate(-100%, -50%); }
.note-item.is-on > .note, .note-item.is-chosen > .note { background: var(--night); color: var(--paper); }
.note-item.is-on > .mark, .note-item.is-chosen > .mark { background: var(--night); color: var(--paper); }
.note-item.is-chosen > .mark { box-shadow: 0 0 0 1px var(--paper), 0 0 0 4px var(--sand); }
.note:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 4px var(--night); }
.hall-note { border-color: transparent; color: var(--muted); font-weight: 400; cursor: default; pointer-events: none; min-height: 26px; padding: 0 8px; }

/* Phones: the marker is the button (44 px target); names are in the key under the photograph. */
.is-compact .lead, .is-compact .hall { display: none; }
.is-compact .note-item > .mark { width: 28px; height: 28px; font-size: 1rem; pointer-events: none; }
.is-compact .note { left: 0; top: 0; width: 44px; height: 44px; min-height: 0; padding: 0; transform: translate(-50%, -50%); border: 0; background: transparent; }
.is-compact .note-item.is-on > .note, .is-compact .note-item.is-chosen > .note { background: transparent; }
.is-compact .note-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Title band: a narrow solid band across the foot of the photograph, like the caption strip of a plate. */
.title-block { display: grid; gap: var(--s3); background: var(--paper); color: var(--ink); }
.tb-meta { display: flex; gap: var(--s5); font-size: .75rem; color: var(--muted); }
.tb-meta span:first-child { color: var(--night); font-weight: 600; }
.flag { color: var(--bronze); font-weight: 500; }
.title-block h1 { font: 400 clamp(2.1rem, 1rem + 1.9vw, 3rem)/1 var(--serif); letter-spacing: -.015em; color: var(--night); text-wrap: balance; }
.tb-foot { display: grid; gap: var(--s2); align-content: end; }
.tb-free { font-size: var(--t-s); color: var(--ink); }

/* View controls: one solid strip in the top-left corner of the photograph. */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); background: var(--night); color: var(--paper); font-size: var(--t-xs); }
.light, .bar-tools { display: flex; flex-wrap: wrap; align-items: center; }
.light-label { margin-right: var(--s3); color: var(--on-dark); }
.seg { min-height: 44px; padding: 0 12px; border: 1px solid rgba(247, 246, 240, .35); border-radius: 0; background: transparent; color: var(--paper); font-size: var(--t-xs); font-weight: 500; cursor: pointer; }
.light .seg + .seg { margin-left: -1px; }
.seg:hover { border-color: var(--paper); position: relative; }
.seg[aria-pressed="true"] { background: var(--paper); color: var(--night); border-color: var(--paper); position: relative; }
.seg:focus-visible { position: relative; z-index: 1; outline-color: var(--sand); }
.bar-tools { gap: var(--s2); }
.tool .switch { display: inline-block; width: 22px; height: 10px; margin-right: 8px; border: 1px solid currentColor; vertical-align: -1px; position: relative; }
.tool .switch::after { content: ""; position: absolute; top: 1px; left: 1px; width: 8px; height: 6px; background: currentColor; transition: left .15s; }
.tool[aria-pressed="true"] .switch::after { left: 11px; }
.is-list .light { display: none; }

/* Under the photograph: the figure caption and the standfirst, on paper. */
.plate-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4) var(--s7); width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: var(--s5) var(--gutter) var(--s7); border-bottom: 1px solid var(--night); }
.pf-caption { display: grid; gap: var(--s1); align-content: start; font-size: var(--t-xs); color: var(--muted); }
.fig { color: var(--bronze); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; margin-right: 6px; }
.grade-note { font-size: .75rem; color: var(--muted); }
.pf-deck { font: 400 var(--t-l)/1.4 var(--serif); font-size: 1.5rem; color: var(--night); max-width: 38rem; }
.pf-deck strong { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* The project sheet. */
.sheet { background: var(--paper); border-top: 1px solid var(--night); }
.sheet-pic .crop { aspect-ratio: 2; }
.sheet-body { display: grid; gap: var(--s4); padding: var(--s5) var(--gutter) var(--s6); }
.sheet-kicker { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet h2 { display: flex; align-items: center; gap: var(--s3); font: 400 var(--t-xl)/1.1 var(--serif); color: var(--night); }
.sheet h2:focus { outline: none; }
.sheet h2:focus-visible { outline: 2px solid var(--night); outline-offset: 4px; }
.sheet h2 .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--paper); font-size: 1.0625rem; flex: none; }
.sheet-nav { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.sheet-nav .close { margin-left: auto; }

/* Facts of a project: a small ruled table. */
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
.facts > div { grid-column: 1 / -1; display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.facts > div.meta { grid-column: auto; }
.facts dt { font-size: .75rem; color: var(--muted); }
.facts dd { font-size: var(--t-s); line-height: 1.5; color: var(--ink); }
.facts .q dd { font: 400 1.3125rem/1.25 var(--serif); color: var(--night); }

/* Key under the photograph on phones. */
.key { display: none; margin: 0; padding: 0 var(--gutter); list-style: none; background: var(--paper); }
.key button, .key a { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--night); font-size: var(--t-s); font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.key button[aria-pressed="true"] { font-weight: 600; }
.key button[aria-pressed="true"] .mark { background: var(--night); color: var(--paper); }
.key button[aria-pressed="true"]::after { content: "Open"; margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 400; }

/* List view: the twin of the photograph. */
.campus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s6); width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s6) var(--gutter) var(--s8); list-style: none; }
.campus-list li { display: grid; align-content: start; gap: var(--s4); padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--night); }
.campus-list h2 { display: flex; align-items: baseline; gap: var(--s3); font: 400 var(--t-xl)/1.1 var(--serif); color: var(--night); }
.campus-list h2 .num { font-size: var(--t-m); color: var(--bronze); font-variant-numeric: lining-nums; }
.is-list .stage, .is-list .key { display: none !important; }
.is-list #stage-note { display: none; }

@media (min-width: 1000px) {
  /* The picture and its control strip fill the first screen under the header; the title band follows at once. */
  .hero { --fit-h: max(240px, calc(100svh - 72px - 56px)); }
  .plate-wrap { display: flex; flex-direction: column; }
  .title-block { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s7); align-items: end; padding: 22px var(--gutter) 26px; }
  .tb-meta { grid-column: 1 / -1; }
  .tb-foot { grid-template-columns: 1fr; justify-items: start; }
  .controls { justify-content: space-between; min-height: 56px; padding: 6px var(--gutter); }
  .is-list .controls { display: inline-flex; align-self: flex-start; min-height: 0; margin: 0 var(--gutter); padding: 6px 6px 6px 14px; }
  .sheet { position: absolute; top: 0; right: 0; height: var(--stage-h, var(--fit-h)); z-index: 4; width: min(420px, max(360px, 30vw)); overflow-y: auto; border-top: 0; border-left: 1px solid var(--night); overscroll-behavior: contain; }
  .sheet-body { padding: var(--s5) var(--s6) var(--s6); }
}
@media (max-width: 999px) {
  .hero, .plate-wrap { display: flex; flex-direction: column; }
  .plate-wrap { display: contents; }
  .title-block { display: contents; }
  .tb-meta { order: 1; margin: var(--s4) var(--gutter) var(--s4); }
  .title-block h1 { order: 2; margin: 0 var(--gutter) var(--s5); font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.25rem); }
  .stage { order: 3; }
  .controls { order: 4; padding: 10px var(--gutter); }
  .campus-list { order: 5; grid-template-columns: 1fr 1fr; }
  .key { order: 6; }
  .sheet { order: 7; }
  .tb-foot { order: 8; margin: var(--s6) var(--gutter) 0; }
  .plate-foot { order: 9; grid-template-columns: 1fr; }
  .pf-deck { order: -1; }
}
@media (max-width: 699px) {
  .key { display: block; }
  .campus-list { grid-template-columns: 1fr; }
  .seg { padding: 0 10px; }
  .light-label { width: 100%; margin-bottom: 4px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div.meta { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .seg { padding: 0 8px; } }

/* ---- Crops of the photograph -------------------------------------------------------------------------- */
.crop { position: relative; overflow: hidden; background: #0f2a2f; }
.crop img { position: absolute; max-width: none; height: auto; }

/* ---- 2. A contribution: four plates in sequence ------------------------------------------------------------- */
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.plate-step { display: grid; align-content: start; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--night); }
.plate-step h3 { display: flex; align-items: baseline; gap: var(--s3); font: 400 var(--t-xl)/1.1 var(--serif); color: var(--night); }
.step-n { font: 400 var(--t-xl)/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; }
.step-sub { color: var(--muted); font-size: var(--t-s); max-width: 34rem; }
.drawing { margin-top: var(--s3); border: 1px solid var(--rule); background: var(--sheet); }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing.article { display: grid; gap: var(--s3); padding: var(--s5); }
.drawing.article { border-color: var(--rule); }
.a-title { font: 400 var(--t-xl)/1.1 var(--serif); color: var(--night); }
.credit { font-size: var(--t-s); }
.note-block { display: grid; gap: var(--s2); max-width: 36rem; font-size: var(--t-s); }
.nb-label { font-size: var(--t-xs); font-weight: 600; color: var(--night); }
.state { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-xs); color: var(--ink); }
.state-mark { width: 10px; height: 10px; border: 1px solid var(--night); }
.state-mark.revise { background: linear-gradient(135deg, var(--bronze) 50%, transparent 50%); border-color: var(--bronze); }
.state-mark.ok { background: var(--night); }
.ill-note { margin-top: var(--s7); font-size: var(--t-xs); color: var(--muted); }

/* ---- 3. Open projects: an index with a key plan --------------------------------------------------------------- */
.privacy-note { max-width: 40rem; padding-left: var(--s4); border-left: 1px solid var(--night); font-size: var(--t-s); color: var(--muted); }
.p-index { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.p-figure { position: sticky; top: var(--s5); display: grid; gap: var(--s3); }
.keyplan { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0f2a2f; }
.keyplan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.keyplan .mark { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; font-size: .8125rem; box-shadow: 0 0 0 1px var(--paper); transition: background-color .15s, color .15s; }
.keyplan .mark.is-on { background: var(--night); color: var(--paper); box-shadow: 0 0 0 1px var(--paper), 0 0 0 4px var(--sand); }
.p-caption { font-size: var(--t-xs); color: var(--muted); }
.p-caption .fig { color: var(--bronze); }
.p-caption b { color: var(--night); font-weight: 600; white-space: pre; }
.p-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--night); }
.p-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) 176px; gap: var(--s5); padding: var(--s6) 0; border-top: 1px solid var(--night); }
.p-num { font: 400 2.5rem/.9 var(--serif); color: var(--night); font-variant-numeric: lining-nums; }
.p-item.is-active .p-num { color: var(--bronze); }
.p-body { display: grid; gap: var(--s4); }
.p-body h3 { font: 400 var(--t-2xl)/1.02 var(--serif); color: var(--night); }
.p-thumb { aspect-ratio: 4 / 3; }
@media (max-width: 999px) {
  .p-index { grid-template-columns: 1fr; }
  .p-figure { display: none; }
}
@media (max-width: 699px) {
  .p-item { grid-template-columns: 36px minmax(0, 1fr); }
  .p-thumb { grid-column: 2; grid-row: 1; max-width: 220px; }
  .p-body { grid-column: 2; }
  .p-num { grid-row: 1 / span 2; font-size: 2rem; }
}

/* ---- 4. What you keep ------------------------------------------------------------------------------------- */
.on-dark { background: var(--night); color: var(--paper); }
.keep-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.big { font: 400 var(--t-4xl)/.95 var(--serif); letter-spacing: -.015em; color: var(--paper); max-width: 8ch; }
.keep-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule-dark); }
.keep-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--rule-dark); }
.keep-list h3 { font: 400 var(--t-l)/1.25 var(--serif); font-size: 1.5rem; color: var(--paper); }
.keep-list p { color: var(--on-dark); font-size: var(--t-s); }
.terms-line { margin-top: var(--s5); color: var(--on-dark); font-size: var(--t-s); }
@media (max-width: 860px) { .keep-grid { grid-template-columns: 1fr; } .keep-list li { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---- 5. How joining works --------------------------------------------------------------------------------- */
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin: 0; padding: 0; list-style: none; }
.route li { display: grid; align-content: start; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--night); }
.big-n { font-size: 3.25rem; line-height: 1; color: var(--night); }
.route h3 { font: 600 var(--t-m)/1.35 var(--sans); color: var(--night); }
.route p { font-size: var(--t-s); color: var(--ink); max-width: 30rem; }
.carry { display: flex; align-items: center; margin-top: var(--s2); font-size: var(--t-xs); font-weight: 500; color: var(--night); }
.carry::before { content: ""; order: 1; width: 24px; height: 1px; background: var(--night); }
.carry > span:last-child { order: 2; padding: 3px 10px; border: 1px solid var(--night); }
.after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s5); margin-top: var(--s7); padding: var(--s5) 0; border-block: 1px solid var(--rule); }
.after h3 { font: 400 var(--t-l)/1.25 var(--serif); font-size: 1.5rem; color: var(--night); }
.after p { font-size: var(--t-s); max-width: 42rem; }
.free-line { margin-top: var(--s7); font: 400 var(--t-2xl)/1.05 var(--serif); color: var(--night); }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } .after { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---- 6. Teachers ------------------------------------------------------------------------------------------ */
.teach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); align-items: start; }
.col-title { margin-bottom: var(--s4); font: 600 var(--t-m)/1.35 var(--sans); color: var(--night); }
.ruled-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.ruled-list li { display: grid; gap: 2px; padding: var(--s4) 0; border-top: 1px solid var(--rule); font-size: var(--t-s); }
.ruled-list b { font-weight: 600; color: var(--night); }
.course-page { margin-bottom: var(--s5); border: 1px solid var(--night); background: var(--sheet); }
.course-bar { padding: 8px 14px; border-bottom: 1px solid var(--rule); background: var(--stone); font-size: .75rem; color: var(--muted); }
.course-body { display: grid; gap: var(--s3); padding: var(--s5); font-size: var(--t-s); }
.c-title { font: 400 1.5rem/1.15 var(--serif); color: var(--night); }
.share { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); }
.share code { padding: 4px 8px; border: 1px solid var(--rule); background: var(--paper); font: 500 .8125rem/1.4 var(--sans); color: var(--night); overflow-wrap: anywhere; }
.share small { font-size: .75rem; color: var(--muted); }
.teach-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--night); }
.teach-cta p { font: 400 var(--t-xl)/1.15 var(--serif); color: var(--night); }
@media (max-width: 860px) { .teach-grid { grid-template-columns: 1fr; } }

/* ---- 7. Questions ----------------------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
.faq-grid .section-head { margin: 0; }
.faq { border-bottom: 1px solid var(--night); }
.faq-item { border-top: 1px solid var(--night); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%; min-height: 60px; padding: 10px 0; border: 0; background: transparent; color: var(--night); font: 500 var(--t-m)/1.35 var(--sans); text-align: left; cursor: pointer; }
.faq-q:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sign { position: relative; width: 14px; height: 14px; flex: none; }
.sign::before, .sign::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; }
.sign::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .sign::after { display: none; }
.faq-a { padding: 0 0 var(--s5); max-width: 40rem; font-size: var(--t-s); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---- 8, 9. Behind, final -------------------------------------------------------------------------------- */
.behind { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
.behind p { max-width: 40rem; }
@media (max-width: 860px) { .behind { grid-template-columns: 1fr; gap: var(--s4); } }
.final { padding-block: clamp(72px, 8vw, 120px); }
.final-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: end; }
.final-text { display: grid; gap: var(--s5); }
.final h2 { font: 400 var(--t-4xl)/.95 var(--serif); letter-spacing: -.015em; }
.final p { color: var(--on-dark); max-width: 30rem; }
.final-fig { display: grid; gap: var(--s2); }
.final-pic { aspect-ratio: 16 / 9; overflow: hidden; }
.final-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 50% 46%; }
.final-fig figcaption { font-size: .75rem; color: var(--on-dark); }
@media (max-width: 860px) { .final-inner { grid-template-columns: 1fr; } }

/* ---- Footer (as on barchinetglobal.com) ------------------------------------------------------------------- */
.bgc-footer { padding: 56px var(--gutter) 34px; background: var(--night); color: #d5dfda; font-size: 14px; border-top: 1px solid var(--rule-dark); }
.bgc-footer-grid { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr)); gap: 36px 40px; max-width: var(--wrap); margin: 0 auto; }
.bgc-footer-brand img { width: 170px; filter: brightness(0) invert(1); opacity: .95; }
.bgc-footer-brand p { margin-top: 16px; max-width: 30ch; color: #aebfb9; font-size: 13px; line-height: 1.55; }
.bgc-footer h2 { margin: 0 0 8px; font: 600 13px/1.3 var(--sans); color: var(--sand); }
.bgc-footer ul { list-style: none; margin: 0; padding: 0; }
.bgc-footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #e8eee9; text-decoration: none; }
.bgc-footer a:hover { text-decoration: underline; }
.bgc-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: var(--wrap); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #2c4a4c; color: #aebfb9; font-size: 13px; }
@media (max-width: 860px) { .bgc-footer-grid { grid-template-columns: 1fr 1fr; } .bgc-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .bgc-footer-grid { grid-template-columns: 1fr; } }

/* ---- Join dialog and status ---------------------------------------------------------------------------- */
.join { width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--night); border-radius: 0; background: var(--paper); color: var(--ink); }
.join::backdrop { background: rgba(16, 44, 49, .72); }
.join-pic .crop { aspect-ratio: 16 / 7; }
.join-body { display: grid; gap: var(--s4); padding: var(--s5) var(--s6) var(--s6); }
.join h2 { font: 400 var(--t-xl)/1.1 var(--serif); color: var(--night); }
.join ol { display: grid; gap: var(--s2); margin: 0; padding-left: 1.5em; font-size: var(--t-s); }
.join ol li::marker { font-family: var(--serif); font-size: 1.0625rem; color: var(--bronze); }
.join .small { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 520px) { .join-body { padding: var(--s5); } }
.status { position: fixed; left: 50%; bottom: 20px; z-index: 60; max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--sand); background: var(--night); color: var(--paper); font-size: var(--t-s); transform: translateX(-50%); }
.status:empty { display: none; }

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

/* ---- A growing campus ------------------------------------------------------------------------------------ */
/* Two-digit numbers widen the marker into a rounded bar instead of shrinking the numeral. */
.mark { min-width: 24px; width: auto; padding: 0 5px; border-radius: 12px; }
.note-item > .mark, .keyplan .mark { min-width: 22px; width: auto; border-radius: 11px; }
.is-compact .note-item > .mark { min-width: 28px; border-radius: 14px; }
.p-more { margin-top: var(--s5); }
/* Dense: markers only; a label appears on hover, focus or selection. */
.is-dense .lead { display: none; }
.is-dense .note { left: 0; top: 0; width: 44px; height: 44px; min-height: 0; padding: 0; transform: translate(-50%, -50%); border: 0; background: transparent; }
.is-dense .note-item.is-on > .note, .is-dense .note-item.is-chosen > .note { background: transparent; }
.is-dense .note-name { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); padding: 7px 10px; border: 1px solid var(--night); background: var(--paper); color: var(--night); white-space: nowrap; opacity: 0; clip-path: inset(50%); }
.is-dense .note-item.is-on .note-name, .is-dense .note-item.is-chosen .note-name { opacity: 1; clip-path: none; }
.is-dense .note-item.is-chosen .note-name { background: var(--night); color: var(--paper); }
.is-dense .tip-left .note-name { left: auto; right: 34px; }
.is-dense .note-item { z-index: 0; } .is-dense .note-item.is-on, .is-dense .note-item.is-chosen { z-index: 2; }
.is-compact .note-name { clip-path: none; opacity: 1; }
.note-item > .mark.dot { min-width: 8px; padding: 0; border-radius: 50%; }
#motion-toggle[aria-pressed="true"] { background: transparent; color: var(--paper); border-color: rgba(247, 246, 240, .35); }
#motion-toggle[aria-pressed="true"]:hover { border-color: var(--paper); }
.facts > div { align-content: start; }
@media (min-width: 1000px) { .sheet-body { padding: var(--s5) 28px var(--s6); } .sheet .actions { gap: var(--s3); } .sheet .btn { padding: 0 18px; } }
@media (max-width: 760px) { .plates { grid-template-columns: 1fr; } .drawing.article { padding: var(--s4); } }
.seg { min-width: 44px; }
@media (min-width: 1000px) { .status { left: auto; right: 20px; top: 124px; bottom: auto; transform: none; } }
.is-compact .note { width: 46px; height: 46px; }

/* ---- Live data: loading, no public projects yet, and a failed load --------------------------------------------- */
/* Over the photograph: a plain panel in the middle of the campus. With no projects the picture stays, with no markers. */
.stage-state { position: relative; z-index: 3; grid-area: 1 / 1; place-self: center; width: min(34rem, calc(100% - 32px)); margin-block: 16px; }
.stage-state:empty { display: none; }
.ss-loading { display: inline-block; padding: 10px 16px; background: var(--night); color: var(--paper); font-size: var(--t-s); }
.state-card { display: grid; gap: var(--s3); padding: var(--s5) var(--s5) var(--s5); border: 1px solid var(--night); background: var(--paper); color: var(--ink); }
.state-card h2, .state-card h3 { font: 400 var(--t-xl)/1.1 var(--serif); color: var(--night); }
.state-card p { font-size: var(--t-s); max-width: 34rem; }
.state-card .actions { margin-top: var(--s2); }
.state-card.is-error { border-color: var(--bronze); }
.p-state:empty { display: none; }
.p-state .state-card { max-width: 46rem; }
.p-state .ss-loading { background: transparent; color: var(--muted); padding: 0; }
.is-empty .p-index, .is-error .p-index { display: none; }
.is-empty #stage-note, .is-error #stage-note, .is-empty .controls #list-toggle, .is-error .controls #list-toggle { display: none; }
.carry .mark[hidden] { display: none; }
.join-error { font-size: var(--t-s); color: var(--night); }
@media (max-width: 699px) {
  .state-card { padding: var(--s4); gap: var(--s2); }
  .state-card h2, .state-card h3 { font-size: var(--t-l); }
  .stage-state .state-card p { font-size: var(--t-xs); }
}

/* The cookie choice that /assets/analytics.js adds to the footer on every page. */
.bgc-footer .analytics-settings { display: block; max-width: var(--wrap); min-height: 44px; margin: 10px auto 0; padding: 6px 0; border: 0; background: transparent; color: #c7d3ce; font-size: 13px; text-align: left; width: 100%; cursor: pointer; }
.bgc-footer .analytics-policy-link { display: none; }
.share-fallback { display: grid; gap: var(--s1); max-width: 36rem; font-size: var(--t-xs); color: var(--muted); }
.share-fallback input { min-height: 44px; padding: 0 10px; border: 1px solid var(--night); border-radius: 0; background: var(--sheet); color: var(--night); font: 500 var(--t-xs)/1.4 var(--sans); }
/* Project text comes from the owner's settings: long words wrap instead of widening the page. */
.p-body h3, .sheet h2, .campus-list h2, .facts dd, .join h2, .key button span:last-child, .p-caption b { overflow-wrap: anywhere; }
.p-caption b { white-space: pre-wrap; }

/* A project that is on the campus but not open to join yet, and a project waiting for its building. */
.join-closed { display: inline-flex; align-items: center; gap: var(--s2); justify-self: start; font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.join-closed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.plot-note { font-size: var(--t-xs); color: var(--muted); letter-spacing: .01em; }

/* Touch screens: the labels on the picture are 44 px tall targets too. */
@media (pointer: coarse) { .note { min-height: 44px; } }
