/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwRGFWfOw.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwYGFWfOw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwTGFWfOw.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwSGFWfOw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer tokens, base, atoms, layout, sections, scenes;

@layer tokens {
:root {
  --color-1: #ffffff;
  --color-2: #0b1019;
  --color-3: #1a2333;
  --color-4: #dbe4ec;
  --color-5: #9db1c4;
  --color-6: #536477;
  --color-7: #2f54e0;
  --color-8: #edf2f6;
  --font-1: "Geist", "Geist Fallback", system-ui, Arial, sans-serif;
  --radius-1: 999px;
  --shadow-1: 0 40px 90px -50px color-mix(in srgb, var(--color-3) 60%, transparent);
  --shadow-2: 0 40px 80px -30px color-mix(in srgb, var(--color-3) 45%, transparent);
  --space-1: clamp(20px, 3vw, 44px);
  --space-2: clamp(12px, 3.2vw, 48px);
  --space-3: clamp(40px, 7vw, 112px);
}
}

@layer base {
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"); font-weight: 550 799; size-adjust: 100.4%; ascent-override: 100.6%; descent-override: 29.9%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 549; size-adjust: 104.8%; ascent-override: 96.4%; descent-override: 28.6%; line-gap-override: 0%; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-4); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font-family: var(--font-1); font-size: 16px; line-height: 1.55; font-weight: 400;
  color: var(--color-2);
}
/* Page background: AutoCAD model-space grid, minor lines every 20px and major every 100px,
   over the mist tint. Fixed (body::before), so the grid stays still while the page scrolls. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(color-mix(in srgb, var(--color-3) 10%, transparent) 1px, transparent 1px) 0 0 / 100px 100px,
    linear-gradient(90deg, color-mix(in srgb, var(--color-3) 10%, transparent) 1px, transparent 1px) 0 0 / 100px 100px,
    linear-gradient(color-mix(in srgb, var(--color-3) 4.5%, transparent) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, color-mix(in srgb, var(--color-3) 4.5%, transparent) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(55% 45% at 78% 18%, color-mix(in srgb, var(--color-1) 70%, transparent), transparent 70%),
    linear-gradient(165deg, var(--color-8), var(--color-4) 45%, var(--color-5));
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
sup { font-size: .32em; vertical-align: top; position: relative; top: .35em; letter-spacing: 0; margin-left: .04em; }
:focus-visible { outline: 2px solid var(--color-7); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Text selection in the theme ink: near-black on light slides, inverted on navy ones. */
::selection { background: var(--color-2); color: var(--color-1); }
.m-slide-2 ::selection, .menu ::selection { background: var(--color-1); color: var(--color-2); }
/* Images can't be dragged out or long-pressed to save (right-click: design/scripts/image-guard.js). */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
/* No text selection on the site (click-and-drag draws a CAD selection box instead, Cursor.tsx);
   form fields stay selectable so visitors can edit what they type. Links don't drag a ghost. */
html { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
a { -webkit-user-drag: none; }
/* Thin scrollbars everywhere: a 4px bar in Chrome, Edge and Safari; Firefox has no custom
   width, so it gets its thinnest standard size. */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--color-2) 45%, transparent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-2); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--color-2) 45%, transparent) transparent; }
}
}

@layer atoms {
.m-text { font-family: var(--font-1); font-size: 16px; line-height: 1.55; font-weight: 400; letter-spacing: -0.005em; text-transform: none; font-style: normal; }

.m-text-2 { font-family: var(--font-1); font-size: clamp(56px, 10vw, 150px); line-height: .86; font-weight: 500; letter-spacing: -0.065em; text-transform: none; font-style: normal; }

.m-text-3 { font-family: var(--font-1); font-size: clamp(42px, 6.4vw, 96px); line-height: .92; font-weight: 500; letter-spacing: -0.055em; text-transform: none; font-style: normal; }

.m-text-4 { font-family: var(--font-1); font-size: 13px; line-height: 1.35; font-weight: 500; letter-spacing: 0; text-transform: none; font-style: normal; }

.m-text-5 { font-family: var(--font-1); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.38; font-weight: 400; letter-spacing: -0.015em; text-transform: none; font-style: normal; }

.m-text-6 { font-family: var(--font-1); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; text-transform: none; font-style: normal; }

.m-text-7 { font-family: var(--font-1); font-size: clamp(28px, 3.5vw, 50px); line-height: 1.04; font-weight: 500; letter-spacing: -0.045em; text-transform: none; font-style: normal; }

.m-btn, .m-btn-2 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; overflow: hidden;
  border: 0; border-radius: var(--radius-1); cursor: pointer;
  font-family: var(--font-1); font-size: 15px; line-height: 1; font-weight: 500; letter-spacing: -0.01em; text-transform: none; font-style: normal; white-space: nowrap;
}
.m-btn { background: var(--color-2); color: var(--color-1); }
.m-btn__label { display: block; }

.m-btn-2 { background: var(--color-1); color: var(--color-2); }

@keyframes m-streak-label { 0% { transform: none; } 44% { transform: translateX(140%) skewX(-24deg); } 45% { transform: translateX(-140%) skewX(-24deg); } 100% { transform: none; } }
@media (hover: hover) {
  .m-btn:hover .m-btn__label, .m-btn-2:hover .m-btn__label { animation: m-streak-label .55s cubic-bezier(.6, 0, .2, 1); }
}

