/* ===========================================================
   BASE + GLOBAL COMPONENTS
   =========================================================== */
@font-face {
  font-family: "Archivo Black";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/archivo-black.woff2") format("woff2");
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-900);
  background: var(--ink-050);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--silver); color: var(--ink-000); }

/* ---------- Layout shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.shell--text { max-width: calc(var(--shell-text) + var(--gutter) * 2); }

section { position: relative; }

/* ---------- Eyebrows (mono, numbered) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.eyebrow--bright { color: var(--silver); }
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--silver);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Display headings ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}
.display em {
  font-style: italic;
  color: var(--silver);
  font-weight: 400;
}

.lede {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-800);
  max-width: 60ch;
}

/* ---------- Hairline divider ---------- */
.rule { height: 1px; width: 100%; background: var(--ink-400); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid var(--ink-500);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn--solid {
  background: var(--ink-950);
  color: var(--ink-000);
  border-color: var(--ink-950);
}
.btn--solid:hover { background: var(--silver-bright); border-color: var(--silver-bright); }
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-500);
}
.btn--ghost:hover { border-color: var(--silver); color: var(--ink-950); }

/* ---------- CTA row ---------- */
.cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-700);
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 0.55rem var(--gutter);
  background: var(--ink-000);
  border-bottom: var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.ticker__left, .ticker__right { display: flex; align-items: center; gap: 0.7em; flex-wrap: nowrap; }
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 0 rgba(200,204,210,0.5); animation: pulse 3s var(--ease-out) infinite; }
.ticker__sep { color: var(--ink-600); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Hero shared ---------- */
.hero {
  position: relative;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-bottom: var(--hairline);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: var(--ink-050);
  z-index: 0;
  overflow: hidden;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: -6% -6% -6% -6%;
  background-image: url("../assets/img/coast-hero-1920.webp");
  background-size: cover;
  background-position: center 45%;
  filter: grayscale(1) contrast(1.08) brightness(0.85);
  opacity: 0.85;
  transform-origin: center center;
  animation: hero-kenburns 26s var(--ease-out) infinite alternate;
  will-change: transform, opacity;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,8,0.35) 0%, rgba(5,6,8,0.15) 45%, rgba(5,6,8,0.7) 100%),
    linear-gradient(90deg, rgba(5,6,8,0.55) 0%, rgba(5,6,8,0.1) 55%, rgba(5,6,8,0.35) 100%);
  z-index: 1;
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); opacity: 0.8; }
  50%  { opacity: 0.92; }
  100% { transform: scale(1.13) translate3d(-2%, -1.2%, 0); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg::before { animation: none; transform: scale(1.06); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-400) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-400) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.08;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 75%);
  z-index: 2;
}
.hero > .shell, .hero__meta { position: relative; z-index: 3; }

.hero__meta {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero__meta-block { display: flex; flex-direction: column; gap: 0.35em; }
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.hero__meta-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--ink-800);
}

.hero__content { max-width: var(--shell-wide); }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin-bottom: var(--space-6);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink-950);
}
.hero__title em {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--silver);
}

.hero__sub {
  margin-top: var(--space-6);
  max-width: 56ch;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-800);
}
.hero__cta-row {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* ---------- Section header ---------- */
.sec { padding-block: clamp(4rem, 9vw, 8rem); border-bottom: var(--hairline); }
.sec__head {
  margin-bottom: var(--space-12);
  max-width: 56ch;
}
.sec__head > div { display: flex; flex-direction: column; gap: var(--space-4); }
.sec__head .eyebrow { padding-top: 0.4em; }
.sec__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink-950);
}
.sec__title em {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--silver);
}
.sec__intro { margin-top: var(--space-6); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink-000); padding-block: clamp(3rem, 6vw, 5rem) var(--space-8); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: var(--hairline);
}
.footer__logo { width: 190px; max-width: 70%; height: auto; margin-bottom: var(--space-5); color: var(--ink-950); }
.footer__brand-sub { color: var(--ink-700); font-size: var(--text-sm); max-width: 38ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: var(--space-4);
  font-weight: 400;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.75em; }
.footer__col li, .footer__col a { font-size: var(--text-sm); color: var(--ink-800); transition: color 0.3s var(--ease-out); }
.footer__col a:hover { color: var(--ink-950); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-600);
}

/* ---------- Final CTA ---------- */
.cta-final { padding-block: clamp(5rem, 11vw, 9rem); text-align: center; border-bottom: var(--hairline); }
.cta-final__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink-950);
  max-width: 18ch;
  margin: var(--space-6) auto var(--space-5);
}
.cta-final__title em {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--silver);
}
.cta-final__sub { color: var(--ink-800); max-width: 50ch; margin: 0 auto var(--space-8); }
.cta-final .hero__cta-row { justify-content: center; }

/* ---------- Responsive base ---------- */
@media (max-width: 860px) {
  .sec__head { margin-bottom: var(--space-8); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .ticker__right { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--space-5); }
}
