/* DANTE DESIGN — styles */
:root {
  --bg: #000;
  --fg: #fff;
  --fg-80: rgba(255, 255, 255, 0.8);
  --fg-60: rgba(255, 255, 255, 0.6);
  --fg-40: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.12);
  --pad: clamp(16px, 1.7vw, 24px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Geist", "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Bodoni Moda", "Didot", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* Grain — fixed, non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typo ---------- */
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--muted { color: var(--fg-60); }
.display {
  font-size: clamp(40px, 5.47vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(34px, 4.25vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
}
.body {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fg-80);
  max-width: 34em;
}
.body + .body { margin-top: 1.4em; }

.ulink {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}
.ulink:hover::after { transform: scaleX(0); }
.ulink.label::after { height: 1.5px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
}
.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}
.nav__last { display: flex; justify-content: space-between; }
.nav a { position: relative; transition: opacity 0.5s var(--ease); }
.nav:hover a { opacity: 0.45; }
.nav a:hover { opacity: 1; }
.nav__logo { font-weight: 700; letter-spacing: 0.05em; }
.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  position: relative;
  height: 18px;
  overflow: hidden;
}
.menu-btn span {
  display: block;
  transition: transform 0.8s var(--ease);
}
.menu-open .menu-btn span { transform: translateY(-100%); }

/* ---------- Mobile overlay menu ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 96px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu-open .overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease);
}
.overlay__links { list-style: none; }
.overlay__links li { overflow: hidden; }
.overlay__links a {
  display: block;
  font-size: clamp(44px, 12vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
}
.menu-open .overlay__links a { transform: translateY(0); }
.menu-open .overlay__links li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .overlay__links li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .overlay__links li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .overlay__links li:nth-child(5) a { transition-delay: 0.2s; }
.overlay__foot { display: flex; flex-direction: column; gap: 6px; color: var(--fg-60); }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.section {
  padding: clamp(120px, 14vw, 200px) var(--pad);
  min-height: 92vh;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--pad);
}
.split__label { padding-top: 0.6em; }
.split__content > * + .h2 { margin-top: 0.45em; }
.split__content > .h2 + .body,
.split__content > .h2 + .rows,
.split__content > .h2 + .steps { margin-top: 48px; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(110px, 10vw, 140px) var(--pad) 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero .display + .display { margin-top: 0.75em; }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
  color: var(--fg-60);
}
.hero__meta span:last-child { text-align: right; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i {
  display: block;
  width: 1px; height: 28px;
  background: var(--fg-40);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Agencies rows ---------- */
.rows { list-style: none; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 28px 0;
  position: relative;
}
.row__num { color: var(--fg-40); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.row__name {
  font-size: clamp(28px, 2.9vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: transform 0.8s var(--ease);
}
.row__desc {
  grid-column: 2 / 4;
  margin-top: 12px;
  color: var(--fg-60);
  font-size: 16px;
  line-height: 1.45;
  max-width: 32em;
}
.row__status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-60); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-40); }
.dot--live { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.row--muted .row__name { color: var(--fg-40); }
a.row__link:hover .row__name { transform: translateX(10px); }
.row__arrow {
  display: inline-block;
  transition: transform 0.7s var(--ease);
}
a.row__link:hover .row__arrow { transform: translate(3px, -3px); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px var(--pad);
  margin-bottom: 56px;
}
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step .label { margin-bottom: 14px; display: block; }
.step__title { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 8px; }
.step p { color: var(--fg-60); font-size: 16px; line-height: 1.45; max-width: 22em; }

/* ---------- Statement + CTA ---------- */
.statement { min-height: 80vh; }
.statement .display { max-width: 12em; }
.cta {
  margin-top: 64px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.cta:active { transform: scale(0.98); }
.cta__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  transition: transform 0.7s var(--ease), background 0.7s var(--ease);
}
.cta:hover .cta__icon { transform: translate(3px, -2px) scale(1.06); background: #000; color: #fff; }
.cta svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(100px, 10vw, 140px) var(--pad) 22px; position: relative; z-index: 1; }
.footer__title { margin-bottom: 28px; }
.footer__clock { margin-bottom: 48px; font-variant-numeric: tabular-nums; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--pad);
  row-gap: 40px;
}
.footer__col .label:first-child { display: block; margin-bottom: 12px; }
.footer__mail { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__list a, .footer__list button, .footer__list span {
  color: var(--fg-60);
  transition: color 0.5s var(--ease);
}
.footer__list a:hover, .footer__list button:hover { color: #fff; }
.footer__list button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left;
}
.wordmark {
  display: block;
  width: 100%;
  margin-top: clamp(120px, 16vw, 240px);
  overflow: visible;
}
.wordmark text {
  font-family: var(--serif);
  font-weight: 800;
  fill: #fff;
}
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--fg-60);
  font-size: 11px;
}

/* ---------- Legal page ---------- */
.legal { padding: clamp(140px, 14vw, 200px) var(--pad) 80px; }
.legal__list { list-style: none; border-top: 1px solid var(--line); margin-top: 48px; }
.legal__list li {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.legal__list dt, .legal__list .k { color: var(--fg-60); }
.legal__text { margin-top: 56px; }
.legal__text h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 12px; }

/* ---------- Reveal motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; filter: blur(0); }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* Word-by-word mask reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
.js .split-words .w > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .split-words.in .w > span { transform: none; }

.no-motion *, .no-motion *::before, .no-motion *::after {
  transition: none !important;
  animation: none !important;
}
.no-motion .reveal, .no-motion .split-words .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .split-words .w > span { opacity: 1; transform: none; filter: none; transition: none; }
  .scroll-cue i::after, .dot--live { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__item, .nav__last { display: none; }
  .menu-btn { display: block; }
  .split { grid-template-columns: 1fr; }
  .split__label { margin-bottom: 32px; padding-top: 0; }
  .section { min-height: auto; padding-top: 112px; padding-bottom: 112px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta span:nth-child(2), .hero__meta span:nth-child(3) { display: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .body { font-size: 17px; }
  .legal__list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .row__link { grid-template-columns: 36px 1fr; }
  .row__status { grid-column: 2; margin-top: 10px; }
  .row__desc { grid-column: 2; }
}
