/* =====================================================================
   ALUMA · Yerevan — landing page
   Layout: a dark first screen with an arched "window" onto Ararat.
   A light sheet slides over it, carries the editorial split-grid
   sections, and lifts at the end to uncover the footer. One dark
   B2B panel widens to full bleed as it passes.
   No JavaScript: all motion is CSS (keyframes + scroll-driven
   animations). Browsers without scroll-driven animations get a
   complete static page.
   ===================================================================== */

:root {
  /* Palette from the brief */
  --paper: #F6F7F2;        /* основной фон */
  --ink: #171717;          /* основной текст */
  --stone: #6E6E68;        /* вторичный текст */
  --line: #DADAD3;         /* линии / границы */
  /* Derived tones */
  --paper-deep: #ECEDE6;   /* подложки и hover */
  --mist: #A7A7A0;         /* вторичный текст на тёмном */
  --hair: rgba(246, 247, 242, .16);  /* линии на тёмном */
  --error: #9B3B2E;

  /* Fonts from the presentation: Noto Serif (headings) + Noto Sans (text); Armenian falls back to the matching Noto faces */
  --serif: "Noto Serif", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1440px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --header-h: 72px;
  --r-lg: clamp(22px, 3vw, 44px);
  --r-md: clamp(14px, 1.4vw, 20px);
  --ease: cubic-bezier(.22, .7, .12, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) - 1px);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Target of the logo links: the very top of the page (the first screen itself is pinned, so it can't be a scroll target) */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 13px;
  transition: top .3s;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(22px, 2.6vw, 36px);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone);
}
.eyebrow .n {
  font-family: var(--serif); font-size: 15px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.eyebrow .rule { width: 40px; height: 1px; background: currentColor; opacity: .55; }

.h1, .h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
.h1 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.08; }
.h2 { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.1; }
:lang(en) .h1 { font-size: clamp(32px, 4.1vw, 64px); }
:lang(hy) .h1 { font-size: clamp(28px, 3.5vw, 56px); line-height: 1.16; letter-spacing: -.01em; }
:lang(hy) .h2 { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.16; letter-spacing: -.01em; }

.ln { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: inline-block; }

.lead {
  max-width: 36ch; margin-top: clamp(20px, 2.2vw, 32px);
  font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--stone);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; padding-block: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.arr {
  position: relative; display: inline-block; flex: none;
  width: 30px; height: 1px; background: currentColor;
  transition: width .6s var(--ease);
}
.arr::after {
  content: ""; position: absolute; right: 0; top: -3.5px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
a:hover .arr, a:focus-visible .arr, button:hover .arr { width: 52px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s;
}
.pill:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

/* ---------- Scroll progress ---------- */
.progress { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
  background: rgba(246, 247, 242, .86);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid rgba(23, 23, 23, .08);
  view-transition-name: site-header;
}
.header__bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: var(--header-h); max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
/* Brand wordmark: inline SVG traced from the logo, coloured by currentColor */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: inline-flex; align-items: center; padding-block: 10px; line-height: 0; }
.logo__mark {
  display: block; height: 22px; width: auto; aspect-ratio: 956.5 / 155;
  fill: currentColor; overflow: visible;
}
.nav { display: flex; justify-content: center; gap: clamp(18px, 2.3vw, 40px); }
.nav a {
  position: relative; padding-block: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__end { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex; padding: 3px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px;
}
.lang a {
  min-width: 46px; padding: 8px 10px; border-radius: 999px; text-align: center;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; line-height: 1.2;
  opacity: .6; transition: opacity .3s, background-color .3s;
}
.lang a:hover { opacity: 1; }
.lang a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 15%, transparent); }

.burger {
  display: none; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 50%;
}
.burger i { display: block; width: 18px; height: 7px; border-block: 1px solid currentColor; }

/* ---------- Mobile menu (opens with :target, no script) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 0px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--ink); color: var(--paper);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu:target { visibility: visible; clip-path: inset(0); transition: clip-path .8s var(--ease); }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu__close {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hair);
}
.menu__close::before, .menu__close::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: currentColor;
  transform: rotate(45deg);
}
.menu__close::after { transform: rotate(-45deg); }
.menu__links { display: grid; gap: 4px; margin-top: auto; }
.menu__links a {
  display: block; padding-block: 4px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7.4vw, 50px); line-height: 1.2;
  overflow-wrap: anywhere;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s, transform .9s var(--ease);
}
.menu:target .menu__links a {
  opacity: 1; transform: none;
  transition-delay: calc(.18s + var(--i, 0) * .06s);
}
.menu__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--hair);
}

/* ---------- Hero ---------- */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  background: var(--ink); color: var(--paper);
  overflow: clip;
}
.hero__inner {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: clamp(40px, 5vw, 96px);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + clamp(16px, 3vh, 40px));
  padding-bottom: clamp(72px, 10vh, 112px);
  transform-origin: 50% 0;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; align-self: center; }
