/* Melkaris website stylesheet. Values from BRAND-SPEC v5 (melkaris/house/brd/20-working/BRAND-SPEC.md):
   Bone ground, Ink type, Slate secondary, Tyrian accent, one weight (IBM Plex Regular), no bold,
   no cards, no shadows, no radii, no gradients. Serif for body and headings; Sans for micro-type only. */

@font-face { font-family: "Plex Serif"; src: url("/assets/fonts/IBMPlexSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/assets/fonts/IBMPlexSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bone: #F2EFE9;
  --ink: #14181C;
  --slate: #5C6169;
  --tyrian: #6D2F4A;
  --hair: #D8D2C6;
  --surface: #E4DFD6;
  --serif: "Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .65, .2, 1);
  --header: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, h4, b, strong, th { font-weight: 400; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--tyrian); color: var(--bone); }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
a:hover { color: var(--tyrian); text-decoration-color: var(--tyrian); }
:focus-visible { outline: 1px solid var(--tyrian); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--bone); padding: 10px 14px; font-family: var(--sans); font-size: .8125rem; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ layout */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--hair); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.split + .split { margin-top: clamp(48px, 5.5vw, 72px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 32px; }
  .split > .margin { padding-top: .55em; }
}

/* ------------------------------------------------------------------ type */
.label { font-family: var(--sans); font-size: .8rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--tyrian); }
.label--slate { color: var(--slate); }
.display { font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.25rem); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.page-title { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.08; letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
h2, .h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.625rem); line-height: 1.15; letter-spacing: -.005em; max-width: 26ch; text-wrap: balance; }
h3, .h3 { font-size: 1.375rem; line-height: 1.3; }
.lead { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.5; max-width: 38ch; }
.lead--wide { max-width: 52ch; }
p { max-width: 66ch; }
p + p { margin-top: 1em; }
.muted { color: var(--slate); }
.note { color: var(--slate); font-size: 1rem; line-height: 1.6; margin-top: 18px; }
.textlink { font-family: var(--sans); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 6px; transition: color .3s var(--ease), border-color .3s var(--ease); }
.textlink:hover { color: var(--tyrian); border-color: var(--tyrian); }
.links { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 44px; }

/* ------------------------------------------------------------------ spacing utilities (no inline styles: the security policy forbids them) */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 28px; }
.section.pt-0 { padding-top: 0; }
.section.bt-0 { border-top: 0; }

