@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+2013-2014, U+2026;
}

@view-transition { navigation: auto; }

:root {
  --white: #fff;
  --ink: #06174a;
  --navy: #0a2e8a;
  --blue: #2a4fc0;
  --text: #2b3760;
  --muted: #5a6588;
  --field: #7f8cb5;
  --line: #dde3f1;
  --tint: #f3f6fc;
  --on-navy: #c9d4f4;
  --on-navy-line: rgba(255, 255, 255, .42);
  --error: #b02a44;
  --radius: 10px;
  --radius-lg: 12px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 152px);
  --col-gap: clamp(20px, 6vw, 96px);
  --display: clamp(40px, 7vw, 96px);
  --body-lg: clamp(17px, 1.35vw, 19px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy); color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
h1, h2 { color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
.intro { font-size: clamp(23px, 2.75vw, 38px); line-height: 1.3; letter-spacing: -0.028em; font-weight: 500; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; border-radius: var(--radius-lg); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--blue); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--on-navy); }
.arrow { flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header: logo and one action */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s; view-transition-name: header; }
.header.is-stuck { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.logo svg { height: 44px; width: auto; overflow: visible; }
.logo__word { font-family: "Onest", Arial, sans-serif; font-size: 25px; font-weight: 400; letter-spacing: -0.02em; fill: var(--ink); }
.logo__b { font-weight: 700; }
.logo__bands rect { fill: var(--blue); }

/* Hero: the statement sits on the bottom of a full navy plane, over one drawn line.
   Behind it: a greyscale photo under a navy wash, so the plane stays in the brand colour. */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; min-height: min(calc(100svh - var(--header-h)), 1000px); background: var(--navy); color: var(--white); padding: clamp(72px, 9vw, 136px) 0 clamp(40px, 5vw, 72px); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; }
.hero::before { z-index: -2; background: center / cover no-repeat image-set(url("img/hero.webp") type("image/webp"), url("img/hero.jpg") type("image/jpeg")); animation: settle 1.8s var(--ease-out) backwards; }
.hero::after { z-index: -1; background: linear-gradient(to top, rgb(10 46 138 / .97), rgb(10 46 138 / .86) 46%, rgb(10 46 138 / .6)); }
.hero ::selection, .cta ::selection { background: var(--white); color: var(--navy); }
.hero :focus-visible, .cta :focus-visible { outline-color: var(--white); }
.hero h1 { color: var(--white); font-size: var(--display); line-height: 1; }
.line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.line > span { display: block; animation: line-up 1s var(--ease-out) backwards; }
.line + .line > span { animation-delay: .09s; }
.hero__rule { height: 1px; margin: clamp(28px, 3.6vw, 52px) 0 clamp(24px, 2.8vw, 40px); background: var(--on-navy-line); transform-origin: left; animation: draw 1.1s .3s var(--ease-out) backwards; }
.hero__foot { display: flex; align-items: end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; animation: fade-up .8s .5s var(--ease-out) backwards; }
.hero__lead { max-width: 21em; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.3; letter-spacing: -0.022em; font-weight: 500; text-wrap: balance; }
@keyframes line-up { from { transform: translateY(110%); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section__title { margin-bottom: clamp(28px, 3.6vw, 52px); }
.help { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--col-gap); align-items: start; }
.help__body { display: grid; gap: clamp(20px, 2.6vw, 36px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--col-gap); align-items: start; }

/* Client: one ruled row, the name at display size, the whole row is the link */
.client { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 32px; padding: clamp(28px, 3.8vw, 56px) 0; color: var(--ink); }
.client::before, .client::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--field); transform-origin: left; }
.client::before { top: 0; }
.client::after { bottom: 0; }
.client__name { grid-column: 1; font-size: var(--display); line-height: 1; letter-spacing: -0.04em; font-weight: 600; transition: color .25s; }
.client__meta { grid-column: 1; font-size: var(--body-lg); color: var(--text); }
.client .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--navy); }
.client:hover .client__name { color: var(--blue); }
.client:hover .arrow { transform: translateX(10px); }

/* Lines draw themselves as the row scrolls into view; without support they are simply there */
@supports (animation-timeline: view()) {
  .client::before, .client::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
}

/* Closing band */
.cta { margin-top: auto; background: var(--navy); padding: clamp(72px, 9vw, 136px) 0; }
.cta__row { display: flex; align-items: end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; max-width: 11em; }

/* Form */
.form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); caret-color: var(--blue);
  border: 1px solid var(--field); border-radius: var(--radius); padding: 14px 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 104px; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.field__err { font-size: 14px; font-weight: 500; color: var(--error); }
.field__err:not([hidden]), .form__note:not(:empty) { animation: fade-up .2s var(--ease) backwards; }
.field.is-error input, .field.is-error textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; margin-top: 8px; }
.btn:disabled { cursor: progress; background: var(--field); transform: none; }
.form__note { font-size: 15px; font-weight: 500; color: var(--error); }
.form__done { display: grid; gap: 12px; justify-items: start; max-width: 560px; font-size: var(--body-lg); animation: fade-up .3s var(--ease) backwards; }
.form__done:focus { outline: none; }
.form__done .btn { margin-top: 12px; }

/* Cookie notice */
.cookie { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; padding: 16px 20px; border: 1px solid var(--field); border-radius: var(--radius-lg); background: var(--white); font-size: 15px; color: var(--ink); animation: fade-up .4s .6s var(--ease-out) backwards; }
.cookie p { flex: 1 1 280px; }
.form__note:empty { display: none; }

@media (max-width: 1000px) {
  :root { --header-h: 64px; }
  .logo svg { height: 38px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .help, .split { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: min(calc(100svh - var(--header-h)), 540px); padding-top: 56px; }
  .hero::before { background-image: image-set(url("img/hero-mobile.webp") type("image/webp"), url("img/hero-mobile.jpg") type("image/jpeg")); }
  .client .arrow { width: 36px; height: 36px; }
  .form .btn { justify-self: stretch; }
}

@media (max-width: 560px) {
  .hero__foot .btn, .cta .btn { flex: 1 1 100%; }
  .client .arrow { display: none; }
}

@media (max-width: 380px) {
  .header .btn { padding: 0 14px; }
}

/* Reduced motion: nothing travels; things simply fade in, feedback stays instant */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .line > span, .hero__rule, .hero__foot { animation: fade .4s ease backwards; }
  .hero::before { animation: none; }
  .client::before, .client::after { animation: none; }
  .field__err:not([hidden]), .form__note:not(:empty), .form__done, .cookie { animation: fade .2s ease backwards; }
  .arrow, .btn { transition: background-color .2s, color .2s; }
  .btn:active, .btn:hover .arrow, .client:hover .arrow { transform: none; }
}

@media print {
  .header, .cta, .skip, .cookie, .hero__foot .btn { display: none; }
  .hero { min-height: 0; background: none; color: var(--text); padding: 24px 0; }
  .hero::before, .hero::after { display: none; }
  .hero h1 { color: var(--ink); }
  .hero__rule { background: var(--line); }
  .section { padding: 24px 0; }
}
