/* Nobile — cadastral plan world */
@font-face {
  font-family: "Geologica";
  src: url("/fonts/geologica-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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;
}
@font-face {
  font-family: "Geologica";
  src: url("/fonts/geologica-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  src: url("/fonts/geologica-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #f2f6f9;
  --paper-2: #e6eef4;
  --ink: #0b2540;
  --ink-2: #33506d;
  --ink-3: #5b738b;
  --blue: #1679bf;
  --blue-deep: #0f5f9a;
  --cyan: #8fd3e0;
  --cyan-pale: #d6eff4;
  --print: #0e3a66;
  --print-line: rgba(214, 239, 244, 0.16);
  --print-text: #e8f4f8;
  --print-text-2: #b9d6e6;
  --hair: rgba(11, 37, 64, 0.12);
  --hair-2: rgba(11, 37, 64, 0.22);
  --wall: 3px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geologica", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 340;
  font-variation-settings: "SHRP" 0;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--cyan); color: var(--ink); }
html { scrollbar-color: var(--ink-3) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--paper-2); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-print :focus-visible { outline-color: var(--cyan); }

h1, h2, h3 { margin: 0; font-weight: 560; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; font-variation-settings: "SHRP" 60; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--b); border-radius: 0;
  background: transparent; color: var(--b);
  position: relative; isolation: isolate; overflow: hidden;
  transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b);
  clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0 0 0 0); }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--blue); }
.btn--solid:hover, .btn--solid:focus-visible { color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
@supports (backdrop-filter: blur(1px)) {
  .header { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); }
}
.header.is-stuck { border-bottom-color: var(--hair-2); }
.header__in { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }
@media (max-width: 960px) { :root { --header-h: 72px; } .brand img { height: 46px; } }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 14px; text-decoration: none;
  font-size: .95rem; font-weight: 420; color: var(--ink-2);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--hair-2); }
.lang a, .lang span {
  display: grid; place-items: center; min-width: 44px; min-height: 40px;
  font-size: .82rem; font-weight: 560; letter-spacing: .04em; text-decoration: none; color: var(--ink-3);
}
.lang [aria-current] { background: var(--ink); color: var(--paper); }
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.header .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.menu-btn, .hdr-contact { display: none; }

@media (max-width: 960px) {
  .nav, .header__tools .btn { display: none; }
  .header__tools { margin-left: auto; }
  .hdr-contact { display: grid; place-items: center; width: 48px; height: 44px; background: var(--ink); color: var(--paper); }
  .hdr-contact svg { width: 20px; height: 20px; }
  .header__tools { gap: 8px; }
  .menu-btn {
    display: grid; place-items: center; width: 48px; height: 44px;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
  .menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease);
  }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
}
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper);
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease), visibility 0s .5s;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
.drawer a:not(.btn) {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--hair-2);
  font-size: 1.6rem; font-weight: 520; letter-spacing: -0.02em; text-decoration: none;
  font-variation-settings: "SHRP" 60;
}
.drawer .btn { margin-top: 28px; }
@media (min-width: 961px) { .drawer { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.1rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600;
  font-variation-settings: "SHRP" 100;
}
.hero h1 .accent { color: var(--blue); }
.hero__lead { margin-top: 28px; max-width: 34ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 450; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--hair-2); }
.hero__mail:hover { border-bottom-color: var(--blue); color: var(--blue-deep); }
.hero__mail svg { width: 18px; height: 18px; }

.plan { position: relative; }
.plan svg { width: 100%; height: auto; overflow: visible; }
.plan__read {
  position: absolute; right: 0; top: 0; padding: 6px 10px;
  font-size: .74rem; letter-spacing: .02em; font-feature-settings: "tnum" 1; color: var(--ink-2);
  border: 1px solid var(--hair-2); background: var(--paper);
  opacity: 0; transition: opacity .3s;
}
.plan.is-tracking .plan__read { opacity: 1; }
.plan .xh { opacity: 0; transition: opacity .3s; pointer-events: none; }
.plan.is-tracking .xh { opacity: 1; }

