/* ============================================================
   The Agency Universe — hub site
   Brand: deep navy #0E1526 · gold #C9A24B · clean white
   System font stack, no external dependencies.
   ============================================================ */

:root {
  --navy: #0e1526;
  --navy-2: #131e36;
  --gold: #c9a24b;
  --gold-dark: #9a7a2e;
  --white: #ffffff;
  --paper: #f7f7f4;
  --ink: #1b2334;
  --muted: #4c586e;
  --muted-on-dark: #b8c1d1;
  --line: #e3e1d8;
  --line-dark: #263350;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.78rem + 0.25vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.15rem);
  --step-3: clamp(2.3rem, 1.8rem + 2.6vw, 3.6rem);

  --radius: 14px;
  --maxw: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}
.button:hover { transform: translateY(-2px); }

.button-gold {
  background: var(--gold);
  color: var(--navy);
}
.button-gold:hover { background: #d9b968; }

.button-navy {
  background: var(--navy);
  color: var(--white);
}
.button-navy:hover { background: var(--navy-2); }

.button-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.button-outline:hover {
  background: rgba(201, 162, 75, 0.12);
  color: #e3c67e;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(4, 8, 18, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}
.brand-mark { border-radius: 8px; }
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav ul a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}
.primary-nav ul a:hover { color: var(--white); }

.header-cta { padding: 0.55rem 1.15rem; font-size: var(--step--1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.75rem var(--gutter) 1.1rem;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .primary-nav ul a {
    display: block;
    padding: 0.55rem 0;
    font-size: var(--step-0);
  }
  .header-cta { text-align: center; margin-top: 0.5rem; }
  .header-inner { position: relative; }
  .site-header .container { position: relative; }
}

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

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(201, 162, 75, 0.16), transparent 60%),
    radial-gradient(50rem 26rem at -10% 110%, rgba(201, 162, 75, 0.08), transparent 55%),
    var(--navy);
  color: var(--white);
  text-align: center;
}
.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 52rem;
}
.hero-mark {
  margin: 0 auto 1.6rem;
  border-radius: 24px;
}
.hero h1 { margin-bottom: 0.35em; }
.hero-sub {
  color: var(--muted-on-dark);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 38em;
  margin-inline: auto;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section-light { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-lede { color: var(--muted-on-dark); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-navy { color: var(--navy); }

.section-lede {
  color: var(--muted);
  max-width: 42em;
  font-size: var(--step-0);
}

.section-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* ---------- Store cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(14, 21, 38, 0.1);
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.card p { color: var(--muted); flex-grow: 1; }
.card .button { align-self: flex-start; margin-top: 0.6rem; padding: 0.6rem 1.2rem; font-size: var(--step--1); }

.card-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.card-featured p { color: var(--muted-on-dark); }
.card-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold) !important;
  margin-bottom: 0.5rem;
  flex-grow: 0 !important;
}

/* ---------- Offers ---------- */

.offer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}
.offer {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.offer h3 { font-size: 1.25rem; }
.offer-price {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4em;
}
.offer-price span { font-size: var(--step--1); font-weight: 600; color: var(--muted-on-dark); }
.offer p:last-child { color: var(--muted-on-dark); margin-bottom: 0; }

/* ---------- Checklist band ---------- */

.band {
  background: var(--gold);
  color: var(--navy);
}
.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
}
.band-text { max-width: 40rem; }
.band-text h2 { margin-bottom: 0.25em; }
.band-text p { margin-bottom: 0; font-weight: 500; }
.band-cta { flex-shrink: 0; }

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 18rem) 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.about-logo { border-radius: var(--radius); }
.about-text p { color: var(--muted); max-width: 44em; }

@media (max-width: 44rem) {
  .about-inner { grid-template-columns: 1fr; }
  .about-logo { max-width: 15rem; }
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  font-size: var(--step-1);
}
.contact-label {
  display: inline-block;
  min-width: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--gold);
}
.contact-list a {
  color: var(--white);
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.contact-list a:hover { color: var(--gold); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}
.social-row a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-row a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

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

.site-footer {
  background: #0a0f1d;
  color: var(--muted-on-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
}
.brand-footer .brand-name { font-size: 0.95rem; }
.footer-note { margin: 0; font-size: var(--step--1); }

/* ============================================================
   Effects layer — 2026-11-04
   3D orbit emblem + holographic accents up top, pointer-tracked
   tilt + foil on cards. Progressive enhancement throughout:
   - Rings/sheen are pure CSS decoration; page is complete
     without them and without JS.
   - Tilt/parallax activate only when script.js adds `fx` to
     <html> (fine pointer + motion allowed). Touch and
     reduced-motion visitors get the original static design.
   - The site-wide reduced-motion rule above already freezes
     every animation defined here.
   ============================================================ */

/* ---------- Hero depth layers (parallax) ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.hero-depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.depth-layer {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
/* Far: a large, faint orbit ring drifting slowest. */
.depth-far {
  width: 36rem;
  height: 36rem;
  right: -11rem;
  top: -15rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.16);
  transform: translate3d(
    calc(var(--mx, 0) * -10px),
    calc(var(--my, 0) * -7px + var(--sy, 0) * -16px), 0);
}
/* Mid: a soft gold glow pooling at lower left. */
.depth-mid {
  width: 30rem;
  height: 30rem;
  left: -12rem;
  bottom: -16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.13), transparent 65%);
  transform: translate3d(
    calc(var(--mx, 0) * -20px),
    calc(var(--my, 0) * -13px + var(--sy, 0) * -30px), 0);
}
/* Near: a sparse star-dust dot field, fastest layer. */
.depth-near {
  inset: 0;
  background-image: radial-gradient(rgba(246, 247, 249, 0.16) 1px, transparent 1.6px);
  background-size: 92px 92px;
  background-position: 12px 20px;
  -webkit-mask-image: radial-gradient(75% 90% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 90% at 50% 40%, #000 30%, transparent 78%);
  transform: translate3d(
    calc(var(--mx, 0) * -32px),
    calc(var(--my, 0) * -20px + var(--sy, 0) * -46px), 0);
}

/* ---------- 3D orbit emblem ---------- */

.orbit-emblem {
  position: relative;
  width: 11.5rem;
  height: 11.5rem;
  margin: 0 auto 1.6rem;
  perspective: 42rem;
  animation: emblem-float 7s ease-in-out infinite alternate;
}
@keyframes emblem-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
.orbit-emblem .hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(2, 5, 12, 0.55);
  z-index: 2;
}
/* Iridescent foil ring: conic gradient clipped to the border
   via the padding-box mask trick, hue drifting as it spins. */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  background:
    conic-gradient(from 0deg,
      rgba(201, 162, 75, 0.95), rgba(143, 216, 232, 0.7),
      rgba(201, 162, 75, 0.3), rgba(232, 183, 216, 0.65),
      rgba(242, 226, 160, 0.9), rgba(201, 162, 75, 0.95)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}