.hero .eyebrow { color: var(--mist); }
.hero .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper);
}
.hero__lead {
  max-width: 32ch; margin-top: clamp(24px, 3.4vh, 40px);
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(246, 247, 242, .72);
}
.hero__sub {
  margin-top: clamp(14px, 2vh, 22px);
  font-family: var(--serif); font-size: clamp(19px, 1.7vw, 26px); line-height: 1.3; color: var(--paper);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: clamp(22px, 4vh, 44px); }
.link-arrow--muted { color: rgba(246, 247, 242, .7); transition: color .3s; }
.link-arrow--muted:hover { color: var(--paper); }

/* The arch takes the full height of the first screen, under the header and above its caption */
.hero__arch {
  position: relative; aspect-ratio: .8;
  height: min(calc(100vh - var(--header-h) - clamp(16px, 3vh, 40px) - clamp(72px, 10vh, 112px)), 900px);
  height: min(calc(100svh - var(--header-h) - clamp(16px, 3vh, 40px) - clamp(72px, 10vh, 112px)), 900px);
}
.hero__arch::before {
  content: ""; position: absolute; inset: -14px; pointer-events: none;
  border: 1px solid rgba(246, 247, 242, .22); border-radius: 999px 999px 10px 10px;
}
.arch__frame {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  clip-path: inset(0 round 999px 999px 6px 6px);
  background: #2a2a28;
}
.arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__cap {
  position: absolute; right: 0; top: calc(100% + 26px);
  display: flex; gap: 18px; white-space: nowrap;
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mist); font-variant-numeric: tabular-nums;
}

.seal {
  position: absolute; left: -60px; bottom: 14%;
  display: grid; place-items: center;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 1px var(--hair);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal text {
  font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; fill: currentColor;
}
.seal__arrow {
  position: relative; width: 1px; height: 26px; background: currentColor;
  transition: transform .5s var(--ease);
}
.seal__arrow::after {
  content: ""; position: absolute; left: -3.5px; bottom: 0; width: 8px; height: 8px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
}
.seal:hover .seal__arrow { transform: translateY(5px); }

/* ---------- The sheet that slides over the hero ---------- */
/* The stage keeps the pinned hero inside its own box, so the hero lets go
   exactly where the sheet ends and the footer underneath can show. */
.stage { position: relative; z-index: 1; }
.sheet {
  position: relative; z-index: 1;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: 0 -40px 90px -30px rgba(0, 0, 0, .55), 0 40px 90px -30px rgba(0, 0, 0, .55);
  overflow: clip;
}
.section { padding-block: clamp(96px, 11vw, 176px); }

.split-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 24px clamp(32px, 6vw, 120px); align-items: end;
}
.split-head .lead { margin-top: 0; justify-self: end; }

/* 01 — Philosophy: a typographic statement */
.statement .h2, :lang(hy) .statement .h2 {
  font-size: clamp(38px, 5.6vw, 88px); line-height: 1.04; letter-spacing: -.015em;
}
.statement .lead { max-width: 30ch; font-size: clamp(18px, 1.5vw, 22px); }

/* 02 — Approach: one continuous path */
.path {
  --rail: 44px;
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 128px); padding-top: var(--rail);
  view-timeline-name: --path;
}
.path::before, .path::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
}
.path::after { background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.path__step { position: relative; padding-right: clamp(12px, 2vw, 32px); }
.path__dot {
  position: absolute; left: 0; top: calc(-1 * var(--rail) - 5px);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--ink);
}
.path__n {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em;
  color: var(--stone); font-variant-numeric: tabular-nums;
}
.path__t {
  margin-top: 16px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15;
}
:lang(hy) .path__t { font-size: clamp(17px, 1.45vw, 24px); }
:lang(hy) .path__d { max-width: none; font-size: 14px; }
.path__t, .path__d { overflow-wrap: break-word; }
.path__d { margin-top: 12px; max-width: 22ch; font-size: 15px; line-height: 1.55; color: var(--stone); }

