@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/material-symbols-outlined.ttf') format('truetype');
}
:root {
  color-scheme: light;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-control: 6px; --radius-button: 8px; --radius-panel: 12px; --radius-large: 16px; --radius-glass: 24px;
  --text-meta: 12px; --text-small: 13px; --text-body: 14px; --text-heading: 17px; --text-page: 28px;
  --control-height: 32px;
  --header-clearance: calc(var(--control-height) + var(--space-8) + var(--space-8));
  --page: #ebe4d6; --surface: #f7f1e8; --text: #2c261f; --secondary: #6f655b; --metadata: #8a7f73;
  --accent: #8a5a32; --on-accent: #fffaf3; --danger: #b42318;
  --glass-fill: rgba(247,241,232,.72); --glass-fallback: #f3ece1;
  --edge: rgba(255,252,247,.85); --line: rgba(44,38,31,.12); --hover: rgba(44,38,31,.06);
  --tint: rgba(138,90,50,.12); --field: rgba(255,250,243,.92);
  --shadow: 0 8px 32px rgba(70,48,24,.06), 0 1px 4px rgba(70,48,24,.04);
  --accent-cloud: rgba(168,112,58,.16); --neutral-cloud: rgba(140,110,70,.14);
  --scrim: rgba(44,38,31,.45); --logo-filter: brightness(0); --layer: #e4d8c6;
  --ease: cubic-bezier(.16,1,.3,1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-clearance); overflow-x: clip; }
