:root {
  --bg: #f5f3ee;
  --bg-soft: #fbfaf7;
  --surface: rgba(251, 250, 247, 0.86);
  --surface-strong: #ffffff;
  --text: #1f2933;
  --text-soft: #52606d;
  --line: #d7e0e3;
  --accent: #1f5f6b;
  --accent-deep: #143d45;
  --shadow: 0 24px 64px rgba(20, 61, 69, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(31, 95, 107, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 24%),
    var(--bg);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

p,
ul {
  margin: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(31, 95, 107, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 107, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 72%);
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 0;
  backdrop-filter: blur(16px);
  background: rgba(245, 243, 238, 0.78);
  border-bottom: 1px solid rgba(31, 95, 107, 0.08);
}

.site-header__inner,
.site-nav,
.site-footer__inner,
.site-footer__nav,
.contact-card__line {
  display: flex;
  align-items: center;
}

.site-header__inner,
.site-footer__inner,
.contact-card__line {
  justify-content: space-between;
}

.brand {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  gap: 1.2rem;
  font-size: 0.96rem;
}

.site-nav a,
.site-footer__nav a {
  position: relative;
}

.site-nav a::after,
.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.section {
  padding: 4rem 0;
}

.hero {
  padding-top: 4.8rem;
}

.hero__inner {
  max-width: 980px;
}

.hero__copy,
.focus-card,
.contact-panel,
.legal-page__inner {
  border: 1px solid rgba(31, 95, 107, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__copy {
  display: grid;
  gap: 1rem;
  padding: clamp(1.6rem, 2vw, 2.2rem);
}

.hero__copy h1,
.section-heading h2,
.legal-page h1 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__copy h1 {
  max-width: none;
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
}

.hero__copy h1 span {
  display: block;
}

.hero__copy h1 span + span {
  margin-top: 0.2rem;
}

.hero__lead,
.section-heading p,
.focus-card p,
.collaboration__body p,
.contact-method__label,
.site-footer p,
.legal-page__content {
  color: var(--text-soft);
}

.hero__lead {
  max-width: 44ch;
  font-size: 0.96rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-primary {
  display: inline-flex;
  align-self: start;
  justify-self: start;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.section--muted {
  background: linear-gradient(180deg, rgba(31, 95, 107, 0.04), rgba(31, 95, 107, 0.02));
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.section-heading--compact {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.legal-page h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.section-heading p {
  margin-top: 1rem;
  font-size: 0.98rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.focus-card {
  padding: 1.35rem;
  min-height: 15rem;
}

.focus-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.collaboration {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.collaboration__body {
  display: grid;
  gap: 1.15rem;
}

.contact-panel {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.88);
}

.contact-panel--solo {
  max-width: 36rem;
  margin: 0 auto;
}

.contact-methods {
  display: grid;
  gap: 0.8rem;
}

.contact-method {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(245, 243, 238, 0.72);
}

.contact-method strong {
  font-size: 1.02rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: rgba(31, 95, 107, 0.35);
  background: rgba(31, 95, 107, 0.06);
}

.site-footer {
  padding: 1.6rem 0 2.8rem;
}

.site-footer__inner {
  gap: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 95, 107, 0.14);
}

.site-footer p {
  margin-top: 0.35rem;
  max-width: 44ch;
  font-size: 0.95rem;
}

.site-footer__nav {
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-page {
  min-height: calc(100vh - 10rem);
}

.legal-page__inner {
  padding: clamp(2rem, 3vw, 3rem);
}

.legal-page__content {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .collaboration,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: auto;
  }

  .hero__copy h1 span {
    white-space: normal;
  }

  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 961px) {
  .hero__copy h1 span {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 1rem;
    align-items: start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 4.25rem;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .contact-panel {
    padding: 1.15rem;
  }
}
