/* ============================================================
   Верста — Landing page (UI kit) styles
   Consumes the design system via ../../styles.css (tokens + motifs).
   This file = page layout, sections, interaction states only.
   ============================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.shell { position: relative; }

/* ---- Layout container ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   Fixed wayfinding chrome
   ============================================================ */

/* Left ruler track (desktop) */
.ruler {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--ruler-w);
  z-index: 40;
  pointer-events: none;
  border-right: var(--bw) solid var(--line);
  background: linear-gradient(var(--paper), var(--paper));
}
.ruler__ticks {
  position: absolute; top: 0; bottom: 0; right: 0; width: 12px;
  background: var(--ticks-v);
  background-size: 100% var(--tick-gap);
  opacity: .55;
}
.ruler__km {
  position: absolute; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Right progress post + odometer */
.post {
  position: fixed;
  top: 0; bottom: 0; right: 22px;
  width: var(--post-w);
  z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.post__odo {
  position: fixed; top: 84px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--accent);
  text-align: right;
}
.post__rail {
  position: absolute; top: 120px; bottom: 28px; left: 0;
  width: var(--post-w);
  background: var(--paper-pure);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.post__fill {
  position: absolute; left: 0; right: 0; top: 0;
  height: 0%;
  background: var(--stripe-accent);
  transition: height 120ms linear;
}

/* Mobile top progress bar */
.mbar { display: none; }

/* ============================================================
   Header
   ============================================================ */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background var(--dur) var(--ease-snap), border-color var(--dur), box-shadow var(--dur);
  border-bottom: var(--bw) solid transparent;
}
.hd--solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.hd__in {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
  max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad-x);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__glyph { width: 13px; height: 28px; border-radius: 2px; background: var(--stripe-ink); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: .02em; color: var(--ink); }
.hd__nav { display: flex; gap: 26px; margin-left: 14px; }
.hd__nav a {
  font-family: var(--font-text); font-size: 15px; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0;
}
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right var(--dur) var(--ease-snap);
}
.hd__nav a:hover { color: var(--ink); }
.hd__nav a:hover::after { right: 0; }
.hd__cta { margin-left: 20px; padding: 11px 16px; font-size: 14px; flex: none; white-space: nowrap; }
.hd__meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
}
.hd .hd__burger { display: none; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.sec { position: relative; padding-block: var(--section-y); }
.sec--tight { padding-block: var(--section-y-s); }
.sec__head { margin-bottom: clamp(32px, 5vw, 64px); }
.sec__rule {
  height: 12px; margin-top: 18px;
  background: var(--ticks-h); background-size: var(--tick-gap) 100%;
  background-repeat: repeat-x; background-position: top;
  opacity: .8;
}
.eyebrow { /* the verst label */
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--ink); font-weight: 500;
}
.eyebrow__glyph { width: 12px; height: 26px; border-radius: 1px; background: var(--stripe-ink); flex: none; }
.eyebrow .km { color: var(--accent); }
.eyebrow .sep { color: var(--stone); }
.sec__title { margin-top: 22px; }
.sec__lead { margin-top: 20px; font-size: var(--fs-body-l); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

/* Scroll reveal (snapped) — hidden state only applies when JS is active,
   so content is always visible if the script fails to run. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-step), transform var(--dur-slow) var(--ease-step); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: 150px; padding-bottom: var(--section-y); position: relative; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 12 - 1px), var(--line-faint) calc(100% / 12 - 1px), var(--line-faint) calc(100% / 12));
  -webkit-mask-image: linear-gradient(var(--paper), transparent 80%);
          mask-image: linear-gradient(var(--paper), transparent 80%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; }
.hero h1 { margin: 26px 0 0; max-width: 16ch; }
.hero h1 .vbar { color: var(--accent); }
.hero__sub { margin-top: 28px; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--ink-soft); max-width: 40ch; font-weight: 500; }
.hero__note {
  margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--stone);
  max-width: 56ch; padding-left: 18px; border-left: var(--bw-2) solid var(--accent);
}
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* ============================================================
   Buttons (page-local; mirrors the DS Button component)
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 22px; border-radius: var(--r-1); border: var(--bw-2) solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease-snap), background var(--dur) var(--ease-snap), border-color var(--dur);
}
.btn span, .btn .arr { position: relative; z-index: 1; }
.btn .arr { transition: transform var(--dur) var(--ease-snap); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--stripe-accent); transform: translateX(-101%); transition: transform var(--dur-slow) var(--ease-step); opacity: .92; }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover .arr { transform: translateX(5px); }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn--sec { background: transparent; color: var(--ink); }
.btn--sec::before { background: var(--ink); }
.btn--sec:hover, .btn--sec:focus-visible { color: var(--paper); }
.btn--ink { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--ink::before { background: var(--stripe-paper); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--ink); }

/* ============================================================
   Approach — numbered principle list
   ============================================================ */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.prin { border-top: var(--bw) solid var(--line); }
.prin__row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 4px; border-bottom: var(--bw) solid var(--line); align-items: start; }
.prin__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .08em; padding-top: 4px; }
.prin__row h4 { margin: 0 0 7px; }
.prin__row p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }

