:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #101010;
  background: #f4f1ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior: none;
}

body {
  background: #f4f1ea;
  scroll-snap-type: y mandatory;
}

.site-header {
  position: fixed;
  top: 32px;
  left: 32px;
  bottom: 32px;
  z-index: 20;
  width: min(30vw, 320px);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #022048;
  text-decoration: none;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0;
  pointer-events: auto;
}

.brand img {
  width: clamp(108px, 14vw, 190px);
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.brand span {
  display: block;
}

.brand .brand-mobile-title {
  display: none;
}

.menu-button {
  display: none;
}

.menu {
  width: min(220px, 100%);
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

.menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 0;
  color: rgba(2, 32, 72, 0.48);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  color: #022048;
}

.menu a.active {
  transform: translateX(4px);
}

.page-shell {
  width: min(62vw, 820px);
  margin: 0 5vw 0 auto;
  padding: 0 0 56px;
}

.section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-margin-top: 0;
  padding: clamp(72px, 12vh, 130px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 42rem);
  height: 1px;
  background: rgba(2, 32, 72, 0.16);
}

.hero-text {
  max-width: 42rem;
  margin: 0;
  color: #252525;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.95;
}

.section h2 {
  width: min(100%, 620px);
  margin: 0 0 34px;
  color: #022048;
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
}

.section p {
  max-width: 42rem;
  margin: 0 0 20px;
  color: #202020;
  font-size: 1rem;
  line-height: 1.85;
}

.section ul {
  max-width: 42rem;
  margin: 0 0 22px 1.2rem;
  padding: 0;
  color: #202020;
  list-style: disc;
}

.section li {
  margin: 0.65rem 0;
  line-height: 1.75;
}

.site-footer {
  min-height: 36vh;
  margin-left: auto;
  width: min(62vw, 820px);
  padding: 0 5vw 56px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(2, 32, 72, 0.5);
  background: transparent;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

@media (max-width: 820px) {
  body {
    scroll-snap-type: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    padding: 18px 18px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: #f4f1ea;
    pointer-events: auto;
  }

  .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: clamp(0.98rem, 3.9vw, 1.28rem);
    line-height: 1;
    white-space: nowrap;
  }

  .brand img {
    width: 96px;
    margin-bottom: 0;
  }

  .brand > span:not(.brand-mobile-title) {
    display: none;
  }

  .brand .brand-mobile-title {
    display: block;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    margin-top: 0;
    padding: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #022048;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    height: 2px;
    background: currentColor;
    font-size: 0;
    line-height: 0;
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin: 24px 0 0;
    padding: 14px 16px;
    flex-direction: column;
    gap: 8px;
    background: #ebe5d9;
    overflow: visible;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0;
    font-size: 0.95rem;
  }

  .menu a.active {
    transform: none;
  }

  .page-shell,
  .site-footer {
    width: auto;
    margin: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .section {
    min-height: 88vh;
    padding: 72px 0;
  }

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