@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,700&family=Jost:wght@400;500;600;700&display=swap");
@import url("./brand-tokens.css");

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

html{
  scroll-behavior:auto;
  background:var(--paper);
  color:var(--ink);
}

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

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,textarea,select{ font:inherit; }
button{ cursor:pointer; }

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

.skip-link{
  position:fixed;
  left:16px;
  top:12px;
  z-index:2000;
  transform:translateY(-140%);
  background:var(--ink);
  color:var(--paper);
  padding:10px 14px;
  border-radius:6px;
}
.skip-link:focus{ transform:translateY(0); }

.scroll-progress{
  position:fixed;
  top:0;
  left:0;
  height:3px;
  width:0;
  z-index:1500;
  background:var(--accent);
}

.site-header{
  position:fixed;
  inset:0 0 auto 0;
  height:76px;
  z-index:1000;
  color:var(--paper);
  transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled,
.site-header[data-theme="light"]{
  background:rgba(246,244,239,.94);
  color:var(--ink);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px);
}
.nav-shell{
  width:min(1180px, calc(100% - 40px));
  height:76px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:190px;
}
.brand-mark{
  width:40px;
  height:40px;
  flex:0 0 40px;
}
.brand-name{
  display:block;
  font-weight:700;
  line-height:1;
  font-size:15px;
}
.brand-domain{
  display:block;
  color:var(--accent-soft);
  font-size:12px;
  line-height:1.2;
}
.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
}
.nav-links a{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:6px;
  font-weight:600;
  font-size:14px;
  color:inherit;
}
.nav-links a:hover,
.nav-links a.is-active{
  color:var(--accent-soft);
}
.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  border:1px solid currentColor;
  border-radius:6px;
  background:transparent;
  color:inherit;
  align-items:center;
  justify-content:center;
}
.nav-toggle svg{ width:22px; height:22px; }

main{ overflow:hidden; }
.section{
  padding:98px 0;
}
.section.paper{ background:var(--paper); }
.section.paper-2{ background:var(--paper-2); }
.section.dark{
  background:var(--ink);
  color:var(--paper);
}
.container{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}
.narrow{
  width:min(820px, calc(100% - 40px));
  margin:0 auto;
}
.eyebrow{
  margin:0 0 14px;
  color:var(--accent);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
}
h1,h2,h3,p{ margin-top:0; }
h1,h2,h3{
  font-family:var(--font-display);
  line-height:1.02;
  font-weight:700;
  letter-spacing:0;
  overflow-wrap:break-word;
}
h1{ font-size:68px; max-width:900px; margin-bottom:24px; }
h2{ font-size:46px; margin-bottom:22px; }
h3{ font-size:26px; margin-bottom:14px; }
.lede{
  font-size:20px;
  line-height:1.6;
  color:var(--graphite);
}
.dark .lede{ color:rgba(246,244,239,.74); }
.muted{ color:var(--graphite); }
.dark .muted{ color:rgba(246,244,239,.68); }

.hero{
  min-height:92vh;
  display:grid;
  align-items:end;
  position:relative;
  color:var(--paper);
  background:var(--ink);
  padding:132px 0 54px;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(17,22,28,.86), rgba(17,22,28,.54) 48%, rgba(17,22,28,.20));
  z-index:1;
}
.hero-media{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.72;
  transform:scale(1.03);
}
.hero-content{
  position:relative;
  z-index:2;
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}
.hero-kicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:26px;
}
.pill{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:34px;
  border:1px solid rgba(246,244,239,.32);
  border-radius:6px;
  padding:0 12px;
  font-size:13px;
  font-weight:700;
  color:var(--paper);
  background:rgba(17,22,28,.22);
  white-space:normal;
  overflow-wrap:anywhere;
}
.hero-text{
  max-width:760px;
}
.hero .lede{
  max-width:640px;
  color:rgba(246,244,239,.82);
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:34px;
}
.btn{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 18px;
  border:1px solid var(--ink);
  border-radius:6px;
  background:var(--ink);
  color:var(--paper);
  font-weight:700;
  transition:transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg{ width:18px; height:18px; flex:0 0 18px; }
.btn:hover{ transform:translateY(-2px); background:var(--accent); border-color:var(--accent); color:var(--ink); }
.btn.light{
  background:var(--paper);
  color:var(--ink);
  border-color:var(--paper);
}
.btn.ghost{
  background:transparent;
  color:inherit;
  border-color:currentColor;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:54px;
  align-items:center;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.grid-4{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.rule-list{
  display:grid;
  gap:0;
  border-top:1px solid var(--line);
}
.rule-row{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:22px;
  padding:24px 0;
  border-bottom:1px solid var(--line);
}
.rule-row strong{
  color:var(--accent);
  font-family:var(--font-display);
  font-size:24px;
}
.card{
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.42);
  overflow:hidden;
}
.dark .card{
  background:rgba(246,244,239,.06);
  border-color:rgba(246,244,239,.14);
}
.card-body{ padding:24px; }
.card-media{
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--paper-2);
}
.card-media.wide{ aspect-ratio:16/10; }
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.card:hover .card-media img{ transform:scale(1.04); }
.icon-box{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--accent);
  margin-bottom:18px;
}
.icon-box svg{ width:25px; height:25px; }

