/* Accelerated Inertia — single-page site
 * Consumes tokens from assets/brand-tokens.css.
 * No hardcoded brand colours in this file.
 */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar so opening/closing overlays can't shift
     the page horizontally. */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ai-font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  /* clip, not hidden — hidden on body breaks position: sticky */
  overflow-x: clip;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow { max-width: 720px; }
.center { text-align: center; }

/* ---- Theme toggle ------------------------------------------------ */

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  z-index: 50;
  transition: all .2s;
}

.theme-toggle:hover { background: var(--surface-variant); transform: translateY(-1px); }

/* ---- Hero -------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 72px 24px 96px;
  position: relative;
  text-align: center;
}

.hero__mark {
  width: min(400px, 74vw);
  /* Hold the slot before the SVG mounts so the hero doesn't jump. */
  min-height: min(484px, 90vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__mark svg,
.hero__mark img { width: 100%; height: auto; display: block; }

.hero__sub {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s ease, transform .7s ease;
}

.hero__sub.in { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
  transition: all .2s;
}

.scroll-cue:hover { background: var(--surface); color: var(--ink); }

/* ---- Bands ------------------------------------------------------- */

.band { padding: 92px 0; }
.band--alt { background: var(--surface); }

.band h2 {
  font-family: var(--ai-font-heavy);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}

.band__sub {
  margin: -8px 0 34px;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---- Brand cards ------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}

/* Dark mode: cards sit a step lighter than the band, not darker, so
   dark logo parts (DG's black grease drop) still read. */
.dark-mode .card { background: #2a3544; }

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--shadow);
}



/* Brand logos: transparent light/dark variants generated from each
   brand's own files (tools/build-brand-card-logos.mjs). */
.card__logo {
  height: 190px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.card__logo-dark { display: none !important; }
.dark-mode .card__logo-light { display: none !important; }
.dark-mode .card__logo-dark { display: block !important; }

.card__role {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card__name {
  font-family: var(--ai-font-heavy);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.card__text { margin: 0; color: var(--ink-muted); font-size: .98rem; }

.card__audience {
  font-size: .82rem;
  color: var(--ink-muted);
  opacity: .8;
  margin: 0;
}

.card__cta {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand, var(--primary));
  text-decoration: none;
}

.card__cta:hover { text-decoration: underline; }
.card__cta::after { content: " →"; }

/* ---- Principles grid --------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 32px;
}

.grid__item h3 {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.grid__item p { margin: 0; color: var(--ink-muted); font-size: .96rem; }

.grid__item::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--ai-gradient);
}

/* ---- Links and buttons ------------------------------------------- */

.link-arrow {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: " →"; }

.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--ai-gradient);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow);
}

.band--contact { padding: 100px 0; }

/* ---- Footer ------------------------------------------------------ */

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  font-size: .87rem;
  color: var(--ink-muted);
}

.footer__inner {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__dot { opacity: .5; }

/* ---- Scroll reveal ----------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__sub { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- Small screens ------------------------------------------------ */

@media (max-width: 767px) {
  body { font-size: 16px; }
  .band { padding: 66px 0; }
  .hero { padding: 64px 20px 84px; }
  .hero__mark { width: min(320px, 82vw); min-height: min(388px, 99vw); }
  .card { padding: 22px; }
}
