/* AMAW Network — minimalist one-page website */

:root {
  --navy: #081b33;
  --navy-soft: #102944;
  --blue: #274e71;
  --paper: #f2f0ea;
  --white: #ffffff;
  --ink: #102030;
  --muted: #66717c;
  --line: rgba(16, 32, 48, 0.16);
  --line-light: rgba(255, 255, 255, 0.20);
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  height: 82px;
  color: var(--white);
  transition: background 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled {
  background: rgba(8, 27, 51, 0.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  width: 230px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 13px;
  letter-spacing: .025em;
}

.site-nav a {
  text-decoration: none;
  opacity: .78;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { opacity: 1; }

.site-nav .nav-contact {
  border: 1px solid rgba(255,255,255,.36);
  padding: 10px 17px;
  opacity: 1;
}

.menu-button {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: white;
}

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(69,117,157,.20), transparent 27%),
    linear-gradient(145deg, #07182d 0%, #0a213d 62%, #07182d 100%);
  color: var(--white);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, transparent 2%, black 24%, black 80%, transparent);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
}

.hero-orbit-one {
  width: 590px;
  height: 590px;
  right: -90px;
  top: 80px;
}

.hero-orbit-one::before { top: 105px; left: 73px; }

.hero-orbit-two {
  width: 370px;
  height: 370px;
  right: 55px;
  top: 188px;
}

.hero-orbit-two::before { bottom: 18px; right: 104px; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(180px, 23vh, 235px);
}

.eyebrow,
.section-number,
.card-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero-organization {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.92);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .03em;
}

.hero-organization span {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
}

