:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5c6870;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d8ddd8;
  --green: #246b52;
  --blue: #235789;
  --ochre: #b36b22;
  --rose: #c05a5a;
  --shadow: 0 24px 70px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid rgba(216, 221, 216, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.nav {
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 8px 2px;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  justify-content: flex-end;
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  font-weight: 760;
}

.language-switch:hover {
  border-color: rgba(23, 32, 38, 0.38);
}

.section-band,
.section,
.contact-section,
.site-footer {
  padding-inline: clamp(18px, 5vw, 64px);
}

.hero {
  min-height: calc(88svh - 65px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(32px, 7vh, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 700px;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-line {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 720;
  line-height: 1.2;
}

.hero-text,
.section-text,
.contact-copy p,
.profile-panel p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 760;
}

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

.button.secondary {
  color: var(--ink);
  background: transparent;
}

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

.hero-visual {
  display: grid;
  gap: 12px;
}

.math-visual {
  position: relative;
  min-height: min(66vh, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35, 87, 137, 0.08), rgba(36, 107, 82, 0.1)),
    var(--surface);
  box-shadow: var(--shadow);
}

.math-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(66vh, 620px);
}

.visual-note {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 2px;
  width: min(180px, calc(100% - 36px));
  padding: 14px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(23, 32, 38, 0.18);
}

.visual-note span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.visual-note strong {
  font-size: 1.25rem;
}

.visual-caption {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section {
  padding-top: clamp(72px, 12vw, 132px);
  padding-bottom: clamp(72px, 12vw, 132px);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.profile-panel,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card {
  min-height: 250px;
  padding: clamp(18px, 3vw, 28px);
}

.card-number {
  display: block;
  margin-bottom: 58px;
  color: var(--ochre);
  font-weight: 850;
}

.info-card p,
.subject p,
.quote-band p {
  color: var(--muted);
}

.split-section,
.profile-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.subject-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.subject {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.subject h3,
.subject p {
  margin: 0;
}

.quote-band {
  display: grid;
  gap: 18px;
  padding: clamp(56px, 9vw, 94px) clamp(18px, 8vw, 104px);
  color: #fff;
  background: var(--blue);
}

.quote-band blockquote {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 780;
  line-height: 1.08;
}

.quote-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.profile-panel {
  padding: clamp(22px, 4vw, 40px);
}

.profile-side {
  display: grid;
  gap: 22px;
}

.profile-photo {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.profile-photo figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-points {
  display: grid;
  gap: 12px;
}

.proof-points span {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  font-weight: 720;
  line-height: 1.18;
}

.contact-section {
  padding-top: clamp(72px, 11vw, 128px);
  padding-bottom: clamp(72px, 11vw, 128px);
  background: var(--ink);
  color: #fff;
}

.contact-copy .eyebrow {
  color: #8bd6b7;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-options {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact-options a {
  color: #fff;
  font-weight: 780;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(139, 214, 183, 0.7);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .nav {
    display: none;
  }

  .hero,
  .split-section,
  .profile-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .math-visual,
  .math-visual canvas {
    min-height: 430px;
  }

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

  .info-card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 30px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

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

  .hero-line {
    font-size: 1.35rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .visual-note {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .subject {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-band blockquote {
    font-size: 2rem;
  }

  .proof-points span {
    font-size: 1.25rem;
  }
}