.m-link {
  display: inline; padding-bottom: 2px; color: inherit;
  font-family: var(--font-1); font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; text-transform: none; font-style: normal;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
@keyframes m-streak-line { 0% { background-position: 0 100%; background-size: 100% 1px; } 45% { background-position: 100% 100%; background-size: 0 1px; } 46% { background-position: 0 100%; background-size: 0 1px; } 100% { background-position: 0 100%; background-size: 100% 1px; } }
@media (hover: hover) { .m-link:hover { animation: m-streak-line .6s cubic-bezier(.6, 0, .2, 1); } }

.m-iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; isolation: isolate;
}
.m-iconbtn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 50%; background: var(--color-2); transform: scale(0); transition: transform .35s cubic-bezier(.6, 0, .2, 1); }
.m-iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: color .35s; }
@media (hover: hover) { .m-iconbtn:hover::before { transform: scale(1); } .m-iconbtn:hover svg { color: var(--color-1); } }

.m-badge {
  display: inline-block; padding: 6px 11px; border-radius: var(--radius-1); background: var(--color-1); color: var(--color-2);
  font-family: var(--font-1); font-size: 13px; line-height: 1.2; font-weight: 500; letter-spacing: -0.005em; text-transform: none; font-style: normal;
}

.m-slide, .m-slide-2, .m-slide-3 { position: relative; box-shadow: var(--shadow-1); }
.m-slide { background: var(--color-1); color: var(--color-2); }
.m-slide::before, .m-slide::after, .m-slide-2::before, .m-slide-2::after, .m-slide-3::before, .m-slide-3::after {
  content: ""; position: absolute; width: var(--mark-size); height: var(--mark-size); pointer-events: none; z-index: 3; opacity: .7;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
/* The corner marks sit centred in the slide's padding (--slide-pad, var(--space-1) unless a
   slide sets its own), so on small screens they shrink and move out toward the corner rather
   than landing on the text. */
.m-slide, .m-slide-2, .m-slide-3 { --mark-size: min(13px, calc(var(--slide-pad, var(--space-1)) * .5)); --mark-inset: calc((var(--slide-pad, var(--space-1)) - var(--mark-size)) / 2); }
.m-slide::before, .m-slide-2::before, .m-slide-3::before { top: var(--mark-inset); right: var(--mark-inset); }
.m-slide::after, .m-slide-2::after, .m-slide-3::after { bottom: var(--mark-inset); left: var(--mark-inset); }

.m-slide-2 { background: var(--color-3); color: var(--color-1); }
.m-slide-2 :focus-visible { outline-color: var(--color-1); }

.m-slide-3 { background: linear-gradient(140deg, var(--color-1), var(--color-8) 55%, var(--color-4)); color: var(--color-2); }

/* 3D architecture model (src/design/ClayMass.tsx, drawn by scripts/arch-models.mjs). */
.m-clay { display: block; aspect-ratio: 1; filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--color-3) 22%, transparent)); }
.m-clay img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

.m-chip { display: block; aspect-ratio: 1; width: 1em; height: auto; border-radius: 50%; object-fit: cover; }

.m-field { display: grid; gap: 6px; }
.m-field__label { font-family: var(--font-1); font-size: 13px; line-height: 1.35; font-weight: 500; letter-spacing: 0; text-transform: none; font-style: normal; color: var(--color-6); }
.m-field input, .m-field select, .m-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--color-5); border-radius: 0; background: var(--color-8); color: var(--color-2);
  font-family: var(--font-1); font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: -0.005em; text-transform: none; font-style: normal;
}
.m-field textarea { min-height: 112px; resize: vertical; }
.m-field :focus-visible { outline-offset: 0; border-color: var(--color-7); }
}

@layer layout {
main { overflow-x: clip; }
.l-sec { position: relative; padding-inline: var(--space-2); margin-top: var(--space-3); }
}

@layer sections {
#navigation { position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none; }
#navigation .nav__bar {
  pointer-events: auto; margin: 12px var(--space-2) 0; height: 56px; padding: 0 8px 0 12px;
  display: flex; align-items: center; gap: 24px;
  background: color-mix(in srgb, var(--color-1) 72%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 0 28px 28px 0; box-shadow: var(--shadow-1); /* square on the left like the slides, round on the right around the button */
  transition: transform .45s cubic-bezier(.6, 0, .2, 1);
}
#navigation .nav__bar[data-hidden] { transform: translateY(calc(-100% - 16px)); }
#navigation .nav__logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; }
#navigation .nav__mark { width: auto; height: 40px; flex: none; }
#navigation .nav__line { color: var(--color-6); white-space: nowrap; }
/* The <nav> is the flex item, so it takes the free space: brand and line on the left,
   links and the button on the right, with the bar's padding as the only end gap. */
#navigation .nav__main { margin-left: auto; }
#navigation .nav__links { display: flex; gap: 26px; }
#navigation .nav__links .m-link { background-size: 0 1px; }
#navigation .nav__cta { min-height: 40px; padding: 0 18px; }
#navigation .nav__menu { display: none; }
#navigation .menu {
  pointer-events: auto; position: fixed; inset: 0; z-index: 2; padding: 84px var(--space-2) var(--space-2); overflow-y: auto;
  background: var(--color-3); color: var(--color-1);
}
#navigation .menu[hidden] { display: none; }
#navigation .menu__close { position: absolute; top: 18px; right: var(--space-2); }
#navigation .menu__links { display: grid; gap: 4px; }
#navigation .menu__links a { display: block; padding: 6px 0; font-size: clamp(40px, 12vw, 64px); line-height: 1; }
#navigation .menu__cta { margin-top: 32px; }
@media (max-width: 1100px) { #navigation .nav__line { display: none; } }
@media (max-width: 900px) {
  #navigation .nav__main, #navigation .nav__cta { display: none; }
  #navigation .nav__menu { display: inline-grid; margin-left: auto; }
  #navigation .nav__bar { padding-right: 6px; }
}
}