/* ------------------------------------------------------------------ header: fixed at the top on every size; on phones the links open from a Menu button */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bone); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); view-transition-name: site-header; }
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: block; line-height: 0; }
.brand svg { width: 132px; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-nav a { position: relative; display: inline-block; padding-block: 6px; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.site-nav a:hover { color: var(--tyrian); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--tyrian); }
.menu-btn { display: none; min-height: 44px; padding: 0 0 0 16px; background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
[id] { scroll-margin-top: 88px; }
@media (max-width: 759px) {
  html.js .menu-btn { display: block; }
  html.js .site-nav { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; padding: 8px var(--gutter) 32px; background: var(--bone); border-top: 1px solid var(--hair); display: none; overflow-y: auto; }
  html.js .site-nav.is-open { display: block; }
  html.js .site-nav ul { flex-direction: column; gap: 0; }
  html.js .site-nav li { border-bottom: 1px solid var(--hair); }
  html.js .site-nav a { display: block; padding: 18px 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; letter-spacing: 0; text-transform: none; }
  html.js .site-nav a::after { display: none; }
  html:not(.js) .site-header .bar { height: auto; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 14px; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 760px) {
  .site-header .bar { height: var(--header); }
  .brand svg { width: 168px; }
  .site-nav ul { gap: 34px; }
  [id] { scroll-margin-top: calc(var(--header) + 24px); }
}

/* ------------------------------------------------------------------ the section bar on long pages */
.subnav { position: sticky; top: 64px; z-index: 15; background: var(--bone); border-bottom: 1px solid var(--hair); }
.subnav ul { display: flex; gap: 6px 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 14px 0 13px; white-space: nowrap; font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--slate); border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.subnav a:hover { color: var(--tyrian); }
.subnav a.is-current { color: var(--tyrian); border-bottom-color: var(--tyrian); }
body:has(.subnav) [id] { scroll-margin-top: 128px; }
@media (min-width: 760px) {
  .subnav { top: var(--header); }
  body:has(.subnav) [id] { scroll-margin-top: calc(var(--header) + 72px); }
}

/* ------------------------------------------------------------------ moving between pages: a short cross-fade where the browser supports it; the header holds still */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ------------------------------------------------------------------ home hero and globe */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .sub { color: var(--slate); margin-top: 28px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; } }

.globe-block { width: 100%; max-width: 600px; margin-inline: auto; }
.globe { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.globe canvas { width: 100%; height: 100%; touch-action: pan-y; }
.globe canvas.is-grab { cursor: grab; }
.globe canvas.is-point { cursor: pointer; }
.globe canvas.is-dragging { cursor: grabbing; }
.globe-tip { position: absolute; left: 0; top: 0; z-index: 3; min-width: 220px; max-width: 300px; padding: 14px 16px 12px; background: var(--bone); border: 1px solid var(--hair); opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); transition: opacity .15s var(--ease); }
.globe-tip.is-on { opacity: 1; pointer-events: auto; }
.globe-tip.is-below { transform: translate(-50%, 16px); }
.globe-tip ul { margin-top: 8px; }
.globe-tip li + li { margin-top: 6px; }
.globe-tip a { font-size: .95rem; line-height: 1.35; text-decoration: none; display: block; }
.globe-tip a:hover { text-decoration: underline; }
.globe-places { margin-top: 20px; border-top: 1px solid var(--hair); padding-top: 16px; }
.globe-places ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.globe-places button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); transition: color .3s var(--ease); }
.globe-places button:hover, .globe-places button.is-active { color: var(--tyrian); }

/* ------------------------------------------------------------------ Ink grounds (his option A): an Ink section flips the tokens to Bone type,
   warm grey secondary, Tyrian Light accent and dark hairlines, so every rule inside it reads correctly. Tyrian never sits on Ink. */
.ground-ink { --bone: #14181C; --ink: #EDE8DF; --slate: #9A9186; --tyrian: #BC7099; --hair: #2A2E34; --surface: #1E2328; background: var(--bone); color: var(--ink); }
.ground-ink ::selection { background: #BC7099; color: #14181C; }
.section.ground-ink + .section:not(.ground-ink), .section:not(.ground-ink) + .section.ground-ink { border-top: 0; }

/* ------------------------------------------------------------------ Home: the landing, a first screen that is a page in itself */
.landing { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100svh - 64px); padding-block: 40px 88px; }
.landing .wrap { position: relative; z-index: 2; width: 100%; }
.landing .display { font-size: clamp(2.6rem, 1rem + 3.4vw, 4.6rem); max-width: 14ch; }
.landing .sub { max-width: 30ch; margin-top: 24px; color: var(--slate); }
.landing-globe { position: absolute; z-index: 1; right: -2vw; top: 50%; width: min(84vh, 58vw); transform: translateY(-50%); }
.landing .globe-tip { text-align: left; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 1px; height: 52px; background: var(--hair); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ink); }
@media (min-width: 760px) { .landing { min-height: calc(100svh - var(--header)); } }
@media (max-width: 899px) {
  .landing { flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: 8px; }
  .landing-globe { position: relative; right: auto; top: auto; transform: none; width: min(100%, 460px); margin: 0 auto; }
}

/* the Contact page on Ink, filling the screen */
.contact-page { padding-block: clamp(72px, 10vw, 140px) clamp(88px, 12vw, 160px); }
.contact-details { margin-top: clamp(56px, 7vw, 96px); }