/* svg line styles */
.ln { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ln--thin { stroke-width: 1; stroke: var(--ink-2); }
.ln--wall { stroke-width: 2.6; }
.ln--parcel { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 14 5 2 5; }
.ln--route { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.svg-label { font: 500 13px "Geologica", sans-serif; fill: var(--ink); letter-spacing: .01em; }
.svg-small { font: 400 11px "Geologica", sans-serif; fill: var(--ink-2); font-feature-settings: "tnum" 1; }
.svg-tag { font: 600 12px "Geologica", sans-serif; fill: var(--paper); letter-spacing: .04em; }

/* axonometric house */
.hx-back { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.hx-side { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hx-front path { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* draw-on: the one authored motion */
.js .plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan .draw.ln--parcel, .js .plan .draw.ln--route { stroke-dasharray: 1; }
.js .plan .plane, .js .plan .lbl { opacity: 0; }
.js .plan.is-drawn .draw { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .plan.is-drawn .plane { animation: settle .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .plan.is-drawn .lbl { animation: fade .6s ease-out forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .is-done .draw, .js .is-done .draw.ln--parcel { stroke-dasharray: none; stroke-dashoffset: 0; }
.js .is-done .draw.ln--parcel { stroke-dasharray: 14 5 2 5; }
.js .is-done .draw.ln--route { stroke-dasharray: 2 6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; transform: translate(10px, -14px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .plan { order: 2; margin-inline: -8px; }
  .plan__read { display: none; }
  .plan .svg-label { font-size: 30px; }
  .plan .svg-small { font-size: 22px; }
  .plan .num, .plan .scale-num { display: none; }
  .section-draw .svg-label { font-size: 22px; }
}

/* ---------- section heads ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.head p { max-width: 52ch; color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 960px) { .head { grid-template-columns: 1fr; } }

/* ---------- services: floor plan ---------- */
.sheet { position: relative; padding: 96px 0 0 76px; }
.floor {
  --ext: 12px;
  display: grid; grid-template-columns: repeat(12, 1fr);
  border: var(--ext) solid var(--ink-2);
  border-image: repeating-linear-gradient(45deg, var(--ink-2) 0 1px, var(--paper) 1px 6px) 12;
  outline: 1.5px solid var(--ink);
  background: var(--paper);
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}
.floor::before { /* inner face of the exterior wall */
  content: ""; position: absolute; inset: 0; box-shadow: 0 0 0 1.5px var(--ink); pointer-events: none; z-index: 0;
}
.room {
  position: relative; isolation: isolate; z-index: 1;
  padding: clamp(28px, 3.2vw, 48px);
  display: flex; flex-direction: column; gap: 16px;
}
.room--a { grid-column: 1 / 8; }
.room--b { grid-column: 8 / 13; }
.room--c { grid-column: 1 / 6; }
.room--d { grid-column: 6 / 13; }
.room::before { /* flat plane fill */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan-pale);
  clip-path: circle(0% at var(--ox, 0%) var(--oy, 0%));
  transition: clip-path .7s var(--ease);
}
.room:hover::before, .room:focus-within::before { clip-path: circle(150% at var(--ox, 0%) var(--oy, 0%)); }
.room--a { --ox: 100%; --oy: 100%; }
.room--b { --ox: 0%; --oy: 100%; }
.room--c { --ox: 100%; --oy: 0%; }
.room--d { --ox: 0%; --oy: 0%; }

.wall { position: absolute; background: var(--ink); z-index: 1; transition: transform 1s var(--ease) .2s; }
.wall--r { top: 0; bottom: 0; right: calc(var(--wall) / -2); width: var(--wall); transform-origin: top; }
.wall--b { left: 0; right: 0; bottom: calc(var(--wall) / -2); height: var(--wall); transform-origin: left; }
.wall--m { display: none; }
.js .floor:not(.is-drawn) .wall--r { transform: scaleY(0); }
.js .floor:not(.is-drawn) .wall--b { transform: scaleX(0); }

.door { position: absolute; width: 56px; height: 56px; pointer-events: none; z-index: 2; }
.door::before { content: ""; position: absolute; background: var(--paper); }
.door svg { position: absolute; inset: 0; width: 56px; height: 56px; overflow: visible; }
.door path { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.door--b { right: 56px; bottom: calc(var(--wall) / -2); }
.door--b::before { left: 0; bottom: -1px; width: 56px; height: calc(var(--wall) + 2px); }
.door--r { right: calc(var(--wall) / -2); bottom: 40px; }
.door--r::before { right: -1px; top: 0; width: calc(var(--wall) + 2px); height: 56px; }
.door--r svg { transform: scaleX(-1) rotate(90deg); }

/* windows in the exterior wall: jambs + outer face, glazing, inner face */
.win { position: absolute; z-index: 3; pointer-events: none; background-color: var(--paper); }
.win--t, .win--b { width: 112px; height: var(--ext); left: var(--at); border-inline: 1.5px solid var(--ink);
  background-image: linear-gradient(to bottom, var(--ink) 0 1.5px, transparent 1.5px calc(50% - .5px), var(--ink-2) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px) calc(100% - 1.5px), var(--ink) calc(100% - 1.5px)); }
.win--t { top: calc(-1 * var(--ext)); }
.win--b { bottom: calc(-1 * var(--ext)); }
.win--l, .win--r { height: 96px; width: var(--ext); top: var(--at); border-block: 1.5px solid var(--ink);
  background-image: linear-gradient(to right, var(--ink) 0 1.5px, transparent 1.5px calc(50% - .5px), var(--ink-2) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px) calc(100% - 1.5px), var(--ink) calc(100% - 1.5px)); }
.win--l { left: calc(-1 * var(--ext)); }
.win--r { right: calc(-1 * var(--ext)); }
/* sill line inside the room */
.win--t::after, .win--b::after { content: ""; position: absolute; left: -8px; right: -8px; height: 1px; background: var(--ink-3); }
.win--t::after { top: calc(100% + 5px); }
.win--b::after { bottom: calc(100% + 5px); }
.win--l::after, .win--r::after { content: ""; position: absolute; top: -8px; bottom: -8px; width: 1px; background: var(--ink-3); }
.win--l::after { left: calc(100% + 5px); }
.win--r::after { right: calc(100% + 5px); }

/* room tag: number + area */
.tag { position: absolute; top: clamp(28px, 3.2vw, 48px); right: clamp(28px, 3.2vw, 48px); display: grid; text-align: center;
  border: 1px solid var(--ink-2); background: var(--paper); font-size: .72rem; line-height: 1; font-feature-settings: "tnum" 1; color: var(--ink-2); pointer-events: none; }
.tag b { padding: 6px 10px 5px; font-weight: 560; color: var(--ink); border-bottom: 1px solid var(--ink-2); }
.tag span { padding: 5px 10px 6px; }

/* dimension chains + structural axes (desktop) */
.dims { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--ext) + 20px); display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none; }
.dims span { position: relative; text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--ink-2);
  font-size: .74rem; font-feature-settings: "tnum" 1; color: var(--ink-2); }
.dims span::before, .dims span:last-child::after { content: ""; position: absolute; bottom: -6px; width: 1px; height: 12px; background: var(--ink); transform: skewX(-40deg); }
.dims span::before { left: 0; }
.dims span:last-child::after { right: 0; }
.dims--total { bottom: calc(100% + var(--ext) + 46px); }
.axis { position: absolute; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-size: .72rem; font-weight: 560; color: var(--ink); font-feature-settings: "tnum" 1; pointer-events: none; }
.axis--col { bottom: calc(100% + var(--ext) + 70px); left: var(--at); transform: translateX(-50%); }
.axis--col::after { content: ""; position: absolute; top: 100%; left: 50%; width: 0; height: calc(70px + var(--ext)); border-left: 1px dashed var(--ink-3); }
.dimv { position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--ext) - 26px); width: 0; border-left: 1px solid var(--ink-2); pointer-events: none; }
.dimv::before, .dimv::after { content: ""; position: absolute; left: -6px; width: 12px; height: 1px; background: var(--ink); transform: skewY(-40deg); }
.dimv::before { top: 0; }
.dimv::after { bottom: 0; }
.dimv b { position: absolute; top: 50%; left: -10px; transform: translate(-50%, -50%) rotate(-90deg); font-size: .74rem; font-weight: 400; font-feature-settings: "tnum" 1; color: var(--ink-2); white-space: nowrap; }
.axis--row { left: calc(-1 * var(--ext) - 70px); transform: translateY(-50%); }
.axis--row::after { content: ""; position: absolute; left: 100%; top: 50%; height: 0; width: calc(70px - 26px + var(--ext)); border-top: 1px dashed var(--ink-3); }
.north { position: absolute; right: 52px; bottom: calc(100% + var(--ext) + 64px); width: 40px; height: 40px; pointer-events: none; }
.north path { fill: var(--ink); }
.north circle { fill: none; stroke: var(--ink); stroke-width: 1; }
.sheet__title { margin-top: 22px; display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; font-size: .9rem; color: var(--ink-2); }
.sheet__title b { font-weight: 560; color: var(--ink); font-size: 1rem; padding-bottom: 4px; border-bottom: 3px double var(--ink); }

.room__t { display: grid; gap: 18px; justify-items: start; }
.room__icon { width: 44px; height: 44px; color: var(--blue); }
.room__icon path, .room__icon rect, .room__icon circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.room h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.room--a h3, .room--d h3 { font-size: clamp(1.75rem, 2.7vw, 2.6rem); }
.room p { color: var(--ink-2); max-width: 46ch; }
.room ul { display: grid; margin-top: 4px; }
.room li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--hair-2); font-size: .98rem; }
.room li:last-child { border-bottom: 1px solid var(--hair-2); }
.room li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.5px solid var(--blue); transform: translateY(-1px) rotate(45deg); }
.room__ask {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  font-weight: 500; text-decoration: none; color: var(--blue-deep);
  border-bottom: 1.5px solid currentColor;
}
.room__ask svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.room__ask:hover svg { transform: translateX(4px); }
.js .floor .room > :not(.wall):not(.door):not(.win) { transition: opacity .6s ease-out .5s, transform .8s var(--ease) .5s; }
.js .floor:not(.is-drawn) .room > :not(.wall):not(.door):not(.win) { opacity: 0; transform: translateY(8px); }

