/* =========================================================
   Eppur — Brand design system
   Palette drawn from the Eppur identity.
   Wotfard for titles • Poppins for content.
   ========================================================= */

:root {
  /* Foundations */
  --bg:           #FFFFFF;
  --bg-2:         #F6F8FB;
  --bg-3:         #ECEFF5;
  --navy:         #0E1E3D;       /* eppur wordmark */
  --navy-2:       #1A2A52;
  --navy-soft:    #3C4A6E;
  --muted:        #6E7791;
  --rule:         rgba(14, 30, 61, 0.12);
  --rule-strong:  rgba(14, 30, 61, 0.28);

  /* Spectrum — drawn from the logo swoosh */
  --teal:         #1FBFB1;
  --cyan:         #1AA3D8;
  --blue:         #1E5FD0;
  --magenta:      #E5286E;
  --plum:         #A0227A;
  --orange:       #F4831F;

  /* Brand gradient — replicates the logo's flowing arc */
  --grad-spectrum:  linear-gradient(95deg,
                      var(--teal) 0%,
                      var(--cyan) 26%,
                      var(--blue) 48%,
                      var(--plum) 70%,
                      var(--magenta) 84%,
                      var(--orange) 100%);
  --grad-spectrum-soft: linear-gradient(95deg,
                      rgba(31, 191, 177, 0.16),
                      rgba(26, 163, 216, 0.16),
                      rgba(229, 40, 110, 0.16),
                      rgba(244, 131, 31, 0.16));

  /* Typography */
  --display: "Wotfard", "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max:    1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: var(--navy); text-decoration: none; }
a:hover { color: var(--magenta); }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.18; letter-spacing: -0.018em; }
h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  color: var(--navy-2);
  max-width: 60ch;
  letter-spacing: -0.005em;
}

.italic { font-style: italic; }

p { margin: 0 0 1em; max-width: 64ch; color: var(--navy-2); font-weight: 400; }

/* ----- Layout primitives ----- */
.wrap   { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.divider { height: 1px; background: var(--rule); margin: 0; border: 0; }
.spacer-l { height: clamp(48px, 6vw, 96px); }

.grid    { display: grid; gap: clamp(24px, 3vw, 56px); }
.grid-2  { grid-template-columns: 1fr 1fr; }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.6vw, 28px); }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
}

.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ----- Brand mark (inline SVG) ----- */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark svg { height: 28px; width: auto; display: block; }
.brand-mark .word {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--navy);
  line-height: 1;
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  font-size: 0.92rem;
}
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 40px); align-items: center; }
.nav-links a {
  color: var(--navy-2);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--grad-spectrum);
  border-radius: 2px;
}
.nav-cta {
  border: 1px solid var(--navy);
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.nav-cta:hover, .nav-cta--active { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav { height: 64px; }
}

/* ----- Hero ----- */
.hero {
  padding: clamp(80px, 10vw, 160px) 0 clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* soft spectrum glow */
  content: ""; position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: var(--grad-spectrum);
  opacity: 0.08;
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}
.hero h1 .accent {
  background: var(--grad-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap; align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 24px; margin-top: clamp(40px, 6vw, 80px);
  position: relative;
}
.hero-meta-item .num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1; display: block;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.hero-meta-item .num .plus { color: var(--magenta); }
.hero-meta-item .label {
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 10px; display: block; font-weight: 500;
}

/* ----- Cards ----- */
.card {
  border-top: 2px solid var(--navy);
  padding-top: 28px;
  position: relative;
}
.card .num-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--navy-2); }

.card--accent-teal    { border-top-color: var(--teal); }
.card--accent-magenta { border-top-color: var(--magenta); }
.card--accent-orange  { border-top-color: var(--orange); }
.card--accent-cyan    { border-top-color: var(--cyan); }
.card--accent-plum    { border-top-color: var(--plum); }
.card--accent-blue    { border-top-color: var(--blue); }

/* ----- Pull / quote ----- */
.pull {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 22ch;
  font-style: italic;
}
.pull--block {
  border-left: 3px solid;
  border-image: var(--grad-spectrum) 1;
  padding-left: clamp(20px, 3vw, 40px);
}

