:root {
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --ink: #121212;
  --ink-2: #4a4a47;
  --rule: #cfcbc2;
  --red: #d7262e;
  --yellow: #f0c101;
  --dark: #121212;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(100px, 13vw, 180px);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 700; font-stretch: 112%; letter-spacing: -.035em; line-height: .98; overflow-wrap: break-word; }
em { font-style: normal; color: var(--red); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 56px;
  padding: 0 22px 0 24px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:hover svg { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.link {
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .4s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Topbar */
.topbar { border-bottom: 1px solid var(--rule); color: var(--ink-2); padding-block: 10px; }
.topbar__links { display: flex; gap: 28px; }
.topbar a:hover { color: var(--red); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 241, 236, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__row { height: 76px; }
.logo { color: var(--ink); display: inline-flex; }
.logo svg { width: 50px; height: 38px; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 500; }
.nav a .mono { font-size: 10px; color: var(--ink-2); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px;
  background: var(--red); color: #fff;
  font-weight: 600; font-size: 14px;
  transition: background .3s;
}
.cta svg { width: 18px; height: 18px; }
.cta:hover { background: var(--ink); }
.burger { display: none; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 120px) 0 0; }
.hero__title {
  font-size: clamp(40px, 6.8vw, 112px);
  font-weight: 750;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero__title .line > span { transform: none; }
.dot {
  display: inline-block;
  width: .17em; height: .17em;
  margin-left: .05em;
  border-radius: 50%;
  background: var(--yellow);
}
.hero__aside { border-top: 1px solid var(--ink); padding: 24px 0 48px; }
.hero__lead { font-size: 18px; color: var(--ink-2); margin-bottom: 40px; max-width: 400px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__img { aspect-ratio: 16 / 10; overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease) .3s; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2s var(--ease) .3s; }
.is-loaded .hero__img { clip-path: inset(0); }
.is-loaded .hero__img img { transform: scale(1); }

figcaption { display: flex; gap: 16px; padding-top: 12px; color: var(--ink-2); }
figcaption span { color: var(--ink); }

/* Facts */
.facts { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.fact { display: flex; flex-direction: column; height: 100%; padding: 28px 24px 36px; border-top: 1px solid var(--rule); }
.facts .row > :first-child .fact { border-top: 0; }
.fact__k { color: var(--ink-2); margin-bottom: 40px; }
.fact__v { font-size: clamp(32px, 3.4vw, 52px); white-space: nowrap; font-weight: 700; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; }
.fact__l { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* Section head */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.shead {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(56px, 7vw, 104px);
}
.shead__n { color: var(--ink-2); }
.shead__t { font-size: clamp(34px, 4.4vw, 64px); }
.shead__p { color: var(--ink-2); font-size: 16px; }

/* Services list */
.svc { list-style: none; border-top: 1px solid var(--rule); }
.svc__row {
  position: relative;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.svc__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
  z-index: -1;
}
.svc__row:hover::before { transform: scaleY(1); }
.svc__n { color: var(--ink-2); }
.svc__row h3 {
  font-size: clamp(28px, 3.4vw, 48px);
  overflow-wrap: anywhere;
  transition: transform .5s var(--ease), color .3s;
}
.svc__row:hover h3 { transform: translateX(16px); color: var(--red); }
.svc__row p { color: var(--ink-2); font-size: 15px; }
.svc__a { width: 28px; height: 28px; transition: transform .5s var(--ease), color .3s; }
.svc__row:hover .svc__a { transform: rotate(45deg); color: var(--red); }

.svc__float {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .3s, transform .5s var(--ease);
}
.svc__float.is-on { opacity: 1; }
.svc__float img { width: 100%; height: 100%; object-fit: cover; }

/* Flow */
.flow { --p: 0; --gutter-x: max(var(--gutter), (100vw - var(--container)) / 2); background: var(--paper-2); color: var(--ink); padding: var(--section) 0; }
.flow__media {
  height: clamp(320px, 56vw, 640px);
  overflow: hidden;
  clip-path: inset(0 calc((1 - var(--p)) * var(--gutter-x)));
}
.flow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.15 - var(--p) * .15));
}

.flow__track { position: relative; height: 1px; margin-top: clamp(48px, 6vw, 80px); background: var(--rule); }
.flow__line { position: absolute; inset: 0; background: var(--red); transform: scaleX(var(--line, 0)); transform-origin: left; }

.flow__steps { list-style: none; padding-top: 32px; }
.flow__steps .mono { color: var(--red); }
.flow__steps h3 { font-size: clamp(22px, 2vw, 28px); margin: 16px 0 10px; }
.flow__steps p { color: var(--ink-2); font-size: 15px; max-width: 260px; }

/* Offers */
.offers { border-top: 1px solid var(--rule); }
.offer { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 40px 0; }
.offer__img { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 36px; }
.offer__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.offer:hover .offer__img img { transform: scale(1.04); }
.offer__head .mono { color: var(--red); }
.offer h3 { font-size: clamp(28px, 2.8vw, 40px); margin: 14px 0 16px; }
.offer__head p { color: var(--ink-2); max-width: 460px; }
.spec { width: 100%; margin: 36px 0 44px; border-top: 1px solid var(--ink); }
.spec div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { flex: 0 0 110px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.spec dd { font-weight: 500; }
.offer .btn { margin-top: auto; }
.offers__col + .offers__col .offer { border-top: 1px solid var(--rule); }

/* Strip */
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.strip img.is-wide { aspect-ratio: 4 / 3; }
.strip figure:hover img { filter: none; }

/* Contact */
.contact { background: var(--dark); color: var(--paper); padding: var(--section) 0; }
.shead--dark { border-top-color: rgba(243, 241, 236, .3); margin-bottom: 48px; }
.shead--dark .shead__n { color: rgba(243, 241, 236, .55); }
.contact__t { font-size: clamp(34px, 5.4vw, 84px); margin-bottom: 56px; }
.contact__dl div { display: flex; padding: 18px 0; border-top: 1px solid rgba(243, 241, 236, .15); }
.contact__dl dt { flex: 0 0 120px; color: rgba(243, 241, 236, .55); padding-top: 5px; }
.contact__dl dd { font-size: 20px; font-weight: 500; }
.contact__dl a:hover { color: var(--red); }

.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > .mono, .field legend { color: rgba(243, 241, 236, .55); padding: 0; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 241, 236, .3);
  border-radius: 0;
  color: var(--paper);
  font: 500 18px/1.4 var(--sans);
  resize: vertical;
  transition: border-color .3s;
}
.field textarea::placeholder { color: rgba(243, 241, 236, .3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.field.is-invalid input { border-bottom-color: var(--red); }

.opts { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.opts legend { width: 100%; margin-bottom: 12px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.opts span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(243, 241, 236, .3);
  font-size: 14px;
  font-weight: 500;
  transition: background .25s, color .25s, border-color .25s;
}
.opts label:hover span { border-color: var(--paper); }
.opts input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.opts input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form__foot .mono { color: rgba(243, 241, 236, .55); }
.form__status { margin-top: 16px; font-weight: 500; color: var(--yellow); min-height: 1.6em; }
.form__status.is-error { color: #ff6b6b; }

/* Footer */
.footer { background: var(--dark); color: rgba(243, 241, 236, .55); padding-bottom: 32px; }
.footer__big { color: var(--paper); border-top: 1px solid rgba(243, 241, 236, .15); padding-top: 56px; }
.footer__big svg { width: 100%; height: auto; aspect-ratio: 52.7 / 39.8; max-height: 42vh; display: block; margin-inline: auto; }
.footer__row { padding-top: 40px; }
.footer a:hover { color: var(--paper); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero__title .line > span { opacity: 1; transform: none; }
  .hero__img { clip-path: none; }
}

/* Breakpoints match grid.css: sm 576, md 768, lg 992, xl 1200 */
@media (min-width: 576px) {
  .facts .row > :nth-child(2) .fact { border-top: 0; border-left: 1px solid var(--rule); }
  .facts .row > :nth-child(4) .fact { border-left: 1px solid var(--rule); }
}

@media (min-width: 992px) {
  .fact { border-top: 0; }
  .facts .row > * + * .fact { border-left: 1px solid var(--rule); }
  .facts .row > :first-child .fact { padding-left: 0; }

  .offers__col:first-child .offer { padding-right: 48px; }
  .offers__col + .offers__col .offer { padding-left: 48px; border-top: 0; border-left: 1px solid var(--rule); }

  .strip__drop { margin-top: 80px; }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .nav { gap: 22px; }
  .nav a .mono { display: none; }
}

@media (max-width: 991.98px) {
  .header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger {
    display: block;
    position: relative;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
  .burger span:first-child { top: 18px; }
  .burger span:last-child { top: 26px; }
  .burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 76px 0 0;
    flex-direction: column;
    gap: 0;
    padding: 24px var(--gutter);
    background: var(--paper);
    border-top: 1px solid var(--rule);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 32px; font-weight: 700; font-stretch: 112%; letter-spacing: -.03em; padding: 14px 0; border-bottom: 1px solid var(--rule); gap: 16px; }
  .nav a .mono { font-size: 12px; letter-spacing: 0; }
  .nav a::after { display: none; }
  body.menu-open { overflow: hidden; }

  .hero__aside { padding-bottom: 0; }
  .svc__float { display: none; }
  .fact__v { white-space: normal; }
}

@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .header__row { height: 64px; }
  .nav { inset: 64px 0 0; }
  .fact { padding-inline: 0; }
  .fact__k { margin-bottom: 16px; }
  .hero__title { font-size: clamp(34px, 10vw, 48px); }
  .shead__t { font-size: clamp(30px, 8.6vw, 40px); }
  .flow__steps h3 { font-size: 22px; }
  .svc__row { padding: 28px 0; }
  .spec dt { flex-basis: 90px; }
  .strip img, .strip img.is-wide { aspect-ratio: 4 / 3; }
  .btn { width: 100%; justify-content: space-between; }
  .hero__actions .link { align-self: center; }
}
