/* ==========================================================================
   Northline sketch - static CSS, no framework
   Tokens: site.css :root below (Night / Snow / Line / Gold / Soft).
   Radius system: all-sharp (0). One theme composition: dark bookends,
   Snow body. Gold = brand accent. Line blue = links, hairline meta, focus.
   ========================================================================== */

:root {
  /* plan tokens */
  --night: #0B1220;
  --snow: #F2F5FA;
  --line: #3B82F6;
  --gold: #C9A227;
  --soft: #9AA6B2;

  /* derived tints of plan colors */
  --ink: #222D3D;          /* body text on Snow: Night softened */
  --muted: #4E5A68;        /* secondary text on Snow: passes AA */
  --night-2: #101A2C;      /* night, one step up: hero/contact gradient end */
  --hairline: rgba(11, 18, 32, .16);
  --hairline-dark: rgba(242, 245, 250, .16);
  --gold-bright: #E0BA33;  /* gold hover state on dark */
  --focus: #6AA0F8;        /* focus ring: Line brightened for visibility on both themes */

  /* type */
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* rhythm */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1160px;
}

/* Base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--night);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Skip link */

.skip {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus-visible { top: 12px; }

/* Buttons: one radius system (sharp), one contact intent, one label */

.btn {
  display: inline-block;
  padding: 15px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn:active { transform: translateY(1px) scale(.99); }

.btn-gold {
  background: var(--gold);
  color: var(--night);
}

.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  border: 1px solid var(--hairline-dark);
  color: var(--snow);
}

.btn-ghost:hover { border-color: var(--soft); }

.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-dark);
}

.top-grid {
  display: flex;
  align-items: center;
  gap: 12px 32px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand-mark { color: var(--gold); flex: none; }

.top-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.top-nav a,
.foot-nav a {
  color: var(--soft);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.top-nav a:hover,
.foot-nav a:hover {
  color: var(--snow);
  border-bottom-color: var(--gold);
}

/* Hero (dark bookend) */

.hero {
  background: linear-gradient(180deg, var(--night-2), var(--night) 62%);
  color: var(--snow);
  padding-top: clamp(64px, 9vh, 96px);
  padding-bottom: clamp(80px, 12vh, 128px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 4.9vw, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--snow);
}

/* Signature: gold hairline under the thesis */
.rule {
  width: 88px;
  height: 3px;
  margin: 26px 0 22px;
  background: var(--gold);
}

.rule-center { margin-inline: auto; }

.hero-sub {
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Spark sparkline (brand signature) */

.spark { margin: 0; }

.spark-svg {
  display: block;
  width: 100%;
  height: auto;
}

.spark-grid line {
  stroke: var(--hairline-dark);
  stroke-width: 1;
}

.spark-line {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.spark-area { opacity: 1; }

.spark-dot { fill: var(--gold); }

.spark-axis text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  fill: var(--soft);
}

.spark figcaption {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--soft);
}

/* Sections on Snow */

.offers-sec { padding-block: clamp(80px, 11vw, 136px) clamp(64px, 9vw, 112px); }

.offers-sec h2,
.split h2,
.quote p {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.section-sub {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--muted);
}

.offers { margin-top: clamp(40px, 6vw, 72px); }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--hairline);
}

.offer:last-child { padding-bottom: 0; }

.offer h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  padding-top: 2px;
}

.offer-body p:first-child { max-width: 52ch; }

.offer-meta {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--muted);
}

/* Trust strip */

.trust {
  border-block: 1px solid var(--hairline);
  padding-block: clamp(36px, 5vw, 52px);
}

.trust-line {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}

.marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 22px;
}

.marks svg {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--muted);
  transition: color .2s var(--ease);
}

.marks li:hover svg { color: var(--night); }

/* Split sections (approach / advisers): the only two image+text splits on the page */

.split { padding-block: clamp(80px, 11vw, 136px); }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.step + .step { margin-top: 30px; }

.step h3 {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding-top: 12px;
  border-top: 2px solid var(--gold);
}

.step p {
  margin-top: 8px;
  max-width: 46ch;
  color: var(--muted);
}

