/* SmartEL — "Light as material"
   Warm graphite, ivory type, brass light. */

@font-face { font-family: "Geologica"; src: url("/assets/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("/assets/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("/assets/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; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plexmono-latin-400.woff2") format("woff2"); font-weight: 400; 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: "Plex Mono"; src: url("/assets/fonts/plexmono-latin-ext-400.woff2") format("woff2"); font-weight: 400; 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: "Plex Mono"; src: url("/assets/fonts/plexmono-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@property --lit { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fill { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #0c0b0a;
  --bg-2: #131210;
  --bg-3: #1a1916;
  --bg-4: #23211d;
  --line: rgba(236, 228, 214, 0.1);
  --line-2: rgba(236, 228, 214, 0.2);
  --text: #ede6d9;
  --text-2: #b5ada0;
  --text-3: #8c857a;
  --brass: #c8a26b;
  --brass-2: #e6c793;
  --brass-dim: rgba(200, 162, 107, 0.16);
  --warm: rgba(255, 186, 104, 0.55);
  --danger: #e58a6f;
  --ok: #a9c48f;

  --font: "Geologica", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --header-h: 84px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t: 420ms;
  --t-slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain — barely there, kills the "flat digital" look */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--brass); color: #120f0b; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 5.2rem); font-weight: 250; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.2vw, 3.1rem); }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 500; }

.container { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.mono, .section-label, .eyebrow { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; font-weight: 400; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); transition: top var(--t-fast); }
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.button {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0;
  white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  isolation: isolate; overflow: hidden;
}
.button::after { content: "→"; font-family: var(--font); transition: transform var(--t) var(--ease); }
.button:hover::after { transform: translateX(4px); }
.button:active { transform: translate(var(--bx), var(--by)) scale(0.97); }
.button.primary { background: var(--text); color: #14110d; }
.button.primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 140% at var(--mx, 50%) 120%, var(--brass-2), var(--brass) 60%);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.button.primary:hover::before { opacity: 1; }
.button.primary:hover { box-shadow: 0 10px 40px -10px var(--warm); }
.button.secondary, .button.ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.button.secondary:hover, .button.ghost:hover { border-color: var(--brass); color: var(--brass-2); }
.desktop-nav .button { min-height: 42px; padding: 0 20px; font-size: 0.88rem; }
.cookie-actions .button::after, .gallery-password .button::after { content: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
/* the blur lives on a pseudo-layer: backdrop-filter on the header itself would trap the fixed mobile drawer inside the header box */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 11, 10, 0.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity var(--t) var(--ease); pointer-events: none; }
.site-header.scrolled::before { opacity: 1; }
.site-header.open::before { opacity: 0; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.site-header.open { transform: none; z-index: 140; } /* open menu sits above the cookie banner */
.nav { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-logo-img { width: auto; height: 30px; }
.brand-mark-img { width: 34px; height: 34px; }
.brand-lockup { display: grid; line-height: 1.1; }
.brand-name { font-weight: 500; letter-spacing: -0.01em; }
.brand-text { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); }

.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: 0.92rem; }
.desktop-nav > a:not(.button) { position: relative; color: var(--text-2); transition: color var(--t-fast); padding: 6px 0; }
.desktop-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease); }
.desktop-nav > a:not(.button):hover { color: var(--text); }
.desktop-nav > a:not(.button):hover::after { transform: scaleX(1); transform-origin: left; }
.language, .mobile-language { display: inline-flex; gap: 2px; font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; }
.language a, .mobile-language a { padding: 6px 8px; color: var(--text-3); border-radius: 3px; transition: color var(--t-fast); }
.language a:hover { color: var(--text); }
.language a.active, .mobile-language a.active { color: var(--brass-2); }