.split-band{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(340px, 520px);
  align-items:stretch;
  min-height:560px;
}
.split-copy{
  padding:96px max(40px, calc((100vw - 1180px) / 2)) 96px max(40px, calc((100vw - 1180px) / 2));
}
.split-image{
  min-height:520px;
  overflow:hidden;
}
.split-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.marquee{
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--paper);
}
.marquee-track{
  display:flex;
  width:max-content;
  animation:marquee 36s linear infinite;
}
.marquee span{
  display:inline-flex;
  min-height:72px;
  align-items:center;
  padding:0 32px;
  font-family:var(--font-display);
  font-size:28px;
  color:var(--ink);
  white-space:nowrap;
}
@keyframes marquee{ to{ transform:translateX(-50%); } }

.timeline{
  display:grid;
  gap:14px;
  counter-reset:step;
}
.timeline-step{
  counter-increment:step;
  display:grid;
  grid-template-columns:78px 1fr;
  gap:24px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.38);
}
.timeline-step::before{
  content:counter(step, decimal-leading-zero);
  font-family:var(--font-display);
  color:var(--accent);
  font-size:34px;
  line-height:1;
}

.contact-panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.contact-form{
  display:grid;
  gap:14px;
}
.field{
  display:grid;
  gap:7px;
}
.field label{
  font-weight:700;
  font-size:14px;
}
.field input,
.field textarea,
.field select{
  min-height:48px;
  width:100%;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--white);
  color:var(--ink);
  padding:11px 13px;
}
.field textarea{ min-height:150px; resize:vertical; }

.site-footer{
  background:var(--ink);
  color:var(--paper);
  padding:60px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr 1fr;
  gap:28px;
}
.footer-title{
  font-weight:700;
  color:var(--accent-soft);
  margin-bottom:12px;
}
.footer-links{
  display:grid;
  gap:8px;
}
.footer-links a:hover{ color:var(--accent-soft); }
.footer-bottom{
  margin-top:44px;
  padding-top:20px;
  border-top:1px solid rgba(246,244,239,.16);
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:rgba(246,244,239,.68);
  font-size:14px;
}

[data-reveal],
.reveal-img{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .65s ease, transform .65s ease, clip-path .75s ease;
}
.reveal-img{
  clip-path:inset(10% 0 10% 0);
}
[data-reveal].is-visible,
.reveal-img.is-visible{
  opacity:1;
  transform:translateY(0);
  clip-path:inset(0);
}
[data-split] .word{
  display:inline-block;
  opacity:0;
  transform:translateY(.6em);
  transition:opacity .55s ease, transform .55s ease;
}
[data-split].is-visible .word{
  opacity:1;
  transform:translateY(0);
}

.cursor-dot,
.cursor-ring{
  position:fixed;
  top:0;
  left:0;
  pointer-events:none;
  border-radius:50%;
  z-index:1800;
  display:none;
}
.cursor-dot{
  width:6px;
  height:6px;
  background:var(--accent);
}
.cursor-ring{
  width:34px;
  height:34px;
  border:1px solid rgba(166,124,46,.65);
}

@media (pointer:fine){
  .cursor-dot,.cursor-ring{ display:block; }
}

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

@media (max-width: 980px){
  h1{ font-size:48px; }
  h2{ font-size:38px; }
  .grid-2,.grid-3,.grid-4,.split-band,.contact-panel,.footer-grid{ grid-template-columns:1fr; }
  .split-copy{ padding:72px 30px; }
  .split-image{ min-height:390px; }
  .nav-toggle{ display:flex; }
  .nav-links{
    position:fixed;
    top:76px;
    left:0;
    right:0;
    display:grid;
    gap:0;
    background:var(--paper);
    color:var(--ink);
    border-bottom:1px solid var(--line);
    padding:12px 20px 18px;
    transform:translateY(-130%);
    opacity:0;
    pointer-events:none;
    transition:transform .24s ease, opacity .24s ease;
  }
  .nav-links.is-open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .nav-links a{ justify-content:flex-start; }
}

@media (max-width: 620px){
  .nav-shell,.container,.narrow,.hero-content{
    width:calc(100% - 28px);
    max-width:1180px;
  }
  h1{ font-size:27px; line-height:1.1; max-width:100%; }
  h2{ font-size:31px; }
  h3{ font-size:23px; }
  .section{ padding:68px 0; }
  .hero{ min-height:90vh; padding-top:112px; }
  .hero-text{ width:100%; max-width:100%; padding-right:26px; }
  .hero-kicker{ display:grid; grid-template-columns:1fr; max-width:100%; }
  .pill{ width:100%; justify-content:flex-start; font-size:12px; }
  .lede{ font-size:16px; overflow-wrap:anywhere; }
  .hero .lede{ width:100%; max-width:100%; }
  [data-split] .word{
    display:inline;
    opacity:1;
    transform:none;
    transition:none;
  }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .btn{ width:100%; }
  .rule-row{ grid-template-columns:1fr; gap:8px; }
  .timeline-step{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; }
}
