/* NZ AI Infrastructure Index: "Wire" design language.
   Utility bar + ticker, masthead, navy/cream editorial chrome matching the
   Certified Strategic NZ Index design of record. Newsreader serif for display
   type, Hanken Grotesk for body/UI text, amber as a small signal accent, blue
   pill buttons/links on light surfaces.
   Copy is locked (NZ_MVP_COPY_DECK.md); only markup wrappers and styling change. */

:root {
  --navy: #0B2239;
  --navy-deep: #07182A;
  --amber: #FFC53D;
  --amberink: #B8860B;
  --ink: #14120E;
  --muted: #5A5346;
  --faint: #8C8577;
  --paper: #FAF7F1;
  --canvas: #EAECF1;
  --hair: #E2E4E9;
  --blue: #2f374b;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--paper); }

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--amberink); text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.serif, h1, h2, .stat-figure, .masthead-title, .footer-brand-name {
  font-family: 'Newsreader', Georgia, serif;
}

h1, h2 { font-weight: 600; color: var(--ink); margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 26px; padding-right: 26px; }

/* ---------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15.5px; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 800; }
.btn-blue:hover { color: var(--amber); text-decoration: none; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); font-size: 12.5px; }
.btn-dark:hover { color: var(--amber); text-decoration: none; }
.btn-submit { width: 100%; height: 50px; font-size: 14.5px; margin-top: 4px; }

/* ---------------------------------- utility bar + ticker */
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(180,35,42,0.5); } 100% { box-shadow: 0 0 0 6px rgba(180,35,42,0); } }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.utility-bar { background: var(--navy); color: #fff; }
.utility-inner {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.utility-tracking { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--amber); }
.live-dot { width: 7px; height: 7px; border-radius: 9999px; background: #B4232A; animation: livePulse 1.8s infinite; flex: none; }
.utility-date { color: #C3CDD9; }
.utility-right { margin-left: auto; display: flex; gap: 16px; color: #C3CDD9; }
.utility-right a { color: inherit; text-decoration: none; }
.utility-right a:hover { color: var(--amber); text-decoration: underline; }

.ticker-wrap { border-top: 1px solid rgba(255,255,255,0.10); overflow: hidden; max-width: 100vw; }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 38s linear infinite; }
.ticker-set { display: flex; }
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  white-space: nowrap;
}
.ticker-tk { font-weight: 800; color: #fff; letter-spacing: 0.03em; }
.ticker-px { color: #9FB0C2; }
.ticker-chg { font-weight: 700; }
.ticker-chg.up { color: #3FBF93; }
.ticker-chg.down { color: #E06A70; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .live-dot { animation: none; }
}

/* ---------------------------------- masthead / nav */
.masthead { border-bottom: 2px solid var(--ink); background: var(--paper); }
.masthead-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px 16px;
}
.logo-mark { fill: var(--amber); flex: none; }
.brand-block { min-width: 0; }
.masthead-title {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  color: var(--ink);
  line-height: 1;
}
.masthead-title .i { font-style: italic; }
a.masthead-title--link { display: block; }
a.masthead-title--link:hover { color: var(--amberink); text-decoration: none; }
.masthead-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 5px;
}
.masthead-sub a { color: inherit; text-decoration: none; }
.masthead-sub a:hover { color: var(--amberink); text-decoration: underline; }
.masthead-tags {
  margin-left: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.masthead-cta { margin-left: auto; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 11px 0;
  border-top: 1px solid var(--hair);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.nav-row a { color: var(--muted); }
.nav-row a:hover { color: var(--amberink); text-decoration: none; }
.nav-active { color: var(--ink); border-bottom: 2px solid var(--amber); padding-bottom: 3px; }
.nav-status { margin-left: auto; color: var(--faint); font-weight: 600; }

/* ---------------------------------- section rhythm */
main { display: block; }
section { padding: 60px 0; border-bottom: 1px solid var(--hair); }

.rule {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 11px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.rule-link {
  margin-left: auto;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--blue);
  max-width: 100%;
}

/* ---------------------------------- hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--hair); padding: 44px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; }
.hero-copy { border-left: 3px solid var(--amber); padding-left: 22px; }
.hero-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 2.875rem);
  line-height: 1.06;
  letter-spacing: -1.1px;
  max-width: 20ch;
  margin: 0 0 18px;
}
.dek { font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; line-height: 1.45; color: var(--muted); max-width: 35ch; margin: 0 0 24px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-trust { font-family: 'Hanken Grotesk', sans-serif; font-size: 12px; line-height: 1.5; color: var(--faint); max-width: 280px; }

.hero-panel { background: var(--navy); border-radius: 12px; padding: 30px 32px 26px; color: #fff; }
.hero-panel-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero-stats { display: flex; flex-direction: column; }
.hero-stat { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat-value { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 30px; color: #fff; min-width: 104px; letter-spacing: -0.5px; }
.hero-stat-label { font-family: 'Hanken Grotesk', sans-serif; font-size: 13px; line-height: 1.5; color: #A9B6C6; }
.hero-panel-note { font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; color: #7E8EA0; margin-top: 14px; }

/* ---------------------------------- stat strip */
.stats { background: var(--canvas); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-figure { font-size: 2.35rem; font-weight: 600; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.stat-label { font-size: 14px; line-height: 1.45; color: var(--muted); }
.stat-source { font-size: 12.5px; font-weight: 700; margin-top: auto; padding-top: 12px; color: var(--blue); }

/* ---------------------------------- what the index will cover */
.coverage { background: var(--paper); }
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.coverage-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.coverage-num {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--amberink);
  min-width: 26px;
}
.coverage-title { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--ink); margin-bottom: 5px; }
.coverage-body { font-family: 'Hanken Grotesk', sans-serif; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------- what we're watching */
.watching { background: var(--navy); border-top: 3px solid var(--amber); margin-top: 44px; color: #fff; }
.watch-eyebrow-row { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.watch-rule { width: 30px; height: 2px; background: var(--amber); border-radius: 9999px; flex: none; }
.watch-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.watch-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 0 26px;
  max-width: 640px;
}
.watch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.watch-item { border-top: 2px solid rgba(255,255,255,0.16); padding-top: 16px; }
.watch-num { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 34px; color: var(--amber); line-height: 1; margin-bottom: 12px; }
.watch-body { font-family: 'Hanken Grotesk', sans-serif; font-size: 14px; line-height: 1.55; color: #D6DEE8; margin: 0; }
.watch-src { display: inline-block; margin-top: 8px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 11px; color: var(--amber); }
.watch-outro { display: inline-block; margin-top: 26px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--amber); }

/* ---------------------------------- register (loudest CTA) */
.register { background: var(--paper); }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.register-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.register h2 { font-size: 2.125rem; line-height: 1.1; letter-spacing: -0.7px; margin: 0 0 16px; }
.register-body { font-family: 'Newsreader', Georgia, serif; font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; max-width: 440px; }

.sponsors { border-top: 1px solid var(--hair); padding-top: 22px; }
.sponsors-heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.sponsors-body { font-family: 'Hanken Grotesk', sans-serif; font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; max-width: 440px; }
.sponsors-contact { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--blue); margin: 0; }

.register-card { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 30px 30px 28px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row label .req { color: #B4232A; }
.form-row input[type="email"], .form-row input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--hair);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14.5px;
  outline: none;
}
.form-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 2px;
  margin-bottom: 14px;
}
.form-row.consent input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--amberink); flex: none; }
.form-row.consent span { font-family: 'Hanken Grotesk', sans-serif; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.form-msg { font-size: 12.5px; margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; }
.form-msg:empty { display: none; }
.form-msg.success { color: #1E6B4F; background: #E7F5EE; border: 1px solid #C3E6D6; }
.form-msg.error { color: #B4232A; background: #FBE7E7; border: 1px solid #F0C7C7; }

/* ---------------------------------- /about prose */
main.prose { padding: 68px 0; }
.prose h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -.6px;
  margin: 0 0 30px;
}
.prose h1::before {
  content: '';
  width: 5px;
  height: 1em;
  background: var(--amber);
  border-radius: 9999px;
  flex: none;
}
.prose p { max-width: 68ch; color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 20px; }
.prose a { font-weight: 700; }

/* ---------------------------------- footer */
footer { background: var(--navy); border-top: 3px solid var(--amber); color: #7E8EA0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 38px 26px 30px;
}
.footer-brand { max-width: 420px; }
.footer-brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand-name { font-weight: 600; font-size: 17px; color: #fff; }
.disclaimer { font-family: 'Hanken Grotesk', sans-serif; font-size: 12.5px; line-height: 1.65; color: #8FA0B2; margin: 0; }
.footer-col-heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-family: 'Hanken Grotesk', sans-serif; font-size: 13px; }
.footer-links a { color: #C3CDD9; }
.footer-links a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 26px; text-align: center; }
.copyright { font-family: 'Hanken Grotesk', sans-serif; font-size: 11.5px; color: #6B7686; margin: 0; }

/* ---------------------------------- insights page */
.insights-hero { background: var(--paper); border-bottom: 1px solid var(--hair); padding: 46px 0 40px; }
.insights-hero-inner { border-left: 3px solid var(--amber); padding-left: 22px; max-width: 840px; }
.insights-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.insights-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -1px; margin: 0 0 16px; max-width: 22ch; }
.insights-hero .dek { max-width: 620px; margin: 0; }

.insights-body { background: var(--paper); padding: 42px 0 24px; }
.insights-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }

.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.insights-card-pending {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
}
.insights-card-media {
  background: var(--canvas);
  height: 180px;
  position: relative;
}
.insights-card-body {
  padding: 24px 22px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border-top: 1px solid var(--hair);
}
.insights-pending-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--canvas);
  color: var(--muted);
  border: 1px solid var(--hair);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 9999px;
}

.insights-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 22px; }
.sidebar-card-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 10px;
}
.sidebar-card-body { font-family: 'Hanken Grotesk', sans-serif; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.sidebar-card-link { display: inline-block; font-weight: 700; font-size: 13px; color: var(--blue); }
.sidebar-card--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.sidebar-card--navy .sidebar-card-heading { color: #fff; }
.sidebar-card--navy .sidebar-card-body { color: #A9B6C6; }
.sidebar-card--navy .sidebar-card-link { color: var(--amber); }

/* ---------------------------------- responsive: layout collapse */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.375rem); max-width: none; }
  .dek { font-size: 17px; max-width: none; }
  .coverage-grid { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .insights-layout { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- responsive: spacing tightening */
@media (max-width: 700px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  section { padding: 44px 0; }
  .hero { padding: 28px 0 30px; }

  .utility-inner { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 6px 14px; }
  .utility-right { margin-left: 0; flex-basis: 100%; gap: 12px; }
  .hide-sm { display: none; }

  .masthead-top { flex-wrap: wrap; padding: 16px 18px 12px; gap: 14px; }
  .masthead-tags { margin-left: 0; padding-left: 0; border-left: none; flex-direction: row; gap: 14px; }
  .masthead-cta { margin-left: 0; width: 100%; }
  .masthead-cta .btn { display: block; text-align: center; }

  .nav-row { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 18px; white-space: nowrap; }

  .stat-grid { grid-template-columns: 1fr; }
  .stat-figure { font-size: 2rem; }

  .register h2 { font-size: 1.5rem; }
  .form-row-pair { grid-template-columns: 1fr; }
}

html, body { overflow-x: hidden; }
