/* TAU projektai, v9 „Mastelis“ — a light Swiss sheet, Clash Grotesk + General Sans, a plan that changes scale.
   Roles are documented in DESIGN.md. */

@font-face {
  font-family: "Clash Grotesk";
  src: url("fonts/clash.woff?v=10d") format("woff");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("fonts/general.woff?v=10d") format("woff");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("fonts/azeret.woff?v=10d") format("woff");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --stone: #e8e8e5;
  --ink: #111111;
  --ink-2: #3a3a38;
  --ink-3: #6c6c68;
  --rule: rgba(17, 17, 17, .13);
  --red: #d8321f;
  --graphite: #111111;
  --on-dark: #f5f5f3;
  --on-dark-2: #a9a9a4;
  --rule-dark: rgba(245, 245, 243, .16);
  /* the plan: read by app.js for the canvas */
  --water: #e3eaed;
  --wood: #eff2ec;
  --fp: #dcdcd8;
  --fp-near: #c2c2bc;
  --street: #c9c9c4;
  --major: #8f8f89;
  /* motion tokens (PREMIUM_MOTION §2): expo out for arrivals, quart out for hover, in-out for state changes */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-out-soft: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-micro: 280ms;
  --t-text: 1000ms;
  --t-draft: 1300ms;
  --t-media: 1300ms;
  --t-scene: 1800ms;
  --step-line: 110ms;
  --step-item: 80ms;
  --ease: var(--ease-out);
  --ease-io: var(--ease-in-out);
  --dur: var(--t-micro);
  --wrap: 1440px;
  --gutter: clamp(16px, 2.8vw, 40px);
  --head-h: 76px;
  --stuck-h: 64px;   /* the bar once it sticks (logo smaller, tighter padding) */
  --display: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--stuck-h); }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16.5px/1.6 var(--sans); letter-spacing: .005em; font-synthesis: none;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* no system flash on touch (user rule 2026-10-05): every control shows its own pressed state in place */
html { -webkit-tap-highlight-color: transparent; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
html { scrollbar-color: #a3a39e var(--paper-2); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none; transition: top var(--dur) var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 18px; height: 18px; fill: currentColor; }
.label { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }

/* ---------- actions */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 0;
  font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out-soft), color var(--dur) var(--ease-out-soft);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); }
.btn::after, .link-arrow::after {
  content: ""; width: 18px; height: 10px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16.5M12.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16.5M12.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease-out-soft);
}
.btn:hover::after, .link-arrow:hover::after { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-weight: 500; font-size: 15px; letter-spacing: .01em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color var(--dur) var(--ease-out-soft);
}
.link-arrow:hover { color: var(--red); }

/* ---------- header: logo, menu, a hairline under it like the border of a sheet */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: box-shadow 300ms var(--ease-out-soft); }
/* stuck: the logo steps down, the bar tightens and a soft shade (not a line) lifts it off the page */
.site-head.is-stuck { box-shadow: 0 14px 22px -10px rgba(16, 16, 15, .2); }
/* every text of the header stands on one baseline: the bottom of the logo lettering, the menu, the language, the phone */
.head-inner {
  display: flex; align-items: baseline; gap: 28px; padding: 17px 0 13px;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  transition: padding 300ms var(--ease-out-soft);
}
.is-stuck .head-inner { padding: 8px 0 5px; }
.brand { --logo-w: 172px; display: block; flex: none; color: var(--ink); }
/* the box ends at the foot of the wordmark (y 36.6 of the artwork), so the flex baseline is the wordmark's baseline;
   the tagline under it hangs below like a descender */
.logo { width: var(--logo-w); height: auto; margin-bottom: calc(var(--logo-w) * -.0505); transition: width 300ms var(--ease-out-soft), margin-bottom 300ms var(--ease-out-soft); }
@media (min-width: 980px) { .is-stuck .brand { --logo-w: 146px; } }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: baseline; gap: 34px; list-style: none; }
.nav > ul a, .head-phone, .lang > * {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 0;
  font-size: 16px; font-weight: 500; letter-spacing: .01em; text-decoration: none;
}
.nav > ul a::after, .lang > *::after, .head-phone span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out-soft);
}
.head-phone span { position: relative; font-variant-numeric: tabular-nums; }
.head-phone span::after { bottom: -4px; }
.nav > ul a:hover::after, .lang a:hover::after, .head-phone:hover span::after, .lang .ls-cur::after { transform: scaleX(1); }
/* LT|EN: the page's language in ink with the red rule under it, the other one quieter and a link */
.lang, .nav-lang, .foot-lang { display: inline-flex; align-items: baseline; }
.lang > *, .nav-lang > *, .foot-lang > * { font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-decoration: none; color: var(--ink); }
.lang a, .nav-lang a, .foot-lang a { color: var(--ink-3); }
.lang a:hover, .nav-lang a:hover, .foot-lang a:hover { color: var(--ink); }
.head-actions { display: flex; align-items: baseline; gap: 22px; margin-left: 18px; }
.lang { gap: 12px; }
.head-phone .ico { width: 15px; height: 15px; align-self: center; }
/* the contact button: an ink plate with the red plot mark of the plan; on hover the plate turns red and the mark white */
.head-cta { display: none; }
@media (min-width: 980px) {
  .nav-contact { display: none; }
  .head-cta {
    display: inline-flex; align-items: center; gap: 12px; align-self: center; min-height: 44px; padding: 0 22px 0 18px;
    background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
    transition: background-color var(--dur) var(--ease-out-soft);
  }
  .head-cta::before { content: ""; width: 8px; height: 8px; background: var(--red); transition: background-color var(--dur) var(--ease-out-soft), transform var(--dur) var(--ease-out-soft); }
  .head-cta:hover, .head-cta:active { background: var(--red); }
  .head-cta:hover::before, .head-cta:active::before { background: #fff; transform: rotate(45deg); }
}
.menu-toggle { display: none; }

@media (max-width: 979px) {
  :root { --head-h: 64px; --stuck-h: 56px; }
  .brand { --logo-w: 112px; }
  .head-inner { gap: 12px; padding: 14px 0 10px; }
  .head-actions { margin-left: auto; gap: 10px; }
  .is-stuck .head-inner { padding: 7px 0 3px; }
  .head-phone { flex: none; width: 40px; height: 40px; padding: 0; align-self: center; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 50%; }
  .head-phone span { display: none; }
  .lang { gap: 0; }
  .lang > * { min-width: 34px; justify-content: center; }
  /* menu button: two drawn lines meet in a cross while the menu is open and part again when it closes;
     the label changes with them (Meniu → Uždaryti) */
  .menu-toggle {
    display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 12px 0 12px 6px;
    border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 500 15px/1 var(--sans); letter-spacing: .01em;
  }
  .ic-menu { width: 22px; height: 22px; align-self: center; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; overflow: visible; }
  .ic-menu path { transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--ease-in-out); }
  .menu-toggle[aria-expanded="true"] .mb-a { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .mb-b { transform: translateY(-4px) rotate(-45deg); }
  .mb-l { display: inline-grid; }
  .mb-l > span { grid-area: 1 / 1; transition: opacity 300ms var(--ease-out-soft), transform 450ms var(--ease-out); }
  .mb-close { opacity: 0; transform: translateY(.5em); }
  .menu-toggle[aria-expanded="true"] .mb-open { opacity: 0; transform: translateY(-.5em); }
  .menu-toggle[aria-expanded="true"] .mb-close { opacity: 1; transform: none; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); padding: 8px var(--gutter) 28px;
    min-height: calc(100svh - var(--stuck-h)); max-height: calc(100svh - var(--stuck-h)); overflow-y: auto;   /* the sheet covers the page under the bar, not a strip over the map */
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav > ul a { display: flex; padding: 14px 0; font: 500 26px/1.2 var(--display); letter-spacing: 0; }
  .nav > ul a::after { display: none; }
  html:not(.js) .nav { order: 9; width: 100%; }
  html:not(.js) .head-inner { flex-wrap: wrap; }
}

/* ---------- home: the heading, then the sheet (plan + title block) beside the project index */
.atlas { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-bottom: clamp(72px, 9vw, 140px); }
.atlas-head { display: grid; gap: 22px 48px; padding: clamp(24px, 3.4vw, 48px) 0 clamp(24px, 2.6vw, 36px); }
.atlas-head h1 { font-size: clamp(2.4rem, .8rem + 5vw, 6.6rem); line-height: .98; letter-spacing: -.012em; font-weight: 500; }
.h1-city { color: var(--red); }
.intro-side { display: grid; gap: 22px; align-content: end; }
.lead { max-width: 46ch; font-size: clamp(1.02rem, .98rem + .25vw, 1.16rem); line-height: 1.55; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 900px) {
  /* the same two columns as the plan and the index below: the action starts where the index starts */
  .intro-side { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); align-items: end; }
  .intro-side .actions { justify-self: start; }
}