/* ------------------------------------------------------------------ Home: the opening, led by a rendering */
.opening { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.opening-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.opening .display { font-size: clamp(2.3rem, .9rem + 2.6vw, 3.4rem); }  /* sized so "The architecture" always fits its column on one line */
.opening .sub { color: var(--slate); margin-top: 22px; }
.opening .links { margin-top: 34px; }
.opening-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.opening-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.opening-img:hover img { transform: scale(1.02); }
.opening-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-top: 14px; }
.cap-name { font-size: 1.0625rem; line-height: 1.4; text-decoration: none; }
.cap-meta { display: block; margin-top: 2px; font-family: var(--sans); font-size: .76rem; letter-spacing: .04em; color: var(--slate); }
@media (min-width: 980px) { .opening-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 8px; }

/* the globe beside an index of every project by place */
.globe-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; align-items: center; margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair); }
.globe-section .globe-block { max-width: 440px; }
.place-index ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.place-row { border-top: 1px solid var(--hair); padding: 12px 0 14px; transition: border-color .2s var(--ease); }
.place-row ul { margin-top: 6px; }
.place-row li + li { margin-top: 4px; }
.place-row a { display: inline-block; padding-block: 2px; font-size: 1rem; line-height: 1.4; text-decoration: none; }
.place-row.is-active { border-top-color: var(--tyrian); }
.place-row.is-active .label { color: var(--tyrian); }
@media (min-width: 640px) { .place-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .globe-section { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* the four stages as routes into What we do */
.stage-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin-top: 36px; border-top: 1px solid var(--ink); }
.stage-link { display: block; padding: 20px 0 26px; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.stage-link .h3 { display: block; margin-top: 8px; font-size: 1.5rem; transition: color .2s var(--ease); }
.stage-link .ess { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.6; color: var(--slate); }
.stage-link:hover .h3 { color: var(--tyrian); }
@media (min-width: 720px) { .stage-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stage-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stage-link { border-bottom: 0; } }

.two-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 32px; }
.plain-list { margin-top: 10px; }
.plain-list li { border-top: 1px solid var(--hair); padding: 12px 0; }
.plain-list li:last-child { border-bottom: 1px solid var(--hair); }
.plain-list .muted { display: block; margin-top: 2px; font-size: 1rem; line-height: 1.55; }
@media (min-width: 900px) { .two-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the closing band on Ink: Bone type, Tyrian Light accents (Tyrian never sits on Ink) */
.band-ink { background: var(--ink); color: #EDE8DF; padding-block: clamp(64px, 8vw, 112px); }
.band-ink .label { color: #BC7099; }
.band-ink .textlink { color: #EDE8DF; border-color: #EDE8DF; }
.band-ink .textlink:hover { color: #BC7099; border-color: #BC7099; }
.band-ink ::selection { background: #BC7099; color: var(--ink); }
.band-ink + .site-footer { border-top: 0; }

/* ------------------------------------------------------------------ figures and columns */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; }
.figure { border-top: 1px solid var(--hair); padding-top: 18px; }
.figure .v { display: block; font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem); line-height: 1.05; color: var(--tyrian); font-variant-numeric: lining-nums; }
.figure .v--sm { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); }
.figure .l { display: block; margin-top: 12px; font-family: var(--sans); font-size: .76rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.col { border-top: 1px solid var(--hair); padding: 18px 0 26px; }
.col h3 { font-size: 1.25rem; line-height: 1.35; }
.col p { color: var(--slate); font-size: 1rem; line-height: 1.6; margin-top: 8px; }
@media (min-width: 720px) { .cols-2, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ renderings: strip and tiles */
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.strip-controls { display: flex; gap: 24px; align-items: baseline; }
.strip-controls button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); transition: color .3s var(--ease); }
.strip-controls button:hover { color: var(--tyrian); }
.strip-controls button:disabled { color: var(--hair); cursor: default; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; overscroll-behavior-x: contain; }
.strip > * { scroll-snap-align: start; }
@media (min-width: 640px) { .strip { grid-auto-columns: minmax(280px, 46%); } }
@media (min-width: 1024px) { .strip { grid-auto-columns: calc((100% - 48px) / 3); } }

.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 32px; margin-top: 28px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: block; color: var(--ink); text-decoration: none; }
.tile .img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.025); }
.tile .name { display: block; margin-top: 16px; font-size: 1.125rem; line-height: 1.4; transition: color .3s var(--ease); }
.tile:hover .name { color: var(--tyrian); }
.tile .place { display: block; margin-top: 6px; font-family: var(--sans); font-size: .76rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.tile .ill { display: block; margin-top: 4px; font-family: var(--sans); font-size: .76rem; line-height: 1.5; color: var(--slate); }
.group + .group { margin-top: clamp(64px, 8vw, 104px); }
.group-head { border-top: 1px solid var(--ink); padding-top: 14px; }

/* ------------------------------------------------------------------ what we do: the four stages */
.stages { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin-top: clamp(40px, 5vw, 64px); }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
html.js .stages::before { transform: scaleX(0); transition: transform .6s var(--ease); }
html.js .stages.is-in::before { transform: scaleX(1); }
.stage { border-top: 1px solid var(--hair); padding: 22px 0 32px; }
.stage .h3 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); margin-top: 10px; }
.stage p { font-size: 1rem; line-height: 1.6; margin-top: 14px; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stage { border-top: 0; padding-top: 26px; } }

