/* Shared site shell: header, company, contact and footer. */
@media (min-width: 1081px) {
  html { zoom: 1; }
}

.site-header,
.company,
.stack-contact,
footer {
  --ink: #0b0d10;
  --red: #ff5b5f;
  --red-strong: #ee454b;
}

.site-header,
.site-header.is-scrolled {
  position: absolute;
  z-index: 30;
  inset: auto;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), 1080px);
  height: 92px;
  min-height: 0;
  padding: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff;
  background: transparent;
  backdrop-filter: none;
}

.brand { display: inline-flex; align-items: center; gap: 15px; justify-self: start; }
.brand-mark { position: relative; display: block; width: 74px; flex: 0 0 74px; }
.brand-mark img {
  width: 100%;
  height: auto;
  clip-path: polygon(0 0, 49% 0, 49% 42%, 100% 42%, 100% 100%, 0 100%);
}
.brand-name { display: none; }
.brand-signal { position: absolute; z-index: 1; top: 0; right: 1px; width: 39px; height: 18px; overflow: visible; }
.brand-signal polyline {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: common-brand-line-cycle 7.2s linear infinite;
}
.brand-signal circle {
  fill: var(--red);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: common-brand-dot-cycle 7.2s ease-in-out infinite;
}
.brand-signal circle:nth-of-type(1) { --move-a: -2.5px; --move-b: 1.2px; --move-c: -1.5px; }
.brand-signal circle:nth-of-type(2) { --move-a: 2px; --move-b: -2.2px; --move-c: 1.2px; }
.brand-signal circle:nth-of-type(3) { --move-a: -1.6px; --move-b: 2px; --move-c: -1px; }
.brand-signal circle:nth-of-type(4) { --move-a: 2.3px; --move-b: -1.5px; --move-c: 1.5px; }

@keyframes common-brand-dot-cycle {
  0%, 31%, 84%, 100% { transform: translateY(0) scale(1); }
  7% { transform: translateY(var(--move-a)) scale(1); }
  15% { transform: translateY(var(--move-b)) scale(1); }
  23% { transform: translateY(var(--move-c)) scale(1); }
  89% { transform: translateY(0) scale(1.18); }
  93% { transform: translateY(0) scale(.94); }
  97% { transform: translateY(0) scale(1.08); }
}