.atlas-body { display: grid; gap: 0 clamp(24px, 3vw, 48px); }
@media (min-width: 900px) {
  .atlas-body { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
}

/* the sheet: a framed plan with its title block; sticky while the index scrolls */
.sheet { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 1px solid var(--ink); background: var(--paper); }
.sheet-map { position: relative; margin: 0; overflow: hidden; background: var(--water); min-height: 0; touch-action: pan-y; }
.map-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-sea { fill: var(--water); }
.m-land { fill: var(--paper); }
.m-green { fill: var(--wood); }
.m-water { fill: var(--water); }
.m-river { fill: none; stroke: var(--water); stroke-width: 3.2; stroke-linejoin: round; }
.m-minor, .m-major, .m-route { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-minor { stroke: #e6e6e2; stroke-width: .7; }
.m-major { stroke: var(--major); stroke-width: 1.3; }
.m-route { stroke: none; }
.m-place, .m-label { font: 400 12px var(--mono); fill: #9b9b96; }
.m-label { fill: #7f8d91; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.sheet.is-live .map-canvas { opacity: 1; }
.sheet.is-live .map-base { visibility: hidden; }

/* numbered project points (app.js moves them with the plan) */
.map-markers { position: absolute; inset: 0; pointer-events: none; }
html:not(.js) .map-markers { display: none; }
.marker {
  position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center;
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: var(--ink); color: #fff; text-decoration: none; pointer-events: auto;
  box-shadow: 0 0 0 2px var(--paper);
  transition: background-color var(--t-micro) var(--ease-out-soft), opacity var(--t-micro) var(--ease-out-soft), scale var(--t-micro) var(--ease-out-soft);
}
.marker-num { font: 600 10.5px/1 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.marker-office { width: 34px; height: 20px; margin: -10px 0 0 -17px; border-radius: 0; }
.marker-office .marker-num { font-size: 9.5px; }
@media (max-width: 899px) {
  .marker { width: 20px; height: 20px; margin: -10px 0 0 -10px; box-shadow: 0 0 0 1.5px var(--paper); }
  .marker-num { font-size: 9px; }
  .marker-office { width: 28px; height: 17px; margin: -8.5px 0 0 -14px; }
  .marker-office .marker-num { font-size: 8px; }
}
.marker:hover, .marker:focus-visible, .marker.is-active { z-index: 3; background: var(--red); scale: 1.18; }
.marker:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.marker.is-dim { opacity: .22; }
.marker.is-out { opacity: 0; scale: .4; pointer-events: none; }
.marker.is-gone { visibility: hidden; }
.map-credit { position: absolute; right: 8px; bottom: 6px; z-index: 6; font: 400 10px/1 var(--mono); color: #8a8a85; text-decoration: none; }
.map-credit:hover { color: var(--ink); }

/* the scale ratio on the plan: it rolls while the plan changes scale (app.js) */
.map-ratio { position: absolute; left: 14px; top: 12px; z-index: 6; pointer-events: none; display: flex; align-items: baseline; gap: 6px; font: 400 11px/1 var(--mono); color: var(--ink-3); }
.ratio-v { font: 500 clamp(17px, 1.1rem + .5vw, 24px)/1 var(--mono); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
html:not(.js) .map-ratio { display: none; }

/* scale bar and north sign; length and labels from the rendered plan (app.js) */
.map-scale { position: absolute; left: 12px; bottom: 10px; z-index: 6; pointer-events: none; display: grid; gap: 5px; font: 400 10.5px/1 var(--mono); color: var(--ink-2); }
html:not(.js) .map-scale { display: none; }
.scale-n { position: absolute; left: 0; bottom: 34px; color: var(--ink); transform-origin: 50% 0; } /* turned with the plan (app.js) */
.scale-n::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 1px; height: 14px; background: var(--ink); }
.scale-bar { display: block; width: var(--sb, 80px); height: 5px; border: 1px solid var(--ink); border-top: 0; }
.scale-bar i { display: block; width: 50%; height: 100%; border-right: 1px solid var(--ink); }
.scale-l { position: relative; display: block; width: var(--sb, 80px); height: 10px; }
.scale-l b { position: absolute; top: 0; left: 0; font-weight: 400; }
.scale-l .scale-e { left: auto; right: 0; transform: translateX(45%); white-space: nowrap; }

/* title block (spaudas): photo, number, name, place, field, years, live scale and LKS-94 */
.tb { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); background: var(--paper); }
.tb-photo { display: none; margin: 0; overflow: hidden; background: var(--paper-2); }
.tb-photo img { width: 100%; height: 100%; object-fit: cover; }
.tb-cell { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px 12px 10px; }
.tb-l { font: 400 10.5px/1.2 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.tb-v { font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: .005em; }
.tb-num .tb-v, .tb-scale .tb-v, .tb-xy .tb-v { font: 500 13px/1.3 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tb-num .tb-v { color: var(--red); }
.tb-name { font: 500 clamp(1.1rem, .9rem + .7vw, 1.5rem)/1.12 var(--display); letter-spacing: .005em; }
.tb-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb.is-swap .tb-name, .tb.is-swap .tb-sub { animation: tb-rise var(--t-text) var(--ease-out) both; }
@keyframes tb-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(.5em); } to { clip-path: inset(0 0 -.2em 0); transform: none; } }
.tb-photo img.is-new { animation: tb-photo 700ms var(--ease-out) both; }
@keyframes tb-photo { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .sheet { position: sticky; top: var(--stuck-h); z-index: 4; height: min(54svh, 500px); margin-inline: calc(-1 * var(--gutter)); border-width: 0 0 1px; }   /* no top rule: it would read as a line under the stuck bar */
  /* the index passes under the sheet through a short white fade, not under a hard edge */
  .sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 32px; background: linear-gradient(var(--paper), rgba(255, 255, 255, 0)); pointer-events: none; }
  .tb { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tb-cat, .tb-years, .tb-xy { display: none; }
  .tb-cell { padding: 8px 10px 9px; }
  .tb-cell + .tb-cell { border-left: 1px solid var(--rule); }
  .tb-name { font-size: 1.12rem; }
  .tb-sub { font-size: 13px; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-l { font-size: 10px; }
}
@media (min-width: 900px) {
  .sheet { position: sticky; top: calc(var(--stuck-h) + 12px); height: min(calc(100svh - var(--stuck-h) - 28px), 980px); min-height: 560px; }
  .tb { grid-template-columns: minmax(0, 30%) minmax(0, .55fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .tb-photo { display: block; grid-row: 1 / span 2; grid-column: 1; border-right: 1px solid var(--ink); }
  .tb-num { grid-column: 2; grid-row: 1; }
  .tb-obj { grid-column: 3 / span 3; grid-row: 1; border-left: 1px solid var(--rule); }
  .tb-cat { grid-column: 2 / span 2; grid-row: 2; }
  .tb-years { grid-column: 4; grid-row: 2; border-left: 1px solid var(--rule); }
  .tb-scale { grid-column: 5; grid-row: 2; border-left: 1px solid var(--rule); }
  .tb-xy { display: none; }
  .tb-cat, .tb-years, .tb-scale { border-top: 1px solid var(--rule); }
}
@media (min-width: 1280px) {
  .tb { grid-template-columns: minmax(0, 27%) minmax(0, .5fr) repeat(4, minmax(0, 1fr)); }
  .tb-obj { grid-column: 3 / span 4; }
  .tb-xy { display: grid; grid-column: 6; grid-row: 2; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
}

/* ---------- the project index */
.index { container-type: inline-size; }
.index-head { display: grid; gap: 10px; padding: 0 0 18px; }
.index-head h2 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); letter-spacing: 0; }
/* filters: one row when the index is wide, otherwise an even grid (never one chip left alone on a line) */
.filters { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 22px; list-style: none; }
@container (min-width: 660px) { .filters { display: flex; flex-wrap: wrap; gap: 0 22px; } }
@container (max-width: 400px) { .filters { grid-template-columns: repeat(2, auto); } }
.filter {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink-3); cursor: pointer;
  font: 500 14.5px/44px var(--sans); letter-spacing: .01em;
  transition: color var(--dur) var(--ease-out-soft);
}
.filter .count { font: 400 10.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.filter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out-soft);
}
.filter:hover, .filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

.index-list { list-style: none; border-bottom: 1px solid var(--ink); }
.row { border-top: 1px solid var(--rule); }
.row:first-child { border-top-color: var(--ink); }
.row[hidden] { display: none; }
.row-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 48px; align-items: baseline; gap: 0 14px;
  min-height: 54px; padding: 14px 10px; text-decoration: none; color: var(--ink);
  transition: background-color var(--t-micro) var(--ease-out-soft);
}
.row-num { font: 500 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color var(--t-micro) var(--ease-out-soft); }
.row-title { font-size: 17.5px; font-weight: 500; line-height: 1.3; letter-spacing: .005em; }
.row-cat { font-size: 14px; color: var(--ink-3); text-align: right; }
.row-year { font: 400 12.5px/1 var(--mono); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.row-media { display: none; }
.row.is-active .row-link, a.row-link:hover { background: var(--paper-2); }
.row.is-active .row-num, a.row-link:hover .row-num { color: var(--red); }
div.row-link { color: var(--ink-2); }
@container (max-width: 520px) {
  .row-link { grid-template-columns: 40px minmax(0, 1fr) 44px; grid-template-areas: "n t y" "n c y"; row-gap: 3px; }
  .row-num { grid-area: n; } .row-title { grid-area: t; } .row-cat { grid-area: c; text-align: left; font-size: 13px; } .row-year { grid-area: y; }
}
@media (max-width: 899px) {
  .index { padding-top: 32px; }
  .row-link { grid-template-columns: 34px minmax(0, 1fr) 84px; grid-template-areas: "n t m" "n c m"; align-items: start; row-gap: 3px; padding: 12px 0; }
  .row-num { grid-area: n; padding-top: 4px; } .row-title { grid-area: t; font-size: 16.5px; } .row-cat { grid-area: c; text-align: left; font-size: 13px; }
  .row-year { display: none; }
  .row-media { display: block; grid-area: m; align-self: center; overflow: hidden; background: var(--paper-2); }
  .row-media img { width: 84px; aspect-ratio: 4 / 3; object-fit: cover; }
  .row.is-active .row-link, a.row-link:hover { background: transparent; }
  .row.is-active .row-title { color: var(--red); }
}

/* ---------- services (graphite) */
.services { background: var(--graphite); color: var(--on-dark); padding: clamp(80px, 11vw, 160px) 0; }
.services :focus-visible { outline-color: #ff6a5c; }
.services-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
.services-head h2 { font-size: clamp(2.6rem, 1.4rem + 3.8vw, 5.4rem); letter-spacing: -.045em; }
.services-lead { margin-top: 24px; max-width: 34ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--on-dark-2); }
/* services: a scale ruler. Three stops — M 1:2000 the site, 1:200 the building, 1:50 the house; the red needle is dragged or clicked along it */
.ruler { display: grid; gap: clamp(28px, 4vw, 52px); }
.ruler-rule { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 30px; touch-action: pan-y; user-select: none; }
.ruler-stop { display: grid; gap: 10px; align-content: start; padding: 0 12px 22px 0; border: 0; background: none; color: var(--on-dark-2); text-align: left; font: inherit; cursor: pointer; transition: color var(--dur) var(--ease-out-soft); }
.ruler-stop:hover, .ruler-stop[aria-selected="true"] { color: var(--on-dark); }
.ruler-m { font: 400 12px/1.3 var(--mono); letter-spacing: 0; }
.ruler-n { font-size: clamp(1.2rem, .9rem + 1.4vw, 2.3rem); letter-spacing: -.025em; line-height: 1.08; font-weight: 500; }
.ruler-rule::before {  /* the ticks: every 12 px a small one, every 60 px a tall one */
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 18px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 12px) bottom / 100% 8px no-repeat,
              repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 1px, transparent 1px 60px) bottom / 100% 18px no-repeat;
}
.ruler-needle { position: absolute; left: 0; bottom: 0; width: calc(100% / 3); height: 6px; background: #ff6a5c; transform: translateX(var(--nx, 0%)); transition: transform 520ms var(--ease-out); cursor: grab; touch-action: none; }
.ruler-needle::before { content: ""; position: absolute; inset: -20px 0; }   /* a taller grip */
.ruler.is-drag .ruler-needle { transition: none; cursor: grabbing; }
.ruler-panels { display: grid; }
.svc { grid-area: 1 / 1; }
.svc-h { display: none; }
.svc ol { list-style: none; counter-reset: s; display: grid; gap: 0 clamp(28px, 4vw, 64px); }
.svc li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule-dark); font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); line-height: 1.35; }
.svc li::before { content: counter(s, decimal-leading-zero); font: 400 12px/1 var(--mono); color: var(--on-dark-2); }
.js .svc { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 300ms var(--ease-out-soft), transform 420ms var(--ease-out), visibility 0s linear 300ms; }
.js .svc.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .svc li { opacity: 0; transform: translateY(8px); transition: opacity 360ms var(--ease-out-soft), transform 460ms var(--ease-out); }
.js .svc.is-on li { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 45ms + 80ms); }
/* phones: the three stops stack the label under the ratio in narrower type, and only the open list takes room */
@media (max-width: 699px) {
  .ruler-stop { padding-right: 6px; }
  .ruler-m { font-size: 14px; color: inherit; }
  .ruler-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the name moves into the list's heading */
  .js .svc-h { display: block; margin-bottom: 18px; font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
  .ruler-panels { display: block; }
  .js .svc { display: none; transform: none; }
  .js .svc.is-on { display: block; }
}
html:not(.js) .ruler-rule { display: none; }
html:not(.js) .ruler-panels { gap: 48px; }
html:not(.js) .svc-h { display: block; font: 400 12px/1.3 var(--mono); color: var(--on-dark-2); padding-bottom: 14px; }
.svc-more { margin-top: 18px; }
.svc-more a, .bim .link-arrow { color: var(--on-dark); }
.svc-more a:hover, .bim .link-arrow:hover { color: #ff7b6e; }
.bim { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-dark); }
.bim-media { background: #fff; padding: clamp(16px, 3vw, 40px); }
.bim-media img { margin-inline: auto; max-height: 420px; width: auto; }
.bim-text { display: grid; gap: 18px; }
.bim-text h3 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); letter-spacing: -.035em; }
.bim-text p { color: var(--on-dark-2); max-width: 46ch; }
.bim-price { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 340; letter-spacing: -.02em; color: var(--ink); }
.services .bim-price { color: var(--on-dark); }
@media (min-width: 1000px) {
  .services-head { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); align-items: end; }
  .services-head .services-lead { margin-top: 0; }
  .svc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bim { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* ---------- studio and team */
.studio { padding-bottom: clamp(80px, 10vw, 150px); }
.studio-hero { margin: 0 auto; max-width: 2200px; overflow: hidden; background: var(--paper-2); }
.studio-hero img { width: 100%; height: clamp(360px, 72vh, 900px); height: clamp(360px, 72svh, 900px); object-fit: cover; object-position: 50% 62%; }
.studio-grid { display: grid; gap: 28px clamp(32px, 6vw, 96px); padding-top: clamp(56px, 7vw, 104px); }
.studio-grid h2 { font-size: clamp(2.3rem, 1.3rem + 3vw, 4.4rem); letter-spacing: -.04em; max-width: 12ch; }
.studio-text { display: grid; gap: 20px; max-width: 58ch; }
.studio-text p { color: var(--ink-2); font-size: 17px; }
.motto { margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.3; color: var(--ink) !important; }
.studio-strip { display: grid; grid-template-columns: 4fr 5fr 4fr; gap: 16px; align-items: end; margin-top: clamp(56px, 7vw, 100px); }
.studio-strip figure { margin: 0; overflow: hidden; background: var(--paper-2); }
.studio-strip img { width: 100%; object-fit: cover; }
.studio-strip figure:nth-child(1) img { aspect-ratio: 3 / 4; }
.studio-strip figure:nth-child(2) img { aspect-ratio: 4 / 3; }
.studio-strip figure:nth-child(3) img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .studio-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
@media (max-width: 699px) { .studio-strip { grid-template-columns: 1fr 1fr; } .studio-strip figure:nth-child(2) { grid-column: 1 / -1; order: -1; } }

.team { margin-top: clamp(96px, 11vw, 160px); }
.team-h { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.6rem); margin-bottom: clamp(32px, 4vw, 56px); }
/* the team as the title block of a sheet: one row a person, the qualifications open under the name */
.people { list-style: none; border-top: 1px solid var(--ink); }
.person { border-bottom: 1px solid var(--ink); }
.person summary { list-style: none; display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto 44px; align-items: baseline; gap: 0 clamp(14px, 3vw, 40px); padding: clamp(18px, 2.4vw, 30px) 0; cursor: pointer; transition: color var(--dur) var(--ease-out-soft); }
.person summary::-webkit-details-marker { display: none; }
.person-name { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.04; font-weight: 500; }
@media (hover: hover) { .person summary:hover .person-name { color: var(--red); } }
.person-tog { position: relative; width: 22px; height: 22px; align-self: center; justify-self: end; }
.person-tog::before, .person-tog::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 380ms var(--ease-out); }
.person-tog::after { transform: rotate(90deg); }
.person details[open] .person-tog::after { transform: rotate(0); }
.person-body { display: grid; gap: 20px; padding: 0 0 clamp(24px, 3vw, 40px) calc(3.2em + clamp(14px, 3vw, 40px)); animation: person-in 460ms var(--ease-out) both; }
@keyframes person-in { from { opacity: 0; transform: translateY(-8px); } }
.creds { list-style: none; display: grid; gap: 0 clamp(24px, 4vw, 64px); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.creds li { padding: 9px 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .person summary { grid-template-columns: 2.2em minmax(0, 1fr) 32px; } .person summary .role { grid-column: 2; grid-row: 2; margin-top: 6px; } .person-tog { grid-row: 1; grid-column: 3; } .person-body { padding-left: 0; } }

/* ---------- contact */
.contact { padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 8vw, 110px); border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4.4rem); letter-spacing: -.04em; }
.contact-intro p { margin-top: 20px; max-width: 40ch; font-size: 1.12rem; color: var(--ink-2); }
.contact-big { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 10px; }
/* the main number and the e-mail on the left; on the right the address at the top of the heading and the company
   details at the foot of the e-mail (both columns end on the same line, the user removed the office plot 2026-10-05) */
