/* ==========================================================================
   WIZKET — style.css
   Design system tokens, base, and the NAVBAR component.
   Later sections should reuse the tokens below rather than redefining them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, latin subset)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   Dark is the default. Light is applied via [data-theme="light"] on <html>.
   -------------------------------------------------------------------------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0e10;
  --surface: #111518;
  --card: #171c20;

  --text: #f2f1ed;
  --muted: #8d9295;

  --accent: #fd5f07;
  --accent-soft: rgba(253, 95, 7, 0.12);

  --petrol: #1b2a2d;
  --steel: #263039;

  --line: rgba(242, 241, 237, 0.09);
  --line2: rgba(242, 241, 237, 0.17);

  --on-accent: #ffffff;

  /* navbar-specific (derived from the tokens above) */
  --nav-bg: rgba(17, 21, 24, 0.5);
  --nav-bg-scrolled: rgba(17, 21, 24, 0.58);
  --nav-pill: rgba(242, 241, 237, 0.09);
  --nav-shadow: 0 18px 50px -14px rgba(0, 0, 0, 0.6);
  --nav-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --menu-bg: rgba(11, 14, 16, 0.42);   /* clear glass: no tint, the blur does the work */
  --svc-bg: rgba(17, 21, 24, 0.84);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f6f2;
  --surface: #ffffff;
  --card: #ffffff;

  --text: #171a1c;
  --muted: #707579;

  --accent: #fd5f07;
  --accent-soft: rgba(253, 95, 7, 0.08);

  --petrol: #e4eaeb;
  --steel: #e1e5e7;

  --line: rgba(23, 26, 28, 0.09);
  --line2: rgba(23, 26, 28, 0.16);

  --on-accent: #ffffff;

  --nav-bg: rgba(255, 255, 255, 0.55);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.62);
  --nav-pill: rgba(23, 26, 28, 0.06);
  --nav-shadow: 0 18px 50px -20px rgba(23, 26, 28, 0.28);
  --nav-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --menu-bg: rgba(255, 255, 255, 0.38);
  --svc-bg: rgba(255, 255, 255, 0.88);
}

:root {
  /* type */
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* layout */
  --gutter: 24px;
  --nav-top: 20px;
  --nav-top-scrolled: 12px;
  --nav-h: 64px;
  --nav-h-scrolled: 56px;
  --nav-max: 1180px;
  --nav-max-scrolled: 1040px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Lenis (smooth scroll) recommended rules */
html.lenis,
html.lenis body {
  height: auto;
}

/* Lenis owns the scroll: the browser's own smooth jumps would fight its animation */
html.lenis,
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* desktop: keep the scrollbar's space while scrolling is paused (menu, liftoff, loader),
   so the page never shifts sideways by the scrollbar's width */
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-gutter: stable; }
}

html.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. NAVBAR — floating pill
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: var(--nav-top) var(--gutter) 0;
  pointer-events: none; /* only the pill is interactive */
  transition: padding-top 0.7s var(--ease-out);
}

.nav.is-scrolled {
  padding-top: var(--nav-top-scrolled);
}

.nav__pill {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(var(--nav-max), 100%);
  height: var(--nav-h);
  padding: 0 10px 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow), var(--nav-highlight);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  pointer-events: auto;
  transition:
    width 0.8s var(--ease-out),
    height 0.8s var(--ease-out),
    background-color 0.6s var(--ease-io),
    border-color 0.6s var(--ease-io),
    box-shadow 0.6s var(--ease-io),
    -webkit-backdrop-filter 0.6s var(--ease-io),
    backdrop-filter 0.6s var(--ease-io);
}

.nav.is-scrolled .nav__pill {
  width: min(var(--nav-max-scrolled), 100%);
  height: var(--nav-h-scrolled);
  background: var(--nav-bg-scrolled);
  border-color: var(--line2);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
}

/* browsers without backdrop-filter: fall back to a more solid surface */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__pill {
    background: var(--surface);
  }
}

/* Logo — both files are stacked; the one matching the theme is visible */
.nav__logo {
  display: inline-grid;
  align-items: center;
  justify-self: start;
  height: 44px;
  border-radius: 8px;
}

.nav__logo-img {
  grid-area: 1 / 1;
  width: auto;
  height: 26px;
  transition: opacity 0.6s var(--ease-io);
}