@keyframes common-brand-line-cycle {
  0%, 36% { stroke-dashoffset: 1; opacity: 0; }
  38% { stroke-dashoffset: 1; opacity: 1; }
  62%, 70% { stroke-dashoffset: 0; opacity: 1; }
  82% { stroke-dashoffset: -1; opacity: 1; }
  83%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

.main-nav { display: flex; align-items: center; gap: 30px; color: #c8cbd0; font-size: .9rem; }
.main-nav > a { position: static; padding: 0; transition: color .2s ease; }
.main-nav > a::after { display: none; }
.main-nav > a:hover,
.main-nav > a:focus-visible,
.main-nav > a.is-active { color: #fff; }

.nav-products { position: relative; }
.nav-products::after {
  content: "";
  position: absolute;
  z-index: 29;
  top: 100%;
  left: -18px;
  width: calc(100% + 36px);
  height: 20px;
}
.nav-products summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  list-style: none;
  cursor: pointer;
  color: inherit;
  transition: color .2s ease;
}
.nav-products summary::-webkit-details-marker { display: none; }
.nav-products summary:hover,
.nav-products summary:focus-visible { color: #fff; }
.nav-products summary svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .2s ease;
}
.nav-products[open] summary svg { transform: rotate(180deg); }
.nav-products-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 20px);
  left: 50%;
  width: 250px;
  display: block;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(14,17,21,.97);
  box-shadow: 0 24px 58px rgba(0,0,0,.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.nav-products[open] .nav-products-menu,
.nav-products:hover .nav-products-menu,
.nav-products:focus-within .nav-products-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.main-nav .nav-products-menu a {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  padding: 11px 10px;
  border-radius: 6px;
  color: #d7dbe0;
}
.main-nav .nav-products-menu a::after { display: none; }
.main-nav .nav-products-menu a:hover,
.main-nav .nav-products-menu a:focus-visible { color: #fff; background: #1e2329; }
.nav-products-menu strong { color: #fff; font-size: .84rem; font-weight: 720; }
.nav-products-menu small { margin-top: 2px; color: #777f89; font-size: .64rem; letter-spacing: .03em; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-actions .menu-toggle,
.header-actions .language-switcher,
.reading-progress { display: none !important; }
.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.portal-button:hover { background: var(--red-strong); border-color: var(--red-strong); transform: translateY(-2px); }
.portal-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.company {
  position: static;
  overflow: visible;
  padding: 115px max(24px, calc((100vw - 1080px) / 2)) 105px;
  color: var(--ink);
  background: var(--red);
}
.company-heading { display: grid; grid-template-columns: .36fr 1fr; gap: 60px; }
.company .section-number {
  margin: 0 0 28px;
  color: #6e1518;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .035em;
}
.company h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 3.5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: initial;
}
.inhouse-lockup {
  margin-top: 70px;
  padding: clamp(16px, 1.8vw, 24px) 0;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  border-top: 1px solid rgba(11,13,16,.28);
  border-bottom: 1px solid rgba(11,13,16,.28);
}
.inhouse-lockup > strong {
  display: block;
  font-size: clamp(6.6rem, 18vw, 15.5rem);
  line-height: .82;
  letter-spacing: -.095em;
  font-weight: 800;
  transform: translateY(-.055em);
}
.inhouse-lockup > span {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  line-height: 1.03;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.inhouse-values-title { margin: 48px 0 16px; color: #6e1518; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.inhouse-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 0; background: rgba(11,13,16,.25); border: 1px solid rgba(11,13,16,.25); }
.inhouse-benefits article { min-height: 220px; padding: 28px; background: var(--red); }
.inhouse-benefits article > span { position: static; color: #7d1b1f; font-family: inherit; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.inhouse-benefits h3 { margin: 58px 0 13px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; }
.inhouse-benefits p { max-width: 310px; margin: 0; color: #5d1a1c; font-size: .9rem; line-height: 1.55; }

.stack-width { width: min(calc(100% - 48px), 1080px); margin-inline: auto; }
.stack-contact { padding: 112px max(24px, calc((100vw - 1080px) / 2)); color: #fff; background: #111419; }
.stack-contact-grid { width: 100%; display: grid; grid-template-columns: 1.05fr .7fr; align-items: end; gap: clamp(56px, 9vw, 130px); }
.stack-contact-kicker { display: flex; align-items: center; gap: 13px; margin: 0 0 28px; color: #a7adb5; font-size: .74rem; font-weight: 750; line-height: 1.55; letter-spacing: .16em; }
.stack-contact-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.stack-contact h2 { margin: 0; font-size: clamp(3.6rem, 7vw, 7rem); font-weight: 700; line-height: .88; letter-spacing: -.065em; }
.stack-contact-action p { margin: 0 0 32px; color: #aeb4bc; font-size: 1rem; line-height: 1.7; }
.stack-contact-button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 22px; border: 1px solid var(--red); border-radius: 6px; color: var(--ink); background: var(--red); font: inherit; font-weight: 760; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.stack-contact-button:hover { border-color: var(--red-strong); background: var(--red-strong); transform: translateY(-2px); }
.stack-contact-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

footer {
  min-height: 128px;
  padding: 38px max(24px, calc((100vw - 1080px) / 2)) 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  color: #a4a9b0;
  background: var(--ink);
}
.footer-name { margin: 0; color: #fff; font-family: inherit; font-size: .9rem; font-weight: 700; line-height: 1.55; letter-spacing: .035em; text-transform: none; }
.footer-contact { display: flex; flex-direction: column; gap: 7px; }
.footer-email { display: block; width: fit-content; padding: 0; border: 0; color: #8b929b; font-size: .82rem; line-height: 1.55; transition: color .2s ease; }
.footer-email:hover { color: var(--red); }
.footer-links { justify-self: end; display: flex; flex-wrap: nowrap; gap: 26px; max-width: none; font-size: .86rem; }
.footer-links a { min-height: 0; display: block; padding: 0; }
.footer-links a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid #2a2e34; color: #5f6670; font-family: inherit; font-size: .75rem; line-height: 1.55; text-align: center; }

body.dialog-open { overflow: hidden; }
.interest-dialog {
  --ink: #0b0d10;
  --red: #ff5b5f;
  --red-strong: #ee454b;
  --white: #fff;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #30353d;
  border-radius: 14px;
  color: #fff;
  background: #101318;
  box-shadow: 0 34px 110px rgba(0,0,0,.58);
}
.interest-dialog[open] { animation: common-dialog-in .22s ease-out both; }
.interest-dialog::backdrop { background: rgba(4,5,7,.78); backdrop-filter: blur(6px); }
.interest-panel { position: relative; padding: clamp(32px, 5vw, 52px); }
.interest-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #30353d; border-radius: 50%; color: #aeb4bc; background: #15191f; font: inherit; cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.interest-close:hover { color: #fff; border-color: #555d67; transform: rotate(4deg); }
.interest-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.interest-kicker { margin: 0 0 17px; color: var(--red); font-family: inherit; font-size: .78rem; font-weight: 700; line-height: 1.55; letter-spacing: .08em; text-transform: none; }
.interest-dialog h2 { max-width: 470px; margin: 0 58px 17px 0; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.interest-intro { max-width: 500px; margin-bottom: 31px; color: #9da4ad; font-size: 1rem; line-height: 1.6; }
.interest-form { display: grid; gap: 20px; }
.interest-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.interest-field { display: grid; gap: 8px; color: #c5cad0; font-size: .88rem; font-weight: 650; }
.interest-field span { display: flex; align-items: baseline; justify-content: space-between; }
.interest-field small { color: #69717b; font-size: .75rem; font-weight: 500; }
.interest-field input,
.interest-field textarea { width: 100%; border: 1px solid #343a43; border-radius: 6px; color: #fff; background: #15191f; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.interest-field input { min-height: 50px; padding: 0 14px; }
.interest-field textarea { min-height: 116px; padding: 13px 14px; resize: vertical; }
.interest-field input:hover,
.interest-field textarea:hover { border-color: #4a525d; }
.interest-field input:focus,
.interest-field textarea:focus { border-color: var(--red); background: #181c22; box-shadow: 0 0 0 3px rgba(255,91,95,.1); }
.interest-hint,
.interest-error { margin: -11px 0 0; font-size: .78rem; line-height: 1.45; }
.interest-hint { color: #707781; }
.interest-error { color: #ff8589; }
.interest-submit { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid var(--red); border-radius: 6px; color: var(--ink); background: var(--red); font: inherit; font-weight: 750; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.interest-submit:hover { border-color: var(--red-strong); background: var(--red-strong); transform: translateY(-2px); }
.interest-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.interest-privacy { margin: -8px 0 0; color: #69717b; font-size: .76rem; line-height: 1.45; text-align: center; }
.interest-fallback { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #292e35; color: #777f89; font-size: .84rem; text-align: center; }
.interest-fallback a { color: #fff; border-bottom: 1px solid #4a515a; transition: color .2s ease, border-color .2s ease; }
.interest-fallback a:hover { color: var(--red); border-color: var(--red); }
.construction-dialog { width: min(520px, calc(100% - 32px)); }
.construction-dialog .interest-panel { padding-bottom: clamp(34px, 5vw, 52px); }
.construction-dialog .interest-intro { margin-bottom: 0; }

@keyframes common-dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .company-heading { grid-template-columns: .3fr 1fr; }
  .stack-contact-grid { grid-template-columns: 1fr; align-items: start; gap: 42px; }
  .stack-contact-action { max-width: 620px; }
}

@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled { width: calc(100% - 32px); height: 76px; }
  .brand-mark { width: 65px; flex-basis: 65px; }
  .brand-signal { width: 34px; height: 15px; }
  .portal-button { min-height: 40px; padding: 0 15px; }
  .header-actions { gap: 8px; }
  .company { padding: 90px 20px 80px; }
  .company-heading { grid-template-columns: 1fr; gap: 20px; }
  .company h2 { font-size: clamp(2.25rem, 4.6vw, 4.7rem); }
  .inhouse-lockup { margin-top: 48px; }
  .inhouse-benefits { grid-template-columns: 1fr; }
  .inhouse-benefits article { min-height: 180px; }
  .inhouse-benefits h3 { margin-top: 42px; }
  .stack-width { width: 100%; }
  .stack-contact { padding: 82px 20px; }
  .stack-contact h2 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .stack-contact-button { min-height: 56px; }
  footer { grid-template-columns: 1fr; align-items: start; padding-left: 20px; padding-right: 20px; }
  .footer-links { justify-self: start; flex-wrap: wrap; gap: 14px 22px; }
  .copyright { grid-column: auto; }
  .interest-dialog { width: min(620px, calc(100% - 20px)); max-height: calc(100vh - 20px); border-radius: 10px; }
  .interest-panel { padding: 31px 22px 26px; }
  .interest-close { top: 13px; right: 13px; }
  .interest-dialog h2 { margin-right: 45px; }
  .interest-contact-fields { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .company h2 { font-size: 2.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-signal polyline,
  .brand-signal circle { animation: none; }
}