.contact-grid { display: grid; gap: 48px clamp(32px, 4vw, 72px); }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: stretch; }
  .contact-grid .contact-meta { margin: 0; grid-template-columns: 1fr; align-content: space-between; }
}
.contact-meta { display: grid; gap: 28px; margin: clamp(48px, 6vw, 80px) 0 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-meta div { padding-top: 14px; border-top: 1px solid var(--rule); }
.contact-meta dt { margin-bottom: 8px; }
.contact-meta dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- footer */
.site-foot { padding: 36px 0 44px; font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--rule); }
.foot-inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: 18px; align-items: center; }
.foot-brand { display: flex; gap: 18px; align-items: center; color: var(--ink); }
.foot-brand p { color: var(--ink-3); }
.logo-foot { width: 96px; }
@media (min-width: 900px) { .foot-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.foot-lang { gap: 18px; }
.foot-lang > * { display: inline-flex; align-items: center; min-height: 44px; }
.foot-lang .ls-cur { text-decoration: underline 2px var(--red); text-underline-offset: 7px; }

/* ---------- project pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: clamp(14px, 2.4vw, 24px); font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink); text-underline-offset: .25em; }
.crumbs a:hover { color: var(--red); }
.p-head { display: grid; gap: 28px clamp(32px, 5vw, 80px); padding: clamp(36px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); align-items: end; }
.p-title h1 { font-size: clamp(2.8rem, 1.2rem + 5.4vw, 7rem); line-height: 1.02; letter-spacing: -.05em; }
@media (max-width: 699px) { .p-title h1 { line-height: 1.08; } }
.p-kind { margin-top: 22px; font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); line-height: 1.4; color: var(--ink-2); max-width: 34ch; }
.p-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px clamp(20px, 3vw, 40px);
  margin: 0 0 clamp(36px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--ink);
}
.p-facts div { display: grid; gap: 8px; align-content: start; }
.p-facts .f-wide { grid-column: span 2; }
.p-facts dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.locator { margin: 0; width: 320px; justify-self: end; }
.locator-frame { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--water); border: 1px solid var(--ink); }
.locator-frame img { width: 100%; height: 100%; }
.loc-scale { position: absolute; left: calc(14px + var(--bar, 60px) + 6px); bottom: 12px; font: 400 10.5px/1 var(--mono); color: var(--ink-2); }
.locator .map-credit { right: 6px; bottom: 5px; }
@media (min-width: 900px) { .p-head { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 899px) { .locator { justify-self: start; width: min(100%, 280px); } }
@media (max-width: 699px) { .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.p-cover { margin: 0 auto; width: min(1760px, 100%); padding-inline: var(--gutter); }
.cover-img { width: 100%; max-height: 86svh; object-fit: cover; background: var(--ph); margin-inline: auto; }
.cover-img.is-plan { object-fit: contain; background: #fff; }

.story {
  display: grid; grid-template-columns: minmax(0, 1fr) min(66ch, 100%) minmax(0, 1fr);
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px);
  font-family: var(--sans); font-size: clamp(17.5px, 16px + .3vw, 19.5px); line-height: 1.7; color: #232321;
}
.story > * { grid-column: 2; }
.story p + p { margin-top: 1.05em; }
.story h2 { font-family: var(--sans); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 340; letter-spacing: -.03em; line-height: 1.1; margin: 2em 0 .7em; color: var(--ink); }
.story > h2:first-child { margin-top: 0; }
.story ul { margin: 1em 0; padding-left: 1.1em; }
.story li + li { margin-top: .35em; }
.story ul + p, .story .fig + p, .story .fig + h2 { margin-top: 0; }
.story .verse { font-style: italic; text-align: center; margin: .5em 0 1.8em; }
.story .story-note { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-top: 1.4em; }
.story .story-link { font-family: var(--sans); font-size: 15.5px; margin-top: 1.4em; }
.story .story-link a { font-weight: 500; }
.story .list-lead { margin-bottom: -.4em; }
.story strong { font-family: var(--sans); font-weight: 600; }
.questions { list-style: none; padding: 0 !important; margin: 1.8em 0 !important; display: grid; gap: 6px; }
.questions li { font-family: var(--sans); font-weight: 340; letter-spacing: -.02em; font-size: clamp(1.3rem, 1rem + 1vw, 2rem); line-height: 1.34; margin: 0 !important; }
.questions li:nth-last-child(-n+3) { color: var(--red); }

.fig { grid-column: 1 / -1 !important; width: min(1240px, 100%); margin: 2em auto 2.2em; }
.fig-1 { display: grid; justify-items: center; }
.fig-1 .fig-item { display: block; width: min(100%, 1120px); }   /* a width of its own: a shrink-to-fit anchor around a lazy 100 %-wide image collapsed to 0×0 and never loaded */
.fig-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fig-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fig-item { display: block; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.fig img { width: 100%; background: var(--ph); transition: transform 900ms var(--ease); }
.fig-2 img, .fig-n img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.fig img.is-plan { object-fit: contain; background: #fff; }
.fig-item:hover img { transform: scale(1.03); }
.fig figcaption { grid-column: 1 / -1; justify-self: center; max-width: 70ch; margin-top: 6px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); text-align: center; }
.fig-video video { width: 100%; height: auto; background: var(--graphite); }
@media (min-width: 700px) { .fig-n .w3 { grid-column: span 2; } .fig-n .w3 img { aspect-ratio: 8 / 3; } }
@media (max-width: 699px) {
  .fig-n { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fig-n .w2 { grid-column: span 2; } .fig-n .w2 img { aspect-ratio: 8 / 3; }
  .fig-2 { gap: 8px; }
}

.hist-card { margin: 0 auto 40px; max-width: 66ch; }
.hist-card a { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); text-decoration: none; }
.hist-title { font-size: 1.5rem; font-weight: 340; letter-spacing: -.02em; transition: color var(--dur) var(--ease); }
.hist-card a:hover .hist-title { color: var(--red); }
.hist-kind { color: var(--ink-3); font-size: 15px; }

.pn-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 28px 0 clamp(72px, 9vw, 120px); border-top: 1px solid var(--ink); }
.pn { display: grid; gap: 10px; text-decoration: none; }
.pn-next { text-align: right; }
.pn-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.4rem); font-weight: 340; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere; transition: color var(--dur) var(--ease); }
.pn:hover .pn-title { color: var(--red); }
@media (max-width: 479px) { .pn-nav { grid-template-columns: minmax(0, 1fr); } .pn-next { text-align: left; } .pn-empty { display: none; } }