@layer sections {
#opening { position: relative; }
#opening .op-s1 { position: sticky; top: 0; height: 100svh; padding: 84px var(--space-2) var(--space-2); }
#opening .op-ground {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-5) 85%, transparent), color-mix(in srgb, var(--color-5) 30%, transparent) 70%, transparent);
}
#opening .op-frame { position: relative; height: 100%; }
#opening .op-slide { position: relative; height: 100%; overflow: hidden; container-type: inline-size; }
/* The mask fades the whole photo layer (image and overlay together) to transparent before
   its right edge. While scrolling, the photo scales and blurs (opening-photo), and the image
   and its overlay each antialias that edge separately, which left a light 1px seam; with a
   transparent edge there is nothing to seam. */
#opening .op-photo { position: absolute; inset: 0 42% 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 97%); mask-image: linear-gradient(90deg, #000 78%, transparent 97%); }
#opening .op-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
#opening .op-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-3) 30%, transparent) 0%, color-mix(in srgb, var(--color-3) 45%, transparent) 64%, var(--color-3) 92%);
}
#opening .op-dim { position: absolute; inset: 0; z-index: 4; background: var(--color-3); opacity: 0; pointer-events: none; }
#opening .op-ring {
  position: absolute; z-index: 1; width: 64cqw; aspect-ratio: 1; left: 50%; top: 50%; margin: -32cqw 0 0 -24cqw;
  border: 1px solid color-mix(in srgb, var(--color-1) 28%, transparent); border-radius: 50%; pointer-events: none;
}
#opening .op-ring__orb { position: absolute; width: 4.6cqw; left: 50%; top: 0; margin: -2.3cqw 0 0 -2.3cqw; }
#opening .op-title { position: absolute; z-index: 2; left: 5.5%; top: 14%; right: 3%; color: var(--color-1); font-size: 10.4cqw; }
/* Each line is sized from its --len plus its own indent (--indent, in em of the line), so a
   long indented line still fits the slide. */
#opening .op-line { --indent: 0; display: block; width: max-content; max-width: 100%; margin-left: calc(var(--indent) * 1em); font-size: min(1em, calc(86cqw / (var(--len) * .52 + var(--indent)))); }
#opening .op-line--2 { --indent: 2.7; }
#opening .op-line--3 { --indent: 1.25; }
#opening .op-line__in { display: block; }
#opening .op-meta { position: absolute; z-index: 2; right: var(--space-1); bottom: var(--space-1); width: min(400px, 36%); display: grid; gap: 22px; }
#opening .op-meta .m-text-5 { color: var(--color-1); }
#opening .op-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
#opening .op-s2 { position: relative; z-index: 2; min-height: 100svh; padding: 84px var(--space-2) var(--space-2); display: flex; }
#opening .op-card {
  position: relative; width: 74%; min-height: calc(100svh - 84px - var(--space-2)); padding: var(--space-1);
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px; container-type: inline-size;
}
#opening .op-title2 { position: relative; z-index: 2; font-size: min(15cqw, calc(92cqw / (var(--len) * .5))); }
#opening .op-orb { position: absolute; z-index: 1; width: clamp(220px, 27vw, 400px); right: -9%; top: 27%; }
#opening .op-chip { position: absolute; z-index: 2; font-size: clamp(72px, 7vw, 104px); left: 47%; top: 50%; display: grid; place-items: center; overflow: hidden; }
#opening .op-chip img { width: 100%; height: 100%; max-width: none; flex: none; object-fit: cover; }
#opening .op-cols { position: relative; z-index: 2; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; max-width: 600px; }
#opening .op-cols .m-text { color: var(--color-6); }
#opening .op-cols .m-link { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 767px) {
  #opening .op-s1 { padding-top: 76px; }
  #opening .op-photo { inset: 0 0 46% 0; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 97%); mask-image: linear-gradient(180deg, #000 78%, transparent 97%); }
  #opening .op-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--color-3) 30%, transparent), color-mix(in srgb, var(--color-3) 64%, transparent) 42%, color-mix(in srgb, var(--color-3) 72%, transparent) 75%, var(--color-3)); }
  #opening .op-ring { width: 120cqw; margin: -60cqw 0 0 -70cqw; top: 46%; }
  #opening .op-ring__orb { width: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; }
  #opening .op-title { top: 30%; left: 6%; font-size: 15.5cqw; }
  #opening .op-line { font-size: min(1em, calc(88cqw / (var(--len) * .52 + var(--indent)))); }
  #opening .op-line--2 { --indent: 1.3; }
  #opening .op-line--3 { --indent: .6; }
  #opening .op-meta { left: var(--space-1); width: auto; gap: 18px; }
  #opening .op-s2 { padding-top: 76px; }
  #opening .op-card { width: 100%; min-height: calc(100svh - 76px - var(--space-2)); }
  #opening .op-title2 { font-size: min(19cqw, calc(92cqw / (var(--len) * .5))); }
  #opening .op-card { padding-bottom: 44px; }
  #opening .op-orb { width: 62vw; right: calc(4px - var(--space-2)); top: 19%; } /* past the card edge, short of the screen edge */
  #opening .op-chip { font-size: 64px; left: var(--space-1); top: 30%; }
  #opening .op-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes op-frame-in { from { clip-path: inset(3% 2.5% 3% 2.5%); } to { clip-path: inset(0); } }
  @keyframes op-line-in { from { transform: translateX(-.45em); } to { transform: none; } }
  @keyframes op-orbit { to { transform: rotate(360deg); } }
  @keyframes op-pan { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.12) translateX(-3%); } }
  #opening .op-frame { animation: op-frame-in 1s cubic-bezier(.2, .7, .1, 1) backwards; }
  #opening .op-line__in { animation: op-line-in 1s cubic-bezier(.2, .7, .1, 1) backwards; }
  #opening .op-line--2 .op-line__in { animation-delay: .08s; }
  #opening .op-line--3 .op-line__in { animation-delay: .16s; }
  #opening .op-ring { animation: op-orbit 26s linear infinite; }
  #opening .op-photo img { animation: op-pan 9s ease-in-out infinite alternate; }
  #opening .op-s1[data-paused] .op-ring, #opening .op-s1[data-paused] .op-photo img { animation-play-state: paused; }
}
#opening .op-meta .op-kicker { color: color-mix(in srgb, var(--color-1) 72%, transparent); }
}