.menu-toggle { display: none; position: relative; z-index: 2; font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; min-height: 44px; padding: 0 4px; gap: 10px; align-items: center; }
.menu-toggle::before { content: ""; width: 22px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform var(--t) var(--ease), height var(--t) var(--ease); }
.site-header.open .menu-toggle::before { height: 0; transform: rotate(0); }
.mobile-drawer {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-io);
  visibility: hidden;
}
.site-header.open .mobile-drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-drawer > a:not(.button) { font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 250; letter-spacing: -0.04em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-drawer .mobile-language { margin: 24px 0 18px; }
.mobile-drawer .button { align-self: flex-start; }

/* ---------- Generic sections ---------- */
main { display: block; position: relative; isolation: isolate; }
.section { padding-block: clamp(90px, 13vw, 180px); position: relative; }
.section-label, .eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--brass); margin-bottom: 28px; }
.section-label::before, .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
a.section-label:hover { color: var(--brass-2); }
a.section-label { font-family: var(--font); font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
a.section-label::before { content: none; }
div.section-label, span.section-label, .eyebrow { display: none; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-heading h2 { max-width: 15ch; }
.section-intro, .lead { color: var(--text-2); font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.65; max-width: 54ch; font-weight: 300; }
.note { color: var(--text-2); font-size: 0.95rem; border-left: 1px solid var(--brass); padding: 4px 0 4px 18px; margin-top: 28px; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- HERO (home) ---------- */
.hero-x {
  --lit: 0;
  --sx: 60%; --sy: 45%;
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
  transition: --lit 1600ms var(--ease-io);
}
.hero-x.is-lit { --lit: 1; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%;
  transform: scale(calc(1.08 - var(--lit) * 0.04)) translateY(var(--py, 0px));
  filter: brightness(calc(0.16 + var(--lit) * 0.66)) saturate(calc(0.35 + var(--lit) * 0.65)) contrast(1.06);
  will-change: transform, filter;
}
/* warm bloom around the chandelier */
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(28% 22% at 62% 40%, rgba(255, 196, 120, 0.42), transparent 70%),
    radial-gradient(60% 50% at 62% 42%, rgba(255, 170, 90, 0.16), transparent 75%);
  opacity: var(--lit);
  mix-blend-mode: screen;
}
/* flashlight when lights are off */
.hero-spot {
  position: absolute; inset: 0;
  background: radial-gradient(260px 260px at var(--sx) var(--sy), rgba(255, 214, 160, 0.30), rgba(255, 190, 120, 0.08) 45%, transparent 70%);
  mix-blend-mode: soft-light;
  opacity: calc(1 - var(--lit));
  pointer-events: none;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.75) 0%, rgba(12, 11, 10, 0) 26%),
    linear-gradient(0deg, rgba(12, 11, 10, 0.96) 0%, rgba(12, 11, 10, 0.55) 34%, rgba(12, 11, 10, 0) 62%),
    linear-gradient(90deg, rgba(12, 11, 10, 0.86) 0%, rgba(12, 11, 10, 0.5) 38%, rgba(12, 11, 10, 0) 68%);
}
.hero-inner { position: relative; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-2); margin-bottom: clamp(22px, 3vw, 36px); }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 var(--warm); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--warm); } 70% { box-shadow: 0 0 0 10px rgba(255, 186, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 186, 104, 0); } }
.hero-title { max-width: 27ch; font-size: clamp(2.05rem, 4.4vw, 4.25rem); text-shadow: 0 2px 40px rgba(12, 11, 10, 0.45); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1100ms var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.hero-title em { font-style: normal; color: var(--brass-2); }
.hero-x.ready .hero-title .line > span { transform: none; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-2); }
.hero-bottom .lead { max-width: 52ch; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-side { display: grid; justify-items: end; gap: 18px; }
.hero-caption { color: var(--text-3); text-align: right; }
.hero-fade { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: 800ms; }
.hero-x.ready .hero-fade { opacity: 1; transform: none; }

/* the light switch — signature interaction */
.light-switch { display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12, 11, 10, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color var(--t) var(--ease); min-height: 48px; }
.light-switch:hover { border-color: var(--brass); }
.ls-track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--t) var(--ease); }
.ls-knob { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-3); transition: transform var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.light-switch[aria-pressed="true"] .ls-track { background: rgba(200, 162, 107, 0.28); }
.light-switch[aria-pressed="true"] .ls-knob { transform: translateX(22px); background: var(--brass-2); box-shadow: 0 0 18px 2px var(--warm); }
.ls-label { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-2); display: grid; text-align: left; line-height: 1.35; }
.ls-label b { font-weight: 400; color: var(--text); }
.ls-label .on, .light-switch[aria-pressed="true"] .ls-label .off { display: none; }
.light-switch[aria-pressed="true"] .ls-label .on { display: inline; }

.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(32px, 5vw, 56px); width: 1px; height: 64px; background: var(--line-2); overflow: hidden; display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass-2); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(1.1rem, 1.8vw, 1.6rem); font-weight: 250; letter-spacing: -0.02em; color: var(--text-2); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(100px, 14vw, 200px); }
.statement p { font-size: clamp(1.45rem, 2.7vw, 2.5rem); font-weight: 250; line-height: 1.18; letter-spacing: -0.035em; max-width: 24ch; }
.statement .word { color: var(--text-3); transition: color 500ms var(--ease); }
.statement .word.on { color: var(--text); }
.statement-foot { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: clamp(40px, 5vw, 64px); color: var(--text-3); }
.statement-foot b { display: block; font-family: var(--font); font-weight: 300; text-transform: none; letter-spacing: -0.01em; color: var(--text); font-size: 1.05rem; margin-top: 6px; }