body { margin: 0; color: var(--text); background-color: var(--page); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 12% 8%, var(--accent-cloud), transparent 58%), radial-gradient(ellipse at 88% 92%, var(--neutral-cloud), transparent 62%);
}
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, video { display: block; max-width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  img.soft-in { transition: opacity .2s ease; }
  img.soft-in.is-pending { opacity: 0; }
}
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
p + p { margin-top: var(--space-4); }
h1 { font-size: var(--text-page); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
h2, h3 { font-size: var(--text-heading); line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.content-section h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
strong { font-weight: 600; }
small { font-size: var(--text-small); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: var(--space-4); left: var(--space-4); }
.symbol { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; width: 20px; height: 20px; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; flex-shrink: 0; overflow: hidden; }
.site-shell { max-width: none; margin: 0; padding: 0; }
.glass { background: var(--glass-fallback); border: .5px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,252,247,.95), inset 0 -1px 0 rgba(44,38,31,.04), var(--shadow); border-radius: var(--radius-glass); }
@supports ((backdrop-filter: blur(28px)) or (-webkit-backdrop-filter: blur(28px))) {
  .glass { background: rgba(247,241,232,.58); -webkit-backdrop-filter: blur(28px) saturate(1.85); backdrop-filter: blur(28px) saturate(1.85); }
}
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-large); }
/* On tinted backgrounds, derive a stronger secondary tone from the contract palette. */
:root { --secondary-on-tint: var(--text); }
@supports (color: color-mix(in srgb, black, white)) {
  :root { --secondary-on-tint: color-mix(in srgb, var(--secondary) 80%, var(--text)); }
}
.secondary-text { color: var(--secondary-on-tint); }
.button, .icon-button { min-height: var(--control-height); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border-radius: var(--radius-button); font-size: var(--text-body); line-height: 1.2; transition: background-color .18s, border-color .18s, color .18s; }
.button { padding: 0 var(--space-3); }
.icon-button { width: var(--control-height); height: var(--control-height); padding: 0; background: transparent; flex-shrink: 0; }
.primary { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.tertiary { color: var(--accent); background: transparent; }
.danger { background: var(--danger); color: #fff; }
.button:disabled { background: var(--hover); border-color: var(--line); color: var(--secondary); }
.button:active { transform: scale(.98); }
@media (hover: hover) {
  .icon-button:hover, nav a:hover { background: var(--hover); }
  .button:not(:disabled):hover { filter: brightness(.96); }
  .back-top:hover, .footer-brand:hover { color: var(--accent); }
}
.site-header { position: fixed; top: var(--space-6); left: var(--space-6); right: var(--space-6); z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); padding: 0; margin: 0; background: none; border: 0; box-shadow: none; border-radius: 0; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.header-pill { position: relative; isolation: isolate; overflow: hidden; border-radius: 999px; background: rgba(247,241,232,.7); border: 0; box-shadow: 0 8px 28px rgba(44,38,31,.1); }
.header-pill::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(247,241,232,.28); -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35); transform: scale(1.08); z-index: 0; pointer-events: none; }
.header-pill::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,252,247,.55); z-index: 2; pointer-events: none; }
.header-pill > * { position: relative; z-index: 1; }
.brand-mark { height: 64px; display: flex; align-items: center; justify-self: start; flex-shrink: 0; background: none; border: 0; box-shadow: none; }
.brand-mark img { height: 64px; width: auto; max-width: none; filter: brightness(0); transition: filter .2s var(--ease); }
.site-header.on-hero .brand-mark img { filter: brightness(0) invert(1); }
nav { display: flex; align-items: center; justify-content: center; justify-self: center; gap: 2px; flex: none; padding: 4px 16px; }
nav a { display: flex; min-height: var(--control-height); align-items: center; padding-inline: var(--space-3); font-size: var(--text-small); border-radius: 999px; white-space: nowrap; }
nav a[aria-current='location'] { background: var(--tint); color: var(--accent); }
.header-controls { display: flex; gap: 2px; align-items: center; justify-self: end; padding: 4px; }
#menu-toggle { display: none; }
.header-controls .icon-button { width: 36px; height: 36px; color: var(--text); border-radius: 999px; }
.header-controls .icon-button svg { width: 22px; height: 22px; display: block; }
.lang-switch { display: flex; align-items: center; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; box-shadow: none; }
.lang-switch button { min-width: 34px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: rgba(44,38,31,.55); font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 0 8px; }
.lang-switch button[aria-pressed='true'] { background: rgba(255,253,248,.92); color: var(--text); box-shadow: 0 1px 2px rgba(44,38,31,.1); }
.nav-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; padding: 0; margin: 0; background: rgba(44,38,31,.28); cursor: pointer; }
.control-divider { height: 16px; width: 1px; background: var(--line); margin-inline: var(--space-1); }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; height: 100svh; border-radius: 0; color: #fff; background: #302b25; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(var(--header-clearance) + var(--space-6)) var(--space-6) var(--space-8); }
.hero-media { position: absolute; inset: -32px; z-index: -3; transform: translate3d(var(--pointer-x,0px), calc(var(--pointer-y,0px) + var(--scroll-y,0px)), 0) scale(var(--scroll-scale,1)); }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 46%, rgba(0,0,0,.5), rgba(0,0,0,.16) 54%, rgba(0,0,0,.34)), linear-gradient(180deg, rgba(0,0,0,.28), transparent 32%, rgba(0,0,0,.42)); }
.hero-layout { width: 100%; }
.hero-content { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(32px, 4vw, 72px); width: 100%; max-width: none; text-align: left; transform: translate3d(0,var(--text-y,0px),0); opacity: var(--text-opacity,1); }
.hero-copy { flex: 1 1 auto; min-width: max-content; }
#hero-title { max-width: none; font-size: clamp(30px, 4.15vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.hero-logo-slot { flex: 0 1 544px; width: 544px; max-width: 100%; min-width: 0; transform: translateY(-36%); }
.hero-logo { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)) drop-shadow(0 14px 28px rgba(0,0,0,.35)); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; white-space: nowrap; }
.hero-description { max-width: 460px; margin: var(--space-6) 0 0; color: rgba(255,255,255,.9); font-size: var(--text-body); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hero-actions { margin-top: var(--space-8); align-items: center; justify-content: flex-start; }
.hero-actions .button, .hero-actions .button.primary, .hero-actions .hero-secondary { color: #fff; background: rgba(255,255,255,.18); border: .5px solid rgba(255,255,255,.62); box-shadow: inset 0 .5px 0 rgba(255,255,255,.72); border-radius: 999px; min-height: 44px; padding-inline: 18px; -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.hero-actions .button.primary { background: rgba(255,255,255,.34); }
.origin-mark { position: absolute; right: var(--space-6); bottom: var(--space-6); height: 64px; width: auto; max-width: none; margin: 0; }
.hero-next { display: inline-flex; gap: var(--space-3); align-items: center; font-size: var(--text-small); min-height: 44px; }
.hero-next .symbol { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-button); display: grid; place-items: center; }
.page-content { max-width: 1320px; margin: 0 auto; padding-inline: var(--space-6); }
.content-section { padding-block: 72px; margin-top: 0; scroll-margin-top: 0; }
.section-heading { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); }
.line-icon { width: 22px; height: 22px; display: block; }
.icon-ring { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--text); }
.section-note { margin-left: auto; color: var(--secondary); font-size: var(--text-small); }
.section-subtitle { color: var(--secondary); max-width: 620px; margin-top: calc(-1 * var(--space-3)); margin-bottom: var(--space-4); }
.production-panel { overflow: hidden; padding: 0; }
.production-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; min-height: 0; padding: var(--space-8); }
.production-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.production-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44,38,31,.58) 0%, rgba(44,38,31,.2) 46%, transparent 72%); }
.production-copy, .production-media { position: relative; z-index: 1; }
.production-copy { max-width: 460px; align-self: center; }
.production-copy h2 { margin-bottom: var(--space-4); color: #fffaf4; }
.section-lead { font-size: var(--text-body); line-height: 1.65; letter-spacing: -.01em; }
.production-copy p { color: #fffaf4; text-shadow: 0 1px 16px rgba(44,38,31,.45); }
.production-copy p + p { margin-top: var(--space-4); }
.text-label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); color: var(--secondary); }
.production-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: stretch; }
.poster-frame { position: relative; margin: 0; border-radius: var(--radius-large); overflow: hidden; width: 100%; aspect-ratio: 1; box-shadow: var(--shadow); }
.poster-frame img, .poster-frame video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.production-media video::-webkit-media-controls, .production-media video::-webkit-media-controls-enclosure, .production-media video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.fact-icon { width: 52px; height: 52px; object-fit: contain; padding: 11px; border-radius: 50%; background: #8a5a32; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); flex-shrink: 0; }
.production-facts { list-style: none; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--space-6); margin: 0; padding: var(--space-4) var(--space-6); border-top: 1px solid rgba(44,38,31,.08); background: #fff; }
.production-facts li { display: flex; align-items: center; gap: var(--space-3); }
.production-facts strong, .production-facts div > span { display: block; }
.production-facts div > span { margin-top: var(--space-1); color: var(--secondary); font-size: var(--text-small); }
#technology { position: relative; z-index: 0; background: #f4eae0; }
#technology::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: inherit; }
.technology-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 0; align-items: start; }
.tech-column + .tech-column { border-left: 1px solid rgba(44, 38, 31, .12); padding-left: 80px; margin-left: 80px; }
.tech-column p { color: var(--secondary-on-tint); }
.tech-column strong { color: var(--text); }
.tech-column h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; margin-bottom: var(--space-4); }
.tech-layers { width: 100%; height: auto; margin-top: var(--space-6); border-radius: 16px; border: 1px solid rgba(44,38,31,.14); }
.lock-shots { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: var(--space-8); }
.lock-shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(44,38,31,.14); }
.lock-arrow { width: 1px; height: 28px; margin: var(--space-1) auto; background: rgba(44, 38, 31, .35); position: relative; }
.lock-arrow::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 7px; height: 7px; border-right: 1px solid rgba(44, 38, 31, .45); border-bottom: 1px solid rgba(44, 38, 31, .45); transform: translate(-50%, 1px) rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .tech-await { opacity: 0; transform: translateY(16px); }
  .tech-await.is-in { animation: tech-in .6s cubic-bezier(.16, 1, .3, 1) both; }
  .tech-column + .tech-column.tech-await.is-in { animation-delay: .1s; }
  .slide-side { opacity: 0; transform: translateX(-72px); }
  .slide-side.is-in { animation: slide-side .8s var(--ease) both; }
  #technology .section-subtitle.slide-side.is-in { animation-delay: .08s; }
  .tech-column + .tech-column h3.slide-side.is-in { animation-delay: .12s; }
}
@keyframes tech-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slide-side { from { opacity: 0; transform: translateX(-72px); } to { opacity: 1; transform: none; } }
.layer-callouts { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.layer-callouts strong, .layer-callouts span { display: block; }
.layer-callouts strong { font-size: var(--text-small); color: var(--text); }
.layer-callouts span { color: var(--secondary); font-size: var(--text-meta); margin-top: var(--space-1); }
.finish-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: var(--space-4); border-radius: 20px; background: rgba(44,38,31,.055); border: 1px solid rgba(44,38,31,.08); box-shadow: none; }
.finish-bar button { min-height: 68px; border: 0; background: transparent; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 12px; color: rgba(44, 38, 31, .62); font-weight: 400; line-height: 1.15; }
.finish-bar button[aria-selected='true'] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(44,38,31,.06), 0 8px 18px rgba(44,38,31,.06); }
.finish-name { font-size: clamp(17px, 1.55vw, 22px); font-weight: 600; letter-spacing: -.02em; }
.finish-kind { font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgba(44, 38, 31, .55); }
.finish-bar button[aria-selected='true'] .finish-kind { color: var(--secondary); }
.finish-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.finish-dot-natural { background: #c4a574; }
.finish-dot-tinted { background: #8a6239; }
.finish-dot-bleached { background: #d9d3c7; }
.model-layout { display: grid; grid-template-columns: auto minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.model-visual { --swatch-count: 7; --swatch-gap: 6px; --gallery-size: min(520px, max(280px, calc(100svh - 340px))); display: flex; align-items: stretch; gap: var(--space-3); min-width: 0; height: var(--gallery-size); min-height: 280px; }
.model-stage { position: relative; flex: 0 0 auto; width: var(--gallery-size); height: var(--gallery-size); border-radius: var(--radius-large); overflow: hidden; background: var(--surface); }
.model-stage > .model-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.round-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: .5px solid rgba(255,252,247,.8); border-radius: 50%; background: rgba(247,241,232,.55); color: #2c261f; display: grid; place-items: center; box-shadow: inset 0 .5px 0 rgba(255,252,247,.9), var(--shadow); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
.round-nav .symbol { width: 18px; height: 18px; font-size: 18px; }
.model-prev { left: var(--space-3); }
.model-next { right: var(--space-3); }
.model-copy { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; min-height: 100%; padding-top: var(--space-2); }
.model-copy h3 { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.12; letter-spacing: -.03em; max-width: 16em; }
.model-copy .secondary-text { margin-top: var(--space-4); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 28em; }
.model-stage .model-name { position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0; z-index: 2; color: #fff; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; text-shadow: 0 1px 10px rgba(0,0,0,.55); pointer-events: none; }
.model-copy .origin-dark { position: static; height: 52px; width: auto; margin-top: auto; margin-left: auto; filter: brightness(0); }
.model-pending { margin-top: var(--space-4); max-width: 36em; }
.swatch-row { display: flex; flex-direction: column; flex: 0 0 auto; gap: var(--swatch-gap); margin: 0; width: calc((var(--gallery-size) - (var(--swatch-count) - 1) * var(--swatch-gap)) / var(--swatch-count)); min-width: 44px; height: var(--gallery-size); }
.swatch { position: relative; flex: 1 1 0; width: 100%; min-width: 0; min-height: 0; height: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-button); overflow: hidden; background: var(--surface); }
.swatch img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.swatch[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.capabilities-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-8); align-items: end; margin-bottom: var(--space-8); }
.capabilities-head .section-subtitle { margin-bottom: 0; }
.capabilities-lead span { display: block; }
.capability-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.capability-card { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.capability-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.cap-icon { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; flex-shrink: 0; }
.cap-body { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); }
.cap-body h3 { margin-bottom: var(--space-2); }
.cap-body p { color: var(--secondary); font-size: var(--text-small); }
.solution-mosaic { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-areas: 'levitan pushkin goncharov' 'levitan rerikh aivazovsky'; gap: var(--space-3); height: min(46vh, 460px); }
.solution-mosaic figure { position: relative; margin: 0; border-radius: var(--radius-large); overflow: hidden; min-height: 0; height: 100%; border: 1px solid rgba(255,252,247,.85); box-shadow: 0 0 0 1px rgba(44,38,31,.16), 0 10px 24px rgba(70,48,24,.08); cursor: zoom-in; }
.solution-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sol-levitan { grid-area: levitan; }
.sol-pushkin { grid-area: pushkin; }
.sol-goncharov { grid-area: goncharov; }
.sol-rerikh { grid-area: rerikh; }
.sol-aivazovsky { grid-area: aivazovsky; }
.solution-mosaic figcaption { position: absolute; left: var(--space-4); bottom: var(--space-3); color: #fff; font-size: var(--text-small); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
dt { font-weight: 600; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 0; background: none; border: 0; box-shadow: none; border-radius: var(--radius-large); overflow: hidden; }
#contact-form { min-width: 0; background: rgba(44,38,31,.84); color: #f4efe6; padding: var(--space-8); box-shadow: inset 0 1px 0 rgba(255,252,247,.16); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
#contact-form h3, #contact-form label, #contact-form .consent { color: #f4efe6; }
#contact-form .optional-label, #contact-form .required-mark { color: rgba(244, 239, 230, .72); }
#contact-form .notice { background: rgba(255, 252, 247, .08); color: #efe6da; }
#contact-form input:not([type='checkbox']), #contact-form textarea { background: rgba(255, 252, 247, .08); color: #f7f1e8; border-color: rgba(255, 252, 247, .22); }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: rgba(244, 239, 230, .55); }
#contact-form .icon-button { color: rgba(244, 239, 230, .8); }
.notice { display: flex; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-panel); background: var(--hover); color: var(--secondary); font-size: var(--text-small); margin-top: var(--space-4); }
.notice .symbol { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { margin-top: var(--space-6); }
.field label { display: flex; gap: var(--space-1); margin-bottom: var(--space-2); font-size: var(--text-small); }
.field small { display: block; margin-top: var(--space-1); color: var(--secondary); font-size: var(--text-meta); }
.optional-label { color: var(--secondary); margin-left: auto; font-size: var(--text-meta); }
.required-mark { color: var(--secondary); }
input:not([type='checkbox']), textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--field); color: var(--text); padding: 0 var(--space-3); min-height: var(--control-height); line-height: 1.4; }
textarea { display: block; padding-block: var(--space-3); resize: none; min-height: 0; }
input::placeholder, textarea::placeholder { color: var(--secondary); opacity: 1; }
input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.consent-row { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.consent { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); min-height: var(--control-height); cursor: pointer; }
.consent-row .icon-button { color: var(--secondary); }
.form-legal-note { color: var(--secondary); font-size: var(--text-meta); margin-top: var(--space-2); }
#submit-button { margin-top: var(--space-6); color: #2c261f; background: rgba(255,252,247,.9); border: .5px solid rgba(255,252,247,.75); border-radius: 999px; min-height: 44px; padding-inline: 22px; box-shadow: inset 0 .5px 0 rgba(255,255,255,.95); }
#form-status:empty { display: none; }
#form-status { margin-top: var(--space-3); font-size: var(--text-small); }
.contact-details { background: rgba(247,241,232,.72); border-left: 0; padding: var(--space-8); box-shadow: inset 0 1px 0 rgba(255,252,247,.9); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
.contact-details h3 { margin-top: var(--space-3); }
.contact-details > p { margin-top: var(--space-2); }
.contact-details dl { margin-top: var(--space-8); }
.contact-details dl > div + div { margin-top: var(--space-6); }
.contact-details dt { font-size: var(--text-meta); font-weight: 400; color: var(--secondary); margin-bottom: var(--space-1); }
.contact-details dd { font-size: var(--text-small); }
footer { border-top: 1px solid var(--line); display: flex; align-items: center; gap: var(--space-6); max-width: none; margin: var(--space-8) var(--space-6) 0; padding: var(--space-6) 0 var(--space-8); font-size: var(--text-small); }
.footer-brand { font-weight: 600; }
footer p { color: var(--secondary); }
.back-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; color: var(--text); background: #fff; border: 1px solid rgba(44,38,31,.12); box-shadow: 0 1px 2px rgba(44,38,31,.05); }
.back-top svg { width: 18px; height: 18px; display: block; }
dialog { color: var(--text); width: min(560px,calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: var(--space-6); border: .5px solid rgba(255,252,247,.85); background: rgba(247,241,232,.78); box-shadow: inset 0 1px 0 rgba(255,252,247,.95), var(--shadow); -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7); }
dialog::backdrop { background: rgba(44,38,31,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.solution-viewer:not([open]) { display: none !important; }
dialog.solution-viewer[open] { position: fixed; inset: 0; margin: auto; width: max-content; height: max-content; max-width: calc(100vw - 48px); max-height: calc(100svh - 48px); padding: 0; border: 0; background: transparent; box-shadow: none; overflow: hidden; display: block; border-radius: 16px; }
.solution-viewer figure { margin: 0; width: max-content; height: max-content; max-width: calc(100vw - 48px); max-height: calc(100svh - 48px); position: relative; touch-action: pan-y; border-radius: 16px; overflow: hidden; transform: translateZ(0); }
.solution-viewer img { display: block; width: auto; height: auto; max-width: min(1080px, calc(100vw - 48px)); max-height: calc(100svh - 48px); object-fit: contain; background: none; border-radius: 0; }
.solution-viewer figcaption { position: absolute; left: 20px; bottom: 18px; color: #fff; font-size: 18px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(44,38,31,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.viewer-count { position: absolute; right: 20px; bottom: 20px; margin: 0; color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(44,38,31,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(247,241,232,.72); }
.solution-viewer .viewer-prev { left: 16px; }
.solution-viewer .viewer-next { right: 16px; }
.privacy-copy h3 { margin-top: var(--space-4); font-size: var(--text-body); }
.privacy-copy p { color: var(--secondary-on-tint); font-size: var(--text-small); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.dialog-heading h2 { align-self: center; }
.dialog-heading > form { flex-shrink: 0; }
.noscript-note { padding: var(--space-4); color: var(--secondary); }
.gallery { min-width: 0; overflow: hidden; }
.gallery > figure { padding: var(--space-4); }
.gallery > figure > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-panel); }
.gallery figcaption { margin-top: var(--space-3); font-weight: 600; }
.gallery-controls, .thumbnails { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-4); }
.gallery-controls button, .thumbnails button { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-button); min-height: var(--control-height); padding: var(--space-1) var(--space-2); }
.thumbnails button { max-width: 112px; font-size: var(--text-meta); }
.thumbnails img { width: 80px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-control); margin-bottom: var(--space-1); }
.thumbnails [aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gallery > p { padding: 0 var(--space-4) var(--space-4); font-size: var(--text-small); color: var(--secondary); }
/* JS opts in only while the scene is visible; default content never starts hidden. */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter .hero-image { animation: camera-enter 2.4s var(--ease) both; }
  .hero-enter .hero-shade::after { content: ''; position: absolute; inset: 0; background: #000; animation: shade-enter 1.8s var(--ease) both; }
  .hero-enter .reveal-line > span { animation: line-enter .9s var(--ease) both; animation-delay: .15s; }
  .hero-enter .reveal-line:nth-child(2) > span { animation-delay: .25s; }
  .hero-enter .hero-logo { animation: text-enter .9s var(--ease) .2s both; }
  .hero-enter .hero-description { animation: text-enter .9s var(--ease) .35s both; }
  .hero-enter .hero-actions { animation: text-enter .9s var(--ease) .45s both; }
  .header-enter { animation: header-enter .7s var(--ease) both; }
  .motion-active .hero-media { will-change: transform; }
}
@keyframes camera-enter { from { transform: scale(1.07) translate3d(0,10px,0); } to { transform: scale(1) translate3d(0,0,0); } }
@keyframes shade-enter { from { opacity: .2; } to { opacity: 0; } }
@keyframes line-enter { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes text-enter { from { transform: translate3d(0,32px,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes header-enter { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) {
  .site-header { gap: var(--space-3); }
  nav a { padding-inline: var(--space-1); }
}
@media (max-width: 900px) {
  :root { --control-height: 44px; }
  .site-header { top: max(var(--space-3), env(safe-area-inset-top)); left: max(var(--space-3), env(safe-area-inset-left)); right: max(var(--space-3), env(safe-area-inset-right)); display: flex; justify-content: space-between; padding: 0; flex-wrap: nowrap; }
  .page-content { padding-left: max(var(--space-4), env(safe-area-inset-left)); padding-right: max(var(--space-4), env(safe-area-inset-right)); }
  .brand-mark, .brand-mark img { height: 52px; }
  .header-controls { margin-left: auto; gap: 2px; }
  .control-divider { margin-inline: var(--space-1); }
  nav.header-pill { position: fixed; z-index: 29; top: calc(max(var(--space-3), env(safe-area-inset-top)) + 60px); left: max(var(--space-3), env(safe-area-inset-left)); right: max(var(--space-3), env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: stretch; justify-self: auto; flex: none; gap: var(--space-1); padding: var(--space-3); border-radius: 20px; background: rgba(247,241,232,.86); border: 0; box-shadow: 0 18px 40px rgba(44,38,31,.16); transform-origin: top right; }
  nav a { min-height: 44px; padding-inline: var(--space-4); font-size: var(--text-heading); justify-content: flex-start; }
  .hero { min-height: 100svh; height: 100svh; border-radius: 0; padding: calc(var(--header-clearance) + var(--space-4)) var(--space-4) var(--space-6); }
  .hero-content { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-6); }
  .hero-copy { min-width: 0; width: 100%; }
  #hero-title { font-size: clamp(26px, 7.4vw, 44px); }
  .hero-logo-slot { order: -1; flex: none; width: min(280px, 78%); transform: none; }
  .origin-mark { height: 44px; right: var(--space-4); bottom: var(--space-4); }
  .content-section { margin-top: 0; padding-block: 40px; scroll-margin-top: 0; }
  .section-heading { gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
  .section-note { flex-basis: 100%; margin-left: 0; }
  .section-subtitle { margin-top: 0; margin-bottom: var(--space-6); }
  .production-visual, .technology-layout, .model-layout, .capabilities-head, .contact-panel { grid-template-columns: 1fr; gap: var(--space-6); }
  .tech-column + .tech-column { border-left: 0; padding-left: 0; margin-left: 0; padding-top: var(--space-6); border-top: 1px solid rgba(44, 38, 31, .12); }
  .production-visual { min-height: 0; padding: var(--space-4); }
  .poster-frame { aspect-ratio: 1; min-height: 0; height: auto; }
  .production-scrim { background: linear-gradient(180deg, rgba(44,38,31,.55) 0%, rgba(44,38,31,.12) 58%, transparent 82%); }
  .production-media { grid-template-columns: 1fr 1fr; }
  .production-copy { max-width: none; }
  .production-facts { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-6); }
  .contact-panel { padding: 0; border-radius: var(--radius-large); }
  #contact-form { padding: var(--space-6); }
  .capability-cards { grid-template-columns: 1fr; }
  .capability-cards article:last-child { grid-column: auto; }
  .solution-mosaic { grid-template-columns: 1fr 1fr; grid-template-areas: 'levitan pushkin' 'goncharov rerikh' 'aivazovsky aivazovsky'; height: auto; }
  .solution-mosaic figure { min-height: 140px; height: auto; aspect-ratio: 4 / 3; }
  .finish-bar { grid-template-columns: repeat(3, 1fr); }
  .finish-bar button { min-height: 58px; padding: 6px; text-align: center; }
  .finish-name { font-size: 14px; }
  .finish-kind { font-size: 11px; }
  .model-visual { --gallery-size: min(72vw, 420px); height: auto; min-height: 0; flex-direction: column; }
  .model-stage { width: 100%; height: auto; aspect-ratio: 1; }
  .swatch-row { flex-direction: row; width: 100%; height: auto; min-width: 0; overflow-x: auto; }
  .swatch { flex: 0 0 56px; width: 56px; height: 56px; }
  .model-copy { min-height: 0; padding-block: 0; }
  .model-copy h3 { font-size: 26px; }
  .contact-details { border-left: 0; border-top: 0; padding: var(--space-6); }
  .contact-details dl { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); margin-top: var(--space-6); }
  .contact-details dl > div + div { margin-top: 0; }
  input:not([type='checkbox']), textarea { font-size: 16px; }
  footer { flex-wrap: wrap; gap: var(--space-3); padding-bottom: max(var(--space-6),env(safe-area-inset-bottom)); margin: var(--space-4) var(--space-4) 0; }
  footer p { flex-basis: 100%; order: 3; font-size: var(--text-meta); }
  .hero-enter .hero-image { animation-name: camera-enter-mobile; }
  #menu-toggle { display: inline-flex; }
  #main-nav:not(.is-open) { display: none; }
}
@keyframes camera-enter-mobile { from { transform: scale(1.035) translate3d(0,4px,0); } to { transform: scale(1) translate3d(0,0,0); } }
@media (max-width: 480px) {
  .hero-actions { flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; }
  .hero-actions .button { align-self: flex-start; }
  .origin-mark { height: 40px; }
  .hero-content { padding-bottom: var(--space-8); }
  #contact-form, .contact-details { padding: var(--space-4); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-details dl { grid-template-columns: 1fr; }
  .consent-row { align-items: flex-start; }
  .consent { align-items: flex-start; padding-block: var(--space-3); }
  .consent input { margin-top: var(--space-1); }
}
@media (pointer: coarse) { :root { --control-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media, .hero-content, .hero-image { transform: none !important; opacity: 1 !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .glass, .surface, .button, .icon-button, input, textarea { border: 1px solid CanvasText; }
  .hero { background: Canvas; color: CanvasText; }
  .hero-media, .hero-shade { display: none; }
  .hero-description, .hero-secondary { color: CanvasText; }
  .origin-mark { background: CanvasText; border-radius: var(--radius-control); }
}

/* Keep small explanatory text readable over the two CSS background clouds. */
.section-subtitle, .section-note, .tech-column p, .layer-callouts span, .cap-body p, footer p, .notice, .model-pending { color: var(--secondary-on-tint); }
@media (prefers-contrast: more) {
  :root { --secondary: var(--text); --secondary-on-tint: var(--text); --line: currentColor; }
  .glass { background: var(--glass-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