@layer sections {
#renders .ds-slide { padding: var(--space-1); container-type: inline-size; }
#renders .ds-title { display: flex; justify-content: space-between; gap: .3em; padding: 18px 0 clamp(28px, 4vw, 56px); font-size: min(9.6cqw, calc(88cqw / (var(--len) * .34))); }
#renders .ds-grid {
  position: relative; display: grid; gap: clamp(10px, 1.3vw, 18px);
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(110px, 11.5vw, 150px);
  grid-template-areas:
    "lift mark run run copy ride"
    "swim swim run run copy ride"
    "swim swim run run kit ride"
    "note note court court link .";
}
#renders .ds-tile { position: relative; overflow: hidden; background: var(--color-8); }
#renders .ds-tile img { width: 100%; height: 100%; object-fit: cover; }
#renders .ds-tile .m-badge { position: absolute; left: 10px; bottom: 10px; }
#renders .ds-tile--lift { grid-area: lift; }
#renders .ds-tile--mark { grid-area: mark; display: grid; place-items: center; color: var(--color-6); }
#renders .ds-tile--mark svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.2; fill: none; }
#renders .ds-tile--run { grid-area: run; }
#renders .ds-tile--ride { grid-area: ride; }
#renders .ds-tile--swim { grid-area: swim; }
#renders .ds-tile--kit { grid-area: kit; }
#renders .ds-tile--court { grid-area: court; }
#renders .ds-tile--link { grid-area: link; display: grid; align-content: space-between; padding: 14px; background: color-mix(in srgb, var(--color-5) 35%, var(--color-8)); }
#renders .ds-tile--link svg { width: 52px; height: 52px; stroke: var(--color-2); stroke-width: 1; fill: none; }
#renders .ds-copy { grid-area: copy; display: grid; align-content: start; gap: 12px; padding-top: 4px; position: relative; z-index: 9; background: var(--color-1); }
#renders .ds-copy .m-text { font-size: 14px; color: var(--color-6); }
#renders .ds-note { grid-area: note; align-self: end; max-width: 380px; }
@media (hover: hover) { #renders .ds-tile--link:hover { background: var(--color-5); } }
@media (max-width: 860px) {
  #renders .ds-title { flex-wrap: wrap; justify-content: flex-start; gap: 0 .3em; font-size: 15cqw; }
  #renders .ds-grid {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 118px;
    grid-template-areas: "run run" "run run" "lift mark" "swim swim" "ride kit" "ride link" "court court" "copy copy" "note note";
  }
  #renders .ds-copy, #renders .ds-note { padding-top: 12px; }
  #renders .ds-grid > .ds-copy, #renders .ds-grid > .ds-note { grid-row: auto; }
}
}

@layer sections {
#lighting .lb-slide { width: min(100%, 1180px); margin-left: auto; padding: var(--space-1); overflow: clip; /* the notes and their slide-in never show past the slide */ display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
#lighting .lb-text { display: grid; gap: 22px; align-content: start; justify-items: start; padding: 18px 0; }
#lighting .lb-text .m-text { color: var(--color-5); max-width: 420px; }
#lighting .lb-stage { position: relative; width: min(90%, 600px); /* room for the notes, which sit just outside the ring */ justify-self: center; aspect-ratio: 1; container-type: inline-size; }
#lighting .lb-lens { position: absolute; inset: 20cqw; overflow: hidden; clip-path: circle(50% at 50% 50%); }
#lighting .lb-lens img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
#lighting .lb-ring { position: absolute; inset: 4cqw; width: 92cqw; height: 92cqw; overflow: visible; }
#lighting .lb-ring circle { fill: none; stroke: color-mix(in srgb, var(--color-1) 35%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
#lighting .lb-note {
  position: absolute; left: 50%; top: 50%; width: 30cqw; padding: 10px 12px; display: grid; gap: 4px;
  background: var(--color-3); transform-origin: 0 0;
  transform: rotate(var(--a)) translateX(46cqw) rotate(calc(var(--a) * -1)) translate(-50%, -50%);
}
#lighting .lb-note .m-text-6 { font-size: clamp(17px, 1.6vw, 22px); }
#lighting .lb-note .m-text-4 { color: var(--color-5); }
@media (max-width: 860px) {
  #lighting .lb-slide { grid-template-columns: 1fr; }
  #lighting .lb-stage { width: 100%; aspect-ratio: auto; display: grid; gap: 16px; }
  #lighting .lb-lens { position: relative; inset: auto; width: 76cqw; aspect-ratio: 1; margin: 12cqw auto; }
  #lighting .lb-ring { inset: 4cqw auto auto 4cqw; } /* centred on the lens: 12cqw margin + 38cqw = 4cqw + 46cqw */
  #lighting .lb-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #lighting .lb-note { position: static; width: auto; transform: none; padding: 12px 0 0; border-top: 1px solid color-mix(in srgb, var(--color-1) 30%, transparent); }
}
}

