:root {
  --color-bg: #f7faf9;
  --color-surface: #ffffff;
  --color-text: #102027;
  --color-muted: #5f6f73;
  --color-accent: #16b8a6;
  --color-accent-dark: #0f766e;
  --color-border: #dce7e5;
  --color-navy: #0f172a;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

p {
  color: var(--color-muted);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.section {
  padding: 56px 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--color-navy);
  color: #ffffff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 231, 229, 0.8);
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  font-weight: 760;
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-navy);
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav {
  position: absolute;
  inset: 72px 16px auto;
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}

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

.site-nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eef8f6;
  color: var(--color-accent-dark);
}

.hero {
  padding: 52px 0 44px;
}

.hero-grid,
.two-column {
  display: grid;
  gap: 30px;
  align-items: center;
}

.eyebrow,
.card-kicker {
  margin-bottom: 12px;
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--color-navy);
  line-height: 1.12;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-lede,
.section-lede {
  max-width: 720px;
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: var(--color-accent);
  color: #052522;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #20c8b5;
}

.button-secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
}

.button-ghost {
  color: var(--color-accent-dark);
}

.button-primary:focus-visible,
.button-secondary:focus-visible,
.button-ghost:focus-visible {
  outline: 3px solid rgba(22, 184, 166, 0.32);
  outline-offset: 3px;
}

.hero-visual {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}

.hero-visual img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.focus-strip {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 18px 0;
}

.focus-grid {
  display: grid;
  gap: 10px;
}

.focus-grid span {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f9fcfb;
  padding: 12px 14px;
  color: var(--color-navy);
  font-weight: 700;
}

.feature-panel,
.featured-grid,
.topic-grid,
.video-grid,
.compact-grid {
  display: grid;
  gap: 16px;
}

.feature-panel {
  grid-template-columns: 1fr;
}

.feature-card,
.project-card,
.topic-card,
.video-card,
.compact-card,
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.feature-card,
.topic-card,
.video-card,
.compact-card {
  padding: 20px;
}

.feature-icon {
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--color-accent);
}

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

.archive-note {
  max-width: 760px;
  margin-bottom: 0;
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
  font-size: 0.95rem;
}

.project-card {
  overflow: hidden;
}

.project-card-large {
  padding: 14px;
}

.project-visual,
.video-thumb {
  display: grid;
  min-height: 150px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(22, 184, 166, 0.14), rgba(15, 23, 42, 0.04)),
    #f7fbfa;
  color: var(--color-accent-dark);
  font-weight: 780;
}

.project-visual {
  aspect-ratio: 2 / 1;
  min-height: 0;
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual--unify img {
  object-position: top left;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #f7fbfa;
  object-fit: cover;
}

.project-card h3,
.project-card p,
.project-card .tag-row {
  margin-inline: 4px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #f7faf9;
  padding: 5px 9px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.more-projects {
  margin-top: 34px;
}

.compact-card > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--color-accent-dark);
  font-weight: 780;
}

.compact-card .tag-row {
  margin-top: 14px;
}

.video-card {
  padding: 18px;
}

.video-thumb {
  min-height: 104px;
  margin-bottom: 18px;
}

.contact-section {
  padding-top: 56px;
}

.contact-card {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.contact-links {
  display: grid;
  gap: 10px;
  align-content: center;
}

.contact-links a {
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f9fcfb;
  padding: 10px 12px;
  color: var(--color-navy);
  font-weight: 720;
  text-decoration: none;
}

.contact-links span {
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f9fcfb;
  padding: 10px 12px;
  color: var(--color-muted);
  font-weight: 700;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(22, 184, 166, 0.7);
  color: var(--color-accent-dark);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-navy);
  color: #d6e5e3;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer p {
  margin-bottom: 0;
  color: #d6e5e3;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .button-row {
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .focus-grid,
  .topic-grid,
  .video-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-card {
    grid-template-columns: 1.3fr 0.7fr;
    padding: 34px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-visual img {
    max-height: none;
  }

  .two-column {
    grid-template-columns: 0.88fr 1.12fr;
  }

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

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

@media (min-width: 1024px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 74px 0 62px;
  }

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