/* Website-specific styles that sit on top of colors_and_type.css */

* { box-sizing: border-box; }
body { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Nav */
.nav-root { position: sticky; top: 0; z-index: 50; background: rgba(251,250,248,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-hair); transition: background var(--dur-med) var(--ease-standard), border-color var(--dur-med) var(--ease-standard); }
.nav-root .wrap { position: relative; }
.nav-root--on-dark { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.nav-root--on-dark .nav-link { color: rgba(255,255,255,0.85); }
.nav-root--on-dark .nav-link:hover { color: #fff; }
.nav-root--on-dark .nav-link.is-active { color: #fff; }
.nav-root--on-dark .nav-link.is-active::after { background: var(--brand-gold-soft); }

/* Home page: pull hero up behind the transparent nav so they're visually unified */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--fg-primary);
  flex-shrink: 0;
}
.nav-root--on-dark .nav-hamburger { color: #fff; }
.nav-cta-desktop { display: inline-flex; }
.nav-mobile-menu { display: none; }
.home-hero-anchor { margin-top: -76px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.nav-brand img { height: 36px; display: block; margin: -4px 0 0; transition: height 160ms var(--ease-standard); }
.nav-links { display: flex; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-link { font: 500 14px/1 var(--font-sans); color: var(--fg-primary); text-decoration: none; position: relative; padding: 6px 0; cursor: pointer; background: none; border: 0; letter-spacing: -0.005em; }
.nav-link:hover { color: var(--brand-plum); }
.nav-link.is-active { color: var(--brand-plum); }
.nav-link.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-20px; height:2px; background: var(--brand-plum); }

/* Buttons */
.btn { font: 500 15px/1 var(--font-sans); padding: 13px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; letter-spacing: -0.005em; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn--primary { background: var(--brand-plum); color: #fff; }
.btn--primary:hover { background: var(--brand-plum-soft); }
.btn--outline { background: transparent; color: var(--brand-plum); border-color: var(--brand-plum); }
.btn--outline:hover { background: var(--brand-plum-tint); }
.btn--on-plum { background: #fff; color: var(--brand-plum); }
.btn--on-plum:hover { background: var(--brand-plum-tint); }
.btn--ghost-on-plum { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-on-plum:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn:active { transform: scale(0.98); }

/* Eyebrow */
.eyebrow { font: 600 14px/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-plum); }
.eyebrow--on-plum { color: var(--brand-gold-soft); }

/* Section */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--band { background: var(--ink-2); }
.section--slate { background: var(--brand-slate-tint); }
.section--slate-hair { border-top: 1px solid var(--brand-slate); border-bottom: 1px solid var(--brand-slate); }
.section--plum {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #5a3a6b 0%, #452B51 50%, #311d3c 100%);
  color: var(--fg-on-plum);
}
.section--plum-deep {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #452B51 0%, #311d3c 45%, #1f1126 100%);
  color: var(--fg-on-plum);
}
.section--plum > .wrap,
.section--plum-deep > .wrap { position: relative; z-index: 3; }

/* Ambient aurora on all plum sections (pseudo-elements for zero-markup drifting glows) */
.section--plum::before, .section--plum-deep::before,
.section--plum::after, .section--plum-deep::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.section--plum::before, .section--plum-deep::before {
  width: 55vw; height: 55vw;
  left: -12%; top: -20%;
  background: radial-gradient(circle, rgba(168,120,196,0.85) 0%, rgba(168,120,196,0) 70%);
  animation: drift1 14s ease-in-out infinite alternate;
}
.section--plum::after, .section--plum-deep::after {
  width: 45vw; height: 45vw;
  right: -10%; bottom: -18%;
  background: radial-gradient(circle, rgba(199,164,94,0.4) 0%, rgba(199,164,94,0) 70%);
  animation: drift2 18s ease-in-out infinite alternate;
}

/* Fine rule grid overlay for plum sections */
.section--plum > .plum-grid, .section--plum-deep > .plum-grid,
.section--plum::marker { /* no-op, placeholder to avoid fold */ }
.plum-grid {
  position: absolute; inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 80% at 50% 50%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 50%, #000 35%, transparent 85%);
  pointer-events: none;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }

/* Cards */
.card-base { background: var(--ink-0); border: 1px solid var(--border-hair); border-radius: 14px; padding: 28px; }
.card-slate { background: var(--brand-slate-tint); border: 1px solid var(--brand-slate); border-radius: 14px; padding: 28px; }
.card-plum { background: var(--brand-plum); color: #fff; border-radius: 14px; padding: 28px; }
.gold-rule { width: 32px; height: 1px; background: var(--brand-gold); margin: 0 0 16px; }
.slate-rule { width: 32px; height: 1px; background: var(--brand-slate); margin: 0 0 16px; }

/* Hairline row list */
.hair-list > * { padding: 20px 0; border-top: 1px solid var(--border-hair); }
.hair-list > *:first-child { border-top: 0; }
.hair-list--slate > * { border-top-color: var(--brand-slate); }

/* Placeholder image */
.ph-img { background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid var(--border-hair); border-radius: 14px; display: grid; place-items: center; color: var(--fg-tertiary); font-size: 12px; font-family: var(--font-mono); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(23,20,15,.45); z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal { width: 100%; max-width: 480px; background: var(--ink-0); border-radius: 16px; padding: 36px; box-shadow: 0 16px 40px rgba(69,43,81,.25); }

/* Footer */
.footer { background: var(--brand-slate-tint); border-top: 1px solid var(--brand-slate); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-hair); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; color: var(--fg-tertiary); font-size: 13px; }

/* Marquee number */
.marquee-num { font-family: var(--font-serif); font-weight: 200; font-size: clamp(120px, 16vw, 220px); line-height: 0.95; letter-spacing: -0.04em; color: #fff; }
.marquee-num small { display: block; font: 500 13px/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-gold-soft); margin-bottom: 20px; }

/* Input */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-primary); }
.input { font: 400 15px/1.2 var(--font-sans); padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border-hair); background: var(--ink-0); color: var(--fg-primary); width: 100%; }
.input:focus { outline: 2px solid var(--brand-plum); outline-offset: 2px; border-color: var(--brand-plum); }

/* Skip navigation */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--brand-plum);
  color: #fff;
  font: 600 14px/1 var(--font-sans);
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-nav:focus-visible { top: 0; outline: 3px solid var(--brand-gold-soft); outline-offset: 2px; border-radius: 0 0 8px 0; }

/* Focus ring default */
:focus-visible { outline: 2px solid var(--brand-plum); outline-offset: 2px; border-radius: 6px; }
.nav-root--on-dark .nav-hamburger:focus-visible { outline-color: #fff; }

/* Links */
a.inline { color: var(--brand-plum); text-decoration: underline; text-underline-offset: 3px; }
a.inline:hover { color: var(--brand-plum-deep); }

/* Step badge */
.step-num { font-family: var(--font-serif); font-size: 48px; color: var(--brand-gold); line-height: 1; letter-spacing: -0.04em; }
.step-rule { height: 1px; background: var(--brand-slate); margin: 20px 0; }

/* Trait chip */
.trait { padding: 16px 18px; background: var(--brand-slate-tint); border: 1px solid var(--brand-slate); border-radius: 10px; display: flex; align-items: center; gap: 12px; }
.trait-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand-plum); flex: 0 0 auto; }
.trait-name { font: 500 14px/1.2 var(--font-sans); color: var(--fg-primary); }

/* Language-trace */
.trace-quote { font-family: var(--font-serif); font-size: 22px; line-height: 1.5; letter-spacing: -0.04em; color: var(--fg-primary); }
.trace-hi { background: var(--brand-plum-tint); box-shadow: 0 1px 0 var(--brand-plum); padding: 0 2px; }
.trace-arrow { color: var(--brand-gold); font-family: var(--font-mono); }

/* Quote */
.pull-quote { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -0.04em; color: var(--fg-primary); }
.pull-quote em { font-style: italic; }

/* ====== Dark Hero ====== */
.hero-dark {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 18vw, 220px) 0 clamp(112px, 14vw, 176px);
  margin-top: -76px;
  background:
    radial-gradient(120% 80% at 50% 0%, #5a3a6b 0%, #3d2548 45%, #261630 100%);
  color: #fff;
}
.hero-wrap { position: relative; z-index: 3; }

/* Drifting aurora blobs */
.hero-aurora {
  position: absolute; inset: -10%;
  z-index: 0;
  filter: blur(70px);
  pointer-events: none;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}
.aurora--1 {
  width: 42vw; height: 42vw;
  left: -8%; top: -10%;
  background: radial-gradient(circle, rgba(168,120,196,0.85) 0%, rgba(168,120,196,0) 70%);
  animation: drift1 14s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 38vw; height: 38vw;
  right: -10%; top: 18%;
  background: radial-gradient(circle, rgba(199,164,94,0.45) 0%, rgba(199,164,94,0) 70%);
  animation: drift2 18s ease-in-out infinite alternate;
}
.aurora--3 {
  width: 48vw; height: 48vw;
  left: 18%; bottom: -22%;
  background: radial-gradient(circle, rgba(92,58,112,0.9) 0%, rgba(92,58,112,0) 70%);
  animation: drift3 22s ease-in-out infinite alternate;
}
.aurora--4 {
  width: 26vw; height: 26vw;
  right: 12%; bottom: -6%;
  background: radial-gradient(circle, rgba(220,185,120,0.25) 0%, rgba(220,185,120,0) 70%);
  animation: drift4 17s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}
@keyframes drift2 {
  0%   { transform: translate3d(0,0,0) scale(1.05); }
  100% { transform: translate3d(-5vw, 3vh, 0) scale(0.95); }
}
@keyframes drift3 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-4vw, -3vh, 0) scale(1.08); }
}
@keyframes drift4 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(3vw, -4vh, 0) scale(1.15); }
}