.cta-band { background: var(--graphite); color: var(--on-dark); padding: clamp(72px, 10vw, 140px) 0; }
.cta-inner { display: grid; gap: 36px; align-items: end; }
.cta-inner h2 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.2rem); letter-spacing: -.04em; }
.cta-inner p { color: var(--on-dark-2); margin-top: 16px; max-width: 42ch; }
.cta-links { display: grid; gap: 2px; justify-items: start; }
.cta-links a { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-weight: 300; letter-spacing: -.035em; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .16em; text-decoration-color: transparent; transition: text-decoration-color var(--dur) var(--ease); }
.cta-links a:hover { text-decoration-color: #ff6a5c; }
.cta-band :focus-visible { outline-color: #ff6a5c; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

.bim-lists { display: grid; gap: 32px clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }
.bim-list { padding-top: 16px; border-top: 1px solid var(--ink); }
.bim-list h2 { font-size: 1.5rem; margin-bottom: 14px; letter-spacing: -.025em; }
.bim-list ul { list-style: none; color: var(--ink-2); }
.bim-list li { padding: 8px 0; border-top: 1px solid var(--rule); }
.bim-price-lg { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 300; letter-spacing: -.04em; }
.p-head-sub { padding-bottom: clamp(28px, 4vw, 48px); }

/* ---------- lightbox */
.lightbox { width: 100%; inset: 0; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16, 16, 15, .97); color: #fff; }
.lightbox[open] { display: grid; animation: lb-in 260ms var(--ease); }
.lightbox::backdrop { background: rgba(16, 16, 15, .6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { display: grid; place-items: center; align-content: center; gap: 14px; padding: 64px 84px 48px; min-height: 0; height: 100dvh; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; background: #222; }
.lb-cap { font-size: 14px; color: #c9c9c4; text-align: center; max-width: 70ch; }
.lb-count { position: fixed; left: 24px; top: 22px; margin: 0; font-size: 13px; letter-spacing: .08em; color: #c9c9c4; font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 56px; height: 56px; border: 0; background: transparent; color: #fff; cursor: pointer; transition: color var(--dur) var(--ease); }
.lb-btn:hover { color: #ff6a5c; }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lb-btn:focus-visible { outline: 2px solid #ff6a5c; }
.lb-close { right: 12px; top: 8px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lb-stage { padding: 60px 8px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 68px); }
  .lb-next { right: calc(50% - 68px); }
}

/* ======================================================================
   v4 — "the site draws itself like a plotter, the architect inks the lines"
   Motion is always on (user rule); hidden start states are set by app.js only,
   so without JavaScript everything is visible.
   ====================================================================== */
@property --draw { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --fa { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --pr { syntax: "<number>"; inherits: true; initial-value: 1; }

/* headings rise line by line inside their masks (app.js splits the lines; one block without JavaScript) */
.ink { position: relative; max-width: 100%; }
html.anim .ink:not(.ink-in):not(.is-split) { clip-path: inset(-.3em -.1em 100% -.1em); }
.ink-in:not(.is-split) { animation: ink-rise var(--t-text) var(--ease-out) backwards; }
@keyframes ink-rise { from { clip-path: inset(-.3em -.1em 100% -.1em); transform: translateY(.45em); } to { clip-path: inset(-.3em -.1em -.4em -.1em); transform: none; } }
.ln { display: block; overflow: clip; overflow-clip-margin: .12em; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }
html.anim .is-split:not(.ink-in) .ln > span { transform: translateY(105%); }
.is-split.ink-in .ln > span { animation: ln-rise var(--t-text) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--step-line)); }
@keyframes ln-rise { from { transform: translateY(105%); } to { transform: none; } }
/* fail-safe for the first screen: headings show themselves if the script stops */
.js :is(.index-head h2, .p-title h1):not(.ink-in) { clip-path: inset(-.3em -.1em 100% -.1em); animation: fs-clip 0s 2.6s forwards; }
.js .p-title h1.is-split:not(.ink-in) { clip-path: none; }
@keyframes fs-clip { to { clip-path: none; } }
@keyframes fs-show { to { opacity: 1; } }

/* photos open to scale: the frame grows from a 10 % inset while the picture settles from 1.12 to 1 */
html.anim .rv:not(.rv-done) { position: relative; overflow: clip; clip-path: inset(calc((1 - var(--pr)) * 10%)); }
html.anim .rv:not(.rv-done) > :first-child { transform: scale(calc(1.12 - var(--pr) * .12)); }
html.anim .rv:not(.rv-in):not(.rv-done) { --pr: 0; }
.rv-in:not(.rv-done) { animation: rv-scale var(--t-media) var(--ease-out) both; }
@keyframes rv-scale { from { --pr: 0; } to { --pr: 1; } }

/* services demo: detailed plan under a loupe */
.demo-plan { display: grid; gap: 28px clamp(24px, 3vw, 48px); margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-dark); align-items: start; }
.demo-plan figure { margin: 0; }
.loupe-sheet { position: relative; background: #fff; cursor: crosshair; overflow: hidden; touch-action: pan-y; }
.loupe-sheet img { width: 100%; }
.loupe {
  position: absolute; left: var(--lx, 62%); top: var(--ly, 38%); width: clamp(140px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--ls, 1)); pointer-events: none;
  background-repeat: no-repeat; background-color: #fff;
  background-size: calc(var(--sw, 600px) * 2.2) auto; background-position: var(--bx, 0) var(--by, 0);
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(244, 244, 241, .85), 0 0 0 7px var(--red), 0 24px 40px -18px rgba(0, 0, 0, .7);
  transition: transform 500ms var(--ease);
}
.loupe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: linear-gradient(var(--red), var(--red)) center / 100% 1px no-repeat, linear-gradient(var(--red), var(--red)) center / 1px 100% no-repeat; }
.loupe-sheet figcaption, .loupe-aerial figcaption { margin-top: 10px; color: var(--on-dark-2); }
.loupe-sheet figcaption { position: absolute; left: 12px; bottom: 10px; margin: 0; padding: 4px 8px; background: var(--graphite); color: var(--on-dark); }
.loupe-aerial img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.demo-text h3 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); letter-spacing: -.035em; }
.demo-text p { margin-top: 16px; color: var(--on-dark-2); max-width: 44ch; }
@media (min-width: 1000px) {
  .demo-plan { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .loupe-aerial { grid-column: 2; grid-row: 1; align-self: start; }
  .demo-text { grid-column: 2; grid-row: 1; align-self: end; }
  .loupe-aerial { margin-bottom: 0; }
  .demo-plan { grid-template-rows: auto; }
}

/* scroll scenes (pinned) */
.process { background: var(--paper); }
.scene { position: relative; height: 320vh; height: 320svh; }
.scene-pin { position: sticky; top: var(--stuck-h); height: calc(100svh - var(--stuck-h)); display: grid; align-items: center; overflow: hidden; }
.seq-grid, .stack-grid { display: grid; gap: 28px clamp(28px, 4vw, 72px); align-items: center; }
.seq-text h3, .stack-text h3 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.4rem); letter-spacing: -.045em; }
.seq-text p, .stack-text p { margin-top: 18px; max-width: 40ch; color: var(--ink-2); font-size: 17px; }
.seq-steps { list-style: none; margin-top: 28px; display: grid; gap: 0; max-width: 360px; }
.seq-steps li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink-3); transition: color var(--dur) var(--ease); }
.seq-steps li:last-child { border-bottom: 1px solid var(--rule); }
.seq-n { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.seq-steps li.is-on { color: var(--ink); }
.seq-steps li.is-on .seq-n { color: var(--red); }
.seq-stage { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.seq-frame { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 calc((1 - var(--f, 0)) * 100%) 0); }
.seq-frame[data-i="0"] { --f: 1; }
.seq-frame img { width: 100%; height: 100%; object-fit: cover; }
.seq-frame[data-i="0"] img { object-fit: contain; background: #fbfaf6; }
.seq-scan { position: absolute; left: 0; right: 0; top: calc(var(--sf, 0) * 100%); height: 1px; background: var(--red); opacity: var(--so, 0); }
.stack-stage { position: relative; height: min(76svh, 760px); perspective: 2200px; display: grid; place-items: center; container-type: size; }
.stack-model { position: relative; width: min(520px, 62cqw, 64cqh); aspect-ratio: 1181 / 1102; translate: 0 calc(var(--s, 0) * 9cqh); transform-style: preserve-3d; transform: rotateX(calc(var(--s, 0) * 58deg)) rotateZ(calc(var(--s, 0) * -36deg)); }
.stack-layer { position: absolute; inset: 0; margin: 0; transform: translateZ(calc(var(--s, 0) * var(--i) * min(96px, 12cqh))); transform-style: preserve-3d; }
.stack-layer img { width: 100%; height: 100%; object-fit: contain; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(20, 20, 20, .25); }
.stack-floors { margin-top: 22px; }
.stack-note { margin-top: 18px !important; font-size: 14px !important; color: var(--ink-3) !important; }
.stack-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
@media (min-width: 1000px) {
  .seq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .stack-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }   /* mirrored: the neighbouring scene has the text on the left */
  .stack-stage { order: -1; }
}
@media (max-width: 999px) {
  .scene { height: 260vh; height: 260svh; }
  .scene-pin { align-items: start; padding-top: 72px; }
  .seq-text p, .stack-text p { font-size: 15.5px; }
  .seq-steps { display: none; }
  .stack-text { position: relative; z-index: 2; }
  .stack-stage { height: 46svh; margin-top: 8px; }
  .stack-model { width: min(300px, 62cqw, 56cqh); }
}

/* final red field (contact) */
.sheet-red { background: var(--red); color: #fff; border-top: 0; }
.sheet-red .contact-intro p, .sheet-red .contact-meta dd { color: rgba(255, 255, 255, .86); }
.sheet-red .label { color: rgba(255, 255, 255, .78); }
.sheet-red .contact-meta div { border-top-color: rgba(255, 255, 255, .35); }
.sheet-red .contact-big a:hover { text-decoration-color: #fff; }
.sheet-red .link-arrow:hover { color: #fff; opacity: .8; }
.sheet-red :focus-visible { outline-color: #fff; }

/* page transition: the register photo becomes the project cover */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 650ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
.p-cover.is-scanning img { animation: cover-scan var(--t-media) var(--ease-out) both; }
.p-cover { position: relative; }
@keyframes cover-scan { from { clip-path: inset(8%); transform: scale(1.1); } to { clip-path: inset(0); transform: none; } }
@keyframes cover-line { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ======================================================================
   v5 — the pencil follows the streets, the plan carries its scale,
   project pages lay same-frame sheets over each other (lapai)
   ====================================================================== */

/* same-frame sheets on project pages (lapai). Without JavaScript: a row of sheets with their names */
.lapai { grid-column: 1 / -1 !important; width: min(1240px, 100%); margin: 2.4em auto 2.8em; font-family: var(--sans); }
.lapai-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lapas { display: block; cursor: zoom-in; background: #fff; }
.lapas img { display: block; width: 100%; height: auto; }
.lapas-name { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.lapai-line, .lapai-stamp, .lapai-tabs { display: none; }
.lapai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 14px; }
.lapai-title { font-size: 15px; font-weight: 500; letter-spacing: -.005em; color: var(--ink); }
.lapai-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }

html.anim .lapai-stage { display: block; position: relative; aspect-ratio: var(--ar); max-height: 82svh; margin-inline: auto; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
html.anim .lapas { position: absolute; inset: 0; visibility: hidden; }
html.anim .lapas.is-on, html.anim .lapas.is-prev { visibility: visible; }
html.anim .lapas.is-prev { z-index: 1; }
html.anim .lapas.is-on { z-index: 2; }
html.anim .lapas img { width: 100%; height: 100%; object-fit: contain; }
html.anim .lapas-name { display: none; }
html.anim .lapas.is-printing { animation: lapas-print 760ms var(--ease-io) both; }
@keyframes lapas-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
html.anim .lapai-line { display: block; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--red); z-index: 3; opacity: 0; pointer-events: none; }
.lapai-line::before { content: ""; position: absolute; left: 0; top: -5px; width: 26px; height: 11px; background: var(--red); }
.lapai.is-printing .lapai-line { animation: cover-line 760ms var(--ease-io) both; }
html.anim .lapai-stamp {
  display: flex; position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  background: var(--paper); box-shadow: 0 0 0 1px var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.lapai-stamp > * { padding: 9px 12px; }
.lapai-stamp > span { color: var(--ink-3); box-shadow: 1px 0 0 var(--ink); }
.lapai-stamp b { font-weight: 600; }
.lapai-num { color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.lapai-cur { color: var(--red); }
.lapai-cur.ink-in::after { display: none; }

html.anim .lapai-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lapai-tab {
  position: relative; min-height: 40px; padding: 9px 14px; border: 1px solid var(--rule); background: transparent;
  font: 500 13.5px/1.2 var(--sans); color: var(--ink-2); cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lapai-tab:hover { color: var(--ink); border-color: var(--ink); }
.lapai-tab[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.lapai-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -5px; height: 2px; background: var(--red); }
.lapai-ruler { display: none; }
@media (min-width: 900px) {
  html.anim .lapai-time .lapai-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  html.anim .lapai-time .lapai-tabs { display: block; position: relative; height: 66px; }
  .lapai-time .lapai-ruler { display: block; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: var(--ink); }
  .lapai-ruler i { position: absolute; left: calc(var(--at) * 100%); top: -3px; width: 1px; height: 7px; background: var(--ink); opacity: .45; }
  .lapai-time .lapai-tab { position: absolute; left: calc(30px + (100% - 60px) * var(--at)); top: 20px; transform: translateX(-50%); min-height: 44px; padding: 22px 6px 6px; border: 0; background: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .lapai-time .lapai-tab.up { top: -4px; padding: 4px 6px 24px; }
  .lapai-time .lapai-tab.up::before { top: auto; bottom: 3px; }
  .lapai-time .lapai-tab::before { content: ""; position: absolute; left: 50%; top: 7px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink); transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .lapai-time .lapai-tab:hover { color: var(--ink); }
  .lapai-time .lapai-tab[aria-pressed="true"] { color: var(--red); background: none; }
  .lapai-time .lapai-tab[aria-pressed="true"]::before { background: var(--red); transform: scale(1.5); }
  .lapai-time .lapai-tab[aria-pressed="true"]::after { display: none; }
}
@media (max-width: 699px) {
  .lapai-stamp > * { padding: 7px 9px; }
  html.anim .lapai-stamp { font-size: 10px; }
  .lapai-tab { padding: 9px 11px; font-size: 13px; }
}

@media print {
  .site-head, .atlas-map, .filters, .cta-band, .lightbox, .pn-nav { display: none !important; }
  body { background: #fff; }
}

/* ======================================================================
   v9 typography: Clash Grotesk (display), General Sans (text), Azeret Mono (numbers, scale, coordinates)
   ====================================================================== */
.services-head h2 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 5.2rem); letter-spacing: -.01em; line-height: 1; }
.studio-grid h2, .contact h2, .cta-inner h2, .seq-text h3, .stack-text h3 { font-size: clamp(2rem, 1.1rem + 2.8vw, 4rem); letter-spacing: -.008em; line-height: 1.02; }
.demo-text h3, .bim-text h3, .plot-head h3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem); letter-spacing: 0; line-height: 1.06; }
.team-h { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); }
.p-title h1 { font-size: clamp(2.4rem, 1rem + 4.6vw, 6.4rem); line-height: 1; letter-spacing: -.012em; }
.story h2 { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 500; letter-spacing: 0; line-height: 1.12; }
.person-name { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.3rem); letter-spacing: -.012em; line-height: 1.04; }
.bim-list h2 { font-size: 1.45rem; letter-spacing: 0; }
.hist-title { font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; line-height: 1.15; }
.pn-title { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1vw, 2.2rem); font-weight: 500; letter-spacing: 0; line-height: 1.08; }
.bim-price { font-family: var(--display); font-size: clamp(1.3rem, 1rem + .8vw, 1.8rem); font-weight: 500; letter-spacing: 0; }
.bim-price-lg { font-family: var(--display); font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem); font-weight: 500; letter-spacing: -.005em; }
.contact-big a { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.contact-big .contact-phone { font-size: clamp(2.4rem, .9rem + 5.2vw, 6.2rem); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-big .contact-mail { font-size: clamp(1.25rem, .95rem + 1.1vw, 2.1rem); line-height: 1.2; letter-spacing: 0; }
.cta-links a { font-family: var(--display); font-weight: 500; letter-spacing: 0; }
.questions li { font-family: var(--display); font-weight: 500; letter-spacing: 0; }
.motto { font-family: var(--display); font-style: normal; font-weight: 500; letter-spacing: 0; }
.story { font-family: var(--sans); font-size: clamp(17px, 16px + .25vw, 18.5px); line-height: 1.7; }
.story .verse { font-style: normal; color: var(--ink-2); }
.btn, .link-arrow, .filter, .lapai-tab, .lapai, .fig figcaption, .story .story-note, .story .story-link, .story strong { font-family: var(--sans); }
.seq-n, .filter .count, .lb-count, .lapai-stamp, .lapas-name, .lapai-time .lapai-tab { font-family: var(--mono); letter-spacing: 0; }
.lapai-stamp { text-transform: none; font-weight: 500; }
.p-facts dt, .crumbs { font-family: var(--mono); font-size: 12px; }

/* ======================================================================
   v7 — premium motion pass: choreography and the plotter moment
   ====================================================================== */

/* choreography: after a heading is drafted, the text under it rises inside its own mask, then the action
   (app.js marks the followers and starts them at 60 % of the drafting; 110 ms between followers) */
html.anim .follow:not(.in) { clip-path: inset(0 0 100% 0); transform: translateY(.5em); }
.follow.in { clip-path: inset(0 0 0 0); transform: none; transition: clip-path var(--t-text) var(--ease-out) var(--fd, 0ms), transform var(--t-text) var(--ease-out) var(--fd, 0ms); }
.js .p-title .p-kind:not(.in) { clip-path: inset(0 0 100% 0); animation: fs-clip 0s 2.6s forwards; }

/* the plotter moment: a real section of the bureau plotted pen by pen, then the sheet inks in */
.demo-plot { display: grid; gap: 20px clamp(24px, 3vw, 48px); margin-top: clamp(64px, 10vw, 140px); padding-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule-dark); }
.plot-head h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); letter-spacing: -.01em; }
.plot-head p { margin-top: 12px; color: var(--on-dark-2); max-width: 44ch; }
.plot-side { display: grid; gap: 18px; align-content: end; }
.plot-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.plot-steps li { display: flex; gap: 8px; align-items: baseline; font-size: 15px; color: var(--on-dark-2); transition: color var(--t-micro) var(--ease-out-soft); }
.plot-steps li.is-on { color: var(--on-dark); }
.plot-steps li.is-on .seq-n { color: var(--red); }
.plot-sheet { position: relative; margin: 0; background: #fff; overflow: hidden; }
.plot-sheet img { display: block; width: 100%; height: auto; }
html.anim .demo-plot.is-ready .plot-sheet img { opacity: 0; transition: opacity 1100ms var(--ease-in-out); }
html.anim .demo-plot.is-inked .plot-sheet img { opacity: 1; }
.plot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 1600ms var(--ease-in-out) 200ms; }
.demo-plot.is-inked .plot-canvas { opacity: 0; transition: none; }
.plot-gantry { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--red); opacity: 0; transform: translateX(var(--gx, 0px)); pointer-events: none; transition: opacity 400ms var(--ease-out-soft); }
.plot-pen { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 1.5px solid var(--red); background: #fff; opacity: 0; transform: translate(var(--gx, 0px), var(--gy, 0px)); pointer-events: none; transition: opacity 400ms var(--ease-out-soft); }
.plot-pen.is-down { background: var(--red); }
.demo-plot.is-plotting .plot-gantry { opacity: .55; }
.demo-plot.is-plotting .plot-pen { opacity: 1; }
@media (min-width: 1000px) {
  .demo-plot { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 32px clamp(24px, 3vw, 48px); }
  .plot-head { grid-column: 1; grid-row: 1; }
  .plot-sheet { grid-column: 2; grid-row: 1 / span 2; }
  .plot-side { grid-column: 1; grid-row: 2; gap: 32px; }
  .plot-steps { display: grid; max-width: 380px; gap: 0; }
  .plot-steps li { gap: 16px; padding: 11px 0; border-top: 1px solid var(--rule-dark); font-size: inherit; }
  .plot-steps li:last-child { border-bottom: 1px solid var(--rule-dark); }
}
/* ink pass: the carriage sweeps the sheet once; behind it the pencil lines become the inked sheet */
html.anim .demo-plot.is-inking .plot-sheet img { opacity: 1; transition: none; clip-path: inset(0 calc(100% - var(--ix, 0px)) 0 0); }
.demo-plot.is-inking .plot-canvas { clip-path: inset(0 0 0 var(--ix, 0px)); transition: none; }
.demo-plot.is-inking .plot-gantry { opacity: .8; transform: translateX(var(--ix, 0px)); }

/* ======================================================================
   404: an empty sheet of the plan — a red site mark where nothing stands, the title block „Nr. 404“,
   the ratio rolls to 1:404 (inline script in 404.html), the way home and the main phone
   ====================================================================== */
.nf { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); }
.nf-sheet { border: 1px solid var(--ink); }
.nf-plan { position: relative; height: clamp(260px, 46svh, 520px); background: var(--paper);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center; overflow: hidden; }
.nf-ratio { position: absolute; left: 14px; top: 12px; margin: 0; }
.nf-mark { position: absolute; left: 50%; top: 50%; width: clamp(150px, 22vw, 220px); translate: -50% -50%; overflow: visible; fill: none; stroke: var(--red); stroke-width: 2; }
.nf-ring { stroke-dasharray: 290; stroke-dashoffset: 290; animation: nf-draw 1400ms var(--ease-out) 200ms forwards; }
.nf-ticks, .nf-cross { opacity: 0; animation: nf-in 600ms var(--ease-out-soft) 1200ms forwards; }
@keyframes nf-draw { to { stroke-dashoffset: 0; } }
@keyframes nf-in { to { opacity: 1; } }
.nf-xy { position: absolute; right: 14px; bottom: 10px; margin: 0; font: 400 11px/1 var(--mono); color: var(--ink-3); }
.nf-xy span { margin-right: 8px; }
.nf-tb { grid-template-columns: auto minmax(0, 1fr); }
.nf-tb .tb-num { grid-column: 1; grid-row: 1; }
.nf-tb .tb-obj { grid-column: 2; grid-row: 1; border-left: 1px solid var(--rule); }
.nf-tb .tb-name { margin: 0; font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); }
.nf-tb .tb-sub { display: block; -webkit-line-clamp: unset; font-size: 15px; margin-top: 6px; max-width: 60ch; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.nf-en { color: var(--ink-3) !important; font-size: 13.5px !important; }
.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(28px, 4vw, 44px); }
.nf-call { display: grid; gap: 8px; justify-items: start; margin-top: clamp(40px, 6vw, 72px); }
.nf-call .contact-phone { font: 500 clamp(2.4rem, .9rem + 5.2vw, 6.2rem)/1 var(--display); letter-spacing: -.01em; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nf-call .contact-phone:hover { color: var(--red); }
.nf-mail { font-size: clamp(1.1rem, .95rem + .6vw, 1.5rem); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.nf-mail:hover { color: var(--red); }
@media (max-width: 899px) { .nf-tb { grid-template-columns: auto minmax(0, 1fr); } .nf-tb .tb-cat, .nf-tb .tb-years { display: none; } }

/* pressed states (touch and mouse): fill or colour in place, never a moving or growing control */
.btn-primary:active { background: var(--red); }
.nav a:active, .lang a:active, .link-arrow:active, .filter:active, .crumbs a:active, .pn:active .pn-title, .nf-mail:active { color: var(--red); }
.head-phone:active { background: var(--ink); color: var(--paper); }
.menu-toggle:active { color: var(--red); }
a.row-link:active { background: var(--paper-2); }
a.row-link:active .row-title { color: var(--red); }
.marker:active { background: var(--red); }
.contact-big a:active { text-decoration-color: currentColor; opacity: .85; }
.lapai-tab:active { border-color: var(--ink); color: var(--ink); }

/* 2026-10-08: the exact author notice requested by the user. */
.design-credit, .nf-credit.design-credit { margin: 0; max-width: 100%; font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: normal; }

/* social profiles of the company: footer row, and in the phone menu under the sections */
.foot-soc, .nav-soc { display: flex; gap: 6px; list-style: none; margin-inline: -16px -10px; }   /* the marks, not their 44 px tap areas, line up with the text */
.foot-soc a, .nav-soc a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); text-decoration: none; transition: background-color var(--dur) var(--ease-out-soft), color var(--dur) var(--ease-out-soft); }
.nav .nav-soc { flex-direction: row; gap: 6px; }
.nav .nav-soc li + li { border: 0; }
.nav .nav-soc a { padding: 0; font-size: 0; }
.foot-soc svg, .nav-soc svg { width: 24px; height: 24px; fill: currentColor; }
.foot-soc a:hover, .foot-soc a:active, .nav-soc a:hover, .nav-soc a:active { color: var(--red); }