:root[data-theme="dark"] .nav__logo-img--light,
:root[data-theme="light"] .nav__logo-img--dark {
  opacity: 0;
}

/* Links */
.nav__menu {
  position: relative;
  justify-self: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--nav-pill);
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.45s var(--ease-io);
}

.nav__link:focus-visible,
.nav__link[aria-current] {
  color: var(--text);
}

/* Actions */
.nav__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav__cta-wrap {
  position: relative;
}

/* enlarge the magnetic hit area a little beyond the button */
.nav__cta-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
}

/* Thin orange scroll line — visible only once the page has scrolled */
.nav__progress {
  position: absolute;
  right: 40px;
  bottom: 0;
  left: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-io);
}

.nav.is-scrolled .nav__progress {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   5. CTA button
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    color 0.5s var(--ease-io),
    background-color 0.6s var(--ease-io);
}

/* orange fill grows from wherever the pointer entered */
.cta__fill {
  position: absolute;
  z-index: -1;
  top: var(--fy, 100%);
  left: var(--fx, 50%);
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}

.cta:focus-visible {
  outline-color: var(--text);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   6. Theme toggle (sun ⇄ moon)
   -------------------------------------------------------------------------- */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition:
    background-color 0.45s var(--ease-io),
    border-color 0.45s var(--ease-io);
}

.theme-toggle__icon {
  display: block;
  overflow: visible;
  transition: transform 1s var(--ease-out);
}

.theme-toggle__core,
.theme-toggle__rays {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.9s var(--ease-out),
    opacity 0.5s var(--ease-io);
}

.theme-toggle__cut {
  transition: transform 0.9s var(--ease-out);
}

/* dark theme active → show a sun (action: go light) */
:root[data-theme="dark"] .theme-toggle__core {
  transform: scale(0.8);
}
:root[data-theme="dark"] .theme-toggle__cut {
  transform: translate(22px, -22px);
}
:root[data-theme="dark"] .theme-toggle__rays {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* light theme active → show a moon (action: go dark) */
:root[data-theme="light"] .theme-toggle__icon {
  transform: rotate(-20deg);
}
:root[data-theme="light"] .theme-toggle__core {
  transform: scale(1.45);
}
:root[data-theme="light"] .theme-toggle__cut {
  transform: translate(7px, -6.5px);
}
:root[data-theme="light"] .theme-toggle__rays {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

/* --------------------------------------------------------------------------
   7. Menu button (mobile / tablet)
   -------------------------------------------------------------------------- */
.menu-btn {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nav-pill);
  color: var(--text);
  transition: background-color 0.45s var(--ease-io);
}

.menu-btn__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.7s var(--ease-out);
}

.menu-btn__line:nth-child(1) {
  transform: translateY(-3.5px);
}
.menu-btn__line:nth-child(2) {
  transform: translateY(3.5px);
}

.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Mobile menu overlay
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90; /* below the navbar (100) so the pill stays on top */
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(var(--nav-top) + var(--nav-h) + 28px)
    calc(var(--gutter) + 8px)
    max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  color: var(--text);
  visibility: hidden;
  opacity: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: var(--bg); }
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: block;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, min(19vw, 12.5vh), 7.5rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  transition: color 0.5s var(--ease-io);
}

.mobile-menu__link:focus-visible,
.mobile-menu__link[aria-current] {
  color: var(--text);
}

.mobile-menu__mask {
  display: block;
  padding-bottom: 0.04em;
  overflow: hidden;
}

.mobile-menu__word {
  display: inline-block;
  will-change: transform;
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line2);
}

.mobile-menu__note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Services dropdown (desktop)
   Hover / click / ↓ on "Services" opens it. The panel is a sibling of the
   pill (not a child) so its own backdrop blur sees the page behind it.
   -------------------------------------------------------------------------- */
.nav__svc-btn {
  gap: 7px;
}

.nav__svc-caret {
  margin-top: 1px;
  opacity: 0.6;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.4s var(--ease-io),
    color 0.4s var(--ease-io);
}

.nav__svc-btn[aria-expanded="true"] {
  color: var(--text);
}

.nav__svc-btn[aria-expanded="true"] .nav__svc-caret {
  color: var(--accent);
  opacity: 1;
  transform: rotate(180deg);
}

