/* ------------------------------------------------------------------ *
 * Astrea Foundation — quiet, asymmetric one-pager
 * ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #ececec;
  --soft: #fafafa;
  --accent: #8da9eb;

  --font-display: "Funnel Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --col-label: 160px;
  --col-gap: 80px;
  --col-content: 540px;

  --gutter: 56px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* ------------------------------------------------------------------ *
 * Unicorn Studio backdrop (top of page)
 * ------------------------------------------------------------------ */

.top-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.top-bg__scene {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1200px;
  height: 100%;
  min-height: 600px;
}

.top-bg__fade {
  position: absolute;
  pointer-events: none;
}

.top-bg__fade--left,
.top-bg__fade--right {
  top: 0;
  bottom: 0;
  width: clamp(140px, 22vw, 360px);
}

.top-bg__fade--left {
  left: 0;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 35%,
    rgba(255, 255, 255, 0) 100%
  );
}

.top-bg__fade--right {
  right: 0;
  background: linear-gradient(
    to left,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 35%,
    rgba(255, 255, 255, 0) 100%
  );
}

.top-bg__fade--bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 320px;
  background: linear-gradient(
    to top,
    #ffffff 0%,
    rgba(255, 255, 255, 0.94) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}

.masthead,
main,
.footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

/* ------------------------------------------------------------------ *
 * Page layout
 * ------------------------------------------------------------------ */

.masthead,
main > section,
.footer {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
  max-width: calc(
    var(--col-label) + var(--col-gap) + var(--col-content) + var(--gutter) * 2
  );
  margin-inline: auto;
}

.masthead {
  padding-top: 32px;
  padding-bottom: 80px;
}

.masthead__brand {
  display: inline-block;
}

.masthead__brand img {
  width: 180px;
}

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

.hero {
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero__lead {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.014em;
  color: var(--text);
}

.hero__lead em {
  font-style: normal;
}

/* ------------------------------------------------------------------ *
 * Section block: asymmetric label + content
 * ------------------------------------------------------------------ */

.block {
  display: grid;
  grid-template-columns: var(--col-label) var(--col-content);
  column-gap: var(--col-gap);
  padding-top: 40px;
  padding-bottom: 40px;
}

.block__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  align-self: start;
  padding-top: 6px;
}

.block__body {
  max-width: var(--col-content);
}

.block__lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--text);
}

.block__lede + .block__intro {
  margin-top: 72px;
}

.block__intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ------------------------------------------------------------------ *
 * Rows list
 * ------------------------------------------------------------------ */

.rows li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.rows li:first-child {
  padding-top: 0;
}

.rows li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * Principles
 * ------------------------------------------------------------------ */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 56px;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle__index {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.principle__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.principle__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 32ch;
}

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

.footer {
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__brand {
  display: inline-block;
  flex: 0 0 auto;
}

.footer__brand img {
  width: 180px;
}

.footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}

.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__nav a:hover::after {
  width: 100%;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------------ *
 * Reveal initial states
 * ------------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal-children] > * {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
}

.no-js [data-reveal],
.no-js [data-reveal-children] > *,
.no-js [data-reveal-words] .word {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 920px) {
  :root {
    --col-label: 120px;
    --col-gap: 48px;
    --gutter: 40px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 96px;
  }

  .hero__lead {
    margin-left: calc(var(--col-label) + var(--col-gap));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 24px;
  }

  .masthead {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .masthead__brand img {
    width: 150px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 72px;
  }

  .hero__lead {
    margin-left: 0;
    font-size: 22px;
  }

  .block {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .principles {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .footer {
    padding-top: 40px;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 32px;
  }

  .footer__brand img {
    width: 150px;
  }

  .footer__nav {
    gap: 20px;
    font-size: 11px;
  }
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */

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

  [data-reveal],
  [data-reveal-children] > *,
  [data-reveal-words] .word {
    opacity: 1 !important;
    transform: none !important;
  }
}
