:root {
  --white: #ffffff;
  --surface: #f6f8f8;
  --surface-strong: #eef4f4;
  --ink: #171b1f;
  --muted: #5f6972;
  --line: rgba(23, 27, 31, 0.12);
  --blue: #2563eb;
  --teal: #16a6a2;
  --gold: #c49a43;
  --shadow: 0 24px 70px rgba(19, 31, 43, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-bottom: 1px solid rgba(23, 27, 31, 0.08);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    padding 180ms ease;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: lowercase;
}

.brand-logo {
  width: clamp(190px, 22vw, 260px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.88rem;
  font-weight: 620;
}

.site-nav a {
  opacity: 0.86;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.72) 0%, rgba(8, 13, 18, 0.42) 42%, rgba(8, 13, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 13, 18, 0.54) 0%, rgba(8, 13, 18, 0) 48%);
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 122px 0 54px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9efea;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8.4vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.hero .button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.section,
.section-band {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-band {
  background: var(--surface);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.intro-grid,
.section-heading,
.about-grid,
.contact-layout,
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.intro-grid > p,
.section-heading > p,
.about-copy,
.contact-layout > div > p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

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

.section-heading.compact {
  align-items: end;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.article-card,
.topic-panel,
.contact-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.article-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.article-card.large {
  grid-column: span 2;
  background: var(--ink);
  color: var(--white);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.article-card.large .card-meta,
.article-card.large p {
  color: rgba(255, 255, 255, 0.7);
}

.article-card p {
  color: var(--muted);
}

.article-card a {
  width: max-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 780;
}

.article-card.large a {
  color: #b9efea;
}

.topic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 680;
}

.chip.active {
  background: var(--ink);
  color: var(--white);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-panel {
  min-height: 248px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 1)),
    var(--surface-strong);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.topic-panel.dimmed {
  opacity: 0.34;
}

.topic-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 166, 162, 0.28);
}

.panel-number {
  display: block;
  margin-bottom: 58px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 820;
}

.topic-panel p {
  color: var(--muted);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.method-list span {
  display: block;
  margin-bottom: 9px;
  font-weight: 820;
}

.method-list p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 780;
}

.faq-list p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
}

.about-copy p {
  margin-bottom: 22px;
}

.about-logo {
  width: min(420px, 100%);
  margin-top: 30px;
}

.contact-layout {
  align-items: stretch;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
}

.footer-inner .brand {
  color: var(--ink);
}

.footer-inner .brand-logo {
  width: min(250px, 70vw);
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    transition:
      max-height 180ms ease,
      border-color 180ms ease;
  }

  .site-header.nav-open .site-nav {
    max-height: 360px;
    border-color: var(--line);
  }

  .site-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .intro-grid,
  .section-heading,
  .about-grid,
  .contact-layout,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    align-items: start;
  }

  .topic-controls {
    justify-content: flex-start;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand-logo {
    width: min(178px, 58vw);
  }

  .hero {
    min-height: 84vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 13, 18, 0.78), rgba(8, 13, 18, 0.32)),
      linear-gradient(0deg, rgba(8, 13, 18, 0.62), rgba(8, 13, 18, 0.08));
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .section-inner {
    width: calc(100% - 36px);
  }

  .article-grid,
  .topic-grid,
  .method-list {
    grid-template-columns: 1fr;
  }

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

  .article-card,
  .topic-panel {
    min-height: auto;
  }

  .panel-number,
  .card-meta {
    margin-bottom: 32px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