.eyebrow {
  color: rgba(255,255,255,.59);
  margin-bottom: 25px;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(52px, 7.2vw, 100px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 400;
}

.hero-intro {
  max-width: 590px;
  margin: 35px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 33px;
  margin-top: 38px;
}

.button {
  display: inline-block;
  padding: 14px 21px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.text-link-light {
  margin-top: 0;
  color: rgba(255,255,255,.82);
}

.hero-foot {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 31px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(255,255,255,.54);
  font-size: 11px;
  letter-spacing: .05em;
}

/* Common sections */
.section {
  padding: 142px 0;
}

.section-light { background: #f8f7f3; }
.section-paper { background: var(--paper); }
.section-ink {
  background: var(--navy);
  color: var(--white);
}

.section-number { color: #75808a; }
.section-number-light { color: rgba(255,255,255,.43); }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 70px;
}

.statement {
  max-width: 760px;
}

.statement h2,
.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.04em;
}

.statement h2 {
  max-width: 690px;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08;
}

.statement p {
  max-width: 640px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 70px;
  margin-bottom: 76px;
}

.section-heading h2 {
  font-size: clamp(47px, 6.1vw, 78px);
  line-height: 1.03;
}

.section-heading-dark h2 { color: var(--ink); }

/* Research */
.research-list {
  border-top: 1px solid var(--line-light);
}

.research-item {
  display: grid;
  grid-template-columns: 70px 1.25fr 1fr;
  gap: 30px;
  align-items: baseline;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--line-light);
}

.research-index {
  color: rgba(255,255,255,.38);
  font-size: 12px;
}

.research-item h3 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(24px, 2.5vw, 35px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.research-item p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  line-height: 1.65;
}

/* Programmes */
.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.programme-card {
  min-height: 470px;
  padding: 38px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}

.programme-card-dark {
  background: var(--navy-soft);
  color: var(--white);
}

.card-mark {
  position: relative;
  width: 100%;
  height: 145px;
  margin-bottom: 54px;
}

.card-mark span {
  position: absolute;
  bottom: 0;
  width: 10%;
  border-top: 1px solid var(--navy);
  border-right: 1px solid var(--navy);
}

.card-mark span:nth-child(1) { left: 5%; height: 34%; }
.card-mark span:nth-child(2) { left: 22%; height: 65%; }
.card-mark span:nth-child(3) { left: 39%; height: 100%; }

.card-mark-rings span {
  top: 50%;
  bottom: auto;
  left: 50%;
  width: auto;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.card-mark-rings span:nth-child(1) { width: 66px; height: 66px; }
.card-mark-rings span:nth-child(2) { width: 112px; height: 112px; }
.card-mark-rings span:nth-child(3) { width: 158px; height: 158px; }

.card-kicker {
  margin-bottom: 17px;
  color: #75808a;
}

.programme-card-dark .card-kicker { color: rgba(255,255,255,.43); }

.programme-card h3 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(29px, 3.2vw, 43px);
  font-weight: 400;
  letter-spacing: -.035em;
}

.programme-card p:last-child {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.programme-card-dark p:last-child { color: rgba(255,255,255,.58); }

/* Affiliates visual */
.constellation {
  position: relative;
  height: 180px;
  margin-top: 85px;
  border-top: 1px solid var(--line);
}

.node {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.node-1 { left: 5%; top: 53%; }
.node-2 { left: 27%; top: 25%; }
.node-3 { left: 49%; top: 67%; }
.node-4 { left: 73%; top: 35%; }
.node-5 { right: 4%; top: 70%; }

.line {
  position: absolute;
  height: 1px;
  background: rgba(8,27,51,.22);
  transform-origin: left center;
}

.line-1 { left: 5.4%; top: 55%; width: 23%; transform: rotate(-8deg); }
.line-2 { left: 27.4%; top: 27%; width: 24%; transform: rotate(11deg); }
.line-3 { left: 49.4%; top: 69%; width: 25%; transform: rotate(-8deg); }
.line-4 { left: 73.4%; top: 37%; width: 23%; transform: rotate(9deg); }

/* Contact */
.contact-section {
  padding: 130px 0 122px;
  background: var(--navy);
  color: var(--white);
}

.contact-inner h2 {
  margin-top: 44px;
  font-size: clamp(51px, 7.5vw, 96px);
  line-height: 1;
}

.contact-inner > p:not(.section-number) {
  max-width: 540px;
  margin: 28px 0 48px;
  color: rgba(255,255,255,.57);
  font-size: 16px;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.55);
  text-decoration: none;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(12px, 1.5vw, 18px);
}

/* Footer */
.site-footer {
  padding: 34px 0;
  background: #061426;
  color: rgba(255,255,255,.45);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  font-size: 11px;
}

.footer-logo {
  width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  opacity: .82;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 780px) {
  .brand-logo {
    width: 185px;
    height: 48px;
  }

  .hero-organization {
    display: block;
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-organization span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
  }

  :root { --shell: min(100% - 36px, 1180px); }

  .site-header { height: 70px; }

  .menu-button {
    display: block;
    position: relative;
    z-index: 2;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 44px;
    background: var(--navy);
    font-size: 22px;
    transform: translateX(100%);
    transition: transform 250ms ease;
  }

  .site-nav.open { transform: translateX(0); }
  .site-nav .nav-contact { border: 0; padding: 0; }

  .hero {
    min-height: 700px;
    height: 100svh;
  }

  .hero-content { padding-top: 155px; }
  .hero h1 { font-size: clamp(48px, 15vw, 69px); }

  .hero-orbit-one {
    width: 390px;
    height: 390px;
    right: -185px;
    top: 255px;
  }

  .hero-orbit-two { display: none; }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-foot {
    grid-template-columns: 1fr 1fr;
    gap: 11px 20px;
  }

  .section { padding: 92px 0; }

  .split-layout,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section-heading { margin-bottom: 49px; }

  .research-item {
    grid-template-columns: 34px 1fr;
    gap: 17px;
  }

  .research-item p {
    grid-column: 2;
    margin-top: -12px;
  }

  .programme-grid { grid-template-columns: 1fr; }
  .programme-card { min-height: 420px; padding: 29px; }

  .constellation { height: 135px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
