@import url("./brand-tokens.css");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Spectral:wght@500;600&display=swap");

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

* {
  margin: 0;
  padding: 0;
}

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

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

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

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

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

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

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

.wrap {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  width: min(100%, 900px);
}

.section {
  padding: 96px 0;
}

.section.tight {
  padding: 64px 0;
}

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

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

.section-dark p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.66);
}

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

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

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.display {
  max-width: 930px;
  font-size: 5.1rem;
}

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

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

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

.lead {
  color: var(--graphite);
  font-size: 1.18rem;
  line-height: 1.6;
}

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

.accent {
  color: var(--accent);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head p {
  max-width: 560px;
}

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

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

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

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

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 14px 22px;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

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

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

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

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

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

.arrow {
  transition: transform 220ms ease;
}

a:hover .arrow,
.btn:hover .arrow {
  transform: translateX(4px);
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px 28px;
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, min-height 220ms ease;
}

.nav.scrolled,
.nav.nav-light {
  min-height: 66px;
  background: rgba(247, 248, 246, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft);
  backdrop-filter: blur(16px);
}

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

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

.brand-name {
  display: block;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.brand-sub {
  display: block;
  color: currentColor;
  font-size: 0.68rem;
  line-height: 1;
  margin-top: 5px;
  opacity: 0.68;
  text-transform: uppercase;
}

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

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  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-soft);
}

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

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

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle::before {
  transform: translateY(-8px);
}

.nav-toggle::after {
  transform: translateY(8px);
}

.nav-open .nav-toggle span {
  opacity: 0;
}

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

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 25, 31, 0.9), rgba(20, 25, 31, 0.48), rgba(20, 25, 31, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 88dvh;
  flex-direction: column;
  justify-content: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero h1 {
  color: var(--white);
  margin-top: 18px;
}

.hero .lead {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
}

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

.hero-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  width: min(560px, calc(100% - 56px));
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(20, 25, 31, 0.68);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  margin-top: 6px;
}

.page-hero {
  padding: 148px 0 72px;
  background: var(--paper-2);
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  margin-top: 18px;
}

.page-hero p {
  margin-top: 18px;
}

.image-block {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
}

.image-block.tall {
  min-height: 560px;
}

.reveal-img {
  position: relative;
  overflow: hidden;
}

.reveal-img img {
  transform: scale(1.08);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-dark .reveal-img::after {
  background: var(--ink);
}

.reveal-img.in img {
  transform: scale(1);
}

.reveal-img.in::after {
  transform: scaleY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

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

.word > span {
  display: inline-block;
  transform: translateY(102%);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.word.in > span {
  transform: translateY(0);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card h1,
.card h2,
.card h3,
.card h4 {
  color: var(--ink);
}

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

.card:hover {
  border-color: rgba(180, 106, 60, 0.45);
  box-shadow: 0 18px 50px rgba(20, 25, 31, 0.08);
}

.text-card {
  padding: 28px;
}

.text-card h3 {
  margin-bottom: 12px;
}

.text-card p {
  margin-top: 12px;
}

.text-card .index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.media-card {
  overflow: hidden;
}

.media-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media-card .copy {
  padding: 22px;
}

.media-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.spec-list li {
  display: flex;
  gap: 12px;
  color: var(--graphite);
}

.spec-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
  margin-top: 4px;
}

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

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

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

.stat-strip strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}

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

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  padding: 20px 28px;
  color: var(--graphite);
  font-weight: 600;
  white-space: nowrap;
}

.marquee span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 18px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
}

.step-no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.step-body {
  padding: 0 0 28px;
}

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

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.6fr);
  gap: 40px;
  align-items: start;
}

.form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

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

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

.contact-panel {
  padding: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.contact-panel h3,
.contact-panel p {
  color: var(--white);
}

.contact-panel a {
  color: var(--accent-soft);
  font-weight: 600;
}

.contact-panel .line {
  height: 1px;
  background: var(--line-light);
  margin: 24px 0;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding: 76px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-light);
}

.footer h4 {
  color: var(--white);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.66);
}

.footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.9rem;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
}

.veil.in {
  transform: scaleY(1);
  transition: transform 360ms ease;
}

.veil.out {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 360ms ease;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}

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

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 180ms ease, height 180ms ease, margin 180ms ease;
}

.cursor-ring.hover {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
}

@media (max-width: 1100px) {
  .display { font-size: 4.2rem; }
  .h-xl { font-size: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  .nav { color: var(--ink); background: rgba(247, 248, 246, 0.92); box-shadow: 0 1px 0 var(--line-soft); }
  .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: var(--white);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: clip-path 280ms ease;
  }
  .nav-open .nav-links {
    clip-path: inset(0);
    pointer-events: auto;
  }
  .nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .section-head,
  .page-hero .wrap,
  .split-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -68px 24px 32px;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip div:nth-child(2) {
    border-right: 0;
  }
  .stat-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 72px 0; }
  .display { font-size: 3rem; }
  .h-xl { font-size: 2.35rem; }
  .h-lg { font-size: 2rem; }
  .hero,
  .hero-content {
    min-height: 82dvh;
  }
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .hero-panel div:last-child {
    border-bottom: 0;
  }
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .stat-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-strip div:last-child {
    border-bottom: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
  [data-reveal],
  .word > span,
  .reveal-img img,
  .reveal-img::after {
    opacity: 1;
    transform: none;
  }
}
