/* The frame every page shares: the floating menu (React Bits Pro, Navigation 12, set on the page's own links) and the footer.
   The home page and every other page link this one file; nothing of the menu lives anywhere else. */
@font-face { font-family: "Editorial Today"; src: url("assets/fonts/EditorialToday-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Anthem Grotesk"; src: url("assets/fonts/NVAnthemGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anthem Grotesk"; src: url("assets/fonts/NVAnthemGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Anthem Grotesk"; src: url("assets/fonts/NVAnthemGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --k-ink: #051315;
  --k-a: #4dd8d2;
  --k-a2: #9df5f0;
  --k-lm: #ffffff;
  --k-ll: rgba(255, 255, 255, 0.16);
  --k-line: rgba(77, 216, 210, 0.34);
  --k-serif: "Editorial Today", "Iowan Old Style", Baskerville, serif;
  --k-sans: "Anthem Grotesk", "Avenir Next", Avenir, Arial, sans-serif;
}

/* nav */
/* The menu: a floating bar. Open and wide at the top of the page; once the page moves it settles into a pill of dark glass
   (the shape and the sliding indicator come from React Bits Pro, Navigation 12, set on the page's own links). */
:root { --u: min(1vw, calc(100svh * 16 / 900)); --nav-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.nav { position: fixed; top: 0.5rem; left: 50%; z-index: 20; translate: -50% 0; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; width: calc(100% - 1rem); height: 3.6rem; padding: 0 0.45rem 0 1.1rem; border-radius: 99rem; color: #fff; transition: width 0.7s var(--nav-ease); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--k-line); border-radius: inherit; background: rgba(5, 19, 21, 0.96); box-shadow: 0 1.2rem 2.6rem -1.2rem rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); transition: opacity 0.4s; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 0.5rem; color: #fff; font: 400 1.7rem/1 var(--k-serif); letter-spacing: -0.01em; text-decoration: none; }
.brand img { display: block; width: auto; height: 1.75rem; }
.brand span { padding-top: 0.12em; }
.links { position: relative; display: none; align-items: center; height: 100%; }
.links a { position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 0.62em 1.05em; border-radius: 99rem; color: #fff; font: 500 0.98rem/1 var(--k-sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background 0.25s; }
.links:not(.has-glide) a:hover { background: rgba(77, 216, 210, 0.16); }
.glide-holder { position: absolute; inset: 0; pointer-events: none; }
.glide { position: absolute; top: 50%; left: 0; height: 2.35em; translate: 0 -50%; border-radius: 99rem; background: rgba(77, 216, 210, 0.16); box-shadow: inset 0 0 0 1px rgba(77, 216, 210, 0.42), 0 0 1.4rem rgba(77, 216, 210, 0.2); font-size: 0.98rem; }
.navend { display: flex; align-items: center; justify-self: end; gap: 0.5rem; height: 100%; }
.navcta { display: inline-flex; align-items: center; height: 2.7rem; padding: 0 1.15rem; border-radius: 99rem; background: var(--k-a); color: var(--k-ink); font: 600 0.95rem/1 var(--k-sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background 0.25s, box-shadow 0.25s; }
.navcta:hover { background: var(--k-a2); box-shadow: 0 0 1.8rem rgba(77, 216, 210, 0.55); }
/* where the visitor is among the six screens */
.where { display: none; align-items: center; }
.where a { position: relative; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; transition: width 0.45s var(--nav-ease); }
.where a::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 99rem; background: rgba(157, 245, 240, 0.42); transition: width 0.45s var(--nav-ease), background 0.3s, box-shadow 0.3s; }
.where a:hover::before { background: #fff; }
.where a[aria-current="true"] { width: 2.5rem; }
.where a[aria-current="true"]::before { width: 1.8rem; background: var(--k-a); box-shadow: 0 0 0.7rem rgba(77, 216, 210, 0.75); }
.where a::after { content: attr(data-name); position: absolute; top: calc(100% + 0.95rem); left: 50%; translate: -50% -0.3rem; padding: 0.45rem 0.8rem; border: 1px solid var(--k-line); border-radius: 99rem; background: rgba(5, 19, 21, 0.92); color: #fff; font: 500 0.82rem/1 var(--k-sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, translate 0.3s var(--nav-ease); }
.where a:hover::after, .where a:focus-visible::after { translate: -50% 0; opacity: 1; }
/* phones: the links open as a sheet of glass under the bar (no script needed) */
.menu summary { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 99rem; list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before { display: block; width: 1.25rem; height: 2px; border-radius: 2px; background: #fff; transition: rotate 0.35s var(--nav-ease), translate 0.35s var(--nav-ease); }
.menu summary span { translate: 0 -0.22rem; }
.menu summary span::before { content: ""; translate: 0 0.44rem; }
.menu[open] summary span { translate: 0 0; rotate: 45deg; }
.menu[open] summary span::before { translate: 0 0; rotate: -90deg; }
.menu > nav { position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; display: grid; gap: 0.15rem; padding: 0.5rem; border: 1px solid var(--k-line); border-radius: 1.5rem; background: rgba(5, 19, 21, 0.985); box-shadow: 0 1.6rem 3rem -1rem rgba(0, 0, 0, 0.75); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.menu > nav a { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 1.1rem; border-radius: 1.1rem; color: #fff; font: 500 1.2rem/1 var(--k-sans); text-decoration: none; }
.menu > nav a::after { content: ""; width: 0.5rem; height: 0.5rem; border-top: 2px solid var(--k-a); border-right: 2px solid var(--k-a); rotate: 45deg; }
.menu > nav a:active { background: rgba(77, 216, 210, 0.16); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] > nav { animation: menu-in 0.4s var(--nav-ease) both; }
  .menu[open] > nav a { animation: menu-in 0.45s var(--nav-ease) both; }
  .menu[open] > nav a:nth-child(2) { animation-delay: 0.05s; }
  .menu[open] > nav a:nth-child(3) { animation-delay: 0.1s; }
  .menu[open] > nav a:nth-child(4) { animation-delay: 0.15s; }
  @supports (animation-timeline: scroll()) {
    /* small screens: one thin line along the bar's lower edge fills as the page is read */
    .nav::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--k-a); transform-origin: 0 50%; animation: nav-read linear both; animation-timeline: scroll(root); }
  }
}
@keyframes menu-in { from { opacity: 0; translate: 0 -0.5rem; } }
@keyframes nav-read { from { scale: 0 1; } to { scale: 1 1; } }
@media (max-width: 420px) {
  .nav { column-gap: 0.4rem; padding-left: 0.9rem; }
  .navcta { padding: 0 0.95rem; font-size: 0.9rem; }
}
@media (min-width: 760px) {
  .nav { top: 0.8rem; grid-template-columns: 1fr auto 1fr; width: min(100% - 2rem, 78rem); height: 3.8rem; padding: 0 0.55rem 0 1.4rem; }
  .nav::before { opacity: 0; }
  .nav.scrolled { width: min(100% - 2rem, 50rem); }
  .nav.scrolled::before { opacity: 1; background: rgba(5, 19, 21, 0.84); }
  .nav::after { display: none; }
  .links { display: flex; }
  .menu { display: none; }
}
@media (min-width: 1100px) {
  .where { display: flex; margin-right: 0.6rem; }
  .nav.scrolled { width: min(100% - 2rem, 62rem); }
}
@media (min-width: 1280px) {
  /* sized with the composed screen, so the bar keeps its place above the headline and the film at every window shape */
  .nav { top: max(0.4rem, calc(0.6 * var(--u))); width: calc(94 * var(--u)); height: max(2.85rem, calc(2.75 * var(--u))); padding: 0 max(0.4rem, calc(0.38 * var(--u))) 0 calc(1.5 * var(--u)); }
  .nav.scrolled { width: max(60rem, calc(66 * var(--u))); }
  .brand { gap: calc(0.45 * var(--u)); font-size: max(1.6rem, calc(1.8 * var(--u))); }
  .brand img { height: max(1.65rem, calc(1.8 * var(--u))); }
  .links a, .glide { font-size: max(0.95rem, calc(0.88 * var(--u))); }
  .navcta { height: max(2.4rem, calc(2 * var(--u))); padding: 0 max(1.1rem, calc(1.3 * var(--u))); font-size: max(0.95rem, calc(0.88 * var(--u))); }
  .where { margin-right: calc(0.9 * var(--u)); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav { animation: nav-in 0.8s var(--nav-ease) both; }
}
@keyframes nav-in { from { opacity: 0; translate: -50% -0.9rem; } }

/* footer */
footer.site-foot { display: grid; grid-template-columns: 1fr; gap: 1.4rem; padding: 2.5rem clamp(1.25rem, 4vw, 4.5rem); background: var(--k-ink); color: var(--k-lm); font-size: 0.75rem; line-height: 1.5; }
footer.site-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.footer-mark { display: inline-flex; align-items: center; gap: 0.7rem; }
.footer-mark img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.motion-toggle { padding: 0.35rem 0.7rem; border: 1px solid var(--k-ll); border-radius: 0.25rem; background: none; color: var(--k-lm); font-size: 0.72rem; cursor: pointer; }
@media (min-width: 900px) { footer.site-foot { grid-template-columns: 1fr auto; gap: 2rem; } }

[data-island="swap"] { display: inline-block; }
.links, .navcta { --swap-space: 0.72em; }

/* every page but the home one: the bar floats over the page, so the page starts below it, where the old menu used to end */
body.framed { padding-top: 4.6rem; }
@media (min-width: 760px) { body.framed { padding-top: 5rem; } }
@media (min-width: 1280px) { body.framed { padding-top: max(5rem, calc(4.4 * var(--u))); } }
/* the page being read, in the menu */
.links a[aria-current="page"] { color: var(--k-a2); }
.menu > nav a[aria-current="page"] { color: var(--k-a2); }
/* the shared footer is one block of type, whatever the page's own style says */
footer.site-foot { margin: 0; border: 0; font-family: var(--k-sans); text-align: left; }
footer.site-foot a { color: inherit; text-decoration: underline; }

/* November 2026 menu: four longer labels and Book a demo. Between phone and wide screens the links fold into the menu
   sheet, and the settled pill keeps the whole width it needs. */
@media (min-width: 760px) and (max-width: 1099px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav::before { opacity: 1; }
  .links { display: none; }
  .menu { display: block; }
  .nav.scrolled { width: calc(100% - 2rem); }
}
@media (min-width: 1100px) { .nav.scrolled { width: min(100% - 2rem, 64rem); } }
@media (min-width: 1280px) { .nav.scrolled { width: max(64rem, calc(70 * var(--u))); } }