/* Fine rule grid for executive structure */
.hero-grid {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 80% at 50% 50%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 50%, #000 35%, transparent 85%);
  pointer-events: none;
}

/* Grain */
.hero-grain {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-vignette {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(10,5,15,0.55) 100%);
}

.eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-gold-soft);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 12px rgba(220,185,120,0.8);
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .eyebrow-dot { animation: none !important; }
}

@media (max-width: 880px){
  .grid-2, .grid-3, .grid-7-5, .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column-reverse; gap: 6px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-0);
    border-bottom: 1px solid var(--border-hair);
    padding: 12px 0 20px;
    flex-direction: column;
    z-index: 49;
  }
  .nav-mobile-menu.is-open { display: flex; }
  .nav-root--on-dark .nav-mobile-menu { background: var(--brand-plum-deep); border-bottom-color: rgba(255,255,255,0.12); }
  .nav-mobile-menu .nav-link {
    padding: 14px clamp(20px, 4vw, 48px);
    font-size: 16px;
    border-bottom: 1px solid var(--border-hair);
    text-align: right;
  }
  .nav-root--on-dark .nav-mobile-menu .nav-link { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.08); }
  .nav-mobile-menu .nav-link.is-active::after { display: none; }
  .nav-mobile-menu .nav-mobile-demo {
    margin: 16px clamp(20px, 4vw, 48px) 0;
    text-align: right;
  }
}
