/* Project-page stylesheet orchestrator. */
.project-site{min-height:100vh;padding-bottom:34px;background-color:var(--paper);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='1' cy='1' r='.7' fill='%23000' fill-opacity='.10'/%3E%3C/svg%3E")}
.project-site .shellbar nav a{padding-inline:7px;font-size:9px}
.project-site .rail-note{margin:26px 0 0;padding:12px;border:1px solid var(--line);color:var(--muted);line-height:1.65}
.project-site .rail-note strong{display:block;margin-bottom:5px;color:var(--ink);font-size:9px}
.project-site .record-state{color:var(--green)}
.project-site .project-back{color:var(--red);text-decoration:none}
.project-site .project-back:hover{text-decoration:underline}
.project-site .function-bar{grid-template-columns:repeat(8,minmax(72px,1fr))}
@media(max-width:760px){.project-site .workspace{display:block}.project-site .rail{position:static}.project-site .function-bar{grid-template-columns:repeat(4,1fr)}.project-site .function-bar span{display:none}}

/* Shared shell for long-form records: project case studies and Atlas notes.
   Content components stay specialised; the page chrome and reading rhythm do not. */
:root {
  --record-paper: #eee7df;
  --record-border: rgba(10, 10, 10, .28);
  --record-line: rgba(10, 10, 10, .12);
  --record-muted: rgba(10, 10, 10, .55);
  --record-blue: #0000aa;
}

/* Legacy posts use their own header class, but it deliberately mirrors .shellbar. */
.article-shellbar {
  min-height: 40px;
  padding: 0 18px;
  border-bottom-color: var(--record-border);
  background: rgba(230, 220, 210, .97);
  color: #0a0a0a;
  font-size: 10px;
  backdrop-filter: none;
}
.article-shellbar__id b { color: #0a0a0a; }
.article-shellbar__id span,
.article-shellbar a.article-shellbar__status { color: var(--record-muted); }
.article-shellbar nav a {
  padding: 0 10px;
  border: 0;
  color: #1c1c1c;
  font-size: 9px;
  font-weight: 500;
}
.article-shellbar nav a:hover,
.article-shellbar nav a:focus-visible,
.article-shellbar nav a[aria-current="page"] {
  border: 0;
  background: rgba(0, 0, 170, .08);
  color: var(--record-blue);
}
.article-shellbar__divider { color: rgba(10, 10, 10, .20); }

/* The former iframe canvas becomes the same quiet paper document used by records. */
html:has(body.article-record-page:not(.migrated-post)) {
  background-color: #e6dcd2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1' cy='1' r='.7' fill='%23000' fill-opacity='.10'/%3E%3C/svg%3E");
  background-size: 14px 14px;
}
body.article-record-page:not(.migrated-post) { padding: 32px 0 64px; }
body.article-record-page:not(.migrated-post) > .atlas-container {
  width: min(920px, calc(100% - 48px));
  border-color: var(--record-border);
  background: var(--record-paper);
  box-shadow: none;
}
body.article-record-page:not(.migrated-post) > .atlas-container::before {
  height: 30px;
  padding: 0 18px;
  border-bottom-color: var(--record-border);
  background: rgba(10, 10, 10, .025);
  color: var(--record-muted);
  font-size: 8px;
  line-height: 30px;
}
body.article-record-page:not(.migrated-post) > .atlas-container > .content-block { padding-inline: var(--notebook-record-inset, 28px); }
body.article-record-page:not(.migrated-post) > .atlas-container #site-passport .passport-title-bar { border-bottom-color: var(--record-border); }

@media (max-width: 760px) {
  .article-shellbar { min-height: 40px; padding: 8px 12px 7px; }
  .article-shellbar nav a { padding: 7px 7px 4px; }
  body.article-record-page:not(.migrated-post) { padding: 10px 0 40px; }
  body.article-record-page:not(.migrated-post) > .atlas-container { width: calc(100% - 16px); }
  body.article-record-page:not(.migrated-post) > .atlas-container > .content-block { padding-inline: 18px; }
}

/* Long-form posts join the project-record layout after article-page.js builds its rails. */
body.article-record-page:not(.migrated-post) { min-height: 100vh; padding: 0 0 42px; }
.article-rail-title,
.article-meta-block > p,
.article-neighbours > p {
  margin: 0 0 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--record-border);
  color: #0a0a0a;
  font-weight: 700;
}
.article-outline li.article-outline--sub a { font-size: 9px; }
.article-outline li.article-outline--sub a b { padding-left: 10px; }
.article-index-link { display: inline-block; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--record-line); color: var(--record-blue); text-decoration: none; }
.article-main { min-width: 0; border-inline: 1px solid var(--record-line); background: var(--record-paper); }
.article-main > .atlas-container {
  width: 100%;
  margin: 0;
  overflow: clip;
  border: 0;
  background: var(--record-paper);
  box-shadow: none;
}
.article-main > .atlas-container::before {
  content: attr(data-document-path) "  [ DOCUMENT VIEW ]";
  display: block;
  height: 30px;
  padding: 0 18px;
  border-bottom: 1px solid var(--record-border);
  background: rgba(10, 10, 10, .025);
  color: var(--record-muted);
  font: 700 8px/30px 'JetBrains Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.article-main > .atlas-container #site-passport {
  padding: 18px var(--notebook-record-inset, 28px) 0;
}
.article-main > .atlas-container > .content-block { padding-inline: var(--notebook-record-inset, 28px); }
.article-main > .post-shell { width: auto; margin: 0; }
.article-main .post-header { padding: 26px var(--notebook-record-inset, 28px); background: var(--record-paper); }
.article-main .post-header h1 { font-size: clamp(26px, 3.2vw, 34px); }
.article-main .content-block { background: var(--record-paper); }
.article-meta-block { margin-bottom: 18px; }
.article-meta-block dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.article-meta-block dt,
.article-meta-block dd { margin: 0; padding: 4px 0; border-bottom: 1px dotted var(--record-line); }
.article-meta-block dd { color: #0a0a0a; text-align: right; }
.article-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.article-tags span { padding: 2px 4px; border: 1px solid var(--record-line); color: #0a0a0a; }
.article-neighbours { margin-top: 28px; }
.article-neighbours a { display: block; padding: 7px 0; border-bottom: 1px solid var(--record-line); color: #0a0a0a; text-decoration: none; }
.article-neighbours a:hover { color: var(--record-blue); }
.article-record-page .article-main #atlas-footer { width: auto; min-height: 0; margin: 24px 26px 28px; padding: 0; display: block; border: 1px solid var(--record-line); }
.atlas-local-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atlas-local-footer section { min-width: 0; padding: 11px 13px 12px; border-right: 1px solid var(--record-line); }
.atlas-local-footer section:last-child { border-right: 0; }
.atlas-local-footer p { margin: 0 0 7px; padding-bottom: 5px; border-bottom: 1px solid var(--record-line); color: var(--record-muted); font: 700 8px/1.4 'JetBrains Mono', monospace; letter-spacing: .06em; }
.atlas-local-footer a { display: block; overflow-wrap: anywhere; padding: 3px 0; color: #0a0a0a; font: 9px/1.45 'JetBrains Mono', monospace; text-decoration: none; }
.atlas-local-footer a:hover { color: var(--record-blue); }
.article-site-footer {
  width: min(1360px, calc(100vw - 36px));
  min-height: 55px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--record-border);
  background: transparent;
  color: var(--record-muted);
  font: 8px/1.4 'JetBrains Mono', monospace;
}
.article-site-footer a { justify-self: end; color: #0a0a0a; text-decoration: underline; text-underline-offset: 2px; }
.article-site-footer a:hover { color: var(--record-blue); }

/* Shared article afterword: social distribution and automatic discovery. */
.article-afterword {
  margin: 42px 26px 0;
  padding-top: 18px;
  color: #0a0a0a;
  font: 10px/1.5 'JetBrains Mono', monospace;
}
.article-end-marker {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--record-muted);
}
.article-end-marker span { height: 1px; background: var(--record-border); }
.article-end-marker strong { color: var(--record-blue); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.article-afterword__header {
  min-height: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--record-line);
}
.article-afterword__header span { color: var(--record-muted); font-size: 8px; letter-spacing: .06em; }
.article-afterword__header strong { font-size: 11px; }
.article-share__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 24px; }
.article-share__links a {
  padding: 5px 9px;
  border: 1px solid var(--record-border);
  background: transparent;
  color: #0a0a0a;
  text-decoration: none;
}
.article-share__links a::before { content: '['; color: var(--record-muted); }
.article-share__links a::after { content: ']'; color: var(--record-muted); }
.article-share__links a:hover,
.article-share__links a:focus-visible {
  border-color: #008181;
  background: #008181;
  color: #fff;
  outline: 0;
}
.article-share__links a:hover::before,
.article-share__links a:hover::after,
.article-share__links a:focus-visible::before,
.article-share__links a:focus-visible::after { color: #fff; }
.article-related { margin-top: 4px; }
.article-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--record-line);
  border-left: 1px solid var(--record-line);
}
.article-related-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: minmax(104px, auto);
  border-right: 1px solid var(--record-line);
  border-bottom: 1px solid var(--record-line);
  color: #0a0a0a;
  text-decoration: none;
}
.article-related-card__media {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--record-line);
  background: rgba(10, 10, 10, .035);
  color: var(--record-muted);
  font-size: 8px;
}
.article-related-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-related-card__body { display: flex; min-width: 0; flex-direction: column; padding: 9px 10px; }
.article-related-card__body small { color: var(--record-muted); font-size: 8px; text-transform: uppercase; }
.article-related-card__body strong { margin: 4px 0; font-size: 10px; line-height: 1.35; }
.article-related-card__body > span { display: -webkit-box; overflow: hidden; color: var(--record-muted); font-size: 8px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-related-card__body i { margin-top: auto; padding-top: 6px; color: var(--record-blue); font-size: 8px; font-style: normal; }
.article-related-card:hover,
.article-related-card:focus-visible { background: rgba(0, 129, 129, .08); outline: 1px solid #008181; outline-offset: -1px; }
.article-function-bar { grid-template-columns: repeat(8, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .article-main { border: 1px solid var(--record-line); }
  .article-main > .atlas-container #site-passport { padding: 14px 18px 0; }
  .article-main > .atlas-container > .content-block,
  .article-main .post-header { padding-inline: 18px; }
  .article-record-page .article-main #atlas-footer { margin-inline: 18px; }
  .article-afterword { margin-inline: 18px; }
  .article-related__grid { grid-template-columns: 1fr; }
  .article-related-card { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: minmax(118px, auto); }
  .atlas-local-footer { grid-template-columns: 1fr; }
  .atlas-local-footer section { border-right: 0; border-bottom: 1px solid var(--record-line); }
  .atlas-local-footer section:last-child { border-bottom: 0; }
  .article-site-footer { width: calc(100vw - 20px); grid-template-columns: 1fr auto; }
  .article-site-footer span:nth-child(2) { display: none; }
}

.project-site main {
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--paper2);
}

.project-hero {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line2);
  scroll-margin-top: 54px;
}
.project-hero .breadcrumb { margin: 0 0 8px; font-size: 9px; }
.project-flags {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--atlas-ink-faint);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.project-hero h1 {
  max-width: 720px;
  margin: 0 0 7px;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.project-hero .project-dek {
  max-width: 62ch;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.project-hero-media,
.project-cover {
  margin: 0;
  border: 1px solid var(--line2);
  background: #111;
}
.project-hero-media video,
.project-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(430px, 52vh);
  object-fit: contain;
  background: #111;
}
.project-hero-media figcaption {
  padding: 8px 11px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: var(--atlas-bg-sunken);
  color: var(--muted);
  font-size: 8px;
}
.project-hero-media figcaption strong { color: var(--ink); font-weight: 500; text-align: right; }

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0;
  border: 1px solid var(--line);
}
.project-facts div { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--line); }
.project-facts div:last-child { border-right: 0; }
.project-facts dt { color: var(--atlas-ink-faint); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.project-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 600; }

