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

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

* { margin: 0; padding: 0; }

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

html.has-smooth { scroll-behavior: auto; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--accent); color: var(--white); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

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

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

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

.veil.in { transform: scaleY(1); transition: transform 520ms var(--ease); }
.veil.out { transform: scaleY(0); transform-origin: top; transition: transform 520ms var(--ease); }

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

.section {
  padding-block: 72px;
  position: relative;
}

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

.grid { display: grid; gap: 24px; }
.cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
.align-center { align-items: center; }

@media (min-width: 720px) {
  .section { padding-block: 96px; }
  .section.tight { padding-block: 68px; }
  .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(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .section { padding-block: 132px; }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

.display { font-size: 3.4rem; line-height: 0.98; }
.h-xl { font-size: 2.5rem; }
.h-lg { font-size: 2rem; }
.h-md { font-size: 1.45rem; }
.accent { color: var(--accent); }
.copper { color: var(--copper); }
.muted { color: var(--graphite); }

@media (min-width: 720px) {
  .display { font-size: 5rem; }
  .h-xl { font-size: 3.4rem; }
  .h-lg { font-size: 2.6rem; }
}

@media (min-width: 1180px) {
  .display { font-size: 6.2rem; }
  .h-xl { font-size: 4.1rem; }
}

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

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

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

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

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

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

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

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

.theme-dark .card {
  background: rgba(255,255,255,0.08);
  border-color: var(--line-light);
}

.theme-dark .card p { color: rgba(255,255,255,0.68); }

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

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

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

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

.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.brand-name b { color: var(--accent-soft); font-weight: 700; }
.brand-sub { display: block; color: var(--graphite); font-family: var(--font-body); font-size: 0.68rem; line-height: 1.2; margin-top: 3px; }

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--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;
  position: relative;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    clip-path: circle(0 at calc(100% - 48px) 36px);
    pointer-events: none;
    transition: clip-path 620ms var(--ease);
  }
  .nav-open .nav-links { clip-path: circle(150% at calc(100% - 48px) 36px); pointer-events: auto; }
  .nav-link { font-family: var(--font-display); font-size: 2rem; opacity: 0; transform: translateY(12px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
  .nav-open .nav-link { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 35ms); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 260ms var(--ease), background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}

.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-fill { background: var(--ink); color: var(--white); }
.btn-fill:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--ink); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.theme-dark .btn-line { border-color: var(--line-light); color: var(--white); }
.theme-dark .btn-line:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

.link-u {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  min-height: 44px;
}

.link-u svg { width: 16px; height: 16px; transition: transform 220ms var(--ease); }
.link-u:hover svg { transform: translateX(4px); }

.hero {
  min-height: 86svh;
  display: grid;
  align-items: end;
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding-top: 112px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23,18,20,0.82), rgba(23,18,20,0.42) 48%, rgba(23,18,20,0.18));
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 84px 64px;
  max-width: 780px;
}

.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.78); margin-top: 22px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .btn-line { border-color: rgba(255,255,255,0.42); color: var(--white); }
.hero .btn-line:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

.hero-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.18);
}

.hero-stat {
  background: rgba(23,18,20,0.62);
  padding: 18px;
}

.hero-stat b { display: block; color: var(--accent-soft); font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.hero-stat span { display: block; color: rgba(255,255,255,0.72); margin-top: 8px; font-size: 0.9rem; }

@media (max-width: 680px) {
  .display { font-size: 2.58rem; }
  .h-xl { font-size: 2.15rem; }
  .h-lg { font-size: 1.78rem; }
  .hero { min-height: 84svh; }
  .hero::after { background: rgba(23,18,20,0.68); }
  .hero-content { padding-block: 72px 52px; }
  .hero h1 { max-width: 9ch; }
  .hero .lead { font-size: 1rem; line-height: 1.62; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: min(100%, 230px); }
  .hero-strip { grid-template-columns: 1fr; }
}

.image-panel,
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-2);
}

.image-panel img,
.image-card img { width: 100%; height: 100%; object-fit: cover; }

.image-panel { min-height: 420px; }
.image-card { aspect-ratio: 4 / 5; }

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.46);
}

.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--graphite); }

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  min-height: 100%;
}

.product-card .copy { padding: 22px; }
.product-card .tag { color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 9px; }

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

.metric {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
}

.metric span { color: var(--graphite); font-size: 0.92rem; }

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

.marquee-inner {
  display: flex;
  width: max-content;
  gap: 36px;
  padding-block: 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  white-space: nowrap;
}

.process-list {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.46);
}

.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.quote-band {
  background: var(--ink-2);
  color: var(--white);
  padding-block: 64px;
}

.quote-band p {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.16;
  max-width: 940px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two { grid-template-columns: 1fr; }

@media (min-width: 760px) {
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

label { display: grid; gap: 8px; font-weight: 600; color: var(--ink); }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
}

textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(155,79,100,0.28);
  outline-offset: 3px;
}

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.66);
  padding-top: 72px;
  overflow: hidden;
}

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

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

.footer .brand-name { color: var(--white); }
.footer-brand p { margin-top: 18px; max-width: 360px; }
.footer-nav li { margin-bottom: 10px; }
.footer a:hover { color: var(--accent-soft); }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  font-size: 0.9rem;
}

.footer-mega {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.05);
  font-size: 4rem;
  line-height: 0.9;
  padding-bottom: 18px;
  user-select: none;
}

@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-mega { font-size: 9rem; }
}

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

[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }

.reveal-img { position: relative; overflow: hidden; }
.reveal-img img { transform: scale(1.12); transition: transform 1100ms var(--ease); }
.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 760ms var(--ease);
}
.reveal-img.in img { transform: scale(1); }
.reveal-img.in::after { transform: scaleY(0); }

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

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

.word.in > span { transform: none; }

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

.cursor-dot { width: 6px; height: 6px; background: var(--white); margin: -3px 0 0 -3px; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.6); margin: -20px 0 0 -20px; transition: width 240ms var(--ease), height 240ms var(--ease), margin 240ms var(--ease); }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

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