@layer sections {
#projects { padding-inline: 0; }
#projects .wk-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); padding: 84px 0 var(--space-2); min-height: 100svh; align-content: center; }
#projects .wk-head { padding-inline: var(--space-2); display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 20px 48px; align-items: end; }
#projects .wk-view { min-width: 0; overflow-x: auto; padding-inline: var(--space-2); }
#projects[data-scrubbed] { height: var(--wk-height, auto); }
#projects[data-scrubbed] .wk-stage { position: sticky; top: 0; }
#projects[data-scrubbed] .wk-view { overflow: visible; }
#projects .wk-track { display: flex; gap: clamp(12px, 1.6vw, 24px); width: max-content; padding-bottom: 8px; }
#projects .wk-day { --slide-pad: 22px; width: clamp(250px, 24vw, 330px); min-height: clamp(360px, 46vh, 440px); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
#projects .wk-day--rest { background: var(--color-8); }
#projects .wk-name { color: var(--color-6); }
#projects .wk-photo { margin-top: auto; overflow: hidden; aspect-ratio: 16 / 10; }
#projects .wk-photo img { width: 100%; height: 100%; object-fit: cover; }
#projects .wk-day .m-text { color: var(--color-6); font-size: 15px; }
#projects .wk-time { color: var(--color-2); }
#projects .wk-progress { margin-inline: var(--space-2); height: 1px; background: color-mix(in srgb, var(--color-2) 18%, transparent); }
#projects .wk-progress span { display: block; height: 100%; background: var(--color-2); transform-origin: 0 50%; }
@media (max-width: 860px) {
  #projects .wk-head { grid-template-columns: 1fr; }
  #projects .wk-day { width: 78vw; min-height: 380px; }
}
#projects .wk-link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
#projects .wk-link:focus-visible { outline: none; }
#projects .wk-day:has(.wk-link:focus-visible) { outline: 2px solid var(--color-7); outline-offset: 3px; }
}

@layer sections {
#values .mt-slide { width: min(100%, 1180px); margin-left: auto; display: grid; grid-template-columns: minmax(240px, 30%) 1fr; min-height: 620px; }
#values .mt-side { position: relative; overflow: hidden; padding: var(--space-1); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: linear-gradient(165deg, var(--color-8), var(--color-4)); }
/* The KATO model sits in the flow above the steps, so the panel grows instead of overlapping. */
#values .mt-orb { position: relative; width: 88%; align-self: center; aspect-ratio: 4 / 3; flex: none; }
#values .mt-steps { position: relative; display: grid; gap: 22px; }
#values .mt-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; }
#values .mt-num { grid-row: span 2; padding-top: 5px; color: var(--color-6); }
#values .mt-steps .m-text { color: var(--color-6); font-size: 15px; }
#values .mt-main { padding: calc(var(--space-1) + 12px) var(--space-1) var(--space-1) clamp(24px, 4vw, 64px); display: grid; grid-template-rows: 1fr auto; gap: 48px; }
/* The longest row ("Communicate (chip) quality") is about 10.4em: cap the heading at the
   column width (container units of .mt-main) so it never runs past the slide. */
#values .mt-main { container-type: inline-size; }
#values .mt-title { font-size: min(clamp(34px, 6.1vw, 92px), 9.4cqw); }
#values .mt-row { display: block; white-space: nowrap; }
#values .mt-row:nth-child(2) { padding-left: 1.3em; }
#values .mt-row:nth-child(3) { padding-left: .55em; }
#values .mt-gap { display: inline-block; vertical-align: -.1em; margin: 0 .02em; }
#values .mt-chip { font-size: .84em; }
#values .mt-after { display: inline-block; }
#values .mt-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
#values .mt-foot .m-text-5 { max-width: 470px; }
@media (max-width: 860px) {
  #values .mt-slide { grid-template-columns: 1fr; min-height: 0; }
  #values .mt-side { order: 2; }
  #values .mt-orb { width: min(100%, 360px); }
  #values .mt-title { font-size: min(9.6vw, 9.4cqw); }
  #values .mt-main { padding: 36px var(--space-1) var(--space-1); gap: 32px; }
  #values .mt-foot { flex-direction: column; align-items: flex-start; }
}
}

@layer sections {
#services .rc-slide { padding: var(--space-1); display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(28px, 4vw, 64px); }
#services .rc-text { display: grid; gap: 28px; align-content: start; padding-top: 18px; }
#services .rc-row { display: block; }
#services .rc-row:nth-child(2) { padding-left: 1.2em; }
#services .rc-row:nth-child(3) { padding-left: .6em; }
#services .rc-text .m-text-5 { max-width: 520px; color: var(--color-6); }
#services .rc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; max-width: 620px; }
#services .rc-list li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--color-5); }
#services .rc-list .m-text { color: var(--color-6); font-size: 15px; }
#services .rc-window { position: relative; overflow: hidden; aspect-ratio: 4 / 5; align-self: stretch; }
/* The Governor's Island render fills the whole window (portrait 4:5, like the window). */
#services .rc-sea { position: absolute; inset: 0; }
#services .rc-sea img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 860px) {
  #services .rc-slide { grid-template-columns: 1fr; }
  #services .rc-window { aspect-ratio: 1; order: -1; }
  #services .rc-list { grid-template-columns: 1fr; }
}
}

