/* Site header (src/lib/header.ts, public/header.js). Palette: cobalt #1D00FE, red #FF0003, ink #202020. */
.ido-header {
  --h-ink: #202020; --h-cobalt: #1D00FE; --h-red: #FF0003; --h-pad: clamp(1rem, 4vw, 3.5rem); --h-height: 5.5rem;
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000; color: var(--h-ink); font-family: Outfit, sans-serif;
  /* Squarespace pads each page's first section by --header-height (this element's height, set by
     interactions.js). Keeping the old header's footprint keeps every approved hero where it was;
     the visible bar sits at the top and the rest stays transparent and click-through. */
  --ido-offset: 10.6875rem; height: var(--ido-offset); pointer-events: none;
}
.ido-header[data-home="true"] { --ido-offset: 9.2rem; }
.ido-header__bar, .ido-menu { pointer-events: auto; }
.ido-header__bar {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  padding: 1.9rem var(--h-pad) 1.25rem; box-sizing: border-box;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease, gap .25s ease;
}
/* After scrolling: a white bar that hides on the way down and returns on the way up. */
.ido-header.is-stuck { position: fixed; transform: translateY(-100%); transition: transform .3s ease; }
.ido-header.is-stuck.is-shown { transform: none; }
.ido-header.is-stuck .ido-header__bar { gap: .7rem; padding: .85rem var(--h-pad) .6rem; background: #fff; box-shadow: 0 1px 0 rgba(32, 32, 32, .12); }

.ido-header__logo { display: block; flex: none; line-height: 0; transition: opacity .25s ease; }
.ido-logo { display: block; height: 1.6rem; width: auto; aspect-ratio: 854 / 94; }
.ido-header.is-stuck .ido-logo { height: 1.1rem; }
/* Home: the hero already carries the name, so the logo waits until the header is stuck. */
.ido-header[data-home="true"]:not(.is-stuck) .ido-header__logo { display: none; }

.ido-nav { display: flex; justify-content: center; }
.ido-nav__list { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.ido-nav__list li { margin: 0; padding: 0; }
.ido-nav__link {
  position: relative; display: inline-block; padding: .5rem 0; white-space: nowrap;
  font: 400 .875rem/1 Outfit, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--h-ink); text-decoration: none;
}
.ido-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--h-cobalt);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.ido-nav__link:hover::after, .ido-nav__link:focus-visible::after, .ido-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.ido-nav__link[aria-current="page"] { color: var(--h-cobalt); }
.ido-header a:focus-visible, .ido-header button:focus-visible { outline: 2px solid var(--h-cobalt); outline-offset: 4px; }

/* Menu button: hidden on desktop. */
.ido-header__toggle {
  display: none; align-items: center; gap: .75rem; margin: 0; padding: .5rem 0; background: none; border: 0; cursor: pointer; color: var(--h-ink);
  font: 500 .8125rem/1 Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.ido-header__toggle-lines { position: relative; display: block; width: 1.75rem; height: 2px; background: currentColor; }
.ido-header__toggle-lines::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 2px; background: currentColor; }
.ido-header__toggle-lines::after { content: ""; position: absolute; left: .6rem; right: 0; top: 7px; height: 2px; background: currentColor; }

@media (max-width: 1023px) {
  .ido-header, .ido-header[data-home="true"] { --ido-offset: 8rem; }
}
@media (max-width: 799px) {
  .ido-header__bar, .ido-header.is-stuck .ido-header__bar { flex-direction: row; justify-content: space-between; gap: 1rem; height: 4.5rem; padding: 0 var(--h-pad); }
  .ido-header.is-stuck .ido-header__bar { height: 3.75rem; }
  .ido-header[data-home="true"]:not(.is-stuck) .ido-header__bar { justify-content: flex-end; }
  .ido-nav { display: none; }
  .ido-header__toggle { display: inline-flex; }
  .ido-logo { height: 1.25rem; }
  .ido-header.is-stuck .ido-logo { height: 1.1rem; }
}
@media (max-width: 767px) {
  .ido-header, .ido-header[data-home="true"] { --ido-offset: 5.15rem; }
}

/* Full-screen menu (a modal <dialog>: Escape, focus trap and inert page come with it). */
.ido-menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; box-sizing: border-box; background: var(--h-cobalt); color: #fff; overflow-y: auto;
}
.ido-menu[open] { display: flex; flex-direction: column; }
.ido-menu::backdrop { background: var(--h-cobalt); }
.ido-menu__top {
  display: flex; align-items: center; justify-content: space-between; height: 4.5rem; padding: 0 var(--h-pad); flex: none;
}
.ido-menu__home, .ido-menu__close {
  font: 500 .8125rem/1 Outfit, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: none;
  background: none; border: 0; padding: .5rem 0; cursor: pointer;
}
.ido-menu__list { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 1rem var(--h-pad) 2rem; list-style: none; }
.ido-menu__list li { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.ido-menu__list li:first-child { border-top: 0; }
.ido-menu__link {
  display: flex; align-items: baseline; gap: 1.25rem; padding: 1rem 0;
  font: 300 clamp(1.75rem, 7vw, 3rem)/1.1 Outfit, sans-serif; letter-spacing: -.01em; text-transform: uppercase; color: #fff; text-decoration: none;
}
.ido-menu__num { flex: none; width: 2rem; font: 500 .8125rem/1 Outfit, sans-serif; letter-spacing: .1em; opacity: .7; }
.ido-menu__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.ido-menu__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding: 1.5rem var(--h-pad) 2rem; flex: none;
  font: 400 .9375rem/1.4 Outfit, sans-serif;
}
.ido-menu__foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.ido-menu a:focus-visible, .ido-menu button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
html.ido-menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .ido-header, .ido-header.is-stuck, .ido-header__bar, .ido-header__logo, .ido-nav__link::after { transition: none; }
}