/* phones (≤ 600 px): logo, LT|EN, the phone as an icon and the menu button in the bar (user 28.10); the opened menu repeats them large */
.nav-call { display: none; }
@media (max-width: 600px) {
  .head-inner { gap: 12px; }
  .menu-toggle { padding-left: 4px; }
  /* the opened menu: one column on the left edge — sections, language, phone button, social icons in one row */
  .nav-call { display: grid; justify-items: start; gap: 24px; padding: 24px 0 8px; margin-top: 6px; }
  .nav-lang { gap: 22px; }
  .nav-lang > * { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  .nav-lang .ls-cur { text-decoration: underline 2px var(--red); text-underline-offset: 7px; }
  .nav-lang a:active { color: var(--red); }
  .nav-phone { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 56px; padding: 0 20px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 19px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .nav-phone:active { background: var(--red); }
  .nav .nav-soc { padding: 0; border: 0; margin: 0 -10px 0 -16px; }
}
@media (max-width: 380px) {
  /* the narrowest phones: the same four controls, a little tighter («Uždaryti» needs its width) */
  .brand { --logo-w: 108px; }
  .head-inner { gap: 10px; }
  .lang > * { min-width: 28px; }
  .menu-toggle { gap: 5px; }
}
@media (max-width: 979px) { .nav-call { display: grid; justify-items: start; gap: 24px; padding: 24px 0 8px; margin-top: 6px; } }
@media (min-width: 601px) and (max-width: 979px) { .nav-lang, .nav-phone { display: none; } .nav-call { padding-top: 20px; } }