@layer sections {
#engagement .mb-slide { width: min(100%, 1180px); margin-left: auto; padding: var(--space-1); overflow: hidden; }
#engagement .mb-head { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 20px 48px; align-items: end; padding: 18px 0 clamp(32px, 4vw, 56px); }
#engagement .mb-head .m-text-5 { color: var(--color-6); }
#engagement .mb-plans { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--color-5); }
#engagement .mb-plan { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--color-1); }
#engagement .mb-plan + .mb-plan { border-left: 1px solid var(--color-5); }
#engagement .mb-plan--featured { background: var(--color-3); color: var(--color-1); border-left-color: var(--color-3); }
#engagement .mb-plan--featured :focus-visible { outline-color: var(--color-1); }
#engagement .mb-price { display: flex; align-items: baseline; gap: 8px; }
#engagement .mb-price .m-text-3 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1; }
#engagement .mb-for { color: var(--color-6); }
#engagement .mb-plan--featured .mb-for { color: var(--color-5); }
#engagement .mb-inc { display: grid; margin-bottom: auto; }
#engagement .mb-inc li { padding: 10px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 15px; }
#engagement .mb-plan .m-btn, #engagement .mb-plan .m-btn-2 { align-self: flex-start; }
@media (max-width: 860px) {
  #engagement .mb-head { grid-template-columns: 1fr; }
  #engagement .mb-plans { grid-template-columns: 1fr; }
  #engagement .mb-plan + .mb-plan { border-left: 0; border-top: 1px solid var(--color-5); }
}
}

@layer sections {
#faq .fq-slide { width: min(100%, 1080px); padding: var(--space-1); }
#faq .fq-head { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 20px 48px; align-items: end; padding: 18px 0 clamp(32px, 4vw, 56px); }
#faq .fq-head .m-text { color: var(--color-6); }
#faq .fq-body { display: grid; grid-template-columns: clamp(36px, 5vw, 72px) 1fr; gap: clamp(16px, 3vw, 40px); }
#faq .fq-rail { position: relative; justify-self: center; width: 1px; background: var(--color-5); }
#faq .fq-ball { position: absolute; left: 50%; top: 0; width: clamp(30px, 3.4vw, 44px); margin-left: calc(clamp(30px, 3.4vw, 44px) / -2); }
#faq .fq-list { border-top: 1px solid var(--color-5); }
#faq .fq-item { border-bottom: 1px solid var(--color-5); }
#faq .fq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; }
#faq .fq-item summary::-webkit-details-marker { display: none; }
#faq .fq-item summary::after { content: ""; flex: none; width: 13px; height: 13px; margin-top: .4em; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .3s; }
#faq .fq-item[open] summary::after { transform: rotate(45deg); }
#faq .fq-item .m-text { max-width: 640px; padding-bottom: 22px; color: var(--color-6); }
@media (max-width: 860px) { #faq .fq-head { grid-template-columns: 1fr; } #faq .fq-body { grid-template-columns: 28px 1fr; gap: 14px; } #faq .fq-ball { width: 26px; margin-left: -13px; } }
}

@layer sections {
#contact .ct-slide { padding: var(--space-1); }
#contact .ct-run { position: relative; display: flex; justify-content: flex-end; padding: 18px 0 18px; }
#contact .ct-title { font-size: clamp(38px, 7.4vw, 112px); white-space: nowrap; }
#contact .ct-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-2); transform-origin: 0 50%; }
#contact .ct-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 40px 64px; padding-top: clamp(32px, 4vw, 56px); }
#contact .ct-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
#contact .ct-info dt { color: var(--color-6); margin-bottom: 6px; }
#contact .ct-info dd { margin: 0; }
#contact .ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contact .ct-form .ct-wide, #contact .ct-form .ct-send { grid-column: 1 / -1; }
#contact .ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
#contact .ct-status { color: var(--color-6); }
@media (max-width: 860px) {
  #contact .ct-title { font-size: 10vw; }
  #contact .ct-grid, #contact .ct-info, #contact .ct-form { grid-template-columns: 1fr; }
}
#contact .ct-phones { display: grid; gap: 4px; }
#contact .ct-phones .m-text-4 { color: var(--color-6); }
}
@layer sections {
/* Project type: custom dropdown in the field style (system.css .m-field input). */
/* Above the following fields: each form item is animated (data-vx-items), so each forms its
   own stacking context and later ones would paint over the open list. */
#contact .ct-select { position: relative; z-index: 10; }
#contact .ct-select__button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--color-5); background: var(--color-8); color: var(--color-2); font: inherit; font-size: 16px; line-height: 1.4; text-align: left; cursor: pointer;
}
#contact .ct-select__button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s ease; }
#contact .ct-select__button[aria-expanded="true"] { border-color: var(--color-7); }
#contact .ct-select__button[aria-expanded="true"] svg { rotate: 180deg; }
#contact .ct-select__button:focus-visible { outline-offset: 0; border-color: var(--color-7); }
#contact .ct-select__list {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; max-height: 280px; overflow-y: auto; padding: 6px;
  background: var(--color-1); border: 1px solid var(--color-5); box-shadow: var(--shadow-1); outline: none;
}
#contact .ct-select__list[hidden] { display: none; }
#contact .ct-select__option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; cursor: pointer; color: var(--color-2); }
#contact .ct-select__option[data-active] { background: var(--color-8); }
#contact .ct-select__option[aria-selected="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-3); }
}