/* ------------------------------------------------------------------ what we do: the advice */
.advice { border-top: 1px solid var(--hair); padding: 28px 0 34px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 32px; }
.advice:first-child { border-top-color: var(--ink); }
.advice .q { font-style: italic; color: var(--slate); font-size: 1.0625rem; line-height: 1.55; margin-top: 10px; }
.advice .gets { font-size: 1.0625rem; line-height: 1.6; }
.advice .where { margin-top: 16px; }
.advice .where ul { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; }
.advice .where a { font-family: var(--sans); font-size: .8125rem; line-height: 1.6; text-decoration: none; color: var(--ink); }
.advice .where a:hover { color: var(--tyrian); }
.group-sub { display: block; margin-top: 6px; color: var(--slate); font-size: 1rem; line-height: 1.45; }
@media (min-width: 1100px) { .advice { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); } }

/* ------------------------------------------------------------------ what we do: the track record */
.matrix-wrap { margin-top: clamp(32px, 4vw, 48px); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
.matrix { border-collapse: collapse; width: 100%; min-width: 880px; }
.matrix thead th { height: 196px; padding: 0 0 14px; vertical-align: bottom; text-align: left; border-bottom: 1px solid var(--ink); }
.matrix thead th.corner { width: 30%; }
.matrix thead .vh { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .875rem; line-height: 1.2; }
.matrix thead .vh a { text-decoration: none; }
.matrix thead .vh .c { margin-top: 8px; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.matrix tbody th { text-align: left; padding: 9px 18px 9px 0; font-size: .9375rem; line-height: 1.35; border-bottom: 1px solid var(--hair); position: sticky; left: 0; background: var(--bone); z-index: 1; }
.matrix tbody th a { text-decoration: none; }
.matrix tbody tr.grp th { padding-top: 22px; padding-bottom: 8px; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tyrian); }
.matrix td { text-align: center; border-bottom: 1px solid var(--hair); padding: 0; }
.matrix tbody tr:not(.grp):hover > * { background: var(--surface); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tyrian); vertical-align: middle; }

.matrix td:nth-child(2) .dot { --c: 0; }
.matrix td:nth-child(3) .dot { --c: 1; }
.matrix td:nth-child(4) .dot { --c: 2; }
.matrix td:nth-child(5) .dot { --c: 3; }
.matrix td:nth-child(6) .dot { --c: 4; }
.matrix td:nth-child(7) .dot { --c: 5; }
.matrix td:nth-child(8) .dot { --c: 6; }
.matrix td:nth-child(9) .dot { --c: 7; }
.matrix td:nth-child(10) .dot { --c: 8; }
.matrix td:nth-child(11) .dot { --c: 9; }
.matrix td:nth-child(12) .dot { --c: 10; }