/* ============================================================
   Services — indexed rows
   ============================================================ */
.srv { border-top: var(--bw) solid var(--line); }
.srv__row {
  position: relative; display: grid; grid-template-columns: 92px minmax(0,1fr);
  gap: clamp(16px, 4vw, 56px); padding: clamp(26px, 3.6vw, 44px) 8px clamp(26px, 3.6vw, 44px) 14px;
  border-bottom: var(--bw) solid var(--line); overflow: hidden;
  transition: background var(--dur) var(--ease-snap);
}
.srv__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--stripe-accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease-step); }
.srv__row:hover { background: var(--paper-pure); }
.srv__row:hover::before { transform: scaleY(1); }
.srv__idx { font-family: var(--font-mono); font-size: 15px; color: var(--stone); font-weight: 600; letter-spacing: .04em; padding-top: 6px; transition: color var(--dur); }
.srv__row:hover .srv__idx { color: var(--accent); }
.srv__row h3 { margin: 0; font-size: clamp(22px, 2.6vw, 34px); }
.srv__row p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 64ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); border: var(--bw) solid var(--line-strong); border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap; }
.tag--pine { color: var(--pine); border-color: color-mix(in srgb, var(--pine) 42%, transparent); }

/* ============================================================
   Industries
   ============================================================ */
.ind { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ind__card { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 46px); background: var(--paper-pure); border: var(--bw) solid var(--line); border-radius: var(--r-2); overflow: hidden; min-height: 300px; transition: border-color var(--dur) var(--ease-snap); }
.ind__card:hover { border-color: var(--ink); }
.ind__cap { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--stripe-ink); opacity: .85; }
.ind__card--accent .ind__cap { background: var(--stripe-accent); }
.ind__idx { font-family: var(--font-mono); font-size: 12px; color: var(--stone); letter-spacing: .12em; margin-top: 10px; }
.ind__card h3 { margin: auto 0 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.ind__card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; max-width: 42ch; }
.ind__more { margin-top: 26px; font-size: 16px; color: var(--ink-soft); max-width: 70ch; line-height: 1.55; }

/* ============================================================
   Route — the road
   ============================================================ */
.route { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px, 4vw, 48px); }
.route__track { position: relative; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__steps { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 90px); }
.mile { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.mile__post { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mile__glyph { width: 16px; height: 56px; border-radius: 2px; background: var(--stripe-ink); transition: background var(--dur); }
.mile.in .mile__glyph { background: var(--stripe-accent); }
.mile__num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: .06em; text-align: center; white-space: nowrap; }
.mile h3 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 34px); }
.mile p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Why us — advantage rows with tick markers
   ============================================================ */
.why { border-top: var(--bw) solid var(--line); }
.why__row { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 22px 4px; border-bottom: var(--bw) solid var(--line); align-items: baseline; }
.why__mark { width: 14px; height: 14px; background: var(--stripe-accent); border-radius: 1px; }
.why__row b { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.9vw, 23px); color: var(--ink); }
.why__row span { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   Works — placeholder cards
   ============================================================ */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { border: var(--bw) solid var(--line); border-radius: var(--r-2); overflow: hidden; background: var(--paper-pure); }
.work__img { aspect-ratio: 4/3; background: var(--stripe-ink); position: relative; opacity: .9; display: flex; align-items: center; justify-content: center; }
.work__img span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--paper); background: var(--ink); padding: 6px 10px; border-radius: var(--r-1); }
.work__img--photo { background: var(--ink); opacity: 1; }
.work__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 20px 22px 24px; }
.work__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.work__body h4 { margin: 10px 0 6px; font-size: 21px; }
.work__metric { font-family: var(--font-mono); font-size: 13px; color: var(--stone); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: var(--bw) solid var(--line); max-width: 880px; }
.faq__item { border-bottom: var(--bw) solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); color: var(--ink); }
.faq__q .pm { margin-left: auto; font-family: var(--font-mono); color: var(--accent); font-size: 22px; transition: transform var(--dur) var(--ease-snap); flex: none; }
.faq__item.open .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-step); }
.faq__a p { padding: 0 4px 24px 38px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; margin: 0; }

/* ============================================================
   Finish — dark CTA + form
   ============================================================ */
