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

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

* {
  margin: 0;
  padding: 0;
}

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

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

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  width: 100%;
  height: auto;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background: var(--ink);
  transform: translateY(0);
  transition: transform 520ms var(--ease);
}

.veil.out {
  transform: translateY(-100%);
}

.veil.in {
  transform: translateY(0);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 600;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

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

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

.section {
  padding-block: 72px;
}

.section.compact {
  padding-block: 48px;
}

.section.paper-2 {
  background: var(--paper-2);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

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

.display {
  font-size: 48px;
  max-width: 900px;
}

.h-xl {
  font-size: 40px;
}

.h-lg {
  font-size: 31px;
}

.h-md {
  font-size: 23px;
}

.lead {
  max-width: 720px;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.7;
}

.muted {
  color: var(--graphite);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  color: var(--white);
  transition: background 260ms ease, box-shadow 260ms ease, color 260ms ease;
}

.nav.scrolled,
body:not(.home-page) .nav {
  background: rgba(247, 243, 234, 0.94);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.brand-text span {
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
  text-transform: uppercase;
}

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

.nav-link {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 13px 12px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.82;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(164, 95, 61, 0.14);
  color: var(--accent);
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid currentColor;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.sub-hero {
  min-height: 58dvh;
  padding-top: 120px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 34, 29, 0.92), rgba(24, 34, 29, 0.64) 44%, rgba(24, 34, 29, 0.18));
  content: "";
}

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

.sub-hero .hero-content {
  padding-block: 90px 58px;
}

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

.hero .lead {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.8);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

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

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

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

.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-soft {
  background: var(--paper-2);
  color: var(--ink);
}

.section-head {
  display: grid;
  max-width: 790px;
  gap: 18px;
  margin-bottom: 38px;
}

.section-head.wide {
  max-width: 980px;
}

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

.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));
}

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

.stat {
  min-height: 130px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

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

.stat strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 700;
}

.feature,
.product-card,
.industry-card,
.step,
.note-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
}

.feature {
  min-height: 220px;
  padding: 28px;
}

.feature svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--accent);
}

.feature h3,
.step h3 {
  margin-bottom: 12px;
}

.feature p,
.step p,
.product-card p,
.industry-card p {
  color: var(--graphite);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.media-panel {
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
}

.media-panel img {
  height: 100%;
  object-fit: cover;
}

.text-panel {
  display: grid;
  align-content: center;
  gap: 20px;
  border-left: 4px solid var(--accent);
  padding: 32px;
  background: var(--paper-2);
}

.product-card,
.industry-card {
  overflow: hidden;
}

.product-card img,
.industry-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card div,
.industry-card div {
  padding: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.marquee-inner {
  display: flex;
  width: max-content;
  gap: 36px;
  padding-block: 18px;
  font-family: var(--font-display);
  font-size: 24px;
  white-space: nowrap;
  will-change: transform;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

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

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

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

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

.reveal-img {
  clip-path: inset(12% 0 12% 0);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list a,
.contact-list span {
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-weight: 700;
}

.form-panel {
  padding: 28px;
}

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

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

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

label {
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.8fr;
  gap: 32px;
}

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

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

.footer-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px;
  font-size: 13px;
}

@media (min-width: 980px) {
  .display {
    font-size: 72px;
  }

  .h-xl {
    font-size: 56px;
  }

  .h-lg {
    font-size: 40px;
  }

  .section {
    padding-block: 108px;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  body.nav-open .nav-links {
    position: fixed;
    top: 76px;
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    padding: 12px;
    box-shadow: 0 20px 60px rgba(24, 34, 29, 0.24);
  }

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

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .media-panel {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .brand-text span {
    display: none;
  }

  .display {
    font-size: 40px;
  }

  .h-xl {
    font-size: 34px;
  }

  .h-lg {
    font-size: 28px;
  }

  .hero-content {
    padding-block: 132px 54px;
  }

  .hero::after {
    background: rgba(24, 34, 29, 0.72);
  }

  .stat-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-bottom {
    display: grid;
  }
}

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