/* 03 — Scenarios: three doors that darken on hover */
.scn {
  display: flex; gap: clamp(10px, 1vw, 16px);
  height: clamp(320px, 30vw, 440px); margin-top: clamp(56px, 7vw, 112px);
}
.scn__item {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 2.4vw, 40px);
  border-radius: var(--r-md); background: var(--paper-deep);
  transition: flex-grow .9s var(--ease), background-color .6s, color .5s;
}
.scn__item:hover, .scn__item:focus-visible { flex-grow: 1.6; background: var(--ink); color: var(--paper); }
.scn__n { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--stone); transition: color .5s; }
.scn__t { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; }
.scn__item .link-arrow { margin-top: 28px; }
.scn__item:hover .scn__n, .scn__item:focus-visible .scn__n { color: var(--mist); }

/* 04 — City */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px clamp(40px, 6vw, 112px); align-items: end;
}
.about__text .lead { max-width: 44ch; margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 24px; }
.tags li { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.tags li:not(:last-child)::after { content: "/"; margin-inline: 12px; color: var(--line); }
.about__text .link-arrow { margin-top: 28px; }

/* 05 — About ALUMA: sticky heading, text and numbered principles */
.services__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.services__head { position: sticky; top: calc(var(--header-h) + 56px); }
.about-us__body .lead { margin-top: 0; max-width: 52ch; }
.about-us__body .lead + .lead { margin-top: 18px; }
.why__list { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.why__row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; align-items: baseline;
  padding-block: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--line);
}
.why__row dt { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--stone); font-variant-numeric: tabular-nums; }
.why__row dd { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; }

/* 08 — Developers (dark, widens to full bleed) */
.dev { padding-block: clamp(8px, 1.4vw, 24px); }
.dev__panel {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(96px, 11vw, 176px);
  clip-path: inset(0 clamp(8px, 1.6vw, 24px) round var(--r-lg));
}
.dev__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.on-dark .eyebrow { color: var(--mist); }
.on-dark .eyebrow .n { color: var(--paper); }
.on-dark .lead { color: var(--mist); }
.dev__head .link-arrow { margin-top: clamp(32px, 4vw, 56px); }
.dev__list { border-top: 1px solid var(--hair); }
.dev__list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--hair);
}
.dev__list .n { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--mist); font-variant-numeric: tabular-nums; }
.dev__list .t { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.25; }
.dev__list .k {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
}

/* Partner tabs: two radio buttons switch the panels, no script */
.tabs__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tabs__bar {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--hair);
}
.tabs__bar label {
  position: relative; padding-bottom: 16px; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--mist); transition: color .3s;
}
.tabs__bar label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--paper);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.tabs__bar label:hover { color: var(--paper); }
#ptab-dev:checked ~ .tabs__bar label[for="ptab-dev"],
#ptab-agents:checked ~ .tabs__bar label[for="ptab-agents"] { color: var(--paper); }
#ptab-dev:checked ~ .tabs__bar label[for="ptab-dev"]::after,
#ptab-agents:checked ~ .tabs__bar label[for="ptab-agents"]::after { transform: scaleX(1); }
#ptab-dev:focus-visible ~ .tabs__bar label[for="ptab-dev"],
#ptab-agents:focus-visible ~ .tabs__bar label[for="ptab-agents"] { outline: 1px solid var(--paper); outline-offset: 6px; }
.tabs__panel--agents { display: none; }
#ptab-agents:checked ~ .tabs__panel--dev { display: none; }
#ptab-agents:checked ~ .tabs__panel--agents { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .tabs__panel { animation: fade-up .8s var(--ease) both; }
}

.pform {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end;
  gap: 28px; margin-top: clamp(64px, 7vw, 112px);
  padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--hair);
}
.on-dark .field > label { color: var(--mist); }
.on-dark .field input { color: var(--paper); border-bottom-color: var(--hair); }
.on-dark .field--line::after { background: var(--paper); }
.btn.btn--light { background: var(--paper); color: var(--ink); }
.pform:invalid .btn { opacity: .7; }