/* ----- Geography list ----- */
.geo-row {
  display: grid;
  grid-template-columns: 56px 1.5fr 2fr 110px 110px;
  gap: 24px; align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.96rem;
  transition: background .2s;
}
.geo-row:last-child { border-bottom: 1px solid var(--rule); }
.geo-row:hover { background: var(--bg-2); }
.geo-row .geo-num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; }
.geo-row .geo-name { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.025em; }
.geo-row .geo-desc { color: var(--navy-2); }
.geo-row .geo-tag {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.geo-row .geo-mw {
  font-family: var(--display); font-weight: 500;
  font-size: 1.2rem; text-align: right; letter-spacing: -0.02em;
  color: var(--navy);
}
@media (max-width: 880px) {
  .geo-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "num mw"
      "name name"
      "desc desc"
      "tag tag";
  }
  .geo-row .geo-num { grid-area: num; }
  .geo-row .geo-name { grid-area: name; }
  .geo-row .geo-desc { grid-area: desc; }
  .geo-row .geo-tag { grid-area: tag; }
  .geo-row .geo-mw { grid-area: mw; text-align: right; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: clamp(64px, 8vw, 112px) 0 32px;
  margin-top: clamp(64px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px; background: var(--grad-spectrum);
}
.site-footer h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.site-footer h2 .accent {
  background: var(--grad-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.site-footer .lede { color: rgba(255, 255, 255, 0.74); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 56px;
  margin-top: 64px;
}
.footer-grid h4 {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); }
.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 56px; padding-top: 24px;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.56);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ----- Buttons / links ----- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  background: var(--navy); color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--navy);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  font-family: var(--sans);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--spectrum {
  background: var(--grad-spectrum);
  border-color: transparent;
  color: #fff;
}
.btn--spectrum:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

.link-inline {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-inline:hover { color: var(--magenta); border-color: var(--magenta); }

/* ----- Mark / inline emphasis ----- */
.mark {
  background: linear-gradient(transparent 60%, rgba(31, 191, 177, 0.32) 60%);
  padding: 0 2px;
}
.mark--magenta { background: linear-gradient(transparent 60%, rgba(229, 40, 110, 0.28) 60%); }
.mark--orange  { background: linear-gradient(transparent 60%, rgba(244, 131, 31, 0.32) 60%); }

/* ----- Page intros ----- */
.page-intro {
  padding: clamp(96px, 12vw, 180px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-intro::before {
  content: ""; position: absolute;
  top: -30%; right: -10%;
  width: 50vw; height: 50vw;
  background: var(--grad-spectrum);
  opacity: 0.06;
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}
.page-intro h1 { max-width: 18ch; position: relative; }
.page-intro .lede { margin-top: clamp(24px, 3vw, 40px); position: relative; }

/* ----- Number list (manifesto-style) ----- */
.principles { counter-reset: principle; }
.principle {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: clamp(20px, 3vw, 56px);
  padding: clamp(36px, 5vw, 72px) 0;
  border-top: 1px solid var(--rule);
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle::before {
  counter-increment: principle;
  content: counter(principle, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  padding-top: 10px;
}
.principle h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
@media (max-width: 880px) {
  .principle { grid-template-columns: 1fr; gap: 14px; }
  .principle::before { padding-top: 0; }
}

/* ----- Insights cards ----- */
.insight {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 2.6fr 1fr;
  gap: 32px; align-items: baseline;
  transition: padding-left .25s;
}
.insight:last-child { border-bottom: 1px solid var(--rule); }
.insight:hover { padding-left: 12px; }
.insight .meta {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.insight h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.insight .read {
  font-size: 0.86rem; text-align: right; color: var(--muted);
  letter-spacing: 0.04em; font-weight: 500;
}
@media (max-width: 880px) {
  .insight { grid-template-columns: 1fr; gap: 8px; }
  .insight .read { text-align: left; }
}

/* ----- Form ----- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row--full { grid-template-columns: 1fr; }
.form-row label {
  display: block;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0 14px;
  font-family: var(--sans); font-size: 1.05rem;
  color: var(--navy); outline: none;
  transition: border-color .25s;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--magenta);
}
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }

/* ----- Misc ----- */
.tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 5px 12px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font-weight: 500;
}
.tag--teal    { color: var(--teal); border-color: var(--teal); }
.tag--magenta { color: var(--magenta); border-color: var(--magenta); }
.tag--orange  { color: var(--orange); border-color: var(--orange); }
.tag--cyan    { color: var(--cyan); border-color: var(--cyan); }

.scroll-hint {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint .line { width: 40px; height: 1px; background: var(--rule-strong); }

.bg-navy {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bg-navy::before {
  content: ""; position: absolute;
  bottom: -30%; left: -10%;
  width: 60vw; height: 60vw;
  background: var(--grad-spectrum);
  opacity: 0.12;
  filter: blur(100px);
  pointer-events: none;
  border-radius: 50%;
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p, .bg-navy .lede { color: rgba(255, 255, 255, 0.78); }
.bg-navy .eyebrow { color: rgba(255, 255, 255, 0.55); }
.bg-navy .divider { background: rgba(255, 255, 255, 0.16); }
.bg-navy > .wrap { position: relative; }

/* Etched rule with label */
.section-label {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-label .line { height: 1px; background: var(--rule); }
.section-label .num {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--muted); letter-spacing: 0.1em;
}
.section-label .label {
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* Subtle reveal on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .15s; }
.rise-3 { animation-delay: .25s; }
.rise-4 { animation-delay: .35s; }

/* Spectrum bar — used as section divider */
.spectrum-bar {
  height: 4px; width: 64px;
  background: var(--grad-spectrum);
  border-radius: 4px;
  border: 0; margin: 0;
}