.svc-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(880px, calc(100vw - 2 * var(--gutter)));
  transform: translateX(-50%);
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}

.svc-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: none;
}

/* hover bridge over the gap under the pill */
.svc-menu::before {
  content: "";
  position: absolute;
  right: 20%;
  bottom: 100%;
  left: 20%;
  height: 16px;
}

.svc-menu__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line2);
  border-radius: 28px;
  background: var(--svc-bg);
  box-shadow: var(--nav-shadow), var(--nav-highlight);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transform-origin: 50% 0;
  transition:
    opacity 0.3s var(--ease-io),
    transform 0.6s var(--ease-out);
}

.svc-menu.is-open .svc-menu__panel {
  opacity: 1;
  transform: none;
}

/* list */
.svc-menu__list {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  padding: 4px;
}

.svc-menu__hl {
  position: absolute;
  top: 0;
  right: 4px;
  left: 4px;
  height: 0;
  border-radius: 18px;
  background: var(--nav-pill);
  opacity: 0;
  pointer-events: none;
  will-change: transform, height;
  transition: opacity 0.3s var(--ease-io);
}

.svc-menu.is-open .svc-menu__hl {
  opacity: 1;
  transition-delay: 0.15s;
}

.svc-menu__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px 10px 16px;
  border-radius: 18px;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease-io),
    transform 0.6s var(--ease-out);
}

.svc-menu.is-open .svc-menu__item {
  opacity: 1;
  transform: none;
  transition-delay: calc(70ms + var(--i, 0) * 35ms);
}

.svc-menu__item:focus-visible {
  outline-offset: -2px;
}

.svc-menu__num {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ease-io);
}

.svc-menu__txt {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.svc-menu__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* "you are here" dot on the current service page */
.svc-menu__item[aria-current] .svc-menu__name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.15em;
}

.svc-menu__desc {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.svc-menu__go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px) rotate(-45deg);
  transition:
    opacity 0.35s var(--ease-io),
    transform 0.6s var(--ease-out),
    background-color 0.35s var(--ease-io),
    border-color 0.35s var(--ease-io),
    color 0.35s var(--ease-io);
}

.svc-menu__item.is-active .svc-menu__num {
  color: var(--accent);
}

.svc-menu__item.is-active .svc-menu__go {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  opacity: 1;
  transform: none;
}

/* preview card — follows the hovered service */
.svc-menu__preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 384px;
  border-radius: 20px;
  background: #0b0e10;
  color: #f2f1ed;
}

.svc-menu__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-io);
}

.svc-menu__slide.is-active {
  opacity: 1;
}

.svc-menu__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 8, 0.1) 25%, rgba(5, 7, 8, 0.88) 100%);
}

.svc-menu__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1.4s var(--ease-out);
}

.svc-menu__slide.is-active .svc-menu__img {
  transform: scale(1);
}

.svc-menu__cap {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 62px;
  left: 22px;
  display: grid;
  gap: 8px;
}

.svc-menu__kicker {
  color: rgba(242, 241, 237, 0.75);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.svc-menu__kicker i {
  font-style: normal;
  opacity: 0.5;
}

.svc-menu__big {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s var(--ease-io),
    transform 0.8s var(--ease-out);
}

.svc-menu__big b {
  color: var(--accent);
  font-weight: 400;
}

.svc-menu__slide.is-active .svc-menu__big {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

.svc-menu__tags {
  color: rgba(242, 241, 237, 0.72);
  font-size: 12.5px;
  line-height: 1.4;
}

.svc-menu__explore {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.svc-menu__explore span {
  color: var(--accent);
  transition: transform 0.5s var(--ease-out);
}

.svc-menu__bar {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 22px;
  left: 22px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(242, 241, 237, 0.16);
}

.svc-menu__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}

/* footer row */
.svc-menu__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 20px;
  background: var(--nav-pill);
  opacity: 0;
  transition: opacity 0.4s var(--ease-io);
}

.svc-menu.is-open .svc-menu__foot {
  opacity: 1;
  transition-delay: 0.25s;
}

.svc-menu__foot p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.svc-menu__talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  transition:
    background-color 0.4s var(--ease-io),
    color 0.4s var(--ease-io);
}

.svc-menu__talk:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
}

/* --------------------------------------------------------------------------
   10. Services inside the mobile menu — tap to expand a grid of tiles
   -------------------------------------------------------------------------- */
