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

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--white); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--white); }
.section.dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}
.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark h4 { color: var(--white); }
.section.dark .muted,
.section.dark .lead { color: rgba(255, 255, 255, 0.64); }

.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.asym { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.span-2 { grid-column: span 2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: 0;
  color: var(--ink);
}
h1 { font-size: 4.9rem; max-width: 920px; }
h2 { font-size: 3.25rem; max-width: 820px; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.1rem; }
p { color: var(--graphite); }
.section.dark p { color: rgba(255, 255, 255, 0.68); }
.lead {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--graphite);
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.muted { color: var(--graphite); }
.accent { color: var(--accent); }
.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.section-head p { max-width: 620px; }

.logo-mark { width: 40px; height: 40px; flex: none; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1;
  font-weight: 700;
}
.brand-word span { color: var(--accent); }
.brand-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 700;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--white);
  transition: background 280ms var(--ease), color 280ms var(--ease), padding 280ms var(--ease), box-shadow 280ms var(--ease);
}
.nav.scrolled {
  background: rgba(247, 245, 239, 0.88);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line-soft);
  backdrop-filter: blur(14px);
}
.nav .brand-sub { color: rgba(255, 255, 255, 0.62); }
.nav.scrolled .brand-sub { color: var(--graphite); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 8px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--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 { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); transform: translateY(-2px); }
.btn-line { border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.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); }

.hero {
  position: relative;
  min-height: 88dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}
.hero.short { min-height: 62dvh; }
.hero-bg {
  position: absolute;
  inset: -10% 0 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 34, 31, 0.86), rgba(23, 34, 31, 0.62) 44%, rgba(23, 34, 31, 0.28)),
    linear-gradient(0deg, rgba(23, 34, 31, 0.76), rgba(23, 34, 31, 0.08) 50%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 128px;
  padding-bottom: 54px;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 720px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.hero-strip div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-strip div:last-child { border-right: 0; }
.hero-strip strong { display: block; color: var(--white); font-size: 1.35rem; font-family: var(--font-display); }
.hero-strip span { display: block; color: rgba(255, 255, 255, 0.68); font-size: 0.86rem; margin-top: 4px; }

.feature-card,
.service-card,
.industry-card,
.process-card,
.quote-card,
.doc-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
.feature-card,
.service-card,
.process-card,
.quote-card,
.doc-card { padding: 28px; }
.feature-card svg,
.service-card svg,
.process-card svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3,
.service-card h3,
.process-card h3,
.doc-card h3 { margin-bottom: 12px; }
.feature-card p,
.service-card p,
.process-card p,
.doc-card p { color: var(--graphite); }

.image-panel {
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.image-panel img,
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-panel figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  background: rgba(23, 34, 31, 0.72);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.reveal-img {
  clip-path: none;
}
.reveal-img.in { clip-path: none; }

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-band div {
  padding: 26px;
  border-right: 1px solid var(--line);
}
.metric-band div:last-child { border-right: 0; }
.metric-band strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.metric-band span {
  display: block;
  color: var(--graphite);
  margin-top: 8px;
  font-size: 0.92rem;
}

.service-index {
  counter-reset: services;
}
.service-card {
  position: relative;
  min-height: 260px;
  padding-bottom: 58px;
}
.service-card::before {
  counter-increment: services;
  content: "0" counter(services);
  position: absolute;
  top: auto;
  bottom: 22px;
  right: 24px;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.6rem;
}
.service-card ul {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 0.94rem;
}
.service-card li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}
.service-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel);
  margin-top: 10px;
}
.section.dark .service-card {
  background: var(--paper);
  border-color: rgba(255, 255, 255, 0.26);
}
.section.dark .service-card h3 {
  color: var(--ink);
}
.section.dark .service-card p,
.section.dark .service-card li {
  color: var(--graphite);
}

.industry-card {
  position: relative;
  min-height: 360px;
}
.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 34, 31, 0.78), rgba(23, 34, 31, 0.12));
  z-index: 1;
}
.industry-card .copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}
.industry-card h3 { color: var(--white); margin-bottom: 8px; }
.industry-card p { color: rgba(255, 255, 255, 0.72); }

.steps {
  counter-reset: steps;
  border-top: 1px solid var(--line);
}
.step-row {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 180px 1fr 0.8fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.step-row::before {
  content: "Step " counter(steps);
  color: var(--accent);
  font-weight: 700;
}

.quote-card {
  background: var(--ink);
  color: var(--white);
}
.quote-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}
.quote-card cite {
  display: block;
  margin-top: 20px;
  color: var(--accent-soft);
  font-style: normal;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}
.contact-card a {
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.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; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 49, 70, 0.16);
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
}
.footer h4 { color: var(--white); margin-bottom: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 32px;
}
.footer a { color: rgba(255, 255, 255, 0.82); }
.footer a:hover { color: var(--accent-soft); }
.footer ul { display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
.split-host .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.14;
  padding-bottom: 0.07em;
  margin-bottom: -0.07em;
}
.split-host .word > span {
  display: inline-block;
  line-height: inherit;
  transform: translateY(110%);
  transition: transform 720ms var(--ease);
}
.split-host .word.in > span { transform: translateY(0); }

@media (max-width: 1040px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.65rem; }
  .grid.three,
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head,
  .grid.asym,
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-row { grid-template-columns: 120px 1fr; }
  .step-row p { grid-column: 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; position: relative; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--white);
    display: grid;
    place-content: center;
    gap: 20px;
    transform: translateY(-100%);
    transition: transform 320ms var(--ease);
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-link { font-size: 1.45rem; font-family: var(--font-display); text-align: center; }
  .nav.scrolled .nav-link.active,
  .nav-link.active { color: var(--accent-soft); }
  .hero-strip,
  .metric-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip div:nth-child(2),
  .metric-band div:nth-child(2) { border-right: 0; }
  .hero-strip div:nth-child(-n+2),
  .metric-band div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .metric-band div:nth-child(-n+2) { border-bottom-color: var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section.tight { padding: 56px 0; }
  h1 { font-size: 2.72rem; }
  h2 { font-size: 2.18rem; }
  h3 { font-size: 1.32rem; }
  .lead { font-size: 1.04rem; }
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero { min-height: 84dvh; }
  .hero .wrap { padding-top: 116px; padding-bottom: 32px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
  .hero-strip div:last-child { border-bottom: 0; }
  .metric-band { grid-template-columns: 1fr; }
  .metric-band div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-band div:last-child { border-bottom: 0; }
  .step-row { grid-template-columns: 1fr; gap: 10px; }
  .step-row p { grid-column: auto; }
  .image-panel { min-height: 320px; }
  .footer-bottom { display: grid; }
}

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