@import url("brand-tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Marcellus&display=swap");

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 96px;
}

.section.tight {
  padding-block: 72px;
}

.section.dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.section.dark h1,
.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section.steel {
  background: var(--steel);
  color: rgba(255, 255, 255, 0.82);
}

.section.steel h1,
.section.steel h2,
.section.steel h3 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 28px;
}

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

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.align-center {
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--ink);
}

h1 {
  font-size: 76px;
  max-width: 980px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 28px;
}

p {
  color: var(--graphite);
}

.dark p,
.steel p {
  color: rgba(255, 255, 255, 0.68);
}

.lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.7;
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .kicker {
  justify-content: center;
}

.section-head.center .kicker::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--white);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.nav.scrolled,
.nav.light {
  background: rgba(244, 241, 234, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand svg {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  color: currentColor;
  opacity: 0.68;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.fill {
  background: var(--accent);
  color: var(--white);
}

.btn.fill:hover {
  background: var(--ink);
}

.btn.line {
  border: 1px solid currentColor;
}

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

.hero {
  position: relative;
  min-height: 88dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero.small {
  min-height: 58dvh;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 23, 0.92), rgba(20, 24, 23, 0.58) 45%, rgba(20, 24, 23, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 140px 72px;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 64px;
  max-width: 840px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-meta div {
  padding: 18px;
  background: rgba(20, 24, 23, 0.52);
}

.hero-meta strong {
  display: block;
  color: var(--accent-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.38);
}

.dark .panel,
.steel .panel {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.06);
}

.panel h3 {
  margin-bottom: 14px;
}

.panel p + p,
.panel p + ul,
.panel ul + p {
  margin-top: 14px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--graphite);
}

.dark .feature-list li,
.steel .feature-list li {
  color: rgba(255, 255, 255, 0.74);
}

.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 3px;
}

.image-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 24, 23, 0.78), rgba(20, 24, 23, 0.05));
}

.image-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
}

.image-card h3,
.image-card p {
  color: var(--white);
}

.image-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

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

.stat {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--graphite);
}

.process {
  counter-reset: steps;
  display: grid;
  gap: 18px;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  gap: 40px;
  padding-block: 18px;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 28px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  padding-block: 60px 28px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.74);
}

.footer h3 {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

.footer a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
}

[data-reveal],
.reveal-img {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms var(--ease);
}

[data-reveal].in,
.reveal-img.in {
  opacity: 1;
  transform: translateY(0);
}

.split-word {
  display: inline-block;
  overflow: hidden;
}

.split-word span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 620ms var(--ease);
}

.in .split-word span,
.split-word.in span {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

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

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  p,
  .lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.16;
    overflow-wrap: normal;
  }

  h2 {
    max-width: 100%;
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  h3 {
    font-size: 24px;
  }

  .section {
    padding-block: 72px;
  }

  .section-head {
    max-width: 100%;
  }

  .cols-2,
  .cols-3,
  .cols-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .nav {
    color: var(--ink);
    background: rgba(244, 241, 234, 0.96);
    box-shadow: 0 1px 0 var(--line-soft);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 74px 16px auto;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(20, 24, 23, 0.18);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(20, 24, 23, 0.9), rgba(20, 24, 23, 0.38));
  }

  .hero-content {
    width: 100%;
    max-width: min(310px, calc(100vw - 64px));
    padding-block: 62px 32px;
  }

  .hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .kicker {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.1em;
  }

  .kicker::before {
    width: 28px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .btn {
    min-width: 0;
    padding-inline: 14px;
    letter-spacing: 0.06em;
  }

  .hero-meta,
  .stat-band,
  .form-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-meta {
    display: none;
  }

  .hero-meta div {
    min-width: 0;
  }

  [data-split] .split-word,
  [data-split] .split-word span {
    display: inline;
    overflow: visible;
    transform: none;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
