/*
 * Augura Insurance mini-site. Colours sampled from the roll-up banner
 * (Kakemono_Augura_800x2300mm.pdf). The banner sets its text in Hagrid and
 * Proxima Nova, both paid fonts; Urbanist (SIL Open Font License) stands in for
 * both.
 */

@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/Urbanist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #07071c;
  --card: rgba(29, 28, 71, 0.86);
  --card-hi: rgba(35, 35, 94, 0.94);
  --disc: #2b396e;
  --cyan: #5de0e6;
  --sun: #ffd166;
  --alert: #ff5a5f;
  --white: #ffffff;
  --text: #d5d5d6;
  --muted: #9f9eaf;
  --line: rgba(255, 255, 255, 0.3);
  --radius: 18px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
}

/* The banner's gradient: near black at the top left, indigo at the bottom right.
   On a fixed layer rather than `background-attachment: fixed`, which mobile
   Safari ignores. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 70% at 100% 100%, rgba(38, 36, 154, 0.9) 0%, rgba(32, 31, 133, 0) 65%),
    linear-gradient(165deg, #010108 0%, #07071c 35%, #121150 72%, #201f85 100%);
}

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

a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h2,
h3,
h4 {
  color: var(--white);
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--white);
}

.ic {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ext .ic {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.2em;
  vertical-align: -0.05em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  /* Inline only: sections set their own top padding on the same element. */
  padding-inline: 24px;
}

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

/* ---------- Navigation: four links, the wordmark, four links ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  max-width: 1240px;
  margin: 12px auto 0;
  padding: 0 16px;
}

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 7, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links.right {
  justify-content: flex-end;
}

.nav-links a,
.nav-panel a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-panel a:hover {
  color: var(--cyan);
}

.nav-logo img {
  display: block;
  height: 26px;
  width: auto;
}

.nav-toggle {
  display: none;
  justify-self: end;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle .ic {
  width: 26px;
  height: 26px;
}

.nav-panel {
  display: none;
}

@media (max-width: 1020px) {
  .nav-bar {
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel.open {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(7, 7, 28, 0.94);
  }

  .nav-panel a {
    padding: 8px 0;
    font-size: 17px;
  }
}

/* ---------- Hero: the top of the banner ---------- */

.hero {
  padding: 96px 0 24px;
  text-align: center;
}

.hero h1 {
  margin: 0;
}

.hero h1 img {
  width: min(860px, 94%, 100% - 32px);
}

.subtitle {
  margin: 22px 0 0;
  color: #e9e9ee;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.rule {
  width: 170px;
  height: 3px;
  margin: 30px auto 40px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.85;
}