.project-record { padding: 0; }
.project-record section {
  margin: 0;
  padding: 18px 22px 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 54px;
}
.project-section-head {
  margin: 0 0 12px;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--line2);
}
.project-record .project-section-head h2 { margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; }
.project-record .project-section-head h2 span { min-width: 42px; color: var(--red); }
.project-section-head em { color: var(--atlas-ink-faint); font-size: 8px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.project-record p { max-width: 66ch; margin: 0; font-size: 11px; line-height: 1.7; }

.project-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-two-col h3 { margin: 0 0 6px; color: var(--atlas-ink-faint); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.project-record ul { max-width: none; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.project-record li {
  position: relative;
  padding: 7px 10px 7px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.5;
}
.project-record li:last-child { border-bottom: 0; }
.project-record li::before { content: "·"; position: absolute; left: 12px; color: var(--atlas-ink-faint); font-weight: 700; }
.project-tools { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.project-tools code { padding: 3px 6px; border: 1px solid var(--line); background: var(--paper); font: 8px var(--mono); }

.project-reel { margin: 0 0 12px; border: 1px solid var(--line2); background: #111; }
.project-reel video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 430px; object-fit: contain; background: #111; }
.project-reel figcaption { padding: 8px 10px; border-top: 1px solid var(--line); background: var(--atlas-bg-sunken); color: var(--muted); font-size: 8px; }

.project-carousel { border: 1px solid var(--line2); outline: 0; }
.project-carousel:focus-visible { outline: 2px solid var(--atlas-accent); outline-offset: 2px; }
.project-carousel-view {
  overflow: hidden;
  width: 100%;
  height: clamp(360px, 56vh, 520px);
  background: #111;
}
.project-carousel-track { height: 100%; display: flex; transition: transform .24s ease; }
.project-carousel-track figure {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}
.project-carousel-track img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.project-carousel-bar {
  min-height: 48px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--atlas-bg-sunken);
}
.project-carousel-bar button {
  padding: 5px 9px;
  border: 1px solid var(--line2);
  background: var(--paper2);
  color: var(--ink);
  font: 8px var(--mono);
  cursor: pointer;
}
.project-carousel-bar button:hover,
.project-carousel-bar button:focus-visible { border-color: var(--atlas-accent-hi); color: var(--atlas-accent-hi); outline: 0; }
.project-carousel-bar button:disabled { opacity: .4; cursor: default; }
.project-carousel-bar strong { display: block; overflow: hidden; color: var(--ink); font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-carousel-bar span { display: block; margin-top: 2px; color: var(--atlas-ink-faint); font-size: 8px; }

.project-metrics {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line2);
}
.project-metrics div { padding: 12px 10px; text-align: center; border-right: 1px solid var(--line); }
.project-metrics div:last-child { border-right: 0; }
.project-metrics strong { display: block; margin-bottom: 3px; font-size: 17px; line-height: 1.2; }
.project-metrics span { color: var(--atlas-ink-faint); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.project-record ul.project-results { margin-bottom: 12px; }

.project-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.project-nav a { padding: 13px 16px; color: var(--muted); font-size: 8px; text-decoration: none; }
.project-nav a:last-child { border-left: 1px solid var(--line); text-align: right; }
.project-nav a:hover { background: var(--atlas-accent-soft); color: var(--atlas-accent); }

.project-site-footer {
  width: min(var(--notebook-shell-width), calc(100vw - var(--notebook-page-edge)));
  min-height: 48px;
  margin: 0 auto;
  padding: 0 0 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line2);
  color: var(--muted);
  font-size: 8px;
}
.project-site-footer a { justify-self: end; color: var(--ink); text-underline-offset: 2px; }

/* Project-only inspector data; rail navigation is shared by notebook-layout.css. */
.project-site .meta-rail { scrollbar-width: thin; }
.project-site .rail-note { margin-top: 14px; padding: 10px; color: var(--atlas-ink-faint); font-size: 8px; line-height: 1.5; }
.project-site .meta-block { margin-bottom: 16px; }
.project-site .meta-block dl { grid-template-columns: minmax(0, 1fr) auto; }
.project-site .meta-block dt,
.project-site .meta-block dd { padding: 4px 0; font-size: 8px; }
.project-site .meta-block dt { overflow: hidden; color: var(--atlas-ink-faint); text-overflow: ellipsis; white-space: nowrap; }
.project-site .meta-block dd { padding-left: 8px; color: var(--ink); }
.project-site .function-bar { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .project-carousel-track { transition: none; }
}

@media (max-width: 760px) {
  .project-hero,
  .project-record section { padding-inline: 16px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:nth-child(2n) { border-right: 0; }
  .project-facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .project-two-col,
  .project-metrics { grid-template-columns: 1fr; }
  .project-metrics div { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .project-metrics div:last-child { border-bottom: 0; }
  .project-section-head em { display: none; }
  .project-hero-media figcaption { display: block; }
  .project-hero-media figcaption strong { display: block; margin-top: 3px; text-align: left; }
  .project-carousel-bar { grid-template-columns: auto auto; }
  .project-carousel-bar > div { grid-column: 1 / -1; grid-row: 1; }
  .project-carousel-bar button:last-child { justify-self: end; }
  .project-site .function-bar { grid-template-columns: repeat(6, minmax(42px, 1fr)); }
}

.project-location-gallery { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line2); }
.project-location-gallery h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }



[data-external-video] video{display:block;width:100%;aspect-ratio:16/9;border:1px solid var(--atlas-border-strong)}
[data-project-awards] li{padding:12px;border:0;background:rgba(0,0,0,.055);font-weight:600}