/* ---------- Services: editorial index ---------- */
.feature-grid { counter-reset: svc; border-top: 1px solid var(--line-2); }
.feature {
  counter-increment: svc;
  position: relative;
  display: grid;
  grid-template-columns: 76px 56px minmax(0, 1fr) minmax(0, 1.05fr) 40px;
  gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line-2);
  isolation: isolate;
  transition: padding var(--t) var(--ease);
}
.feature::before { content: counter(svc, decimal-leading-zero); font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); transition: color var(--t); }
.feature::after { content: "→"; font-family: var(--font); color: var(--text-3); justify-self: end; transition: transform var(--t) var(--ease), color var(--t); grid-column: 5; grid-row: 1; }
.feature > .icon-chip { grid-column: 2; }
.feature > h3 { grid-column: 3; font-size: clamp(1.2rem, 1.7vw, 1.6rem); font-weight: 300; letter-spacing: -0.03em; transition: transform var(--t) var(--ease), color var(--t); }
.feature > p { grid-column: 4; color: var(--text-2); font-size: 0.98rem; font-weight: 300; max-width: 46ch; }
.feature > .wire { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-2) 30%, var(--brass) 70%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.feature > .bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 140% at var(--fx, 20%) 50%, rgba(200, 162, 107, 0.09), transparent 70%); opacity: 0; transition: opacity var(--t); }
.feature:hover::before, .feature:hover::after { color: var(--brass-2); }
.feature:hover::after { transform: translateX(6px); }
.feature:hover > h3 { transform: translateX(8px); }
.feature:hover > .wire { transform: scaleX(1); }
.feature:hover > .bg { opacity: 1; }
.icon-chip { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--brass); transition: border-color var(--t), background var(--t), color var(--t); }
.icon-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover .icon-chip { border-color: var(--brass); background: var(--brass-dim); color: var(--brass-2); }

/* ---------- Process ---------- */
.dark-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.process { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.process-stick { position: sticky; top: calc(var(--header-h) + 40px); }
.process-stick h2 { margin-bottom: 26px; max-width: 12ch; }
.process-list { --fill: 0; position: relative; padding-left: 44px; }
.process-list::before, .process-list::after { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; }
.process-list::before { background: var(--line-2); }
.process-list::after { background: linear-gradient(180deg, var(--brass-2), var(--brass)); transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 12px var(--warm); }
.process-item { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.process-item:first-child { padding-top: 0; }
.process-item > span { position: absolute; left: -44px; top: 40px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 0; transition: background var(--t), border-color var(--t), box-shadow var(--t); }
.process-item:first-child > span { top: 6px; }
.process-item.on > span { background: var(--brass-2); border-color: var(--brass-2); box-shadow: 0 0 16px 2px var(--warm); }
.process-no { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--brass); padding-top: 6px; }
.process-item h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 12px; }
.process-item p { color: var(--text-2); font-weight: 300; }

