/* ==========================================================================
   Im-Tech — site styles
   Visual language: dark architectural deck — hairlines, numbered chapters,
   mono data labels, restrained LED-cyan accent.
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-1: #0b0d10;
  --bg-2: #101318;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #e9edf2;
  --muted: #9aa3ae;
  --muted-2: #6d7681;
  --accent: #5ad1ff;
  --accent-soft: rgba(90, 209, 255, 0.12);
  --danger: #ff8f8f;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 85%);
}

::selection {
  background: rgba(90, 209, 255, 0.28);
  color: #fff;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #04141b;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.85rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.95rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.accent {
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.eyebrow .sep {
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #04141b;
}

.btn-primary:hover {
  background: #8de2ff;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
  padding: 11px 20px;
  font-size: 12.5px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
}

.btn-link span {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link:hover span {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vh, 84px));
  padding-bottom: 26px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -6%;
  width: 58vw;
  height: 58vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, rgba(90, 209, 255, 0.13), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: min(76vh, 720px);
}

.hero-copy h1 {
  margin: 26px 0 28px;
}

.hero-copy .lead {
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(38px, 6vh, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}

.hero-facts dd {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 6vh, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-scroll {
  transition: color 0.2s ease;
}

.hero-scroll:hover {
  color: var(--accent);
}

/* ---------- Facade figure ---------- */

.facade {
  position: relative;
  margin: 0;
}

.facade-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(360px, 54vh, 560px);
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
    rgba(255, 255, 255, 0.012);
}

.facade-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.7;
}

.facade-corner.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.facade-corner.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.facade-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.facade-corner.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.facade-screen {
  position: relative;
  flex: 1;
  margin-top: 34px;
  background-color: #080a0d;
  background-image: radial-gradient(circle, rgba(233, 237, 242, 0.26) 1px, transparent 1.45px);
  background-size: 9px 9px;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.facade-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(90, 209, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.facade-scan {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(90, 209, 255, 0.95) 1.15px, transparent 1.6px);
  background-size: 9px 9px;
  background-position: center;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 45%, #000 58%, transparent 80%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 45%, #000 58%, transparent 80%);
  -webkit-mask-size: 260% 260%;
  mask-size: 260% 260%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: facade-sweep 12s linear infinite;
}

@keyframes facade-sweep {
  0% { -webkit-mask-position: 135% 0%; mask-position: 135% 0%; }
  100% { -webkit-mask-position: -35% 100%; mask-position: -35% 100%; }
}

.facade-tag {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.facade-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(90, 209, 255, 0.9);
}

.facade-dim {
  position: absolute;
  bottom: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-left: 14px;
}

.facade-dim::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.facade-dim--v { left: 26px; }
.facade-dim--h { right: 26px; }

.facade-caption {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 46ch;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(64px, 8.5vw, 118px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.chapter-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.chapter-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
  flex-wrap: wrap;
}

.section-head h2 {
  max-width: 18ch;
}

.section-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.split--wide {
  grid-template-columns: 0.85fr 1.15fr;
}

.split h2 {
  margin-bottom: 26px;
}

.split .lead + .muted {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 52ch;
}

.sticky-col {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.sticky-col .muted {
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.footnote {
  margin-top: 30px;
  padding-left: 14px;
  border-left: 1px solid var(--accent);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 78ch;
}

.footnote--inline {
  margin-top: 18px;
  font-size: 12px;
}

/* ---------- Company mini cards ---------- */

.column-list {
  display: grid;
  gap: 0;
}

.mini-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.mini-card:last-child {
  border-bottom: 1px solid var(--line);
}

.mini-card h3 {
  grid-column: 2;
  margin-bottom: 6px;
}

.mini-card p {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.mini-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 3px;
}

/* ---------- Services ---------- */

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: start;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service:hover {
  background: linear-gradient(90deg, rgba(90, 209, 255, 0.045), transparent 55%);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-top: 5px;
  transition: color 0.25s ease;
}

.service:hover .service-num {
  color: var(--accent);
}

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: start;
}

.service-body h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.3rem);
}

.service-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.service-body .tags {
  justify-content: flex-end;
  max-width: 220px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 4px 8px;
  white-space: nowrap;
}

/* ---------- Formats ---------- */

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.format-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%);
  transition: border-color 0.25s ease, transform 0.3s ease;
}

.format-card:hover {
  border-color: rgba(90, 209, 255, 0.42);
  transform: translateY(-3px);
}

.format-figure {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(90, 209, 255, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.012);
}

.format-figure svg {
  display: block;
  width: 100%;
  height: auto;
  color: rgba(233, 237, 242, 0.5);
  transition: color 0.25s ease;
}

.format-card:hover .format-figure svg {
  color: rgba(233, 237, 242, 0.78);
}

.format-screen-fill {
  fill: rgba(90, 209, 255, 0.16);
  transition: fill 0.25s ease;
}

.format-card:hover .format-screen-fill {
  fill: rgba(90, 209, 255, 0.3);
}

.format-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format-type {
  color: var(--accent);
}

