/* ==========================================================================
   AIGAH — AI Governance for Animals Hub
   Shared stylesheet. Design system per design_handoff_aigah_website/README.md
   Palette: strictly white / near-black / one blue.
   ========================================================================== */

/* ---- Base ---------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fdfdfc;
  color: #16181d;
  font-family: 'Public Sans', sans-serif;
}

a {
  color: #3d78b3;
  text-decoration: none;
}

a:hover {
  color: #2c5f93;
}

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

/* ---- Header (sticky) ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 7vw;
  background: rgba(253, 253, 252, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: #e8ecef;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: #16181d;
}

.wordmark:hover {
  color: #16181d;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.site-nav a {
  color: #3d424b;
}

.site-nav a:hover {
  color: #2c5f93;
}

.nav-cta {
  border: 1px solid #a8c8e4;
  border-radius: 3px;
  padding: 10px 20px;
  color: #16181d !important;
}

.nav-cta:hover {
  background: #eaf2fa;
  color: #16181d !important;
}

.menu-toggle {
  display: none;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  color: #3d424b;
  background: none;
  border: 1px solid #e8ecef;
  border-radius: 3px;
  padding: 10px 18px;
  cursor: pointer;
}

/* Anchored sections clear the sticky header */
[id] {
  scroll-margin-top: 96px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 15vh 7vw 17vh;
}

.hero-shape {
  position: absolute;
}

.hero-shape-1 {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, #c4dcf2 0%, rgba(196, 220, 242, 0) 66%);
  filter: blur(46px);
}

.hero-shape-2 {
  top: 120px;
  left: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #dcebf7 0%, rgba(220, 235, 247, 0) 68%);
  transform: rotate(20deg);
  filter: blur(50px);
}

.hero-shape-3 {
  bottom: -220px;
  right: -100px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, #d3e5f4 0%, rgba(211, 229, 244, 0) 68%);
  filter: blur(52px);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(64px, 9vw, 108px);
  line-height: 1;
  letter-spacing: 0.16em;
  /* optical centering: cancel trailing letterspace */
  margin-right: -0.16em;
  color: #16181d;
}

.hero-subline {
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a505a;
  margin-right: -0.18em;
}

/* ---- Current-action line ------------------------------------------------- */

.current-action {
  border-top: 1px solid #e8ecef;
  border-bottom: 1px solid #e8ecef;
  padding: 18px 7vw;
  font-size: 15px;
  line-height: 1.6;
  color: #4a505a;
}

.current-action strong {
  font-weight: 600;
  color: #16181d;
}

/* Avoid a doubled hairline when the current-action block is present:
   the following section drops its own top border. */
.current-action + section {
  border-top: none;
}

/* ---- Sections (shared pattern) ------------------------------------------- */

section {
  border-top: 1px solid #e8ecef;
}

.section-split {
  padding: 110px 7vw;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 48px;
}

.section-stacked {
  padding: 110px 7vw;
}

.section-stacked .eyebrow {
  margin-bottom: 56px;
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.eyebrow-dots {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
}

.eyebrow-dots span {
  border-radius: 50%;
  background: #16181d;
}

.eyebrow-dots span:nth-child(1) {
  width: 8px;
  height: 8px;
}

.eyebrow-dots span:nth-child(2) {
  width: 5px;
  height: 5px;
  background: #3d78b3;
}

.eyebrow-dots span:nth-child(3) {
  width: 6px;
  height: 6px;
}

.eyebrow-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d78b3;
}

section h2 {
  margin: 0 0 26px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.2;
  color: #16181d;
  max-width: 640px;
  text-wrap: pretty;
}

section p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a505a;
  max-width: 580px;
  text-wrap: pretty;
}

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

/* ---- Our work ------------------------------------------------------------ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px;
}

.work-grid h3 {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  color: #16181d;
}

.work-grid p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4a505a;
  text-wrap: pretty;
}

/* ---- Current projects ---------------------------------------------------- */

.project {
  max-width: 720px;
}

.project + .project {
  border-top: 1px solid #e8ecef;
  margin-top: 48px;
  padding-top: 48px;
}

.project h3 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  color: #16181d;
  text-wrap: pretty;
}

.project-status {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d78b3;
}

.project p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4a505a;
  max-width: 640px;
  text-wrap: pretty;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14.5px;
  font-weight: 500;
}

/* ---- People -------------------------------------------------------------- */

.people-grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 48px;
  align-items: start;
}

.people-grid img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 3px;
  background: #e8ecef;
}

.people-name {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  color: #16181d;
}

/* ---- Get in touch -------------------------------------------------------- */

.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 7vw;
  text-align: center;
}

.contact-shape {
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, #dcebf7 0%, rgba(220, 235, 247, 0) 68%);
  filter: blur(50px);
}

.contact-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  max-width: 560px;
}

.contact p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  max-width: 480px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.newsletter-form input[type='email'] {
  flex: 1;
  min-width: 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  color: #16181d;
  background: #fdfdfc;
  border: 1px solid #e8ecef;
  border-radius: 3px;
  padding: 14px 16px;
}

.newsletter-form input[type='email']::placeholder {
  color: #5a5f68;
}

.newsletter-form input[type='email']:focus {
  outline: none;
  border-color: #a8c8e4;
}

.newsletter-form button {
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  color: #fff;
  background: #16181d;
  border: none;
  border-radius: 3px;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #2c3038;
}

.newsletter-message {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a505a;
}

.newsletter-message[hidden] {
  display: none;
}

.contact-alt {
  margin: 0;
  font-size: 14.5px;
  color: #5a5f68;
}

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

.site-footer {
  border-top: 1px solid #e8ecef;
  padding: 64px 7vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #16181d;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13.5px;
  color: #4a505a;
}

.footer-meta a {
  color: #4a505a;
}

.footer-meta a:hover {
  color: #3d78b3;
}

/* ---- Sub-page ------------------------------------------------------------ */

.subpage {
  padding: 80px 7vw 110px;
  border-top: none;
}

.subpage .eyebrow {
  margin-bottom: 32px;
}

.subpage h1 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.2;
  color: #16181d;
  max-width: 720px;
  text-wrap: pretty;
}

.subpage .subpage-status {
  margin: 0 0 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d78b3;
}

.subpage p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a505a;
  max-width: 640px;
  text-wrap: pretty;
}

.subpage-links {
  margin: 44px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  font-weight: 500;
}

.subpage-links .link-note {
  margin: -12px 0 0;
  font-size: 13.5px;
  font-weight: 400;
  color: #5a5f68;
}

.back-link {
  display: inline-block;
  margin-top: 64px;
  font-size: 14.5px;
}

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

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 7vw 20px;
    background: rgba(253, 253, 252, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e8ecef;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav .nav-cta {
    margin-top: 8px;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .section-split,
  .people-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-split {
    padding: 72px 7vw;
  }

  .section-stacked {
    padding: 72px 7vw;
  }

  .section-stacked .eyebrow {
    margin-bottom: 40px;
  }

  .contact {
    padding: 72px 7vw;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .subpage {
    padding: 56px 7vw 72px;
  }
}