/* ---------- Situations (client messages, iMessage-like) ---------- */
.pains { padding-bottom: clamp(40px, 6vw, 80px); }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.pain { --cb: var(--bg); position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(22px, 2.2vw, 32px) clamp(20px, 2vw, 30px) clamp(18px, 2vw, 26px); background: var(--cb); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.pain::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--brass-2), var(--brass) 60%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.pain:hover::before { transform: scaleX(1); }
.chat-time { align-self: center; margin-bottom: 10px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); font-size: 0.72rem; font-weight: 500; color: #8e8e93; letter-spacing: 0; }
.bubble { position: relative; max-width: 84%; margin: 0; padding: 9px 15px 10px; border-radius: 20px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); font-size: 1rem; line-height: 1.34; letter-spacing: -0.005em; font-weight: 400; overflow-wrap: anywhere; }
.bubble::before, .bubble::after { content: ""; position: absolute; bottom: 0; height: 22px; }
.bubble.in { align-self: flex-start; margin-left: 8px; background: #2a2927; color: #f2efe9; }
.bubble.in::before { left: -7px; width: 20px; background: #2a2927; border-bottom-right-radius: 16px 14px; }
.bubble.in::after { left: -26px; width: 26px; background: var(--cb); border-bottom-right-radius: 10px; }
.bubble.out { align-self: flex-end; margin-right: 8px; margin-top: auto; background: linear-gradient(180deg, #dcb880, #b98f52); color: #1a1209; font-weight: 500; }
.bubble.out::before { right: -7px; width: 20px; background: #b98f52; border-bottom-left-radius: 16px 14px; }
.bubble.out::after { right: -26px; width: 26px; background: var(--cb); border-bottom-left-radius: 10px; }
.chat-status { align-self: flex-end; margin-right: 10px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font); font-size: 0.68rem; font-weight: 500; color: #8e8e93; }
/* reply pops in after the client's message, like iMessage */
.js .pain .bubble.out, .js .pain .chat-status { opacity: 0; transform: translateY(8px) scale(0.92); transform-origin: bottom right; transition: opacity 380ms var(--ease), transform 520ms cubic-bezier(0.2, 1.5, 0.4, 1); transition-delay: calc(var(--i, 0) * 70ms + 650ms); }
.js .pain .chat-status { transition-delay: calc(var(--i, 0) * 70ms + 1050ms); transform: none; }
.js .pain.visible .bubble.out, .js .pain.visible .chat-status { opacity: 1; transform: none; }
.pain-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px 28px; margin-top: clamp(28px, 3vw, 40px); }
.pain-more span { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 300; color: var(--text-2); }
@media (max-width: 1080px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pain-grid { grid-template-columns: 1fr; } .bubble { max-width: 88%; } .pain-more { justify-content: flex-start; } }

/* ---------- Project gallery ---------- */
.home-gallery-section .section-heading { align-items: end; }
.home-gallery-carousel { position: relative; }
.home-gallery-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; margin-right: calc((100vw - min(100vw - var(--gutter) * 2, var(--wrap))) / -2); padding-right: var(--gutter); }
.home-gallery-track::-webkit-scrollbar { display: none; }
.home-gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.home-gallery-track.dragging * { pointer-events: none; }
.home-gallery-track .projects-grid { display: flex; gap: clamp(14px, 1.6vw, 24px); }
.home-gallery-track .gallery-card { flex: 0 0 clamp(240px, 25vw, 380px); scroll-snap-align: start; }
.home-gallery-arrow { position: absolute; top: -88px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.3rem; transition: border-color var(--t), color var(--t), opacity var(--t); }
.home-gallery-arrow.prev { right: 64px; }
.home-gallery-arrow.next { right: 0; }
.home-gallery-arrow:hover:not([disabled]) { border-color: var(--brass); color: var(--brass-2); }
.home-gallery-arrow[disabled] { opacity: 0.3; cursor: default; }

.projects-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.projects-grid > .case-card { grid-column: span 4; }
.case-overlay { padding: clamp(14px, 1.4vw, 20px); }
.case-overlay h3 { font-size: clamp(1.05rem, 1.35vw, 1.35rem); }
.case-meta { font-size: 0.78rem; margin-bottom: 4px; }
.case-arrow { width: 38px; height: 38px; font-size: 0.9rem; }
.gallery-lock { top: 12px; left: 12px; }
.gallery-password { inset: auto 8px 8px; padding: 14px; }

.case-card { position: relative; }
.gallery-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); text-align: left; }
.case-art { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: brightness(0.82) saturate(0.9); transition: transform 1200ms var(--ease), filter 700ms var(--ease); }
.gallery-cover:hover .case-art, .gallery-cover:focus-visible .case-art { transform: scale(1.07); filter: brightness(1) saturate(1); }
.case-overlay { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: clamp(18px, 2vw, 28px); background: linear-gradient(0deg, rgba(10, 9, 8, 0.86), rgba(10, 9, 8, 0)); }
.case-overlay h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 300; letter-spacing: -0.03em; }
.case-meta { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-2); margin-bottom: 8px; }
.case-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 1rem; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t) var(--ease); }
.gallery-cover:hover .case-arrow { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(45deg); }
.gallery-lock { position: absolute; top: 16px; left: 16px; display: none; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(12, 11, 10, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-2); }
.gallery-lock i { width: 10px; height: 8px; border-radius: 1px; background: var(--brass); position: relative; margin-top: 4px; }
.gallery-lock i::before { content: ""; position: absolute; left: 1.5px; top: -6px; width: 7px; height: 7px; border: 1.4px solid var(--brass); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.gallery-lock::after { content: attr(data-label); }
.is-private:not(.is-unlocked) .gallery-lock { display: inline-flex; }
.is-private:not(.is-unlocked) .case-art, .is-private .case-art:not([data-full]) { filter: blur(18px) brightness(0.7) saturate(0.9); transform: scale(1.18); }
.is-private:not(.is-unlocked) .gallery-cover:hover .case-art { filter: blur(14px) brightness(0.8); transform: scale(1.2); }
.gallery-password { position: absolute; inset: auto 12px 12px; z-index: 2; display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: rgba(19, 18, 16, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.case-card.asking .gallery-password { opacity: 1; transform: none; pointer-events: auto; }
.gallery-password label { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--brass); }
.gallery-password div { display: flex; gap: 8px; }
.gallery-password input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); }
.gallery-password input:focus { outline: none; border-color: var(--brass); }
.gallery-password button { min-height: 46px; padding: 0 18px; border-radius: var(--radius); background: var(--text); color: var(--bg); font-size: 0.9rem; }
.gallery-password p:empty { display: none; }
.gallery-password p { color: var(--danger); font-size: 0.85rem; }

/* gallery modal */
.gallery-modal { position: fixed; inset: 0; z-index: 150; background: rgba(8, 7, 6, 0.96); display: grid; place-items: center; animation: fade 400ms var(--ease); }
.gallery-modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.gallery-viewer { position: relative; width: min(100% - 32px, 1500px); height: min(100% - 32px, 92vh); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.gallery-frame { margin: 0; height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-top: 56px; overflow: hidden; }
.gallery-frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(min(100vh - 32px, 92vh) - 120px); object-fit: contain; border-radius: var(--radius); animation: fade 500ms var(--ease); }
.gallery-frame figcaption { width: 100%; display: flex; justify-content: space-between; font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-2); }
.gallery-nav { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.4rem; display: grid; place-items: center; transition: border-color var(--t), color var(--t); }
.gallery-nav:hover { border-color: var(--brass); color: var(--brass-2); }
.gallery-close { position: absolute; top: 0; right: 0; z-index: 2; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; }
.gallery-close:hover { border-color: var(--brass); color: var(--brass-2); }