.split-media { margin: 0; }

.ph {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--night);
}

.ph-wide { aspect-ratio: 3 / 2; }

.ph-tall { aspect-ratio: 4 / 5; }

.split-media figcaption,
.portrait figcaption {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--muted);
}

.portraits {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}

.portrait-offset { margin-top: clamp(28px, 4vw, 56px); }

.split-copy > p {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--muted);
}

.facts { margin-top: 24px; }

.facts li {
  padding-left: 18px;
  position: relative;
  max-width: 44ch;
}

.facts li + li { margin-top: 10px; }

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

/* Quote (manifesto pull quote) */

.quote { padding-block: clamp(48px, 8vw, 104px); }

.quote-inner {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 6vw, 72px);
  text-align: center;
}

.quote blockquote { margin: 0; }

.quote blockquote p {
  max-width: 24ch;
  margin-inline: auto;
}

.quote figcaption {
  margin-top: 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
}

/* Contact (dark bookend) */

.contact {
  background: linear-gradient(180deg, var(--night), var(--night-2));
  color: var(--snow);
  padding-block: clamp(96px, 13vw, 152px);
  text-align: center;
}

.contact h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.06;
  color: var(--snow);
}

.contact .rule { margin-top: 26px; }

.contact-sub {
  max-width: 40ch;
  margin: 22px auto 0;
  color: var(--soft);
}

.cta-center { justify-content: center; margin-top: 34px; }

.contact-mail {
  margin-top: 22px;
  font-size: 1rem;
  color: var(--soft);
}

.contact-mail a {
  color: var(--snow);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.contact-mail a:hover { color: var(--gold-bright); }

.contact-note {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--soft);
}

/* Footer (dark) */

.foot {
  background: var(--night);
  border-top: 1px solid var(--hairline-dark);
  color: var(--soft);
  padding-block: 48px 40px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-mark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--snow);
}

.foot-sub { margin-top: 8px; font-size: .92rem; max-width: 34ch; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.foot-legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
  font-size: .85rem;
}

/* Mobile collapses: strict single column under 768px (variance 6 override) */

@media (max-width: 900px) {
  .hero-grid,
  .split-grid { grid-template-columns: 1fr; }

  .split-flip .split-media { order: 2; }

  .offer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-nav { gap: 20px; }

  .offer h3 { font-size: 1.3rem; }

  .cta-row .btn { flex: 1 1 auto; text-align: center; }

  .facts li { max-width: none; }
}

/* ==========================================================================
   Motion - MOTION_INTENSITY 6. Every animation below is gated behind
   (prefers-reduced-motion: no-preference). Base styles above are the
   reduced-motion / no-JS end state.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* Hero load choreography: rise */
  .rise {
    animation: rise .8s var(--ease) both;
    animation-delay: var(--d, 0s);
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  /* Signature: gold hairline draws under the thesis */
  .rule {
    transform: scaleX(0);
    transform-origin: left;
    animation: rule-grow .9s var(--ease) .3s forwards;
  }

  .rule-center { transform-origin: center; }

  @keyframes rule-grow {
    to { transform: scaleX(1); }
  }

  /* Signature: spark sparkline draws, area fades in after */
  .spark-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: spark-draw 1.7s var(--ease) .45s forwards;
  }

  @keyframes spark-draw {
    to { stroke-dashoffset: 0; }
  }

  .spark-area,
  .spark-dot {
    opacity: 0;
    animation: fade-in .6s ease-out forwards;
  }

  .spark-area { animation-delay: 1.9s; }

  .spark-dot-start { animation-delay: .45s; }

  .spark-dot-end { animation-delay: 2.15s; }

  @keyframes fade-in {
    to { opacity: 1; }
  }

  /* Scroll reveals: hidden only when JS is present; IO adds .is-inview */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .js .reveal.is-inview {
    opacity: 1;
    transform: none;
    transition:
      opacity .7s var(--ease) var(--rv, 0s),
      transform .7s var(--ease) var(--rv, 0s);
  }
}

/* Belt and braces: collapse any stray motion for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
