/* CHAOS Disruption — chaosdisruption.com
   Palette is drawn from the logo: deep ink, storm violet, eye blue, cyan spark. */

:root {
  --ink: #1b0f3b;
  --violet: #6a1bb0;
  --blue: #0a74d6;
  --cyan: #12d2f0;
  --paper: #ffffff;
  --mist: #eef3fb;
  --text: #2a2448;
  --muted: #5b5878;
  --line: #dde3f0;

  --storm: linear-gradient(120deg, var(--violet) 0%, var(--blue) 62%, var(--cyan) 100%);
  /* For text: ends on a deeper cyan so every letter keeps 3:1+ on white */
  --storm-text: linear-gradient(120deg, var(--violet) 0%, var(--blue) 62%, #0788a8 100%);

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 10px;
}

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

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

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

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

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

/* Long words break rather than run off the screen when text is enlarged */
h1, h2, h3, p, a { overflow-wrap: break-word; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.connect :focus-visible,
.site-footer :focus-visible,
.skip:focus-visible { outline-color: var(--cyan); }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(18, 210, 240, 0);
}
.btn-primary:hover { background: var(--violet); box-shadow: 0 8px 24px -8px rgba(106, 27, 176, .6); }

.btn-quiet { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-quiet:hover { border-color: var(--violet); color: var(--violet); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cyan); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-cta):hover { color: var(--violet); }

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.nav-cta:hover { background: var(--violet); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

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

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }

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

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 28px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-media { margin: 0; }

/* The video is shot on white; multiply keeps its edges invisible on the page. */
.hero-video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.025) saturate(1.05); }
.hero-still { display: none; }

.hero-media figcaption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  font-family: var(--display);
  font-weight: 500;
  color: var(--blue);
}

.video-toggle {
  font: 500 .9rem var(--body);
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
}
.video-toggle:hover { color: var(--violet); border-color: var(--violet); }

/* ---------- The acronym ---------- */

.meaning {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.meaning-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.meaning-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.meaning-head p { color: var(--muted); max-width: 32em; }

.acronym {
  list-style: none;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  --initial: clamp(4.5rem, 12vw, 9.5rem);
}

.acronym li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  column-gap: 40px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.term { display: flex; align-items: baseline; min-width: 0; }
.acronym li:last-child { border-bottom: 0; }

.initial {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--initial);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--storm-text);
  background-size: 100% calc(var(--initial) * 5.2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .04em;
}
/* One continuous gradient runs down the column of initials */
.acronym li:nth-child(1) .initial { background-position: 0 0; }
.acronym li:nth-child(2) .initial { background-position: 0 25%; }
.acronym li:nth-child(3) .initial { background-position: 0 50%; }
.acronym li:nth-child(4) .initial { background-position: 0 75%; }
.acronym li:nth-child(5) .initial { background-position: 0 100%; }

.rest {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  margin-left: .04em;
  min-width: 0;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.gloss { color: var(--muted); max-width: 30em; }

.belief {
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 28em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
}

/* ---------- Approach ---------- */

.approach {
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--mist);
}

.approach h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 14em; }

.section-lead { margin-top: 20px; color: var(--muted); max-width: 36em; }

.path {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  position: relative;
}

/* The line that carries you from one step to the next */
.path::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 0;
  height: 2px;
  background: var(--storm);
}

.path li { position: relative; }

.stop {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--violet);
  font-family: var(--display);
  font-weight: 700;
  color: var(--violet);
  position: relative;
}
.path li:nth-child(2) .stop { border-color: var(--blue); color: var(--ink); }
.path li:nth-child(3) .stop { border-color: var(--cyan); color: var(--ink); background: var(--cyan); }

.path h3 { margin-top: 28px; font-size: 1.9rem; }
.path-line { margin-top: 6px; font-weight: 600; color: var(--ink); }
.path p:last-child { margin-top: 12px; color: var(--muted); max-width: 26em; }

/* ---------- Leadership ---------- */

.leader { padding: clamp(72px, 10vw, 128px) 0; }

.leader-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.role {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--violet);
}

.leader h2 {
  margin-top: 12px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.035em;
}

.bio-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
}
.leader-bio p + p { margin-top: 20px; color: var(--muted); }

.text-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 28px;
  font-weight: 600;
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--cyan);
}
.text-link:hover { color: var(--blue); }

/* ---------- Connect: the eye of the storm ---------- */

.connect {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #e9ebf8;
  text-align: center;
  padding: clamp(96px, 14vw, 176px) 0;
}

.connect-storm {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    linear-gradient(rgba(27, 15, 59, .62), rgba(27, 15, 59, .62)),
    radial-gradient(ellipse 38% 46% at 50% 50%, rgba(27, 15, 59, .6) 0%, rgba(27, 15, 59, .2) 100%),
    url("Assets/hurricane.webp") center / cover no-repeat;
  filter: saturate(.6) hue-rotate(20deg) blur(1.5px);
  opacity: .55;
}
.connect::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(106, 27, 176, .45), rgba(10, 116, 214, .25) 60%, rgba(18, 210, 240, .15));
  mix-blend-mode: screen;
}

.connect h2 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.035em;
  max-width: 11em;
  margin-inline: auto;
}

.connect-inner > p {
  margin: 24px auto 0;
  max-width: 34em;
  font-size: 1.15rem;
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.copy-status { margin: 18px auto 0; max-width: 34em; min-height: 1.6em; font-size: .95rem; color: var(--cyan); }

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

.site-footer { background: #130a2c; color: #a9a7c4; font-size: .9rem; padding: 32px 0; }
.site-footer strong { color: #fff; font-family: var(--display); font-weight: 700; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(27, 15, 59, .35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; max-width: 640px; margin-inline: auto; width: 100%; }

  .meaning-head,
  .leader-grid { grid-template-columns: minmax(0, 1fr); }

  .acronym li { grid-template-columns: minmax(0, 1fr); padding: 8px 0 18px; }
  .gloss { margin-top: 2px; }

  .path { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .path::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--violet), var(--blue), var(--cyan)); }
  .path li { padding-left: 72px; }
  .stop { position: absolute; left: 0; top: 0; }
  .path h3 { margin-top: 4px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav-logo img { height: 40px; }
  .lead { font-size: 1.08rem; }
  .actions .btn { flex: 1 1 100%; }
  .acronym { --initial: 4rem; }
  .gloss { font-size: .98rem; }
  .connect-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-still { display: block; }
  * { transition: none !important; }
}
