body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: var(--fw-body);
  font-stretch: normal;
  font-style: normal;
  font-variation-settings: normal;
}

body.menu-open {
  overflow: hidden;
}

/* Handwritten accent word inside headings (option G) */
.hand {
  font-family: "Caveat", "Segoe Script", cursive;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.28em;
  line-height: 0.85;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 0 0.08em;
}

/* Scroll-reveal: elements marked data-reveal stay hidden until they enter the viewport */
html.js [data-reveal] {
  opacity: 0;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  animation: reveal-up 0.9s var(--ease-out) backwards;
  animation-delay: var(--reveal-delay, 0s);
}

[data-reveal-stagger] > [data-reveal]:nth-child(2) { --reveal-delay: 0.1s; }
[data-reveal-stagger] > [data-reveal]:nth-child(3) { --reveal-delay: 0.2s; }
[data-reveal-stagger] > [data-reveal]:nth-child(4) { --reveal-delay: 0.3s; }
[data-reveal-stagger] > [data-reveal]:nth-child(5) { --reveal-delay: 0.4s; }
[data-reveal-stagger] > [data-reveal]:nth-child(6) { --reveal-delay: 0.5s; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
  }

  html.js [data-reveal].is-visible {
    animation: none;
  }
}

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

.section-heading .eyebrow {
  color: var(--primary);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
}

.section-heading h2 {
  margin-top: 14px;
  color: var(--text);
  font-size: var(--fs-section-title);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-title);
  font-weight: var(--fw-title);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 0;
  background: transparent;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-brand {
  gap: 0;
}

.header-brand-logo {
  display: block;
  width: min(42vw, 262px);
  height: auto;
  max-height: 43px;
  transform: translate(2px, 4px);
  filter: brightness(0) saturate(100%) invert(20%) sepia(10%) saturate(768%) hue-rotate(203deg) brightness(91%) contrast(90%);
}

.brand-text {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.header-menu {
  position: fixed;
  top: 14px;
  right: 30px;
  width: 51px;
  height: 51px;
  border: 0;
  background: transparent;
  color: #373643;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  transform: none;
  flex-shrink: 0;
  z-index: 200;
  transition: color 180ms ease;
}

.header-menu:hover,
.header-menu:focus-visible {
  color: var(--primary);
}

.header-menu span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.header-menu.menu-on-dark {
  color: #f8f4ea;
}

.header-menu span:nth-child(1) {
  width: 37px;
}

.header-menu span:nth-child(2) {
  width: 21px;
}

.header-menu span:nth-child(3) {
  width: 32px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 25, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 110;
}

.side-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(46vw, 420px);
  background: #efefef;
  border-radius: 0 0 0 34px;
  padding: 38px 52px 46px;
  display: flex;
  flex-direction: column;
  transform: translateX(103%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 120;
}

.side-menu-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #04172d;
  font-size: 62px;
  line-height: 0.65;
  cursor: pointer;
  padding: 0;
}

.side-menu-nav {
  margin-top: 74px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-menu-nav a {
  color: #04172d;
  font-size: clamp(14px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  transition: color 180ms ease, transform 320ms var(--ease-out);
}

.side-menu-nav a:hover {
  transform: translateX(6px);
}

.side-menu-nav a:hover,
.side-menu-nav a:focus-visible {
  color: var(--primary);
}

.side-menu-footer {
  margin-top: auto;
  color: #8b96a8;
  font-size: clamp(10px, 0.95vw, 14px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open .side-menu {
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 12px 0;
  }
}

@media (max-width: 720px) {
  .header-menu,
  .header-menu.menu-on-dark {
    color: #373643;
  }

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

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav-list {
    justify-content: flex-start;
    min-width: max-content;
    padding-bottom: 6px;
  }

  .brand-text {
    font-size: 17px;
  }

  .side-menu {
    width: 100vw;
    border-radius: 0;
    padding: 28px 26px 34px;
  }

  .side-menu-close {
    width: 36px;
    height: 36px;
    font-size: 48px;
  }

  .side-menu-nav {
    margin-top: 50px;
    gap: 14px;
  }

  .side-menu-nav a {
    font-size: clamp(18px, 7vw, 30px);
    line-height: 0.92;
  }

  .side-menu-footer {
    font-size: clamp(10px, 3.2vw, 13px);
  }
}