.format-area {
  color: var(--muted-2);
}

.format-card h3 {
  padding: 12px 22px 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.format-card p {
  padding: 10px 22px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.format-card .tags {
  padding: 0 22px 24px;
}

/* ---------- Spec table ---------- */

.spec-table {
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.2fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.spec-row dt {
  font-size: 13.5px;
  color: var(--muted);
}

.spec-row dd {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.45;
}

.spec-row dd span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* ---------- Process ---------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 20px 30px 0;
  border-right: 1px solid var(--line);
}

.process-step + .process-step {
  padding-left: 20px;
}

.process-step:last-child {
  border-right: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.process-step:hover::before {
  width: 100%;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.process-step h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.process-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.process-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 4px;
}

/* ---------- Advertisers ---------- */

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: transparent;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--bg);
}

.placement-list {
  border-top: 1px solid var(--line);
}

.placement {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.placement-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}

.placement h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.placement p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Principles ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  background: var(--bg);
  padding: clamp(24px, 3vw, 38px);
  transition: background 0.25s ease;
}

.principle:hover {
  background: var(--bg-1);
}

.principle-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}

.principle h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.principle p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44ch;
}

/* ---------- Statement ---------- */

.statement {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(90, 209, 255, 0.09), transparent 70%),
    var(--bg-1);
  overflow: hidden;
}

.statement-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.statement-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 12px;
}

.statement-text {
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 24ch;
}

.statement-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
  padding-top: 12px;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.45;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item[open] summary {
  color: var(--text);
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 5px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-icon::before {
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
}

.faq-icon::after {
  left: 6px;
  top: 0;
  width: 1px;
  height: 13px;
}

.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}

.faq-item[open] .faq-icon::before {
  background: var(--accent);
}

.faq-body {
  padding: 0 44px 24px 0;
}

.faq-body p {
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- Contacts ---------- */

.section--contacts {
  background: linear-gradient(180deg, var(--bg), var(--bg-1));
}

.split--contacts {
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 96px);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.contact-list dd {
  font-size: 15px;
  line-height: 1.4;
}

.contact-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.requisites {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ---------- Form ---------- */

.form {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: clamp(22px, 3vw, 36px);
}

.form-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 9px 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) calc(50% + 1px), calc(100% - 4px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 20px;
  cursor: pointer;
}

.field select option {
  background: var(--bg-1);
  color: var(--text);
}

.field.has-error input {
  border-bottom-color: var(--danger);
}

.field-error {
  display: block;
  font-size: 11.5px;
  color: var(--danger);
  line-height: 1.4;
  min-height: 0;
}

.field-error:not(:empty) {
  margin-top: 6px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 26px 0 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.consent a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.form-submit {
  width: 100%;
  margin-top: 18px;
}

.form-status {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
}

.form-status.is-error {
  color: var(--danger);
}

.form-hint {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 68px) 0 26px;
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 34ch;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-nav a,
.footer-nav span {
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.footer-bottom a {
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- Reveal ---------- */

.reveal-init {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-init.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Legal page ---------- */

.legal {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 96px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 44px;
}

.legal-body {
  max-width: 74ch;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.legal-body h2 {
  font-size: 1.125rem;
  margin: 34px 0 12px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-body p + p {
  margin-top: 10px;
}

.legal-body ul {
  margin: 10px 0;
  display: grid;
  gap: 8px;
}

.legal-body li {
  position: relative;
  padding-left: 18px;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.legal-body a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .service-body {
    grid-template-columns: 1fr 1fr;
  }

  .service-body .tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:nth-child(2n) {
    border-right: 0;
  }

  .process-step:nth-child(2n + 1) {
    padding-left: 0;
  }

  .process-step {
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(7, 8, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    font-size: 16px;
    color: var(--text);
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 44px;
  }

  .facade {
    max-width: 520px;
  }

  .facade-frame {
    min-height: 340px;
  }

  .split,
  .split--wide,
  .split--contacts {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-col {
    position: static;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-figure {
    padding: 22px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .statement-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .statement-label,
  .statement-meta {
    padding-top: 0;
  }

  .statement-meta {
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
    gap: 12px 24px;
  }

  .footer-bottom .footer-up {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: clamp(2.1rem, 9.5vw, 3rem);
  }

  .hero-actions {
    gap: 18px;
  }

  .hero-actions .btn-primary {
    flex: 1;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero-facts > div:last-child {
    grid-column: 1 / -1;
  }

  .hero-foot {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .hero-foot > span:nth-child(2) {
    display: none;
  }

  .chapter-name {
    white-space: normal;
  }

  .service {
    grid-template-columns: 44px 1fr;
  }

  .service-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-body .tags {
    grid-column: auto;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: 0;
    padding: 22px 0;
  }

  .process-step + .process-step {
    padding-left: 0;
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .placement {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .facade-frame {
    min-height: 300px;
  }

  .facade-dim--h {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-init {
    opacity: 1;
    transform: none;
  }

  .facade-scan {
    display: none;
  }
}