/* ------------------------------------------------------------------ project page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs a { text-decoration: none; color: var(--slate); }
.crumbs a:hover { color: var(--tyrian); }
.place-line { margin-top: 18px; color: var(--slate); }
.hero-img { margin-top: clamp(36px, 5vw, 56px); }
.hero-img .img { aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img figcaption { margin-top: 10px; font-family: var(--sans); font-size: .8rem; color: var(--slate); }
.given li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--hair); padding: 12px 0; }
.given li:last-child { border-bottom: 1px solid var(--hair); }
.given a { text-decoration: none; font-size: 1.0625rem; }
.given .label { flex: none; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--ink); padding-top: 24px; }
.pager a { text-decoration: none; display: block; }
.pager .h3 { display: block; margin-top: 6px; font-size: 1.25rem; }
.pager .next { text-align: left; }
@media (min-width: 720px) { .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pager .next { text-align: right; } }

/* ------------------------------------------------------------------ about and contact */
.regions li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 32px; border-top: 1px solid var(--hair); padding: 14px 0; }
.regions li:last-child { border-bottom: 1px solid var(--hair); }
.regions .label { padding-top: .35em; }
@media (min-width: 720px) { .regions li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.plain li { border-top: 1px solid var(--hair); padding: 12px 0; }
.plain li:last-child { border-bottom: 1px solid var(--hair); }
.contact-big { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.3; text-decoration: none; }
.contact-big:hover { text-decoration: underline; }
.address { font-style: normal; line-height: 1.65; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--hair); padding-block: clamp(48px, 6vw, 72px) 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.foot-mark svg { width: 92px; height: auto; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.foot-nav a:hover { color: var(--tyrian); }
.foot-contact { margin-top: 22px; font-size: 1rem; }
.foot-contact a { text-decoration: none; }
.foot-addr { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); font-family: var(--sans); font-size: .76rem; line-height: 1.6; letter-spacing: .04em; color: var(--slate); max-width: none; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 32px; } }

/* ------------------------------------------------------------------ motion: one select motion per page (2026-11-02)
   Home: the globe. What we do: the stages' rule draws across. Projects: the renderings rise into place on first view.
   A project page: the rendering settles from a slight scale. About and Contact: a hairline draws under the title.
   Text, navigation and focus never move; nothing waits on an animation to be read or used. */
html.js .tile[data-reveal] .img { opacity: 0; transform: translateY(12px); transition: opacity .36s var(--ease), transform .42s var(--ease); transition-delay: calc(var(--d, 0ms) / 2); }
html.js .tile[data-reveal].is-in .img { opacity: 1; transform: none; }
html.js .hero-img img { animation: settle 1.2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }
.title-rule { height: 1px; margin-top: clamp(28px, 3.5vw, 44px); background: var(--slate); transform-origin: left; }
html.js .title-rule { animation: draw .7s var(--ease) .12s both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
.contact-page .title-rule + .contact-details { margin-top: clamp(40px, 5vw, 64px); }

/* ------------------------------------------------------------------ motion: reduced motion honoured */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .stages::before { transform: scaleX(1); transition: none; }
  html.js .tile[data-reveal] .img { opacity: 1; transform: none; transition: none; }
  html.js .hero-img img, html.js .title-rule { animation: none; }
  .tile img, .site-nav a::after { transition: none; }
  .tile:hover img { transform: none; }
}

@media print {
  .site-header, .site-footer .foot-nav, .globe-block, .strip-controls { display: none; }
  body { font-size: 11pt; }
  html.js .matrix .dot { opacity: 1; transform: none; }
}
