/* Nav option 5: Islands. Two floating shapes, no full-width bar.
   Left: a pale steel frosted capsule holding the logo. Right: a dark glass dock with the links.
   Over the hero they sit apart; once scrolled they dock together at the top and tighten. */

.site-head.il {
  --il-h: 54px;
  --il-top: 18px;
  --il-gap: 10px;
  --il-r: 999px;
  --il-steel-1: #EEF3F8;
  --il-steel-2: #D6E2EC;
  --il-glass: rgba(13, 26, 41, .58);
  --il-glass-solid: rgba(13, 26, 41, .86);
  --il-line: rgba(234, 240, 244, .12);
  --il-ink: #E4ECF2;
  --il-ink-soft: #A9BBC9;
  height: auto; inset: 0 0 auto 0;
  background: none !important; border: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  pointer-events: none;
  color: var(--il-ink);
}
.site-head.il.is-scrolled { --il-h: 48px; --il-top: 10px; }

.il-in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--il-gap);
  width: 100%; max-width: calc(var(--maxw) + 40px);
  margin-inline: auto; padding: var(--il-top) var(--gutter) 0;
  transition: max-width .7s var(--ease-out), padding .5s var(--ease-out);
}
/* When docked, the row shrinks to exactly both islands plus the gap (JS measures --il-pair). */
.site-head.il.is-scrolled .il-in { max-width: calc(var(--il-pair, 1360px) + 2 * var(--gutter)); }