/* 09 — Contact form */
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 112px); align-items: start;
}
.contact__head .link-arrow { margin-top: clamp(32px, 4vw, 56px); }
.form { display: grid; gap: clamp(30px, 3vw, 42px); }
.field { position: relative; display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend {
  padding: 0; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--stone);
}
.field input[type="text"], .field input[type="tel"] {
  width: 100%; padding: 10px 0 14px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font-family: var(--sans); font-size: clamp(18px, 1.5vw, 21px); font-weight: 400; outline: none;
  transition: border-color .3s;
}
.field input::placeholder { color: var(--mist); opacity: 1; }
.field--line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.field--line:focus-within::after { transform: scaleX(1); }
.field input:user-invalid { border-bottom-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chips input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips label {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: 15px; transition: background-color .3s, color .3s, border-color .3s;
}
.chips label:hover { border-color: var(--ink); }
.chips input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + label { outline: 1px solid var(--ink); outline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 19px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: opacity .4s, transform .4s var(--ease);
}
.btn:active { transform: scale(.98); }
.form:invalid .btn { opacity: .45; }
.form__note { flex: 1 1 220px; max-width: 42ch; font-size: 12.5px; line-height: 1.5; color: var(--stone); }

/* ---------- Footer (revealed as the sheet lifts) ---------- */
.footer {
  position: sticky; bottom: 0; z-index: 0;
  padding-top: clamp(96px, 10vw, 160px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(32px, 4vw, 56px));
  background: var(--ink); color: var(--paper);
  overflow: clip;
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .logo__mark { height: clamp(26px, 2.6vw, 38px); }
.footer__tag { margin-top: 16px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.footer__h { margin-bottom: 20px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.footer__col ul { display: grid; gap: 8px; }
.footer__col span { color: var(--mist); }
.footer__col a, .footer__bottom a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.footer__col a:hover, .footer__bottom a:hover { background-size: 100% 1px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(64px, 8vw, 112px); padding-top: 24px; border-top: 1px solid var(--hair);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
}
.footer__contacts { gap: 14px; }
.footer__contacts li { display: grid; gap: 2px; justify-items: start; }
.footer__k { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.footer__col .footer__city { color: var(--paper); }

/* =====================================================================
   Motion
   ===================================================================== */
@view-transition { navigation: auto; }

@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes arch-open { from { clip-path: inset(100% 0 0 0 round 999px 999px 6px 6px); } }
@keyframes settle { from { transform: scale(1.2); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-60deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* First screen: orchestrated entrance */
  .header__bar { animation: fade 1s ease .1s both; }
  .hero .eyebrow { animation: fade-up 1s var(--ease) .15s both; }
  .hero .ln > span { animation: rise 1.25s var(--ease) both; animation-delay: calc(.25s + var(--d, 0) * .14s); }
  .hero__lead { animation: fade-up 1s var(--ease) .75s both; }
  .hero__cta { animation: fade-up 1s var(--ease) .9s both; }
  .arch__frame { animation: arch-open 1.7s var(--ease) .2s both; }
  .arch__frame img { animation: settle 3s var(--ease) .2s both; }
  .hero__arch::before { animation: fade 1.2s ease 1.2s both; }
  .hero__cap { animation: fade 1s ease 1.5s both; }
  .seal { animation: pop 1.1s var(--ease) 1.3s both; }
  .seal svg { animation: spin 30s linear infinite; }
}

/* Scroll-driven: only where the browser supports it; the page is complete without it */
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 70;
    height: 2px; background: var(--paper); mix-blend-mode: difference; pointer-events: none;
    transform-origin: 0 50%;
    animation: grow-x linear both; animation-timeline: scroll(root);
  }
  /* Header: transparent over the hero, frosted paper once the sheet arrives */
  .header {
    animation: header-morph linear both; animation-timeline: scroll(root);
    animation-range: calc(100vh - 170px) calc(100vh - 60px);
  }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes header-morph {
  from {
    color: var(--paper); background-color: rgba(246, 247, 242, 0); border-bottom-color: rgba(23, 23, 23, 0);
    -webkit-backdrop-filter: saturate(1) blur(0px); backdrop-filter: saturate(1) blur(0px);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Hero recedes while the sheet slides over it */
    .hero__inner { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }

    /* Generic rise-in */
    .rv { animation: rv-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }

    /* Headings: each line slides out of its own mask */
    .h2 { view-timeline-name: --title; }
    .h2 .ln > span { animation: rise linear both; animation-timeline: --title; animation-range: entry 15% cover 32%; }
    .h2 .ln + .ln > span { animation-range: entry 35% cover 40%; }


    /* The path draws itself; stops light up as the line reaches them */
    .path::after { animation: grow-x linear both; animation-timeline: --path; animation-range: cover 22% cover 52%; }
    .path__dot {
      animation: dot-on linear both; animation-timeline: --path;
      animation-range: cover calc(22% + var(--i, 0) * 6%) cover calc(23% + var(--i, 0) * 6%);
    }
    .path__step, .scn__item { animation-range: entry calc(var(--i, 0) * 6%) entry calc(60% + var(--i, 0) * 6%); }

    /* The B2B panel widens to full bleed, then settles back */
    .dev__panel { animation: widen linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes hero-out { to { transform: translateY(-5vh) scale(.93); opacity: .2; } }
@keyframes rv-up { from { opacity: 0; transform: translateY(48px); } }
@keyframes dot-on { from { background: var(--paper); } to { background: var(--ink); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes widen {
  0% { clip-path: inset(0 6vw round 56px); }
  30%, 70% { clip-path: inset(0 0 round 0px); }
  100% { clip-path: inset(0 6vw round 56px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__bar { grid-template-columns: auto 1fr; }
  .header__end { justify-self: end; }
}
@media (min-width: 1181px) {
  .menu { display: none; }
}

@media (max-width: 1100px) {
  .pform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pform .btn { justify-self: start; }
  .path { grid-template-columns: 1fr; padding-top: 0; padding-left: 44px; margin-top: 56px; }
  .path::before, .path::after { left: 5px; right: auto; top: 8px; bottom: 36px; width: 1px; height: auto; }
  .path::after { transform-origin: 50% 0; transform: scaleY(0); }
  .path__step {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 24px; align-items: baseline; padding: 0 0 36px 0;
  }
  .path__dot { left: -44px; top: 3px; }
  .path__t, .path__d { margin-top: 0; }
  .path__d { max-width: none; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .path::after { animation-name: grow-y; animation-range: cover 12% cover 62%; }
      .path__dot { animation-range: cover calc(12% + var(--i, 0) * 10%) cover calc(13% + var(--i, 0) * 10%); }
    }
  }
}

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

  /* Hero: window on top, words below */
  .hero__inner {
    display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 18px);
    padding-bottom: clamp(48px, 9svh, 88px);
  }
  .hero__arch {
    order: -1;
    flex: 1 1 auto; min-height: 140px; height: auto; width: 100%; aspect-ratio: auto;
  }
  /* The photo and its outline fade out at the bottom; the rotating badge stays crisp */
  .arch__frame, .hero__arch::before {
    -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
    mask-image: linear-gradient(#000 62%, transparent 100%);
  }
  .hero__arch::before { inset: -9px; }
  .arch__frame img { object-position: 74% 50%; }
  .hero__text { position: relative; z-index: 1; margin-top: -56px; align-self: stretch; }
  .hero__cap { display: none; }
  /* Badge sits low, over the city, so it no longer covers Ararat */
  .seal { left: auto; right: 10px; top: auto; bottom: 60px; width: 92px; height: 92px; }
  .seal text { font-size: 10.5px; }
  .h1 { font-size: clamp(31px, 8.4vw, 48px); }
  :lang(en) .h1 { font-size: clamp(30px, 8vw, 46px); }
  :lang(hy) .h1 { font-size: clamp(25px, 6.8vw, 40px); }
  .hero__lead { max-width: 34ch; }

  .split-head, .services__grid, .about__grid, .dev__grid, .contact__grid { grid-template-columns: 1fr; }
  .split-head .lead { justify-self: start; }
  .services__head { position: static; }

  .scn { flex-direction: column; height: auto; }
  .scn__item { min-height: 200px; flex: none; }
  .scn__item:hover, .scn__item:focus-visible { flex-grow: 0; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header__cta { display: none; }
  .header__bar { gap: 12px; }
  .lang a { min-width: 40px; padding-inline: 8px; }
  .path__step { grid-template-columns: 1fr; }
  .path__t { margin-top: 6px; }
  .why__row { grid-template-columns: 36px minmax(0, 1fr); }
  .dev__list li { grid-template-columns: 40px minmax(0, 1fr); }
  .pform { grid-template-columns: 1fr; }
  .hero__cta { gap: 4px 28px; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .logo__mark { height: 16px; }
  .lang a { min-width: 36px; padding-inline: 6px; }
}

/* Short phones (iPhone SE size): the photo is low, so the badge gets smaller and sits right above the text */
@media (max-width: 900px) and (max-height: 700px) {
  .seal { width: 70px; height: 70px; right: 6px; bottom: 57px; }
  .seal text { font-size: 12.5px; }
  .seal__arrow { height: 18px; }
}

/* Short windows: let the first screen scroll normally instead of pinning it */
@media (max-height: 560px) {
  .hero { position: relative; height: auto; min-height: 100svh; }
  .hero__arch { min-height: 200px; }
}
