/* Avidius v2
   Concept: stress becomes calm. A field of tense lines settles into slow,
   breathing waves as you scroll; type is light and spacious, gold is rare.
   Background #1B1B1B is sampled from the brand files. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1b1b1b;
  --ink-deep: #141414;
  --paper: #ffffff;
  --soft: #d9d5cc;
  --mute: #8f897e;
  --line: rgba(255, 255, 255, .12);
  --gold: #e1b44f;
  --gold-deep: #c2943b;

  --gutter: clamp(20px, 4vw, 56px);
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Type ---------- */
.mega { font-weight: 300; letter-spacing: -0.055em; line-height: .9; font-size: clamp(3.4rem, 13vw, 13rem); }
.big { font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2.5rem, 7vw, 6.5rem); text-wrap: balance; }
.mid { font-weight: 300; letter-spacing: -0.025em; line-height: 1.12; font-size: clamp(1.6rem, 3.2vw, 2.75rem); text-wrap: balance; }
.body-lg { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--soft); max-width: 34em; }
.small { font-size: .875rem; color: var(--mute); }
.tagline { font-size: .8125rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }

/* ---------- Buttons: pill, rolling label, fill rises from below ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 58px; padding: 0 30px; border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; cursor: pointer;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%;
  width: 140%; aspect-ratio: 1; border-radius: 50%; background: var(--paper);
  transform: translate(-50%, 0) scale(.2); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -62%) scale(1); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--paper); }
.btn .roll { display: block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
.btn .roll span { display: block; transition: transform .55s var(--ease); }
.btn:hover .roll span, .btn:focus-visible .roll span { transform: translateY(-100%); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; transition: transform .5s var(--ease); }
.btn:hover .dot { transform: scale(1.4); }
.btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-solid::before { background: var(--gold); }
.btn-solid:hover, .btn-solid:focus-visible { border-color: var(--gold); }
.btn-solid .dot { background: var(--ink); }

.link { position: relative; display: inline-block; padding-bottom: 4px; font-weight: 500; transition: color .3s; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }
.link:hover { color: var(--gold); }

/* ---------- Navigation ---------- */
.nav { position: fixed; z-index: 100; inset: 0 0 auto; padding: 16px 0; transition: transform .5s var(--ease), background-color .4s; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(27, 27, 27, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { position: relative; z-index: 2; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 10px 16px; font-size: .9375rem; color: var(--soft); border-radius: 999px; transition: color .3s, background-color .3s; }
.nav-links a:not(.btn):hover { color: var(--paper); background: rgba(255,255,255,.07); }
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }
.nav-links .btn { height: 44px; padding: 0 22px; margin-left: 12px; font-size: .9375rem; }
.menu-btn { display: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; cursor: pointer; font-weight: 500; align-items: center; gap: 10px; }
.menu-btn i { display: block; width: 14px; height: 6px; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-open .menu-btn i::before { transform: translateY(2.25px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-2.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-logo img { height: 20px; }
  .menu-btn { display: inline-flex; position: relative; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0;
    padding: 100px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--ink-deep); visibility: hidden;
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  }
  .menu-open .nav-links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io); }
  .nav-links li { overflow: hidden; border-top: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 28px; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: clamp(2.5rem, 12vw, 3.5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; color: var(--paper); border-radius: 0; background: none !important; transform: translateY(105%); transition: transform .8s var(--ease); }
  .menu-open .nav-links a:not(.btn) { transform: none; }
  .menu-open .nav-links li:nth-child(2) a { transition-delay: .06s; }
  .menu-open .nav-links li:nth-child(3) a { transition-delay: .12s; }
  .nav-links .btn { width: 100%; height: 60px; margin: 0; font-size: 1.0625rem; }
  body.menu-open { overflow: hidden; }
  .menu-open .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
}

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--soft); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: breathe 4.5s var(--ease-io) infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(225,180,79,.45); } 50% { box-shadow: 0 0 0 7px rgba(225,180,79,0); } }

/* ---------- Calm field canvas ---------- */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Reveal on scroll (visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: .12s; }
  .js [data-reveal="3"] { transition-delay: .24s; }
  .js .lines .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
  .js .lines .ln > span { display: block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
  .js .lines.is-in .ln > span { transform: none; }
  .js .lines.is-in .ln:nth-child(2) > span { transition-delay: .09s; }
  .js .lines.is-in .ln:nth-child(3) > span { transition-delay: .18s; }
}

/* ---------- Footer: the wordmark, full width ---------- */
.footer { padding: clamp(80px, 10vw, 140px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ink-deep); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(56px, 8vw, 112px); }
.footer-top .mid { max-width: 13em; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; gap: 10px 48px; }
.footer nav a { color: var(--soft); transition: color .3s; }
.footer nav a:hover { color: var(--gold); }
.footer-mark img { width: 100%; height: auto; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: block; position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform .6s var(--ease); }
  .dock.is-visible { transform: none; }
  .dock .btn { width: 100%; height: 56px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
}