/* ---------- the logo island ---------- */
.il-logo {
  pointer-events: auto; flex: none;
  display: inline-flex; align-items: center;
  height: var(--il-h); padding: 0 20px 0 20px; border-radius: var(--il-r);
  background:
    radial-gradient(120% 140% at 18% 0%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--il-steel-1), var(--il-steel-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(16, 32, 48, .08),
    0 0 0 1px rgba(214, 226, 236, .35),
    0 12px 32px -14px rgba(3, 10, 20, .7),
    0 2px 6px -2px rgba(3, 10, 20, .35);
  transition: height .45s var(--ease-out), padding .45s var(--ease-out), box-shadow .3s, transform .3s var(--ease-out);
}
.il-logo:hover { transform: translateY(-1px); }
.il-logo img { --lh: 28px; display: block; height: var(--lh); width: calc(var(--lh) * 418 / 78); max-width: none; margin-right: calc(var(--lh) * -1.22); transition: height .45s var(--ease-out), width .45s var(--ease-out), margin .45s var(--ease-out); }
.site-head.il.is-scrolled .il-logo img { --lh: 25px; }
.site-head.il[data-tone="day"] .il-logo {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(16, 32, 48, .08),
    0 0 0 1px rgba(16, 32, 48, .14),
    0 10px 26px -12px rgba(16, 32, 48, .4),
    0 2px 6px -2px rgba(16, 32, 48, .18);
}
.il-logo:focus-visible { outline-color: var(--lantern); outline-offset: 4px; border-radius: var(--il-r); }

/* ---------- the dark dock ---------- */
.il-dock {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 4px;
  height: var(--il-h); padding: 0 6px 0 10px; border-radius: var(--il-r);
  background: linear-gradient(180deg, rgba(30, 50, 72, .55), var(--il-glass));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 0 0 1px var(--il-line),
    0 14px 36px -16px rgba(0, 0, 0, .7);
  transition: height .45s var(--ease-out), background-color .3s, box-shadow .3s;
}
.site-head.il.is-scrolled .il-dock { background: linear-gradient(180deg, rgba(26, 44, 64, .9), var(--il-glass-solid)); }
.site-head.il[data-tone="day"] .il-dock {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(16, 32, 48, .25), 0 14px 32px -16px rgba(16, 32, 48, .55);
}

.il-links { display: flex; align-items: center; gap: 2px; }
.il-links > li { position: relative; }
.il-a, .il-trig {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 13px; border-radius: 999px;
  font: 500 .9375rem/1 var(--sans); letter-spacing: .005em; white-space: nowrap;
  color: var(--il-ink-soft); text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.il-a:hover, .il-trig:hover, .il-dd.is-open > .il-trig { color: #fff; background: rgba(255, 255, 255, .07); }
.il-a[aria-current="page"] { color: #fff; }
.il-chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .25s var(--ease-out); }
.il-dd.is-open .il-chev { transform: rotate(180deg); }
.il-div { width: 1px; height: 20px; margin: 0 6px; background: rgba(234, 240, 244, .16); flex: none; }
.il-signin { color: var(--il-ink); }
.il-cta.btn { min-height: 40px; padding: 0 18px; margin-left: 4px; font-size: .9rem; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(242, 181, 68, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.site-head.il .il-cta.btn, .site-head.il .il-sh-cta.btn { background: var(--lantern); color: var(--ink-d); }
.site-head.il .il-cta.btn:hover, .site-head.il .il-sh-cta.btn:hover { transform: none; background: #F6C566; }
.site-head.il.is-scrolled .il-a, .site-head.il.is-scrolled .il-trig, .site-head.il.is-scrolled .il-cta.btn { min-height: 36px; }
.il-dock :focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; border-radius: 999px; }

/* ---------- dropdown panels (dark glass, hanging from the dock) ---------- */
.il-panel {
  position: absolute; top: calc(100% + 14px); left: -10px; z-index: 2;
  width: 392px; padding: 8px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 42, 62, .94), rgba(13, 26, 41, .96));
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px var(--il-line), 0 30px 60px -24px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: 30px 0;
  transition: opacity .18s, transform .25s var(--ease-out), visibility 0s .25s;
}
.il-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.il-panel-sm { width: 230px; }
.il-dd.is-open > .il-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .3s var(--ease-out); }
.il-panel a {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px; border-radius: 12px; text-decoration: none; color: var(--il-ink);
  transition: background-color .18s;
}
.il-panel-sm a { padding: 11px 12px; }
.il-panel a:hover, .il-panel a:focus-visible { background: rgba(255, 255, 255, .06); }
.il-panel a:focus-visible { outline-offset: -2px; border-radius: 12px; }
.il-ico {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(214, 226, 236, .14), rgba(214, 226, 236, .05));
  box-shadow: inset 0 0 0 1px rgba(234, 240, 244, .1);
  color: var(--lantern);
}
.il-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.il-txt { display: grid; gap: 4px; padding-top: 1px; }
.il-txt b { font: 600 .9375rem/1.2 var(--display); color: #fff; letter-spacing: .005em; }
.il-txt small { font-size: .8125rem; line-height: 1.4; color: var(--il-ink-soft); }
.il-panel-sm .il-txt b { font-weight: 500; font-family: var(--sans); color: var(--il-ink); }
.il-panel-sm a:hover .il-txt b { color: #fff; }

/* ---------- menu button (tablet / phone) ---------- */
.il-menu {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--il-ink); cursor: pointer;
  font: 500 .9375rem/1 var(--sans);
}
.il-burger { position: relative; display: block; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.il-burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.il-burger i:first-child { top: 13px; }
.il-burger i:last-child { top: 18px; }
.il-menu[aria-expanded="true"] .il-burger i:first-child { top: 15.5px; transform: rotate(45deg); }
.il-menu[aria-expanded="true"] .il-burger i:last-child { top: 15.5px; transform: rotate(-45deg); }

/* ---------- full-page sheet ---------- */
.il-sheet {
  position: fixed; inset: 0; z-index: -1; pointer-events: auto;
  background: var(--night);
  background-image: radial-gradient(90% 50% at 100% 0%, rgba(45, 76, 102, .45), transparent 70%);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .25s;
}
.il-sheet[hidden] { display: none; }
.il-sheet.is-open { opacity: 1; }
.il-sheet-in { padding: calc(var(--il-top) + var(--il-h) + 28px) var(--gutter) 40px; max-width: 640px; margin-inline: auto; }
.il-sh-label { margin: 0 0 10px; font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.il-sh-group { display: grid; gap: 8px; margin: 0 0 22px; }
.il-sh-group a {
  display: grid; gap: 3px; padding: 12px 16px; border-radius: 16px; text-decoration: none;
  background: rgba(234, 240, 244, .05); box-shadow: inset 0 0 0 1px var(--il-line); color: var(--ink-l);
}
.il-sh-group b { font: 600 1.0625rem/1.2 var(--display); }
.il-sh-group small { font-size: .875rem; line-height: 1.4; color: var(--il-ink-soft); }
.il-sh-main { margin: 0 0 22px; border-top: 1px solid var(--line-l); }
.il-sh-main a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-l); font: 500 1.375rem/1.2 var(--display); color: var(--ink-l); text-decoration: none; }
.il-sh-sm a { min-height: 46px; font-size: 1.125rem; }
.il-sh-foot { display: grid; gap: 10px; }
.il-sh-cta.btn { width: 100%; }
.il-sh-signin { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(234, 240, 244, .3); color: var(--ink-l); text-decoration: none; font-weight: 600; }
.il-sheet :focus-visible { outline-color: var(--lantern); }
html.il-locked, html.il-locked body { overflow: hidden; }
/* While the sheet is open the islands sit on the solid night background, whatever the tone. */
.site-head.il.is-menu .il-dock { background: rgba(234, 240, 244, .06); }

/* ---------- breakpoints ---------- */
@media (max-width: 1180px) {
  .il-links, .il-div, .il-signin { display: none; }
  .il-menu { display: inline-flex; }
  .il-dock { padding: 0 6px 0 6px; gap: 6px; }
  .site-head.il.is-scrolled .il-in { max-width: none; }
}
@media (max-width: 560px) {
  .site-head.il { --il-h: 50px; --il-top: 12px; }
  .site-head.il.is-scrolled { --il-h: 46px; --il-top: 8px; }
  .il-in { padding-inline: 16px; }
  .il-cta { display: none !important; }
  .il-logo { padding: 0 16px 0 14px; }
  .il-logo img, .site-head.il.is-scrolled .il-logo img { --lh: 23px; }
  .il-dock { padding: 0 5px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .il-in, .il-logo, .il-logo img, .il-dock, .il-panel, .il-chev, .il-burger i, .il-sheet { transition: none !important; }
}
/* over light sections the logo island takes a touch more steel so it still reads as a shape */
.site-head.il[data-tone="day"] .il-logo { background: radial-gradient(120% 140% at 18% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #E6EEF5, #CBD9E5); }
