/* DIGITAL OBJECTS / TOKENS */
:root {
  color-scheme: dark;
  --ink: #10100f;
  --paper: #f1eee7;
  --muted: #aaa69e;
  --bronze: #c7a675;
  --line: #eee3cc24;
  --gutter: clamp(30px, 6.4vw, 110px);
  font-family: 'Segoe UI Variable Display', 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { color: #15120d; background: #cfb381; }
[hidden] { display: none !important; }

/* DIGITAL OBJECTS / FIXED HEADER: one position on all four screens. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 112px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}

.company-label {
  width: fit-content;
  color: #d8d5ce;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .3px;
}

.company-label span { display: block; }

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  align-self: stretch;
}

.main-navigation a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #a6a39c;
  font-size: 13px;
  transition: color .2s ease;
}

.main-navigation a:hover,
.main-navigation a[aria-current='page'] { color: var(--paper); }

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-navigation a[aria-current='page']::after { transform: scaleX(1); }

.header-note {
  justify-self: end;
  color: #a19a8d;
  font-size: 10px;
  letter-spacing: 1.2px;
}

/* DIGITAL OBJECTS / SCREENS: atmospheric image, editorial copy, no camera motion. */
.screen-space {
  position: relative;
  min-height: calc(100svh - 178px);
}

.screen {
  position: absolute;
  isolation: isolate;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 178px);
  padding: 44px var(--gutter) 58px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

.screen.is-active { opacity: 1; pointer-events: auto; }

.scene-art {
  position: fixed;
  z-index: -1;
  inset: 0;
  margin: 0;
  background: #10100f;
}

.scene-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10100f38, transparent 56%),
    linear-gradient(180deg, #10100f33, transparent 25%, transparent 85%, #10100f55);
  pointer-events: none;
}

.screen-copy {
  width: min(48%, 630px);
  position: relative;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 29px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: #b6986d8c;
}

.screen-title {
  margin: 0 0 29px;
  font-size: clamp(52px, 5.7vw, 88px);
  font-weight: 350;
  line-height: 1.035;
  letter-spacing: -.055em;
  outline: none;
}

.screen-title .warm { color: #cdb795; }

.screen-lead {
  max-width: 450px;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 350;
  line-height: 1.65;
  color: #d0ccc3;
}

.screen-detail {
  max-width: 455px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.disciplines {
  max-width: 460px;
  margin: 27px 0 0;
  color: #a6a096;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .2px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 54px;
  margin-top: 38px;
  padding: 15px 22px;
  border: 1px solid #e3d6bc;
  background: #e5d8c1;
  color: #211c15;
  font-size: 13px;
  transition: background .2s ease, border-color .2s ease;
}

.primary-action:hover { background: #f5e9d3; border-color: #f5e9d3; }
.primary-action span[aria-hidden] { font-size: 20px; line-height: 1; }

/* PRODUCTS / TELEGRAM BETA: existing visual language, confirmed deep link. */
.primary-action.beta-action { margin-top: 12px; gap: 20px; max-width: 100%; }
.beta-access-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

#products .screen-title { font-size: clamp(58px, 6.2vw, 94px); }
#about .screen-title { font-size: clamp(46px, 4.7vw, 72px); }
#contacts .screen-title { font-size: clamp(48px, 4.7vw, 72px); }

#about .scene-art::after {
  background: linear-gradient(90deg, #10100fe6, #10100fd9 30%, #10100f80 44%, transparent 65%);
}

#contacts .scene-art img { object-position: right center; }

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 10px 0;
  color: #c5b18e;
  font-size: 12px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c3a16b;
}

.demo-caption {
  position: fixed;
  right: 13%;
  bottom: 11%;
  color: #a9a49c;
  font-size: 10px;
  letter-spacing: .5px;
}

.contact-note {
  max-width: 420px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #cfb88d33;
  color: #a9a096;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  color: #77746c;
  font-size: 10px;
  letter-spacing: .6px;
}

#screen-counter { color: #b7ab98; font-variant-numeric: tabular-nums; letter-spacing: 2px; }

a:focus-visible { outline: 2px solid #d0ad76; outline-offset: 7px; }
.skip-link { position: fixed; z-index: 50; top: -100px; left: 20px; padding: 14px 20px; background: #e5d8c1; color: #17130f; }
.skip-link:focus { top: 16px; }

/* DIGITAL OBJECTS / TABLET */
@media (min-width: 761px) and (max-width: 1100px) {
  :root { --gutter: 40px; }
  .header-note { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .screen-copy { width: 52%; }
  .screen-title { font-size: 60px; }
  .scene-art img { object-position: 55% center; }
  .screen-detail { font-size: 13px; }
}

/* DIGITAL OBJECTS / MOBILE: one active screen, natural scroll, image above copy. */
@media (max-width: 760px) {
  :root { --gutter: 25px; }
  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 132px;
    padding-top: 22px;
    background: #10100f;
  }
  .company-label { font-size: 11px; line-height: 1.4; }
  .company-label span { display: inline; }
  .company-label span + span::before { content: ' '; }
  .main-navigation { gap: 0; justify-content: space-between; }
  .main-navigation a { font-size: 12px; min-height: 48px; }
  .header-note { display: none; }
  .screen-space { min-height: calc(100svh - 192px); }
  .screen {
    position: relative;
    display: block;
    min-height: calc(100svh - 192px);
    padding-top: 325px;
    padding-bottom: 42px;
  }
  .screen:not(.is-active) { position: absolute; }
  .scene-art {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: auto;
    height: 360px;
    overflow: hidden;
  }
  .scene-art img { object-position: 79% center; }
  #contacts .scene-art img { object-position: 95% center; }
  .scene-art::after { background: linear-gradient(0deg, #10100f, transparent 24%); }
  #about .scene-art::after { background: linear-gradient(0deg, #10100f, transparent 24%); }
  .screen-copy { width: 100%; }
  .section-kicker { margin-bottom: 21px; font-size: 9px; letter-spacing: 1.5px; gap: 13px; }
  .screen-title,
  #products .screen-title,
  #about .screen-title,
  #contacts .screen-title { font-size: clamp(39px, 11.4vw, 55px); line-height: 1.08; margin-bottom: 24px; }
  .screen-lead { font-size: 17px; line-height: 1.65; }
  .screen-detail { font-size: 14px; line-height: 1.85; margin-top: 20px; }
  .disciplines { font-size: 11px; margin-top: 23px; }
  .primary-action { margin-top: 28px; }
  .demo-caption { position: absolute; top: 289px; bottom: auto; right: 25px; font-size: 9px; }
  .contact-note { margin-top: 26px; }
  .site-footer { min-height: 60px; font-size: 9px; }
}

/* Short landscape windows scroll rather than crop content. */
@media (min-width: 761px) and (max-height: 760px) {
  .site-header { min-height: 88px; }
  .screen-space { min-height: 650px; }
  .screen { min-height: 650px; padding-top: 45px; padding-bottom: 45px; }
  .scene-art { position: absolute; }
  .screen-title { font-size: 64px; }
  #products .screen-title { font-size: 70px; }
  #about .screen-title { font-size: 60px; }
  #contacts .screen-title { font-size: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