@layer sections {
#footer { padding: var(--space-3) var(--space-2) var(--space-2); }
#footer .ft-slide { padding: var(--space-1); container-type: inline-size; overflow: hidden; }
/* .43: one --len unit of the mixed-case wordmark (src/design/len.ts, Geist 500 with -0.065em tracking) is about .425em wide (.46 left it 8% short of the width). */
#footer .ft-word { display: block; pointer-events: none; width: max-content; padding: 18px 0 calc(clamp(28px, 4vw, 56px) + .08em); font-size: calc(97cqw / (var(--len) * .43)); /* +.08em: the "y" tail clears the rule at every size */ line-height: .8; white-space: nowrap; }
/* Sun study (footer.script.js writes the shadow while the pointer is over the word). */
#footer .ft-mark { position: relative; }
#footer .ft-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 32px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--color-1) 25%, transparent); }
#footer .ft-cols .m-text, #footer .ft-cols .m-text-4 { color: var(--color-5); }
#footer .ft-cols ul { display: grid; gap: 8px; align-content: start; }
#footer .ft-legal { align-self: end; }
@media (max-width: 860px) { #footer .ft-cols { grid-template-columns: 1fr 1fr; } #footer .ft-cols > .m-text, #footer .ft-legal { grid-column: 1 / -1; } }
}

@layer sections {
/* Projects index: a navy title slide, then one white slide per group, stepping left and
   right down the page like the home sections. */
#projects-index { display: grid; gap: var(--space-3); padding: 96px var(--space-2) 0; }
#projects-index .pi__head { padding: clamp(28px, 5vw, 72px) var(--space-1) var(--space-1); display: grid; gap: 18px; container-type: inline-size; overflow: hidden; }
#projects-index .pi__head > .m-text-4 { color: var(--color-5); }
#projects-index .pi__title { font-size: min(clamp(96px, 17vw, 260px), calc(96cqw / (var(--len) * .5))); line-height: .86; }
#projects-index .pi__intro { max-width: 46ch; color: color-mix(in srgb, var(--color-1) 82%, transparent); }
#projects-index .pi__group { width: min(100%, 1180px); padding: var(--space-1); display: grid; gap: clamp(28px, 4vw, 48px); }
#projects-index .pi__group--interior { justify-self: end; }
#projects-index .pi__group-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 16px 40px; align-items: end; }
#projects-index .pi__group-head .m-text-5 { color: var(--color-6); }
#projects-index .pi__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 24px); }
#projects-index .pi__link { display: grid; gap: 10px; }
#projects-index .pi__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-8); }
#projects-index .pi__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2, .7, .1, 1); }
#projects-index .pi__meta { color: var(--color-6); }
#projects-index .pi__view { justify-self: start; font-size: 14px; }
@media (hover: hover) { #projects-index .pi__link:hover .pi__photo img { scale: 1.04; } }
@media (max-width: 860px) {
  #projects-index { padding-top: 84px; }
  #projects-index .pi__group-head { grid-template-columns: 1fr; }
}
}

@layer sections {
/* One project page: navy title slide with the facts, a white slide of renders, a pale
   contact slide and the previous/next pager. */
#project { display: grid; gap: var(--space-3); padding: 96px var(--space-2) 0; }
#project .pj__head { padding: var(--space-1); padding-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 64px); align-items: end; }
#project .pj__back { grid-column: 1 / -1; justify-self: start; }
#project .pj__kicker { grid-column: 1 / -1; color: var(--color-5); }
#project .pj__title { grid-column: 1; overflow-wrap: anywhere; }
#project .pj__summary { grid-column: 2; color: color-mix(in srgb, var(--color-1) 82%, transparent); }
#project .pj__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid color-mix(in srgb, var(--color-1) 25%, transparent); }
#project .pj__fact { display: grid; gap: 4px; padding: 16px 16px 0 0; }
#project .pj__fact dt { color: var(--color-5); }
#project .pj__media { width: min(100%, 1180px); justify-self: end; padding: var(--space-1); display: grid; gap: clamp(18px, 2vw, 24px); }
#project .pj__media figure { display: grid; gap: 8px; }
#project .pj__media figcaption { color: var(--color-6); }
#project .pj__lead img { width: 100%; height: auto; max-height: 92svh; object-fit: contain; background: var(--color-8); }
#project .pj__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 24px); }
#project .pj__shots--single { grid-template-columns: 1fr; }
#project .pj__shot img { width: 100%; height: auto; background: var(--color-8); }
#project .pj__cta { width: min(100%, 1040px); padding: clamp(28px, 5vw, 72px) var(--space-1); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
#project .pj__pager { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
#project .pj__step { display: grid; gap: 8px; align-content: start; padding: var(--space-1); }
#project .pj__step .m-text-4 { color: var(--color-6); }
#project .pj__step--next { text-align: right; }
@media (hover: hover) { #project .pj__step:hover .m-text-6 { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; } }
@media (max-width: 860px) {
  #project { padding-top: 84px; }
  #project .pj__head { grid-template-columns: 1fr; }
  #project .pj__summary { grid-column: 1; }
  #project .pj__shots { grid-template-columns: 1fr; }
  #project .pj__pager { grid-template-columns: 1fr; }
  #project .pj__step--next { text-align: left; }
}
}

@layer sections {
#not-found { min-height: 100svh; display: grid; place-items: center; padding: 96px var(--space-2) var(--space-2); }
#not-found .nf__slide { width: min(100%, 1040px); padding: clamp(32px, 6vw, 88px) var(--space-1); display: grid; gap: 24px; justify-items: start; container-type: inline-size; }
#not-found .nf__title { font-size: min(clamp(96px, 22vw, 320px), calc(96cqw / (var(--len) * .5))); }
#not-found .m-text-5 { color: var(--color-6); }
}


@layer sections {
img[data-lightbox] { cursor: zoom-in; }
img[data-lightbox]:focus-visible { outline: 2px solid var(--color-7); outline-offset: 3px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--color-3) 96%, transparent); color: var(--color-1); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--space-1); }
.lightbox__count { color: var(--color-5); }
.lightbox .m-iconbtn { color: var(--color-1); }
.lightbox .m-iconbtn::before { background: var(--color-1); }
@media (hover: hover) { .lightbox .m-iconbtn:hover svg { color: var(--color-3); } }
.lightbox :focus-visible { outline-color: var(--color-1); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(64px, 8vw, 120px); }
.lightbox__img { position: relative; z-index: 1; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain; background: var(--color-1); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: var(--space-1); }
.lightbox__nav--next { right: var(--space-1); }
.lightbox__caption { min-height: 1.6em; padding: 14px var(--space-1) 22px; text-align: center; color: var(--color-5); }
@media (max-width: 760px) {
  .lightbox__stage { padding: 0 var(--space-1); }
  .lightbox__nav--prev { left: calc(var(--space-1) + 8px); }
  .lightbox__nav--next { right: calc(var(--space-1) + 8px); }
}
}