.finish { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.finish__stripe { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--stripe-paper); opacity: .5; }
.finish .eyebrow { color: var(--paper); }
.finish .eyebrow__glyph { background: var(--stripe-paper); }
.finish h2 { color: var(--paper); }
.finish__head { margin-bottom: clamp(40px, 5vw, 64px); }
.finish__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: start; }
.finish__lead { font-size: var(--fs-body-l); line-height: 1.55; color: rgba(244,240,232,.78); max-width: 54ch; }
.finish__contacts { margin-top: 0; display: flex; flex-direction: column; gap: 14px; }
.finish__contacts a, .finish__contacts div { font-family: var(--font-mono); font-size: 14px; color: var(--paper); letter-spacing: .02em; display: flex; gap: 12px; align-items: baseline; }
.finish__contacts .lbl { color: rgba(244,240,232,.5); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; width: 80px; flex: none; }
.form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,240,232,.6); }
.field label .req { color: var(--accent); }
.field input, .field textarea { font-family: var(--font-text); font-size: 18px; color: var(--paper); background: transparent; border: 0; border-bottom: var(--bw-2) solid var(--line-paper); padding: 9px 2px; width: 100%; }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,240,232,.38); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form__ok { font-family: var(--font-mono); font-size: 14px; color: var(--accent); display: none; }
.form.sent .form__ok { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.ft { background: var(--ink); color: var(--paper); padding-top: 64px; padding-bottom: 36px; border-top: var(--bw) solid var(--line-paper); }
.ft__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ft__pos { font-size: 15px; line-height: 1.55; color: rgba(244,240,232,.66); max-width: 36ch; margin-top: 16px; }
.ft__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,240,232,.5); margin: 0 0 16px; font-weight: 500; }
.ft__col a { display: block; font-size: 15px; color: rgba(244,240,232,.85); padding: 5px 0; }
.ft__col a:hover { color: var(--accent); }
.ft__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 17vw, 240px); line-height: .82; letter-spacing: -.02em; color: var(--paper); margin: 56px 0 0; -webkit-text-stroke: 0; position: relative; }
.ft__word .glyph { display: inline-block; width: .12em; height: .8em; background: var(--stripe-paper); border-radius: 2px; margin-left: .06em; vertical-align: baseline; }
.ft__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: var(--bw) solid var(--line-paper); flex-wrap: wrap; }
.ft__copy { font-family: var(--font-mono); font-size: 12px; color: rgba(244,240,232,.5); letter-spacing: .04em; }
.ft__odo { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .hd__meta { display: none; }
  .hd__cta { margin-left: auto; }
}
@media (max-width: 1080px) {
  .ruler { display: none; }
  .post { right: 14px; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .ind { grid-template-columns: 1fr; }
  .finish__grid { grid-template-columns: 1fr; gap: 36px; }
  .ft__top { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .hd__nav, .hd__cta { display: none; }
  .hd .hd__burger { display: inline-flex; margin-left: auto; padding: 11px 16px; font-size: 14px; }
}
@media (max-width: 720px) {
  .post { display: none; }
  .mbar { display: block; position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 70; background: var(--paper-pure); }
  .mbar__fill { height: 100%; width: 0%; background: var(--stripe-accent); transition: width 100ms linear; }
  .route { grid-template-columns: 1fr; }
  .route__track { display: none; }
  .ft__top { grid-template-columns: 1fr; }
}

/* ============================================================
   Inline link (consent / footer / cookie)
   ============================================================ */
.lnk { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color var(--dur) var(--ease-snap); }
.lnk:hover { color: var(--accent-deep); }

/* Consent line above the submit button (on the dark finish section) */
.form__consent { font-size: 13px; line-height: 1.5; color: rgba(244, 240, 232, .6); margin: -8px 0 0; max-width: 52ch; }

/* Footer legal links */
.ft__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: var(--bw) solid var(--line-paper); }
.ft__legal a { font-size: 14px; color: rgba(244, 240, 232, .7); }
.ft__legal a:hover { color: var(--accent); }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  display: none; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border: var(--bw) solid var(--line-paper); border-radius: var(--r-2);
  padding: 16px 20px; box-shadow: var(--shadow-pop);
  transform: translateY(140%); transition: transform var(--dur-slow) var(--ease-step);
}
.cookie.show { display: flex; transform: translateY(0); }
.cookie__text { font-size: 14px; line-height: 1.5; color: rgba(244, 240, 232, .82); margin: 0; flex: 1 1 260px; }
.cookie__btn { flex: none; padding: 11px 20px; font-size: 14px; }

/* ============================================================
   Modal (pop-up) — legal documents
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(24, 20, 16, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto;
  background: var(--paper-pure); color: var(--ink-soft);
  border: var(--bw) solid var(--line-strong); border-radius: var(--r-2);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-pop);
}
.modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--stone); border-radius: var(--r-1);
  transition: color var(--dur), background var(--dur);
}
.modal__close:hover { color: var(--ink); background: var(--paper); }
.modal__title { font-size: clamp(22px, 3vw, 30px); margin: 0 40px 18px 0; color: var(--ink); }
.modal__body { font-size: 15px; line-height: 1.65; }
.modal__body p { margin: 0 0 14px; }
.modal__body p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie__btn { width: 100%; justify-content: center; }
}
