:root {
  --shell-ink: #0f1012;
  --shell-muted: #666970;
  --shell-paper: #ffffff;
  --shell-line: rgba(15,16,18,.14);
  --shell-width: min(1320px, calc(100vw - 32px));
  --shell-content: min(1240px, calc(100vw - 64px));
  --shell-font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shell-ease: cubic-bezier(.22,.72,.2,1);
  --shell-clearance: calc(104px + env(safe-area-inset-top, 0px));
}

html { scroll-padding-top: var(--shell-clearance); }
.site-arrow-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.125em; }
.brand-wordmark { white-space: nowrap; }
.footer-identity { display: flex; align-items: center; min-width: 0; max-width: 100%; text-transform: none; letter-spacing: normal; font-size: 12px; line-height: 1.5; }
.footer-copyright { flex: 0 0 auto; white-space: nowrap; }
.footer-affiliation { display: flex; align-items: center; min-height: 36px; min-width: 0; margin-left: 18px; padding-left: 18px; border-left: 1px solid #9b9da1; overflow-wrap: break-word; }
@media (max-width: 560px) {
  .footer-identity { width: 100%; font-size: 12px; }
  .footer-affiliation { margin-left: 12px; padding-left: 12px; }
}
body.menu-open { overflow: hidden; overscroll-behavior: none; }

.site-header,
.product-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  width: var(--shell-width);
  font-family: var(--shell-font);
  transform: translateX(-50%);
  transition: top .3s var(--shell-ease);
}

.nav-shell,
.header-shell {
  box-sizing: border-box;
  min-height: 64px;
  padding: 7px 8px 7px 21px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 48px rgba(15,16,18,.07);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled,
.product-header.is-scrolled { top: 10px; }

.site-header.is-scrolled .nav-shell,
.product-header.is-scrolled .header-shell {
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 38px rgba(15,16,18,.1);
}

.site-header .brand,
.site-header .brand-wordmark,
.product-header .wordmark {
  position: relative;
  z-index: 4;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--shell-ink);
  font-family: var(--shell-font);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}

.main-nav,
.product-nav {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: clamp(25px, 3vw, 45px);
}

.main-nav .mobile-contact,
.product-nav .mobile-contact { display: none; }

