@import url("./brand-tokens.css");

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

* {
  margin: 0;
  padding: 0;
}

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

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

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

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

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

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

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  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 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.wrap {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

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

.section-band {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

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

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

.theme-dark .muted,
.theme-dark .lead {
  color: rgba(255, 255, 255, 0.66);
}

.theme-dark .eyebrow {
  color: var(--accent-soft);
}

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

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

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

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

.display {
  font-size: 5.7rem;
}

.h-xl {
  font-size: 4rem;
}

.h-lg {
  font-size: 2.8rem;
}

.h-md {
  font-size: 1.85rem;
}

.lead {
  max-width: 760px;
  color: var(--graphite);
  font-size: 1.15rem;
  line-height: 1.72;
}

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

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

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

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

.section-head p {
  margin-top: 18px;
}

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

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

.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 4px;
  padding: 14px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

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

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

.btn-fill:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.btn-line {
  border: 1px solid var(--line);
}

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

.theme-dark .btn-line {
  border-color: var(--line-light);
  color: var(--white);
}

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

.nav.on-dark:not(.scrolled) {
  color: var(--white);
}

.nav.scrolled {
  padding-block: 12px;
  background: rgba(247, 248, 244, 0.9);
  box-shadow: 0 1px 0 var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name b {
  color: var(--accent);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--graphite);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav.on-dark:not(.scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.68);
}

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

.nav-link {
  position: relative;
  padding-block: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  position: relative;
  z-index: 3;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: absolute;
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform 240ms ease, opacity 180ms ease;
}

.nav-toggle span:first-child {
  transform: translateY(-8px);
}

.nav-toggle span:last-child {
  transform: translateY(8px);
}

.nav-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

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

.nav-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 28, 27, 0.86), rgba(16, 28, 27, 0.46) 45%, rgba(16, 28, 27, 0.14));
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  margin-inline: auto;
  padding: 150px 24px 72px;
}

.hero-copy {
  max-width: 820px;
}

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

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

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

.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 28, 27, 0.52);
  backdrop-filter: blur(12px);
}

.hero-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-block: 18px;
}

.metric {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.metric b {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}

.card,
.image-card,
.step,
.service-row,
.industry-card,
.principle,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.38);
}

.card {
  padding: 28px;
}

.card svg,
.service-row svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--accent);
}

.card h3,
.service-row h3,
.industry-card h3,
.principle h3,
.step h3 {
  margin-bottom: 12px;
}

.image-card {
  overflow: hidden;
  background: var(--white);
}

.image-card figure,
.industry-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.image-card img,
.industry-card img,
.split-feature img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

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

.image-card .body,
.industry-card .body {
  padding: 24px;
}

.split-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.split-feature .copy {
  display: grid;
  align-content: center;
  padding: 64px max(24px, calc((100vw - 1320px) / 2 + 24px));
}

.split-feature figure {
  min-height: 420px;
  overflow: hidden;
}

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

.marquee-inner {
  display: flex;
  width: max-content;
  gap: 44px;
  padding-block: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  will-change: transform;
}

.service-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 28px;
}

.service-row .num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.step {
  position: relative;
  padding: 28px;
}

.step .badge {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.principle {
  padding: 28px;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--graphite);
}

.detail-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

.contact-panel {
  padding: 32px;
  background: var(--white);
}

.contact-panel form {
  display: grid;
  gap: 18px;
}

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

.field label {
  color: var(--graphite);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
}

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

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 42px;
  padding-block: 54px;
}

.footer h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.footer ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-block: 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
}

[data-reveal],
.reveal-img,
.word span {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 600;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(183, 110, 58, 0.62);
  transition: width 180ms ease, height 180ms ease, margin 180ms ease;
}

.cursor-ring.hover {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
}

@media (max-width: 1080px) {
  .display {
    font-size: 4.5rem;
  }

  .h-xl {
    font-size: 3.3rem;
  }

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

  .split-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

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

  .nav-open .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 92px 28px 28px;
    background: var(--paper);
    color: var(--ink);
  }

  .nav-open .nav-link {
    font-family: var(--font-display);
    font-size: 2.1rem;
  }

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

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

@media (max-width: 620px) {
  .wrap,
  .hero-inner {
    padding-inline: 18px;
  }

  .section {
    padding-block: 64px;
  }

  .display {
    font-size: 3.15rem;
  }

  .h-xl {
    font-size: 2.55rem;
  }

  .h-lg {
    font-size: 2.15rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-strip .wrap,
  .cols-4 {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

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