.mobile-menu > nav {
  margin-top: auto; /* sit at the bottom, but scroll properly once it grows */
}

.mobile-menu {
  justify-content: flex-start;
}

.mobile-menu__toggle {
  width: 100%;
  text-align: left;
}

.mobile-menu__toggle[aria-expanded="true"] {
  color: var(--text);
}

.mobile-menu__plus {
  position: relative;
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.2em;
  vertical-align: 0.24em;
  transition:
    transform 0.6s var(--ease-out),
    color 0.4s var(--ease-io);
}

.mobile-menu__plus::before,
.mobile-menu__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.6s var(--ease-out);
}

.mobile-menu__plus::after {
  transform: rotate(90deg);
}

.mobile-menu__toggle[aria-expanded="true"] .mobile-menu__plus {
  color: var(--accent);
  transform: rotate(180deg);
}

.mobile-menu__toggle[aria-expanded="true"] .mobile-menu__plus::after {
  transform: rotate(0deg);
}

.mobile-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.mobile-menu__toggle[aria-expanded="true"] + .mobile-menu__sub {
  grid-template-rows: 1fr;
}

.mobile-menu__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

/* spacing lives on the tiles: padding here would leak while collapsed */
.mobile-menu__tiles > li:nth-child(-n + 2) {
  margin-top: 10px;
}

.mobile-menu__tiles > li:nth-last-child(-n + 2) {
  margin-bottom: 18px;
}

.mobile-menu__tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: var(--nav-pill);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--ease-io),
    transform 0.6s var(--ease-out),
    border-color 0.3s var(--ease-io),
    background-color 0.3s var(--ease-io);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__toggle[aria-expanded="true"] + .mobile-menu__sub .mobile-menu__tile {
  opacity: 1;
  transform: none;
}

.mobile-menu__tiles > li:nth-child(2) .mobile-menu__tile { transition-delay: 40ms; }
.mobile-menu__tiles > li:nth-child(3) .mobile-menu__tile { transition-delay: 80ms; }
.mobile-menu__tiles > li:nth-child(4) .mobile-menu__tile { transition-delay: 120ms; }
.mobile-menu__tiles > li:nth-child(5) .mobile-menu__tile { transition-delay: 160ms; }
.mobile-menu__tiles > li:nth-child(6) .mobile-menu__tile { transition-delay: 200ms; }

.mobile-menu__tile:active {
  background: var(--line2);
}

.mobile-menu__tile[aria-current] {
  border-color: var(--accent);
}

.mobile-menu__tnum {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.mobile-menu__tile[aria-current] .mobile-menu__tnum,
.mobile-menu__tgo {
  color: var(--accent);
}

.mobile-menu__tname {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   11. Hover-capable devices only
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--text);
  }

  .theme-toggle:hover {
    background: var(--nav-pill);
    border-color: var(--line2);
  }

  .menu-btn:hover {
    background: var(--line2);
  }

  .cta:hover {
    color: var(--on-accent);
  }

  .cta:hover .cta__fill {
    transform: translate(-50%, -50%) scale(1);
  }

  .mobile-menu__list:hover .mobile-menu__link[aria-current]:not(:hover) {
    color: var(--muted);
  }
  .mobile-menu__link:hover {
    color: var(--text);
  }

  .svc-menu__talk:hover {
    background: var(--accent);
    color: var(--on-accent);
  }

  .svc-menu__preview:hover .svc-menu__explore span {
    transform: translateX(4px);
  }

  .mobile-menu__tile:hover {
    border-color: var(--muted);
  }
}

/* reduced motion: the dropdown and tiles just fade */
@media (prefers-reduced-motion: reduce) {
  html:not(.wz-full-motion) .svc-menu__panel,
  html:not(.wz-full-motion) .svc-menu__item,
  html:not(.wz-full-motion) .svc-menu__img,
  html:not(.wz-full-motion) .svc-menu__big,
  html:not(.wz-full-motion) .mobile-menu__tile {
    transform: none;
  }

  html:not(.wz-full-motion) .mobile-menu__sub {
    transition: none;
  }
}

/* keyboard focus should feel the same as hover */
.cta:focus-visible {
  color: var(--on-accent);
}
.cta:focus-visible .cta__fill {
  transform: translate(-50%, -50%) scale(1);
}