/* ---------- Video block (projects page) ---------- */
.video-block { margin-top: clamp(40px, 5vw, 72px); }
.video-facade { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); isolation: isolate; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.85); transform: scale(1.02); transition: transform 1400ms var(--ease), filter 700ms var(--ease); }
.video-facade:hover img { transform: scale(1.06); filter: brightness(0.8) saturate(1); }
.video-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, 0.85), rgba(10, 9, 8, 0) 55%), radial-gradient(40% 50% at 50% 50%, rgba(255, 190, 110, 0.12), transparent 70%); pointer-events: none; }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--text); }
.video-play-ring { width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px); border-radius: 50%; display: grid; place-items: center; background: rgba(237, 230, 217, 0.12); border: 1px solid rgba(237, 230, 217, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--t) var(--ease), border-color var(--t), transform var(--t) var(--ease), box-shadow var(--t); }
.video-play-ring svg { width: 34%; height: 34%; fill: currentColor; margin-left: 6%; }
.video-play:hover .video-play-ring, .video-play:focus-visible .video-play-ring { background: var(--text); color: var(--bg); border-color: var(--text); transform: scale(1.06); box-shadow: 0 0 60px -10px var(--warm); }
.video-play-text { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-2); }
.video-caption { position: absolute; left: clamp(18px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); pointer-events: none; }
.video-caption .section-label { margin-bottom: 12px; }
.video-caption h2 { font-size: clamp(1.4rem, 2.6vw, 2.4rem); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: 12px; font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); }
@media (max-width: 720px) { .video-play-text { display: none; } .video-caption h2 { font-size: 1.15rem; } }

/* ---------- Inner page hero ---------- */
.project-hero { padding: calc(var(--header-h) + clamp(70px, 11vw, 150px)) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; }
.project-hero h1 { max-width: 14ch; }
.project-hero .lead { margin-top: clamp(22px, 3vw, 34px); }
.project-hero::after { content: ""; position: absolute; right: 0; bottom: -1px; width: 22%; height: 1px; background: var(--brass); }
.page-glow { position: absolute; inset: 0 0 auto; height: 70vh; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 78% 0%, rgba(200, 162, 107, 0.12), transparent 70%); }

.project-banner { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.project-banner img { width: 100%; max-height: 70vh; object-fit: cover; }
.project-data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.project-data > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.project-data span { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); }
.project-data strong { font-weight: 300; font-size: 1.1rem; }

