:root {
  --ink: #082b31;
  --ink-deep: #041d22;
  --aqua: #36d5cb;
  --aqua-soft: #b9f4ef;
  --mist: #edf7f5;
  --white: #ffffff;
  --line: rgba(8, 43, 49, .16);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; }
p { font-size: 1.05rem; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.2rem, 4vw, 4.5rem);
  color: var(--white);
}
.brand { width: 110px; text-decoration: none; font-size: 2rem; font-weight: 700; }
.brand img { width: 100%; filter: brightness(0) invert(1); }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--white); text-decoration: none; font-size: .88rem; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.nav-button { padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; }

.member-hero {
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 7rem 1.2rem 4rem;
  background-color: #168c92;
  background-position: center;
  background-size: cover;
  color: var(--white);
  text-align: center;
}
.member-hero-content { width: min(760px, 94vw); }
.hero-logo {
  width: clamp(280px, 38vw, 470px);
  margin: 0 auto 1.4rem;
  filter: brightness(0) invert(1) drop-shadow(0 3px 18px rgba(0,0,0,.3));
}
.hero-eyebrow { margin-bottom: .5rem !important; font-size: .78rem !important; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.member-hero h1 { margin-bottom: .75rem; font-size: clamp(2.2rem, 3.8vw, 3.5rem); font-weight: 500; text-shadow: 0 2px 20px rgba(0,0,0,.52); }
.member-hero p { margin-bottom: 1.8rem; font-size: clamp(1.05rem, 2vw, 1.35rem); font-style: italic; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.member-hero-content-authenticated { color: var(--white); }
.member-hero-authenticated {
  background-color: #063b42;
  background-image: none !important;
}
.hero-logo-water {
  display: block;
  aspect-ratio: 1000 / 650;
  background-color: var(--aqua);
  background-image: var(--water-logo-image);
  background-position: center;
  background-size: cover;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.24));
  -webkit-mask: url("../images/ilo-logo.svg") center / contain no-repeat;
  mask: url("../images/ilo-logo.svg") center / contain no-repeat;
}
.member-hero-copy {
  width: min(760px, 100%);
  margin: 0 auto;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-note { display: block; margin-top: .7rem; font-size: .78rem; text-shadow: 0 1px 8px rgba(0,0,0,.55); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 760;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.button-glass { border: 1px solid rgba(255,255,255,.9); background: rgba(8,43,49,.12); color: var(--white); backdrop-filter: blur(5px); }
.button-aqua { background: var(--aqua); color: var(--ink-deep); }

.section { padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.section > * { width: min(100%, var(--max)); margin-left: auto; margin-right: auto; }
.eyebrow { margin-bottom: 1.4rem; color: #167e7b; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: var(--aqua-soft); }

.hub-intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 7vw, 8rem); align-items: end; }
.intro-grid h2 { margin-bottom: 0; }
.intro-grid div { padding-bottom: .8rem; }
.intro-grid p { max-width: 520px; font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.steps { margin-top: clamp(4rem, 8vw, 6rem); padding: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); list-style: none; }
.steps li { min-height: 260px; padding: 1.6rem 2rem 1.5rem 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 2rem; }
.steps li:last-child { border-right: 0; }
.steps span { display: block; margin-bottom: 3.7rem; color: #5f888c; font-size: .78rem; font-weight: 750; }
.steps h3 { margin-bottom: .7rem; font-size: clamp(1.5rem,2.4vw,2.15rem); font-weight: 600; }
.steps p { max-width: 290px; color: #446267; }

.membership { background: var(--ink); color: var(--white); }
.membership-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,7vw,7rem); align-items: end; }
.membership-heading h2 { margin-bottom: 0; }
.membership-heading > p { max-width: 460px; margin-bottom: .6rem; color: #b7d0d2; }
.plan-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 4rem; }
.plan-card { min-height: 330px; display: flex; flex-direction: column; padding: clamp(1.6rem,3vw,2.5rem); border-radius: 1.2rem; }
.plan-card-light { background: var(--white); color: var(--ink); }
.plan-card-aqua { background: var(--aqua-soft); color: var(--ink); }
.plan-label { width: fit-content; padding: .3rem .6rem; border: 1px solid currentColor; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; opacity: .72; }
.plan-card h3 { margin: 1.5rem 0 .8rem; font-size: 2rem; font-weight: 600; }
.plan-card p { max-width: 400px; color: #42646a; }
.plan-card strong { margin-top: auto; font-size: clamp(1.8rem,3vw,2.7rem); letter-spacing: -.04em; }
.plan-card small { color: #547277; }
.membership-action { margin-top: 2rem; text-align: center; }

.support { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,7vw,8rem); background: var(--aqua-soft); }
.support > * { width: 100%; }
.support h2 { margin-bottom: 0; }
.support > div:last-child { align-self: end; padding-bottom: .7rem; }
.support a { display: inline-block; margin-top: .4rem; font-size: 1.15rem; font-weight: 750; text-underline-offset: .25em; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 3rem clamp(1.25rem,5vw,5rem); background: var(--ink-deep); color: var(--white); }
.site-footer img { width: 120px; margin-bottom: .8rem; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; color: #9cbabd; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--white); text-decoration: none; font-size: .86rem; font-weight: 700; }
.site-footer small { grid-column: 1 / -1; color: #6f9296; }

.simple-page, .article-page { min-height: 75vh; padding-top: 10rem; background: var(--white); }
.simple-page h1, .article-page h1 { max-width: 850px; font-size: clamp(2.8rem,6vw,5rem); font-weight: 500; }
.article-page article { width: min(100%,780px); }
.gh-content { font-size: 1.08rem; }
.gh-content img { height: auto; }
.gh-content .kg-width-wide {
  width: min(1000px, calc(100vw - 2.5rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.page-feature-image { width: 100%; height: auto; margin: 0 0 2.5rem; border-radius: 1rem; }

@media (max-width: 760px) {
  .site-header { padding: .8rem 1rem; }
  .brand { width: 88px; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .8rem; }
  .member-hero { min-height: 760px; background-position: center; }
  .hero-logo { width: min(360px,90vw); }
  .member-hero h1 { font-size: clamp(1.9rem,8vw,2.6rem); }
  .section { padding: 5rem 1.2rem; }
  .intro-grid, .membership-heading, .support { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { min-height: auto; padding: 1.5rem 0 2.4rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps span { margin-bottom: 1.8rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
