:root {
  --black: #050505;
  --ink: #12100d;
  --bone: #f3eadc;
  --muted: #cbbfae;
  --gold: #c9b27b;
  --gold-dark: #8f7747;
  --line: rgba(243, 234, 220, 0.14);
  --panel: rgba(255, 255, 255, 0.035);
  --grant-blue: #12324a;
  --grant-blue-deep: #071d2e;
  --grant-accent: #7bb6d8;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  background: #f7f4ea;
  border: 1px solid var(--gold);
  display: block;
  height: 34px;
  object-fit: contain;
  padding: 2px;
  width: 34px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

nav a {
  color: rgba(243, 234, 220, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-cta,
.button {
  border: 1px solid var(--gold);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.12em;
  line-height: 1;
  min-height: 48px;
  padding: 16px 20px;
  text-transform: uppercase;
}

.nav-cta,
.button.primary {
  background: var(--gold);
  color: #050505;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--bone);
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(201, 178, 123, 0.16), transparent 26rem),
    linear-gradient(135deg, #050505, #0c0b09 58%, #161109);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.95fr);
  min-height: calc(100svh - 70px);
  padding: clamp(82px, 12vw, 150px) clamp(18px, 4vw, 52px) 80px;
}

.grant-theme .hero {
  background:
    radial-gradient(circle at 75% 16%, rgba(123, 182, 216, 0.2), transparent 28rem),
    linear-gradient(135deg, var(--grant-blue-deep), #07111b 55%, #02070b);
}

.hero-inner {
  max-width: 880px;
  position: relative;
  z-index: 2;
}

.hero-media {
  align-self: center;
  border: 1px solid rgba(201, 178, 123, 0.28);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hero-media.media-landscape {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.hero-media.media-portrait {
  align-self: stretch;
  min-height: min(62vh, 680px);
}

.hero-media::after {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.28), transparent 45%), linear-gradient(0deg, rgba(5, 5, 5, 0.34), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.grant-theme .hero-media {
  border-color: rgba(123, 182, 216, 0.32);
}

.label {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.grant-theme .label {
  color: var(--grant-accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 960px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-copy {
  color: rgba(243, 234, 220, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.section {
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 52px);
}

.section-heading {
  max-width: 760px;
}

.section-heading p,
.section > p,
.panel p,
.article-card p,
.newsletter p,
.site-footer p {
  color: rgba(243, 234, 220, 0.72);
  line-height: 1.7;
}

.grid,
.steps,
.article-grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

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

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

.panel,
.article-card,
.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 210px;
  padding: 28px;
}

.steps .panel {
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top-color: var(--gold);
}

.text-link {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 12px;
  text-transform: uppercase;
}

.newsletter {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 0.9fr;
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 52px);
}

.signup {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 24px;
}

label {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  color: var(--bone);
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
}

.fine-print {
  font-size: 0.9rem;
}

.cta-band {
  background: linear-gradient(180deg, rgba(201, 178, 123, 0.08), transparent);
  max-width: none;
}

.cta-band p,
.cta-band h2 {
  max-width: 760px;
}

.proof-quote blockquote {
  color: var(--bone);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 920px;
}

.proof-quote cite {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 12px;
}

.chips span {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.article-card.featured {
  grid-column: span 2;
}

.resource-card {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 32px;
  min-height: 0;
}

.resource-card h3 {
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  max-width: 760px;
}

.resource-card p:not(.label) {
  max-width: 820px;
}

.site-footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 52px);
}

.site-footer p:first-child {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.site-footer img {
  background: #f7f4ea;
  border: 1px solid var(--gold);
  object-fit: contain;
  padding: 1px;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .grid,
  .steps,
  .article-grid,
  .resource-card,
  .newsletter {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
    order: -1;
  }

  .hero-media.media-landscape {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .nav-cta {
    width: 100%;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-top: 40px;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-media.media-landscape {
    min-height: 0;
  }

  .grid,
  .steps,
  .article-grid,
  .resource-card,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-column: span 1;
  }

  .actions .button,
  .signup .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