@layer sections {
/* The native cursor is hidden only once Cursor.tsx has started (it sets data-cursor). */
html[data-cursor], html[data-cursor] * { cursor: none !important; }

/* The cursor: a zero-size point at the pointer; the crosshair's parts are centred on it. */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; width: 0; height: 0;
  pointer-events: none;
  translate: var(--cursor-x, -100px) var(--cursor-y, -100px);
  opacity: 0; transition: opacity .35s ease;
}
.cursor[data-visible="true"] { opacity: 1; }

/* The crosshair, after AutoCAD's drawing-area cursor: thin crosshair lines that stop at
   a square pickbox, X line tinted red and Y green (AutoCAD's axis tint), and the Dynamic
   Input tooltip beside it: the coordinates in two entry boxes, the active one highlighted.
   Over clickable things the pickbox grows and fills, like AutoCAD's selection preview.
   Each part carries its own contrast so it reads on white and navy. */
.cursor { --ease: cubic-bezier(.2, .7, .1, 1); --arm: 38px; --box: 10px; }
.cursor__x, .cursor__y, .cursor__pick { position: absolute; left: 0; top: 0; transition: scale .3s var(--ease), width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s ease; }
.cursor__x, .cursor__y { --c: #e5484d; }
/* crisp contrast: a 1px white line beside each coloured line (no blur filters or sub-pixel shadows) */
.cursor__x::after, .cursor__y::after { content: ""; position: absolute; inset: 0; background: inherit; filter: brightness(0) invert(1); opacity: .55; }
.cursor__x::after { translate: 0 1px; }
.cursor__y::after { translate: 1px 0; }
.cursor__y { --c: #30a46c; }
/* each line: two arms from the pickbox edge outward, drawn as one gradient with a gap */
.cursor__x { width: calc(var(--arm) * 2); height: 1px; margin: 0 0 0 calc(var(--arm) * -1); background: linear-gradient(90deg, var(--c) calc(50% - var(--box) / 2), transparent 0 calc(50% + var(--box) / 2), var(--c) 0); }
.cursor__y { width: 1px; height: calc(var(--arm) * 2); margin: calc(var(--arm) * -1) 0 0 0; background: linear-gradient(180deg, var(--c) calc(50% - var(--box) / 2), transparent 0 calc(50% + var(--box) / 2), var(--c) 0); }
.cursor__pick { width: var(--box); height: var(--box); margin: calc(var(--box) / -2) 0 0 calc(var(--box) / -2); border: 1px solid #fff; outline: 1px solid rgb(26 35 51 / .85); outline-offset: 0; }
.cursor__xy { position: absolute; left: 18px; top: 18px; display: flex; gap: 3px; padding: 3px; white-space: nowrap; background: rgb(240 243 246 / .96); border: 1px solid #9aa8b6; box-shadow: 0 1px 0 rgb(26 35 51 / .2); font: 400 11px/1 "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #1a2333; -webkit-font-smoothing: antialiased; }
.cursor__field { min-width: 74px; padding: 3px 5px; background: #fff; border: 1px solid #b7c2cc; text-align: right; }
.cursor__field--on { background: #2f6fd6; border-color: #2f6fd6; color: #fff; }
.cursor[data-hovering="true"] { --box: 16px; }
.cursor[data-hovering="true"] .cursor__pick { background: rgb(47 111 214 / .25); }
.cursor[data-hovering="true"] .cursor__xy { opacity: 0; }
.cursor__xy { transition: opacity .2s ease; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* CAD selection box drawn by click and drag (Cursor.tsx), in AutoCAD's colours:
   window (left to right) blue and solid, crossing (right to left) green and dashed. */
.cursor-select { position: fixed; z-index: 9997; pointer-events: none; border: 1px solid #2f6fd6; background: rgb(47 111 214 / .14); }
.cursor-select[data-mode="crossing"] { border: 1px dashed #30a46c; background: rgb(48 164 108 / .14); }
.cursor-select[hidden] { display: none; }
}