.question {
  position: relative;
  display: inline-block;
  max-width: 760px;
  margin: 0 16px;
  padding: 26px clamp(56px, 8vw, 96px);
  border-radius: 999px;
  background: rgba(43, 57, 110, 0.38);
  color: var(--white);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.question::before,
.question::after {
  position: absolute;
  color: var(--cyan);
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 900;
  line-height: 1;
}

.question::before {
  content: "\201C";
  top: 12px;
  left: clamp(14px, 3vw, 34px);
}

.question::after {
  content: "\201D";
  right: clamp(14px, 3vw, 34px);
  bottom: -18px;
}

@media (max-width: 640px) {
  .wide-only {
    display: none;
  }
}

.cohort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 8px 18px;
  border: 1px solid rgba(93, 224, 230, 0.5);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- Section headings: the banner's "— SCENARIO —" ---------- */

section {
  padding: 88px 0 0;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  color: var(--cyan);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.kicker::before,
.kicker::after {
  content: "";
  flex: none;
  width: min(150px, 14vw);
  height: 2px;
  background: var(--cyan);
}

.lead {
  max-width: 780px;
  margin: 14px auto 44px;
  color: var(--white);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  text-align: center;
}

.sub {
  margin: 64px 0 24px;
  color: var(--white);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
}

/* ---------- Cards, icon discs, numbered badges ---------- */

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card.hi {
  border: 2px solid var(--cyan);
  background: var(--card-hi);
}

.disc {
  display: grid;
  flex: none;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background: var(--disc);
  color: var(--white);
}

.disc .ic {
  width: 32px;
  height: 32px;
}

.disc.sm {
  width: 52px;
  height: 52px;
  border-width: 2px;
}

.disc.sm .ic {
  width: 24px;
  height: 24px;
}

.disc.sun {
  color: var(--sun);
}

.badge {
  position: absolute;
  top: -14px;
  left: -14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Mission ---------- */

.mission {
  padding-top: 72px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 16px;
  border-radius: 14px;
  background: var(--card);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.pillar .disc {
  width: 56px;
  height: 56px;
  border: 0;
}

.pillar .disc .ic {
  width: 26px;
  height: 26px;
}

.tagline {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 2px solid var(--cyan);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

/* Items break between each other, never inside. */
.tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
}

.tagline span {
  white-space: nowrap;
}

.tagline span + span::before {
  content: "\2022";
  margin: 0 14px;
}

@media (max-width: 640px) {
  .tagline {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 8px 24px;
  }

  .tagline span + span::before {
    content: none;
  }
}

/* ---------- Space weather ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

.intro .eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro h3 {
  margin-bottom: 16px;
  font-size: 30px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.infographic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border: 2px dashed rgba(93, 224, 230, 0.55);
  border-radius: var(--radius);
  background: rgba(29, 28, 71, 0.6);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.phenomenon {
  padding: 0;
  overflow: hidden;
}

.phenomenon img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.phenomenon .body {
  padding: 22px 26px 26px;
}

.tag {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.phenomenon h4 {
  margin: 4px 0 10px;
  font-size: 21px;
}

/* ---------- Impacts ---------- */

.exposure {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exposure header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.exposure h4 {
  font-size: 24px;
}

.label {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report {
  display: flex;
  gap: 20px;
}

.cover {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 78px;
  height: 104px;
  border: 1px dashed rgba(93, 224, 230, 0.55);
  border-radius: 8px;
  background: rgba(43, 57, 110, 0.5);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

img.cover {
  border: 1px solid var(--line);
  object-fit: cover;
}

.cover .ic {
  width: 26px;
  height: 26px;
}

.report h4 {
  margin: 2px 0 6px;
  font-size: 19px;
}

.report .year {
  color: var(--cyan);
  font-weight: 800;
}

.report p {
  font-size: 16px;
}

@media (max-width: 640px) {
  .report {
    gap: 14px;
  }

  .cover {
    width: 56px;
    height: 76px;
  }
}

.source {
  color: var(--muted);
}

/* ---------- Lloyd's Lab ---------- */

.lab {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .lab {
    grid-template-columns: minmax(0, 1fr);
  }
}

blockquote {
  margin: 0;
}

.quote-card {
  padding: 34px 32px 30px;
}

.quote-card > .ic {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--cyan);
}

.quote-card p {
  color: var(--white);
  font-size: 19px;
  line-height: 1.55;
}

.quote-card figcaption {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
}

.quote-card figcaption strong {
  display: block;
  font-size: 17px;
}

.kicker + .card {
  margin-top: 36px;
}

/* ---------- Steps: value chain and scenario ---------- */

.steps {
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
}

.step h4 {
  margin-bottom: 8px;
  font-size: 23px;
}

.step p {
  font-size: 17px;
}

.step .actor {
  flex: none;
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 200px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.step .actor small {
  display: block;
  color: var(--text);
  font-weight: 500;
}

.flow {
  display: block;
  width: 30px;
  height: 30px;
  margin: 10px auto;
  color: var(--cyan);
  stroke-width: 3;
  transform: rotate(180deg);
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.pair .step {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pair .step .actor {
  width: auto;
  padding: 14px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}

.disc.alert {
  position: relative;
}

.disc.alert::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) 9px 7px / 3px 12px no-repeat,
    linear-gradient(var(--white), var(--white)) 14px 7px / 3px 12px no-repeat,
    var(--alert);
}

@media (max-width: 700px) {
  .step {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px 26px;
  }

  .step .actor {
    width: auto;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    place-items: start;
    text-align: left;
  }

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

  .pair .step {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- Domains ---------- */

.domain {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
}

.domain + .domain {
  margin-top: 22px;
}

.domain > header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.domain > header h3 {
  font-size: 24px;
}

@media (max-width: 760px) {
  .domain {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .domain > header {
    flex-direction: row;
    align-items: center;
  }
}

.events {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.events li {
  padding-left: 18px;
  border-left: 2px solid rgba(93, 224, 230, 0.6);
}

.when {
  display: block;
  margin-bottom: 2px;
  color: var(--cyan);
  font-weight: 800;
}

.doc-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.doc-list li + li {
  margin-top: 6px;
}

/* ---------- Stakeholders ---------- */

.who {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
}

.note {
  max-width: 820px;
  margin: 32px auto 0;
  text-align: center;
}

/* ---------- Contact ---------- */

.contact {
  padding: 48px 32px;
  text-align: center;
}

.contact .mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  text-decoration: none;
}

.contact .mail .ic {
  color: var(--cyan);
}

.contact .mail:hover {
  color: var(--cyan);
}

/* The address cannot break, so on phones it gets its own line and a smaller size. */
@media (max-width: 640px) {
  .contact {
    padding: 40px 20px;
  }

  .contact .mail {
    flex-direction: column;
    gap: 8px;
    font-size: 19px;
  }
}

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

.site-footer {
  margin-top: 110px;
  padding: 44px 0 56px;
  border-top: 2px solid var(--cyan);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.site-footer .divider {
  width: 1px;
  height: 100%;
  background: var(--line);
}

.wordmark {
  display: block;
  width: 260px;
}

.motto {
  margin: 14px 0 6px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer .links a {
  color: var(--white);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--cyan);
}

.site-footer .links span {
  margin: 0 10px;
}

@media (max-width: 640px) {
  .site-footer .links span {
    display: none;
  }

  .site-footer .links a {
    display: block;
  }
}

.supported {
  text-align: center;
}

.supported p {
  margin-bottom: 18px;
  color: var(--text);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 30px;
}

.logos img {
  width: auto;
  height: 44px;
}

.logos img.wide {
  height: 34px;
}

@media (max-width: 860px) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .site-footer .divider {
    display: none;
  }

  .wordmark {
    margin: 0 auto;
  }
}