/* ---------- Architects page ---------- */
.architect-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 96px); align-items: center; min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 80px; }
.architect-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); max-width: 12ch; margin-bottom: 30px; }
.architect-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.architect-visual::after, .supply-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(12, 11, 10, 0.5)); pointer-events: none; }
.arch-plan-image, .supply-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.85) saturate(0.85) hue-rotate(-8deg) brightness(1.05) contrast(1.05); transition: transform 1400ms var(--ease); }
.supply-image { object-fit: contain; padding: 6%; }
.architect-visual:hover .arch-plan-image, .supply-visual:hover .supply-image { transform: scale(1.03); }
.arch-scroll { position: absolute; left: 0; bottom: 32px; font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); display: flex; align-items: center; gap: 12px; }
.arch-scroll::before { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--brass), transparent); }
/* vector illustrations (architects page) */
.plan-svg, .supply-svg { display: block; width: 100%; height: 100%; }
.architect-visual:has(.plan-svg)::after, .supply-visual:has(.supply-svg)::after { content: none; }
.supply-visual:has(.supply-svg) { background: #141311; }
.plan-svg .bg { fill: #141311; }
.pl-grid .g { stroke: rgba(236, 228, 214, 0.04); stroke-width: 1; }
.pl-furn .f { fill: none; stroke: rgba(236, 228, 214, 0.26); stroke-width: 1.2; }
.pl-furn .faint { stroke: rgba(236, 228, 214, 0.12); stroke-dasharray: 3 5; }
.pl-walls .w { fill: none; stroke: #ede6d9; stroke-width: 4; stroke-linecap: square; }
.pl-walls .outer { stroke-width: 9; stroke-linejoin: miter; }
.pl-win .cut { fill: #141311; }
.pl-win .gl { stroke: rgba(236, 228, 214, 0.6); stroke-width: 1; }
.pl-doors .d { fill: none; stroke: rgba(236, 228, 214, 0.55); stroke-width: 1.3; }
.pl-el .e { fill: none; stroke: #c8a26b; stroke-width: 1.6; }
.pl-el .fill { fill: #c8a26b; }
.pl-el .fill-soft { fill: rgba(200, 162, 107, 0.14); }
.pl-el .track { stroke-width: 2.4; }
.pl-el .run { stroke-width: 1.1; stroke-dasharray: 5 5; opacity: 0.75; }
.pl-el .bus { stroke-dasharray: 2 4; stroke: #e6c793; }
.pl-el .glow { fill: rgba(255, 196, 120, 0.13); stroke: none; }
.pl-ann .dim { fill: none; stroke: rgba(236, 228, 214, 0.28); stroke-width: 1; }
.pl-ann .north { fill: #c8a26b; }
.pl-room { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; fill: #c8a26b; }
.pl-area { font-family: var(--font); font-weight: 300; font-size: 15px; fill: rgba(236, 228, 214, 0.75); }
.pl-dim, .pl-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: rgba(236, 228, 214, 0.45); }
.pl-tag { fill: #e6c793; }
/* draw-on animation */
.js .plan-svg .w, .js .plan-svg .d, .js .plan-svg .e:not(.run):not(.bus) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io); }
.js .plan-svg .d, .js .plan-svg .e { transition-delay: 1.1s; }
.js .plan-svg .pl-furn, .js .plan-svg .pl-ann, .js .plan-svg .run, .js .plan-svg .bus, .js .plan-svg .pl-win, .js .plan-svg .fill { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .plan-svg .pl-win { transition-delay: 0.9s; }
.js .plan-svg .pl-furn { transition-delay: 1.4s; }
.js .plan-svg .run, .js .plan-svg .bus, .js .plan-svg .fill { transition-delay: 2.2s; }
.js .plan-svg .pl-ann { transition-delay: 2.6s; }
.js .plan-svg .glow { opacity: 0; }
.visible .plan-svg .w, .visible .plan-svg .d, .visible .plan-svg .e:not(.run):not(.bus) { stroke-dashoffset: 0; }
.visible .plan-svg .pl-furn, .visible .plan-svg .pl-ann, .visible .plan-svg .pl-win, .visible .plan-svg .fill { opacity: 1; }
.visible .plan-svg .run { opacity: 0.75; }
.visible .plan-svg .bus { opacity: 1; }
.visible .plan-svg .glow { animation: plan-glow 4s var(--ease-io) 3s infinite alternate both; }
@keyframes plan-glow { from { opacity: 0.25; } to { opacity: 1; } }

.sh-back { fill: url(#shback); }
.sh-shadow { fill: rgba(0, 0, 0, 0.55); }
.sh-frame { fill: url(#shframe); }
.sh-hole { fill: #141311; }
.sh-beam { fill: #3e3b36; }
.sh-beam-shade { stroke: rgba(0, 0, 0, 0.45); stroke-width: 3; }
.sh-beam-label { fill: #e6c793; }
.sh-code { font-family: var(--mono); font-size: 7.5px; fill: #1a1714; }
.sh-dev { fill: #23211e; stroke: rgba(236, 228, 214, 0.3); stroke-width: 1.2; }
.sh-in, .sh-in-c { fill: #1a1917; stroke: rgba(236, 228, 214, 0.18); stroke-width: 1; }
.sh-btn { fill: none; stroke: rgba(236, 228, 214, 0.45); stroke-width: 1.2; }
.sh-led { fill: #e6c793; }
.sh-led.dim { fill: rgba(236, 228, 214, 0.22); }
.sh-ring { fill: none; stroke: #c8a26b; stroke-width: 1.4; }
.sh-screen { fill: #11100e; stroke: rgba(236, 228, 214, 0.14); }
.sh-temp { font-family: var(--font); font-weight: 300; font-size: 22px; fill: #e6c793; }
.sh-thin { stroke: rgba(236, 228, 214, 0.3); }
.sh-accent { stroke: #e6c793; stroke-width: 2; stroke-linecap: round; }
.sh-screw { fill: #141311; stroke: rgba(236, 228, 214, 0.22); }
.sh-wire { stroke: rgba(236, 228, 214, 0.4); stroke-width: 1.2; }
.sh-lamp, .sh-lamp-c { fill: #ffdcaa; }
.sh-globe { fill: rgba(255, 230, 190, 0.07); stroke: rgba(236, 228, 214, 0.4); stroke-width: 1.2; }
.sh-glow { fill: url(#shg); mix-blend-mode: screen; }
.sh-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; fill: rgba(236, 228, 214, 0.55); }
.sh-box { fill: url(#shbox); stroke: rgba(0, 0, 0, 0.5); stroke-width: 1; }
.sh-tape { stroke: rgba(230, 199, 147, 0.32); stroke-width: 9; }
.sh-edge { stroke: rgba(255, 255, 255, 0.07); stroke-width: 2; }
.sh-sticker { fill: rgba(236, 228, 214, 0.5); }
.sh-brand { font-family: var(--font); font-weight: 500; fill: rgba(236, 228, 214, 0.9); letter-spacing: 0.01em; }
.js .supply-svg .sh-glow, .js .supply-svg .sh-lamp, .js .supply-svg .sh-lamp-c { opacity: 0.15; transition: opacity 1.4s var(--ease-io); }
.visible .supply-svg .sh-glow, .visible .supply-svg .sh-lamp, .visible .supply-svg .sh-lamp-c { opacity: 1; }
.visible .supply-svg .sh-glow:nth-of-type(2n) { transition-delay: 0.5s; }
.visible .supply-svg .sh-glow:nth-of-type(3n) { transition-delay: 0.9s; }
.supply-visual:hover .supply-svg .sh-glow { opacity: 1; filter: brightness(1.25); }

.architect-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.architect-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.architect-sticky h2, .supply-copy h2, .final-copy h2 { margin-bottom: 26px; }
.architect-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.architect-mini { padding: clamp(24px, 2.6vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--t); min-height: 220px; display: flex; flex-direction: column; }
.architect-mini:hover { background: var(--bg-2); }
.architect-mini span, .architect-timeline span { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--brass); }
.architect-mini h3 { margin: auto 0 10px; padding-top: 40px; }
.architect-mini p, .architect-timeline p, .supply-cards p { color: var(--text-2); font-size: 0.95rem; font-weight: 300; }
.architect-design .container { max-width: 1100px; }
.architect-design h2 { max-width: 16ch; margin-bottom: 30px; }
.architect-design p { color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 300; max-width: 62ch; }
.design-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.design-points span { padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.92rem; color: var(--text); }
.architect-supply { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.supply-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-3); }
.supply-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line-2); }
.supply-cards article { padding: 24px 24px 24px 0; }
.supply-cards article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.supply-cards h3 { margin-bottom: 10px; }
.architect-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.architect-timeline article { position: relative; padding: 32px 28px 8px 0; }
.architect-timeline article::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 14px var(--warm); }
.architect-timeline h3 { margin: 18px 0 10px; }
.supervision-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 5vw, 72px); border: 1px solid var(--line-2); border-radius: var(--radius); background: radial-gradient(80% 120% at 0% 0%, rgba(200, 162, 107, 0.09), transparent 60%), var(--bg-2); }
.supervision-mark { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--brass); display: grid; place-items: center; color: var(--brass-2); }
.supervision-mark svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.supervision-card h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); margin-bottom: 20px; max-width: 22ch; }
.supervision-card p { color: var(--text-2); font-weight: 300; max-width: 64ch; margin-bottom: 18px; }
.supervision-card strong { font-weight: 400; color: var(--brass-2); }
.architect-final { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.final-copy p { color: var(--text-2); font-weight: 300; max-width: 46ch; }

/* ---------- Contact / forms ---------- */
.contact-wrap { display: grid; gap: 56px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.contact-copy h2 { margin-bottom: 36px; }
.contact-details { display: grid; border-top: 1px solid var(--line-2); }
.contact-details > a, .contact-details > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding var(--t) var(--ease); }
.contact-details > a:hover { padding-left: 8px; }
.contact-details > * > div:first-child { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--brass); }
.contact-details svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact-details strong { display: block; font-family: var(--font); font-weight: 400; font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); margin-bottom: 4px; }
.contact-details > * > div:last-child { font-size: 1.1rem; font-weight: 300; }
.contact-requisites { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.field { display: grid; gap: 6px; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field.full, .form-consent, .form-status, .form > .button { grid-column: 1 / -1; }
.field label { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); transition: color var(--t-fast); }
.field:focus-within label { color: var(--brass); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: 1.08rem; font-weight: 300; transition: border-color var(--t-fast); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); }
.form-consent { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; cursor: pointer; }
.form-consent input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.form-consent input::after { content: ""; width: 10px; height: 6px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.form-consent input:checked { background: var(--brass-2); border-color: var(--brass-2); }
.form-consent input:checked::after { opacity: 1; }
.form-status:empty { display: none; }
.form-status { font-size: 0.95rem; color: var(--brass-2); }
.form > .button { justify-self: start; }
.form > .button[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; padding-block: clamp(110px, 15vw, 220px); border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 70% at var(--cx, 50%) 100%, rgba(200, 162, 107, 0.2), transparent 70%); transition: background 300ms; }
.cta-band h2 { font-size: clamp(2.1rem, 4.6vw, 4.4rem); font-weight: 250; letter-spacing: -0.045em; max-width: 14ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; margin-top: clamp(36px, 5vw, 64px); }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.cta-contacts a { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 300; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color var(--t), color var(--t); }
.cta-contacts a:hover { color: var(--brass-2); border-color: var(--brass); }

.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 20px; color: var(--text-3); font-size: 0.92rem; max-width: 34ch; }
.footer-column { display: grid; align-content: start; gap: 12px; }
.footer-column h3 { font-family: var(--font); font-size: 0.82rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); margin-bottom: 8px; }
.footer-column a { color: var(--text-2); font-weight: 300; width: fit-content; transition: color var(--t-fast); }
.footer-column a:hover { color: var(--brass-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 80px); padding: 24px 0; border-top: 1px solid var(--line); font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }
.footer-link { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.footer-link:hover { color: var(--text); }
.footer-word { font-size: clamp(5rem, 21vw, 22rem); font-weight: 200; letter-spacing: -0.07em; line-height: 0.76; margin: clamp(32px, 5vw, 64px) 0 -0.06em -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; white-space: nowrap; background: radial-gradient(30% 120% at var(--wx, 50%) 60%, rgba(200, 162, 107, 0.28), transparent 70%); -webkit-background-clip: text; background-clip: text; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 120; width: min(420px, calc(100% - 32px)); padding: 22px; border-radius: var(--radius); background: rgba(19, 18, 16, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); animation: rise 700ms var(--ease) 1.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.cookie-banner[hidden] { display: none; }
.cookie-banner h3 { font-size: 1rem; font-weight: 400; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.86rem; color: var(--text-2); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .button { min-height: 40px; padding: 0 16px; font-size: 0.82rem; }

/* ---------- Legal page ---------- */
.legal-date { margin-top: 26px; color: var(--text-3); }
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: clamp(56px, 7vw, 96px); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 30px 1fr; padding: 7px 0; color: var(--text-3); font-size: 0.9rem; transition: color var(--t-fast); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font); font-size: 0.82rem; padding-top: 3px; }
.legal-toc a:hover, .legal-toc a.on { color: var(--brass-2); }
.legal { max-width: 760px; }
.legal-intro { font-size: clamp(1.08rem, 1.4vw, 1.25rem); font-weight: 300; color: var(--text); line-height: 1.6; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 72px 0 22px; display: flex; align-items: baseline; gap: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h2 span { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--brass); }
.legal h3 { font-size: 1.05rem; font-weight: 500; margin: 30px 0 10px; letter-spacing: 0; }
.legal p, .legal li { color: var(--text-2); font-weight: 300; line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.legal a:hover { color: var(--brass-2); }
.legal ul { margin: 12px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 26px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 10px; height: 1px; background: var(--brass); }
.legal strong { color: var(--text); font-weight: 400; }
.legal code { font-family: var(--mono); font-size: 0.85em; color: var(--brass-2); word-break: break-all; }
.legal-card { margin: 18px 0; border-top: 1px solid var(--line-2); }
.legal-card > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.legal-card dt { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3); padding-top: 4px; }
.legal-card dd { margin: 0; color: var(--text); font-weight: 300; }
.legal-table { margin: 18px 0 20px; border-top: 1px solid var(--line-2); }
.lt-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.lt-row span { color: var(--text-2); font-weight: 300; line-height: 1.55; }
.lt-row span:first-child { color: var(--text); }
.lt-head span { font-family: var(--font); font-size: 0.82rem; letter-spacing: 0; color: var(--text-3) !important; }
.form-consent a { color: var(--text); text-decoration-color: var(--brass); }
@media (max-width: 1080px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { position: static; } .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (max-width: 720px) { .legal-toc ol { grid-template-columns: 1fr; } .legal-card > div, .lt-row { grid-template-columns: 1fr; gap: 4px; } .lt-head { display: none; } }

/* ---------- Legacy root pages ---------- */
main.container > .section h2 { margin: 40px 0 16px; font-size: clamp(1.5rem, 2.4vw, 2rem) !important; }
main.container > .section p, main.container > .section li { color: var(--text-2); font-weight: 300; margin-bottom: 14px; }
main.container > .section a u { text-decoration-color: var(--brass); }
.project-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.86rem; color: var(--text-2); }
.filter.active, .filter:hover { border-color: var(--brass); color: var(--brass-2); }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) { .scroll-cue { display: block; } }
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-heading, .process, .architect-hero, .architect-split, .architect-supply, .architect-final, .contact-grid { grid-template-columns: 1fr; }
  .process-stick, .architect-sticky { position: static; }
  .architect-hero { min-height: auto; padding-top: calc(var(--header-h) + 60px); }
  .arch-scroll { display: none; }
  .architect-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature { grid-template-columns: 56px 48px minmax(0, 1fr) 32px; }
  .feature > p { grid-column: 3 / 5; grid-row: 2; }
  .projects-grid > .case-card { grid-column: span 6; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand-logo-img { height: 24px; }
  .hero-x { min-height: 0; padding-top: 44svh; }
  .hero-media { inset: 0 0 auto; height: 64svh; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 11, 10, 0.6) 0%, rgba(12, 11, 10, 0) 22%, rgba(12, 11, 10, 0) 45%, rgba(12, 11, 10, 0.85) 80%, var(--bg) 100%); }
  .hero-glow { background: radial-gradient(40% 18% at 66% 38%, rgba(255, 196, 120, 0.4), transparent 70%); }
  .hero-meta { gap: 6px 18px; font-size: 0.66rem; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-side { justify-items: start; }
  .hero-caption { text-align: left; }
  .hero-media img { object-position: 64% 50%; }
  .hero-actions .button { flex: 1 1 auto; }
  .feature { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 14px 16px; }
  .feature > .icon-chip { display: none; }
  .feature > h3 { grid-column: 2; }
  .feature::after { grid-column: 3; }
  .feature > p { grid-column: 2 / 4; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .process-list { padding-left: 32px; }
  .process-item > span { left: -32px; }
  .projects-grid > .case-card { grid-column: span 12; }
  .projects-grid .gallery-cover { aspect-ratio: 16 / 10; }
  .home-gallery-arrow { display: none; }
  .home-gallery-track .gallery-card { flex-basis: 72vw; }
  .architect-card-grid, .supply-cards, .architect-timeline, .form { grid-template-columns: 1fr; }
  .supply-cards article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .supervision-card { grid-template-columns: 1fr; }
  .project-data { grid-template-columns: 1fr 1fr; }
  .gallery-viewer { grid-template-columns: 1fr; }
  .gallery-nav { position: absolute; bottom: 0; z-index: 2; width: 48px; height: 48px; }
  .gallery-nav.prev { left: 0; } .gallery-nav.next { right: 0; }
  .gallery-frame { padding-bottom: 64px; }
  .gallery-frame img { max-height: calc(100svh - 32px - 190px); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .marquee::before, .marquee::after { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span, .hero-fade { transform: none; opacity: 1; }
  .marquee-track { animation: none; }
}