.nav-item { position: relative; min-width: 0; }
.main-nav .nav-disclosure {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #45474c;
  font-family: var(--shell-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-disclosure > svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s ease; }
.nav-disclosure[aria-expanded="true"] > svg { transform: rotate(180deg); }
.nav-disclosure::after { content: ""; position: absolute; inset: auto 0 1px; height: 1px; background: currentColor; opacity: 0; }
.nav-disclosure:is(.is-active, :hover, :focus-visible)::after { opacity: 1; }
.nav-item.is-open::after { content: ""; position: absolute; inset: 100% 0 auto; height: 24px; }
.nav-dropdown {
  position: absolute;
  z-index: 5;
  top: calc(100% + 22px);
  left: 0;
  width: 316px;
  max-height: calc(100vh - 128px);
  max-height: calc(100dvh - 128px);
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--shell-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15,16,18,.12);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-item:last-of-type .nav-dropdown { left: auto; right: 0; }
.nav-item.is-open > .nav-dropdown { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.main-nav .nav-dropdown a { display: block; min-height: 44px; padding: 12px 14px; border: 0; border-radius: 12px; color: var(--shell-ink); font-size: 14px; font-weight: 550; line-height: 1.45; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.main-nav .nav-dropdown a::after { display: none; }
.main-nav .nav-dropdown a:is(:hover,:focus-visible) { background: #f1f2ef; }
.main-nav .nav-dropdown .dropdown-overview { margin-bottom: 12px; background: #f5f5f2; font-weight: 650; }
.dropdown-overview > span { display: block; margin-top: 6px; color: var(--shell-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.dropdown-label { margin: 8px 14px 4px; color: var(--shell-muted); font-family: var(--shell-font); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; }
.main-nav :is(a, button):focus-visible { outline: 2px solid var(--shell-ink); outline-offset: 4px; }

.main-nav a,
.product-nav a {
  position: relative;
  padding: 8px 0;
  color: #45474c;
  font-family: var(--shell-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.main-nav a::after,
.product-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--shell-ink);
  transition: right .3s var(--shell-ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after,
.product-nav a:hover::after,
.product-nav a.is-active::after { right: 0; }

.nav-cta,
.header-cta {
  justify-self: end;
  min-height: 48px;
  padding: 0 15px 0 21px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-radius: 999px;
  background: var(--shell-ink);
  color: #fff;
  font-family: var(--shell-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .07em;
  transition: transform .25s var(--shell-ease), background .25s ease;
}

.nav-cta:hover,
.header-cta:hover { background: #2b2c2f; transform: translateY(-2px); }
.header-actions { position: relative; z-index: 4; justify-self: end; display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.language-switch { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 3px; border: 1px solid var(--shell-line); border-radius: 999px; background: rgba(255,255,255,.8); }
.language-switch a { box-sizing: border-box; min-width: 40px; min-height: 38px; display: grid; place-items: center; border-radius: 999px; color: var(--shell-muted); font-family: var(--shell-font); font-size: 11px; font-weight: 650; line-height: 1; letter-spacing: .03em; text-decoration: none; transition: background .2s ease, color .2s ease; }
.language-switch a[aria-current="true"] { color: #fff; background: var(--shell-ink); }
.language-switch a:not([aria-current]):hover { color: var(--shell-ink); background: #eeefec; }
.language-switch a:focus-visible { outline: 2px solid var(--shell-ink); outline-offset: 3px; }
.nav-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.header-cta > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 13px; }
.menu-toggle,
.nav-toggle { display: none; }

.site-footer,
.product-footer {
  width: var(--shell-content);
  margin: 0 auto;
  padding: 64px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  color: var(--shell-ink);
  font-family: var(--shell-font);
}

.footer-top,
.footer-main {
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  border-bottom: 1px solid var(--shell-line);
}

.footer-top > *,
.footer-main > * { min-width: 0; }

.site-footer .footer-brand,
.product-footer .wordmark {
  position: static;
  width: auto;
  color: var(--shell-ink);
  font-family: var(--shell-font);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}

.footer-top p,
.footer-main p { margin: 0; color: var(--shell-muted); font-size: 14px; line-height: 1.55; }

.footer-top nav,
.footer-main nav {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
}

.footer-top nav a,
.footer-main nav a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  color: var(--shell-ink);
  font-family: var(--shell-font);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
}

.footer-top nav a:hover,
.footer-main nav a:hover { color: var(--shell-muted); }

.footer-bottom,
.footer-legal {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--shell-muted);
  font-family: var(--shell-font);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-bottom a,
.footer-legal a { min-height: 44px; display: inline-flex; align-items: center; color: var(--shell-ink); }
.footer-legal b { font-weight: inherit; }

@media (max-width: 900px) {
  :root {
    --shell-width: calc(100vw - 20px);
    --shell-content: calc(100vw - 40px);
    --shell-clearance: calc(96px + env(safe-area-inset-top, 0px));
  }

  .site-header,
  .product-header,
  .site-header.is-scrolled,
  .product-header.is-scrolled {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    width: var(--shell-width);
    transform: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .site-header.is-hidden,
  .product-header.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
  body.menu-open .site-header,
  body.menu-open .product-header { opacity: 1; visibility: visible; pointer-events: auto; transition: none; }

  .nav-shell,
  .header-shell {
    min-height: 60px;
    padding: 7px 8px 7px 16px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
    background: rgba(255,255,255,.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .brand-wordmark,
  .product-header .wordmark { font-size: 24px; }

  .nav-cta,
  .header-cta { display: none; }

  .header-actions { margin-left: 0; }
  /* Keep the 44px touch targets; draw the active pill inset, not as a tall oval. */
  .language-switch {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 44px);
    height: 44px;
    padding: 0;
    border: 0;
    background: #f3f3f1;
    box-shadow: inset 0 0 0 1px var(--shell-line);
  }
  .language-switch a {
    position: relative;
    isolation: isolate;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 12px;
    letter-spacing: .02em;
  }
  .language-switch a[aria-current="true"] { background: transparent; }
  .language-switch a[aria-current="true"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 5px 3px;
    border-radius: 999px;
    background: var(--shell-ink);
  }
  .language-switch a:not([aria-current]):hover { background: transparent; }

  .menu-toggle,
  .nav-toggle {
    position: relative;
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    display: block;
    border: 0;
    border-radius: 50%;
    background: var(--shell-ink);
    cursor: pointer;
  }

  .menu-toggle::before,
  .menu-toggle::after,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    transform-origin: center;
    transition: transform .3s ease;
  }

  .menu-toggle::before,
  .nav-toggle::before { transform: translate(-50%,-4px); }
  .menu-toggle::after,
  .nav-toggle::after { transform: translate(-50%,4px); }
  .menu-toggle[aria-expanded="true"]::before,
  .nav-toggle[aria-expanded="true"]::before { transform: translate(-50%,0) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after,
  .nav-toggle[aria-expanded="true"]::after { transform: translate(-50%,0) rotate(-45deg); }

  .main-nav,
  .product-nav {
    position: fixed;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: calc(100px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    display: flex;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    border-radius: 0;
    background: #fff;
    transform: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .main-nav.is-open,
  .product-nav.is-open { visibility: visible; opacity: 1; transform: none; }

  .main-nav .mobile-contact,
  .product-nav .mobile-contact { display: block; }

  .main-nav a,
  .product-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--shell-line);
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 520;
    line-height: 1.15;
    letter-spacing: -.04em;
    text-transform: none;
  }

  .main-nav a::after,
  .product-nav a::after { display: none; }

  .nav-item { width: 100%; }
  .main-nav .nav-disclosure { width: 100%; min-height: 62px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--shell-line); font-size: clamp(24px,6vw,36px); font-weight: 520; line-height: 1.15; letter-spacing: -.04em; text-transform: none; text-align: left; }
  .nav-disclosure > svg { flex-basis: 18px; width: 18px; height: 18px; }
  .nav-disclosure::after, .nav-item.is-open::after { display: none; }
  .nav-dropdown { position: static; display: none; width: 100%; max-height: none; margin: 0; padding: 12px 0 18px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; transition: none; }
  .nav-item.is-open > .nav-dropdown { display: block; }
  .main-nav .nav-dropdown a { width: 100%; min-height: 48px; padding: 13px 14px; font-size: 16px; }

  .site-footer,
  .product-footer { padding-top: 44px; }

  .footer-top,
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

  .footer-top p,
  .footer-main p { text-align: right; }

  .footer-top nav,
  .footer-main nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: 25px;
    border-top: 1px solid var(--shell-line);
  }

  .footer-bottom,
  .footer-legal { align-items: flex-start; flex-direction: column; gap: 9px; }
}

@media (max-width: 560px) {
  .site-header .brand-wordmark { font-size: 22px; letter-spacing: -.055em; }
  :root { --shell-content: calc(100vw - 28px); }

  .footer-top,
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 24px; }
  .footer-top p,
  .footer-main p { text-align: left; }
  .footer-top nav,
  .footer-main nav { padding-top: 18px; }
  .footer-bottom,
  .footer-legal { font-size: 12px; letter-spacing: .05em; }
}

.editorial-guide {
  box-sizing: border-box;
  width: min(1240px, calc(100% - 48px));
  margin: clamp(32px, 5vw, 64px) auto;
  padding-block: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  border-top: 1px solid #dedede;
}
.editorial-guide article { min-width: 0; }
.editorial-guide h2, .editorial-guide h3 {
  margin: 0 0 18px;
  color: #111214;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  font-weight: 550;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.editorial-guide p { margin: 0; color: #555960; font-size: 16px; line-height: 1.8; }
.editorial-guide strong { color: #242528; font-weight: 650; }
.editorial-guide p a { color: #242528; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.editorial-guide p a:hover { text-decoration-thickness: 2px; }
.editorial-guide p a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.editorial-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.editorial-links a { color: #111214; text-decoration: underline; text-underline-offset: 5px; line-height: 1.6; padding-block: 8px; }
.editorial-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.content-refined :is(h1, h2, h3) { overflow-wrap: break-word; }
.content-refined .sequence-heading h1 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.08; }
@media (max-width: 760px) {
  .editorial-guide { width: calc(100% - 36px); grid-template-columns: minmax(0, 1fr); gap: 26px; margin-block: 32px; }
  .editorial-links { flex-direction: column; gap: 8px; }
  .content-refined .sequence-heading h1 { font-size: clamp(25px, 6.4vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .product-header, .main-nav, .product-nav,
  .menu-toggle::before, .menu-toggle::after,
  .nav-toggle::before, .nav-toggle::after { transition: none; }
}