@media (max-width: 860px) {
  .room--a, .room--b, .room--c, .room--d { grid-column: 1 / -1; }
  .wall--r { display: none; }
  .wall--m { display: block; }
  .door--r { display: none; }
  .door--b { left: auto; right: 40px; }
  .sheet { padding: 0; }
  .floor { --ext: 10px; border-image: repeating-linear-gradient(45deg, var(--ink-2) 0 1px, var(--paper) 1px 6px) 10; }
  .dims, .axis, .dimv, .north { display: none; }
  .room--b .win--t, .room--c .win--b { display: none; }
  .sheet__title { justify-content: flex-start; }
}

/* ---------- about: drawn on paper ---------- */
.about { background: var(--paper-2); border-block: 1px solid var(--hair-2); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.about__text { display: grid; gap: 18px; margin-top: 28px; font-size: 1.08rem; color: var(--ink-2); max-width: 54ch; }
.about__text strong { color: var(--ink); font-weight: 500; }
.quote {
  margin: 36px 0 0; padding-top: 24px; border-top: 1.5px solid var(--ink);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.35; font-weight: 420; letter-spacing: -0.015em; color: var(--ink);
  text-wrap: balance;
}
.section-draw svg { width: 100%; height: auto; overflow: visible; }
.sec-word { font-family: "Geologica", sans-serif; font-weight: 620; letter-spacing: -0.02em; fill: var(--ink); font-variation-settings: "SHRP" 100; }
.sec-word--light { fill: #fff; }
.sec-tag { font: 560 19px "Geologica", sans-serif; fill: #fff; letter-spacing: .01em; }
.js .section-draw .plane { opacity: 0; transform: translate(10px, -14px); transition: opacity .8s ease-out, transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .section-draw.is-drawn .plane { opacity: 1; transform: none; }
.js .section-draw .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .section-draw.is-drawn .draw { stroke-dashoffset: 0; }
.js .section-draw.is-done .draw { stroke-dasharray: none; }

.details { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.det { padding: clamp(24px, 2.6vw, 36px) clamp(16px, 2.4vw, 32px) clamp(24px, 2.8vw, 36px); display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 16px; align-content: start; }
.det + .det { border-left: 1px solid var(--ink); }
.det__title { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.det__title h3 { font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.12; }
.det__title small { grid-column: 2; font-size: .72rem; color: var(--ink-3); font-feature-settings: "tnum" 1; margin-top: 2px; }
.det__draw { grid-column: 2; grid-row: 1; align-self: start; width: 96px; height: auto; aspect-ratio: 240 / 140; opacity: .85;
  background: var(--paper);
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 8px 8px; }
.det p { grid-column: 1 / -1; padding-top: 16px; border-top: 3px double var(--ink); color: var(--ink); font-size: 1.08rem; line-height: 1.55; max-width: 34ch; }
.det__draw .d-frame { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.det__draw .d-line { fill: none; stroke: var(--ink-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.det__draw .d-thin { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.det__draw .d-dash { stroke-dasharray: 3 3; }
.det__draw .d-route { fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.det__draw .d-acc, .det__draw .d-accfill { fill: var(--blue); transition: fill .3s; }
.det__draw text { display: none; }
.det:hover .det__draw { opacity: 1; }
.det:hover .d-line { stroke: var(--blue-deep); }
@media (prefers-reduced-motion: no-preference) {
  .det:hover .d-route { animation: march 1.2s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -16; } }
}
.det__tag { grid-row: 1 / 3; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat; font-feature-settings: "tnum" 1; }
.det__tag b, .det__tag i { display: grid; place-items: center; font-style: normal; line-height: 1; }
.det__tag b { font-size: .9rem; font-weight: 600; padding-top: 3px; }
.det__tag i { font-size: .62rem; color: var(--ink-2); padding-bottom: 3px; }
@media (max-width: 860px) {
  .about__grid, .details { grid-template-columns: 1fr; }
  .det + .det { border-left: 0; border-top: 1px solid var(--ink); }
  .det p { max-width: none; }
}

/* ---------- process: stair section ---------- */
.route {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end;
  position: relative; border-bottom: 1.5px solid var(--ink);
}
.route::after { /* ground under the stair */
  content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 14px;
  background: repeating-linear-gradient(45deg, var(--ink-3) 0 1px, transparent 1px 7px);
}
.route li { position: relative; display: flex; flex-direction: column; }
.route li > :not(.tread) { margin-right: clamp(16px, 3vw, 44px); }
.tread {
  --h: 28px; position: relative; display: block; height: var(--h); margin-top: 28px;
  border-top: 3px solid var(--ink);
  background: repeating-linear-gradient(45deg, var(--ink-3) 0 1px, var(--paper) 1px 7px);
  transform-origin: bottom; transition: transform 1s var(--ease);
}
.route li + li .tread::before { /* riser */ content: ""; position: absolute; left: 0; top: -3px; bottom: 0; width: 3px; background: var(--ink); }
.route li:nth-child(2) .tread { --h: 72px; }
.route li:nth-child(3) .tread { --h: 116px; border-right: 1.5px solid var(--ink); }
.tread i { /* level marker */
  position: absolute; left: 14px; bottom: calc(100% + 8px); padding-left: 18px;
  font-style: normal; font-size: .74rem; font-feature-settings: "tnum" 1; color: var(--ink-2);
}
.tread i::before { content: ""; position: absolute; left: 0; top: 50%; border: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; transform: translateY(-2px); }
.route li .bubble { margin-bottom: 0; }
.bubble {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper);
  font-size: 1.2rem; font-weight: 560; font-feature-settings: "tnum" 1; font-variation-settings: "SHRP" 100;
  transition: background .4s, color .4s, border-color .4s;
}
.route li:hover .bubble { background: var(--blue); border-color: var(--blue); color: #fff; }
.route li:hover .tread { background: repeating-linear-gradient(45deg, var(--blue) 0 1px, var(--cyan-pale) 1px 7px); }
.route h3 { margin: 22px 0 10px; font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.route p { color: var(--ink-2); max-width: 36ch; }
.js .route:not(.is-drawn) .tread { transform: scaleY(0); }
.js .route li > :not(.tread) { opacity: 0; transform: translateY(10px); transition: opacity .6s ease-out .4s, transform .8s var(--ease) .4s; }
.js .route.is-drawn li > :not(.tread) { opacity: 1; transform: none; }
.js .route li:nth-child(2) .tread, .js .route.is-drawn li:nth-child(2) > :not(.tread) { transition-delay: .3s; }
.js .route li:nth-child(3) .tread, .js .route.is-drawn li:nth-child(3) > :not(.tread) { transition-delay: .6s; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .route li { padding-top: 36px; }
  .route li > :not(.tread) { margin-right: 0; }
  .tread { --h: 16px !important; margin-top: 20px; border-right: 1.5px solid var(--ink); }
  .route li + li .tread::before { display: none; }
  .route li:nth-child(1) .tread { width: 40%; }
  .route li:nth-child(2) .tread { width: 70%; }
}

/* ---------- contact: blueprint field ---------- */
.print {
  background-color: var(--print); color: var(--print-text);
  background-image:
    linear-gradient(var(--print-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--print-line) 1px, transparent 1px),
    linear-gradient(rgba(214,239,244,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,239,244,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); color: #fff; font-variation-settings: "SHRP" 100; }
.contact__lead { margin-top: 20px; color: var(--print-text-2); font-size: 1.1rem; max-width: 40ch; }
.channels { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid rgba(214,239,244,.3); }
.channels a {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid rgba(214,239,244,.3); text-decoration: none;
}
.channels svg { width: 24px; height: 24px; color: var(--cyan); }
.channels small { display: block; color: var(--print-text-2); font-size: .85rem; }
.channels span { font-size: 1.15rem; font-weight: 450; color: #fff; }
.channels .go { width: 18px; height: 18px; color: var(--print-text-2); transition: transform .35s var(--ease), color .2s; }
.channels a:hover .go { transform: translateX(4px); color: #fff; }

.form {
  position: relative; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); outline: 1px solid rgba(232, 244, 248, .55); outline-offset: 9px;
}
.form-wrap::before { /* a second sheet under the form, like the contract on the plan */
  content: ""; position: absolute; z-index: -1; right: -22px; top: -26px; width: 44%; height: 34%;
  background: var(--cyan); border: 1.4px solid var(--ink); transform: rotate(4deg);
}
.contact__grid > .form-wrap { position: relative; isolation: isolate; }
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-bottom: 3px double var(--ink); font-size: .86rem; color: var(--ink-2); font-feature-settings: "tnum" 1; }
.form__head b { font-size: 1rem; font-weight: 560; color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; }
.form__row .field + .field { border-left: 1px solid var(--ink); }
.field { display: grid; gap: 2px; margin: 0; padding: 12px 18px 10px; border-bottom: 1px solid var(--ink); transition: background-color .25s, box-shadow .25s; }
.field label, .field .label { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field:focus-within { background: var(--cyan-pale); box-shadow: inset 0 -3px 0 var(--ink); }
.field:focus-within label { color: var(--ink); }
.input {
  width: 100%; min-height: 40px; padding: 4px 0;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-radius: 0; appearance: none;
}
input.input, select.input { border-bottom: 1px dashed var(--ink-3); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230b2540' stroke-width='1.6'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 28px; cursor: pointer;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; }
.field { position: relative; }
.field.is-invalid { background: linear-gradient(#b42318, #b42318) bottom / 100% 3px no-repeat; }
.err { display: none; font-size: .84rem; color: #b42318; padding-top: 2px; }
.field.is-invalid .err { display: block; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .93rem; color: var(--ink-2); margin: 0; padding: 16px 18px; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check.is-invalid input { border-color: #b42318; }
#e-consent { margin: -8px 18px 12px 54px !important; }
.form .btn { width: 100%; min-height: 60px; border: 0; border-top: 1.5px solid var(--ink); }
.wire { margin-top: 48px; width: min(100%, 360px); height: auto; overflow: visible; }
.wire path { fill: none; vector-effect: non-scaling-stroke; }
.wire .w-front { stroke: #e8f4f8; stroke-width: 1.4; }
.wire .w-back { stroke: rgba(232, 244, 248, .55); stroke-width: 1; stroke-dasharray: 4 4; }
.wire .w-link { stroke: rgba(232, 244, 248, .8); stroke-width: 1; }
.wire .w-dim { stroke: rgba(232, 244, 248, .6); stroke-width: 1; }
.wire .w-ground { stroke: rgba(232, 244, 248, .8); stroke-width: 1.5; }
.wire text { font: 400 22px "Geologica", sans-serif; fill: rgba(232, 244, 248, .75); font-feature-settings: "tnum" 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.status { margin: 18px; padding: 14px 16px; font-size: .96rem; display: none; border: 1.5px solid; }
.status.is-ok { display: block; border-color: var(--blue); background: var(--cyan-pale); color: var(--ink); }
.status.is-err { display: block; border-color: #b42318; background: #fdf0ee; color: #7a1a12; }
.form.is-sent .form__fields { display: none; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } .form-wrap::before { right: -6px; top: -14px; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form__row .field + .field { border-left: 0; } .form { outline-offset: 5px; } }
@media (max-width: 960px) { .wire { width: min(70%, 280px); margin-top: 32px; } }

/* ---------- footer: sheet edge + title block ---------- */
.footer { padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px); position: relative; }
.foot {
  --pad: clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: 5fr 3fr 6fr; gap: 32px clamp(24px, 4vw, 56px); align-items: end;
  border: 1.5px solid var(--ink); padding: var(--pad) var(--pad) 0;
  outline: 1px solid var(--hair-2); outline-offset: 10px; /* trimmed sheet edge */
}
.foot__brand { display: grid; gap: 16px; justify-items: start; align-self: start; padding-bottom: var(--pad); }
.foot__logo img { height: 66px; width: auto; }
.foot__tag { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "SHRP" 60; color: var(--ink); max-width: 22ch; }
.foot__mail { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; border-bottom: 1px solid var(--hair-2); color: var(--ink); font-weight: 450; }
.foot__mail:hover { border-bottom-color: var(--blue); color: var(--blue-deep); }
.foot__mail svg { width: 18px; height: 18px; }
.foot__nav { display: grid; align-self: start; border-top: 1px solid var(--hair-2); margin-bottom: var(--pad); }
.foot__nav a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--hair-2); text-decoration: none; color: var(--ink-2); font-size: .95rem;
}
.foot__nav a svg { width: 14px; height: 14px; opacity: .45; transition: transform .35s var(--ease), opacity .2s; }
.foot__nav a:hover { color: var(--ink); }
.foot__nav a:hover svg { transform: translateX(3px); opacity: 1; }
.foot__block {
  margin: 0 calc(-1 * var(--pad)) 0 0; display: grid; align-self: end; grid-template-columns: 2fr 1.3fr 0.9fr;
  border: 1.5px solid var(--ink); border-right: 0; border-bottom: 0; background: var(--paper);
}
.foot__block > div { padding: 10px 14px 12px; display: grid; gap: 4px; align-content: start; min-height: 64px; }
.foot__block dt { font-size: .72rem; color: var(--ink-3); }
.foot__block dd { margin: 0; font-size: .95rem; color: var(--ink); font-feature-settings: "tnum" 1; }
.foot__block dd a { color: var(--ink); text-decoration: none; }
.foot__block dd a:hover { color: var(--blue-deep); text-decoration: underline; }
.foot__block dd span { font-weight: 560; }
.c-obj { grid-column: 1 / 3; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.c-obj dd { font-weight: 560; font-size: 1.02rem; }
.c-sheet { grid-column: 3; border-bottom: 1px solid var(--ink); }
.c-mail { grid-column: 1; border-right: 1px solid var(--ink); }
.c-lang { grid-column: 2; border-right: 1px solid var(--ink); }
.c-year { grid-column: 3; }
@media (max-width: 1100px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__block { grid-column: 1 / -1; margin-left: calc(-1 * var(--pad)); border-left: 0; }
}
@media (max-width: 600px) {
  .foot { grid-template-columns: 1fr; row-gap: 8px; }
  .foot__block { grid-template-columns: 1fr 1fr; }
  .c-obj { grid-column: 1 / -1; border-right: 0; }
  .c-sheet { grid-column: 1; border-right: 1px solid var(--ink); }
  .c-mail { grid-column: 2; grid-row: 2; border-right: 0; border-bottom: 1px solid var(--ink); }
  .c-mail dd { word-break: break-all; }
  .c-lang { grid-column: 1; }
  .c-year { grid-column: 2; }
}

/* ---------- legal page ---------- */
.legal { padding: clamp(40px, 7vw, 96px) 0; }
.legal article { max-width: 68ch; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 28px; font-variation-settings: "SHRP" 100; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.legal li { padding-left: 20px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--blue); transform: rotate(45deg); }
.legal .back { display: inline-flex; gap: 8px; margin-bottom: 32px; font-weight: 500; color: var(--blue-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
}