.ring-1 {
  inset: 0.55rem;
  animation: orbit-spin-1 26s linear infinite,
             ring-hue 13s ease-in-out infinite alternate;
}
.ring-2 {
  inset: -0.4rem;
  opacity: 0.7;
  animation: orbit-spin-2 40s linear infinite,
             ring-hue 17s ease-in-out infinite alternate-reverse;
}
.ring-3 {
  inset: 1.75rem;
  opacity: 0.55;
  animation: orbit-spin-3 19s linear infinite,
             ring-hue 11s ease-in-out infinite alternate;
}
@keyframes orbit-spin-1 {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to   { transform: rotateX(68deg) rotateZ(360deg); }
}
@keyframes orbit-spin-2 {
  from { transform: rotateX(75deg) rotateZ(360deg); }
  to   { transform: rotateX(75deg) rotateZ(0deg); }
}
@keyframes orbit-spin-3 {
  from { transform: rotateX(57deg) rotateZ(0deg); }
  to   { transform: rotateX(57deg) rotateZ(-360deg); }
}
@keyframes ring-hue {
  from { filter: hue-rotate(-14deg); }
  to   { filter: hue-rotate(16deg); }
}

/* ---------- Holographic accent text (one element class) ---------- */

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .holo-text {
    background-image: linear-gradient(100deg,
      #f6f7f9 5%, #e9d189 28%, #9fdcea 46%,
      #eec3e3 62%, #c9a24b 80%, #f6f7f9 98%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: holo-pan 10s ease-in-out infinite alternate;
  }
  @keyframes holo-pan {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
  }
}

/* ---------- Cards: 3D tilt + holographic foil ---------- */

.card, .offer { position: relative; }

/* Foil sheen: a soft highlight + iridescent sweep that follows
   the pointer (custom props set by script.js). */
.card::after, .offer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(18rem 12rem at var(--sheen-x, 50%) var(--sheen-y, 50%),
      rgba(255, 255, 255, 0.26), transparent 60%),
    linear-gradient(115deg,
      transparent 26%, rgba(159, 220, 234, 0.24) 42%,
      rgba(238, 195, 227, 0.24) 52%, rgba(233, 209, 137, 0.26) 62%,
      transparent 78%);
  background-size: 100% 100%, 250% 100%;
  background-position: 0 0, var(--sheen-pos, 120%) 0;
}
/* Foil edge: a 1px iridescent arc that travels the border,
   angled from the pointer position. */
.card::before, .offer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: conic-gradient(from var(--edge-a, 0deg)
      at var(--sheen-x, 50%) var(--sheen-y, 50%),
    transparent 0deg, transparent 30deg,
    rgba(159, 220, 234, 0.65) 60deg, rgba(233, 209, 137, 0.75) 90deg,
    rgba(238, 195, 227, 0.6) 120deg, transparent 160deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}
@media (pointer: fine) {
  .card:hover::after, .offer:hover::after { opacity: 1; }
  .card:hover::before, .offer:hover::before { opacity: 0.9; }
}
.card:focus-within::after, .offer:focus-within::after { opacity: 0.9; }
.card:focus-within::before, .offer:focus-within::before { opacity: 0.8; }

/* Tilt (JS-driven; `fx` is only present for fine pointers with
   motion allowed). Long ease-back transition applies whenever
   the pointer is not actively moving over the card. */
html.fx .card, html.fx .offer {
  transform: perspective(900px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.28, 1),
    box-shadow 0.35s ease;
}
html.fx .card.is-tilting, html.fx .offer.is-tilting {
  transition: transform 0.08s ease-out, box-shadow 0.25s ease;
  box-shadow: 0 26px 48px rgba(14, 21, 38, 0.17),
    0 6px 16px rgba(14, 21, 38, 0.1);
  z-index: 1;
}
html.fx .offer.is-tilting {
  box-shadow: 0 26px 48px rgba(2, 5, 12, 0.5),
    0 6px 16px rgba(2, 5, 12, 0.35);
}

/* Proof hook: script.js adds .fx-posed under ?fxdemo so headless
   renders can capture the tilt/foil state deterministically. */
html.fx .fx-posed::after { opacity: 1; }
html.fx .fx-posed::before { opacity: 0.9; }
