/* Wu Kong landing page — built on Fan's Liquid Glass theme pack (core layer)
   with the official Wu Kong gold accent (#FFC928 family). */

@font-face {
  font-family: Montserrat;
  src: url("assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* Metric-matched local fallbacks prevent layout shift during font swap (CLS 0). */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Roboto");
  font-weight: 400;
  size-adjust: 112.8%;
  ascent-override: 85.82%;
  descent-override: 22.25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Roboto");
  font-weight: 600;
  size-adjust: 117.4%;
  ascent-override: 82.45%;
  descent-override: 21.38%;
  line-gap-override: 0%;
}
@font-face {
  /* Card titles trim to the cap line. Match cap height as well as the baseline. */
  font-family: "Montserrat Title Fallback";
  src: local("Arial Bold"), local("Liberation Sans Bold"), local("Roboto Bold");
  font-weight: 600;
  size-adjust: 97.8%;
  ascent-override: 98.98%;
  descent-override: 25.66%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Caption Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Roboto");
  font-weight: 400 600;
  size-adjust: 108.3%;
  ascent-override: 89.38%;
  descent-override: 23.18%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Headline Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Roboto");
  font-weight: 600;
  size-adjust: 118.6%;
  ascent-override: 81.62%;
  descent-override: 21.16%;
  line-gap-override: 0%;
}

/* Wu Kong materials on the theme pack's graphite and neutral palettes. */
:root {
  --wk-gold: #ffc928;


  --lg-canvas: #0b0b0b;
  --lg-accent: var(--wk-gold);
  --lg-on-accent: #17130a;
  --lg-divider: rgb(255 255 255 / 12%);
  --lg-font: Montserrat, "Montserrat Fallback", Arial, sans-serif;

  --wk-frame: 76rem;
  --wk-gutter: clamp(16px, 4.6vw, 76px);
  --wk-logo-size: clamp(200px, 31vw, 276px);
  --wk-frame-edge: rgb(255 255 255 / 15%);
  --wk-frame-hover: var(--wk-gold);
  --wk-card-glass: linear-gradient(130deg, rgb(48 48 48 / 55%), rgb(24 24 25 / 64%));
  --wk-card-solid: #201f1e;
  --wk-card-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), var(--lg-shadow-1);
  --wk-thumb-bg: rgb(255 255 255 / 12%);
  --wk-thumb-sheen: linear-gradient(160deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 6%) 72%);
  --wk-thumb-edge: rgb(255 255 255 / 16%);
  --wk-thumb-shadow: inset 0 1px 0 rgb(255 255 255 / 26%), 0 2px 8px rgb(0 0 0 / 36%);
  --wk-float-solid: #252526;
  --lgc-seg-glide: 240ms;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  /* The same material is available on the first paint with scripting disabled. */
  :root, html.lg-light {
    --lg-canvas: #f6f6f6;
    --lg-text: #1d1d1f;
    --lg-text-2: #424245;
    --lg-text-3: #636366;
    --lg-accent: var(--wk-gold);
    --lg-on-accent: #17130a;
    --lg-divider: rgb(29 29 31 / 14%);

    --wk-frame-edge: rgb(45 40 32 / 13%);
    --wk-frame-hover: var(--wk-gold);
    --wk-card-glass: linear-gradient(130deg, rgb(255 255 255 / 79%), rgb(251 250 248 / 57%));
    --wk-card-solid: #fbfaf8;
    --wk-card-shadow: inset 0 1px 0 #fff, 0 6px 22px -10px rgb(40 34 23 / 24%);
    --wk-thumb-bg: #fff;
    --wk-thumb-sheen: linear-gradient(160deg, #fff, rgb(255 255 255 / 88%) 75%);
    --wk-thumb-edge: rgb(29 29 31 / 8%);
    --wk-thumb-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(57 57 57 / 13%);
    --wk-float-solid: #fff;
    color-scheme: light;
  }
  html:not(.lg-on) {
    --lg-float-glass: linear-gradient(145deg, #ffffffc8, #f7f7f79e);
    --lg-float-edge: rgb(255 255 255 / 90%);
    --lg-float-shadow-sm: inset 0 1px 1px #fff, 0 3px 12px rgb(0 0 0 / 10%);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--lg-canvas);
}

html.lg-on {
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--lg-text);
  font-family: var(--lg-font);
  font-size: 1rem;
  line-height: var(--lg-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

/* ---------- Accessibility ---------- */

.skip-link {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  z-index: var(--lg-z-float);
  padding: 10px 18px;
  border-radius: var(--lg-radius-capsule);
  background: var(--lg-text);
  color: var(--lg-canvas);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-220%);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: var(--lg-focus-width) solid var(--lg-focus-color);
  outline-offset: var(--lg-focus-offset);
}
:focus:not(:focus-visible) { outline: none; }

main:focus-visible { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The decorative field sits beneath the page and leaves native scrolling and taps to the browser. */
.liquid-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 38% at 12% 85%, rgb(152 169 182 / 5%), transparent),
              linear-gradient(145deg, transparent 34%, rgb(150 163 173 / 3%), transparent 61%);
}
.liquid-field canvas { display: block; width: 100%; height: 100%; }
.liquid-field:not(.is-drawn)::before {
  content: "";
  position: absolute;
  inset: 0;
  --thread: radial-gradient(ellipse 50% 90% at 50% -8%, transparent 91%, rgb(139 143 137 / 22%) 96%, transparent);
  background: var(--thread) 0 0 / 48px 36px, var(--thread) 24px 18px / 48px 36px;
  mask-image: linear-gradient(125deg, transparent, black 23%, #0003 48%, black 80%, transparent);
}

.frame, .site-footer p {
  width: min(var(--wk-frame), calc(100% - 2 * var(--wk-gutter)));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: max(var(--wk-corner), env(safe-area-inset-top));
}
/* The controls sit tucked into the top-right corner, inset equally from the top and right edges. */
.site-header.frame {
  --wk-corner: clamp(8px, .75vw, 12px);
  width: auto;
  margin-inline: 0;
  padding-inline: var(--wk-corner) max(var(--wk-corner), env(safe-area-inset-right));
}
.lang-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 2px;
  height: var(--lg-control-float);
  padding: 4px;
  border-radius: var(--lg-radius-capsule);
  corner-shape: round;
}
.no-js .lang-switch { display: none; }

.lgc-segment-thumb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  /* Match the two grid columns, their 2px gap and the 4px track padding before JS. */
  width: calc(50% - 5px);
  height: calc(100% - 8px);
  transform: translate3d(4px, 4px, 0);
  border-radius: var(--lg-radius-capsule);
  corner-shape: round;
  border: 1px solid var(--wk-thumb-edge);
  background-image: var(--wk-thumb-sheen);
  background-color: var(--wk-thumb-bg);
  box-shadow: var(--wk-thumb-shadow);
  pointer-events: none;
  transition:
    transform var(--lgc-seg-glide) var(--lg-ease-glide),
    width var(--lgc-seg-glide) var(--lg-ease-glide),
    height var(--lgc-seg-glide) var(--lg-ease-glide);
}
html[lang="nb"] .lang-switch:not([data-glass-segments]) .lgc-segment-thumb {
  transform: translate3d(calc(100% + 6px), 4px, 0);
}

.lang-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--lg-radius-capsule);
  background: transparent;
  color: var(--lg-text-2);
  font-family: Montserrat, "Montserrat Caption Fallback", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--lg-dur-close-small) var(--lg-ease-fade);
}
@media (hover: hover) {
  .lang-btn:hover:not([aria-pressed="true"]) { color: var(--lg-text); }
}
.lang-btn[aria-pressed="true"] {
  color: var(--lg-accent);
  cursor: default;
}
:where(html.lg-light) .lang-btn[aria-pressed="true"] { color: var(--lg-text); }
.lang-btn:focus-visible {
  outline: var(--lg-focus-width) solid var(--lg-focus-color);
  outline-offset: var(--lg-focus-offset-inset);
}

/* Phone touch target reach (44px) via invisible hit slop without inflating the visual track */
@media (max-width: 600px), (max-width: 900px) and (pointer: coarse) {
  .lang-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: max(100%, var(--lg-touch-min));
    height: max(100%, var(--lg-touch-min));
  }
}

/* Masthead */
main { flex: 1; width: 100%; }
main.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vh, 52px);
  padding-block: clamp(14px, 2.6vh, 30px) clamp(32px, 5vh, 64px);
}

.hero {
  --identity-art: clamp(198px, 23vw, 296px);
  --identity-width: calc(var(--identity-art) * .66);
  width: min(100%, 68rem);
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  text-align: center;
}
.hero-identity {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}
/* In the body's stacking context the halo sits between the glass surface and every foreground element. */
.hero-identity::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -85% 0;
  background: radial-gradient(ellipse calc(var(--identity-width) * 1.6) calc(var(--identity-art) * 1.22) at center,
      var(--lg-canvas) 49%, transparent 100%);
  pointer-events: none;
}
.hero-identity h1 { line-height: 0; }
.brand-lockup {
  display: block;
  position: relative;
  z-index: 1;
  width: var(--identity-width);
  height: calc(var(--identity-art) * .77);
  overflow: hidden;
  border-radius: .375rem;
}
/* The official lockup's visible artwork is centred at (50%, 48.4%) of its square canvas. */
.brand-lockup picture {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--identity-art);
  height: var(--identity-art);
  transform: translate(-50%, -48.4%);
}
.brand-lockup img { width: 100%; height: 100%; }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.catchline {
  font-family: Montserrat, "Montserrat Headline Fallback", Arial, sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 3.5rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.catchline em { color: var(--wk-gold); font-style: normal; }

.catchline .w { display: inline-block; }

/* Entrance. Layout is final from the first paint; only transforms, opacity, blur and clips move.
   The root's wk-ink-in is the timeline clock: the head script removes .wk-arriving when it ends. */
@property --wk-ink {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@keyframes wk-ink-in {
  from { --wk-ink: 0; }
  to { --wk-ink: 1; }
}
@keyframes wk-field-in {
  from { opacity: 0; }
}
/* The official mark opens like an aperture; its pixels are never faded or filtered. */
@keyframes wk-iris {
  from { clip-path: circle(0% at 50% 46%); transform: scale(1.04); }
  to { clip-path: circle(75% at 50% 46%); transform: none; }
}
@keyframes wk-rise {
  from { opacity: 0; transform: translateY(.3em); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes wk-sweep {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@keyframes wk-rule {
  from { transform: scaleX(0); opacity: 0; }
}
@keyframes wk-float-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
}
@keyframes wk-fade {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  /* A long, soft exponential settle: quick to start, with no visible end to the motion. */
  :root { --wk-settle: cubic-bezier(.16, 1, .3, 1); }
  html.wk-arriving { animation: wk-ink-in 3100ms linear both; }
  .wk-arriving .liquid-field { animation: wk-field-in 700ms ease-out both; }
  .wk-arriving .brand-lockup { animation: wk-iris 1600ms 80ms var(--wk-settle) both; }
  .wk-arriving .catchline .w { animation: wk-rise 1400ms var(--wk-settle) both; }
  .wk-arriving .catchline .w:nth-child(1) { animation-delay: 600ms; }
  .wk-arriving .catchline .w:nth-child(2) { animation-delay: 720ms; }
  .wk-arriving .catchline .w:nth-child(3) { animation-delay: 840ms; }
  /* One pass of light across the gold word; the gradient ends solid gold, so nothing jumps at the end. */
  html:not(.lg-light).wk-arriving .catchline em {
    background: linear-gradient(100deg, var(--wk-gold) 0 40%, #fff3c4 47%, #fff 50%, #fff3c4 53%, var(--wk-gold) 60% 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: wk-rise 1400ms 840ms var(--wk-settle) both, wk-sweep 1600ms 1300ms cubic-bezier(.45, 0, .25, 1) both;
  }
  .wk-arriving .section-title > span { animation: wk-rise 1200ms 1250ms var(--wk-settle) both; }
  .wk-arriving .section-title::before,
  .wk-arriving .section-title::after { animation: wk-rule 1300ms 1350ms var(--wk-settle) both; }
  .wk-arriving .section-title::before { transform-origin: right center; }
  .wk-arriving .section-title::after { transform-origin: left center; }
  .wk-arriving .card { animation: wk-float-in 1300ms 1450ms var(--wk-settle) both; }
  .wk-arriving .card-item:nth-child(2) .card { animation-delay: 1590ms; }
  .wk-arriving .card-item:nth-child(3) .card { animation-delay: 1730ms; }
  .wk-arriving .card-item:nth-child(n + 4) .card { animation-delay: 1870ms; }
  .wk-arriving .site-header > *, .wk-arriving .site-footer { animation: wk-fade 1200ms 1700ms ease-out both; }
}
@media (prefers-color-scheme: light) {
  .catchline em { -webkit-text-stroke: 1.3px #795b18; paint-order: stroke fill; }
}
.flow-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--lg-control-float);
  height: var(--lg-control-float);
  padding: 0;
  border-radius: 50%;
  box-shadow: var(--wk-card-shadow);
  cursor: pointer;
}
.flow-toggle svg { display: block; }
.flow-toggle:not([data-paused]) .play-symbol, .flow-toggle[data-paused] .pause-symbol { display: none; }

/* Project catalogue */
.products {
  width: min(100%, 64rem);
  text-align: center;
  scroll-margin-block-start: 1.5rem;
}
.products:focus { outline: none; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 20px);
  margin-bottom: clamp(1rem, 1.6vw, 1.5rem);
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.section-title::before, .section-title::after {
  content: "";
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: var(--lg-divider);
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.875rem, 1.6vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-item { display: flex; flex: 0 1 19.5rem; min-width: 0; max-width: 100%; }
.card {
  --card-pad: max(26px, var(--lg-corner-pad, 0px));
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: var(--card-pad);
  border: 1px solid var(--wk-frame-edge);
  border-radius: 2rem;
  corner-shape: superellipse(1.3467);
  background: var(--wk-card-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: var(--wk-card-shadow);
  color: var(--lg-text);
  text-decoration: none;
}
.card-art {
  width: clamp(66px, 6vw, 84px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: max(10px, calc(var(--lg-R, 2rem) - var(--card-pad)));
  corner-shape: inherit;
}
.card-info {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .5rem;
  font: 600 1.25rem / 1.25 Montserrat, "Montserrat Title Fallback", Arial, sans-serif;
}
.card-title, .card-text { overflow-wrap: anywhere; hyphens: manual; }
.card-title {
  text-box: trim-both cap alphabetic;
  font: inherit;
  letter-spacing: -.035em;
}
.card-note { display: inline-flex; align-items: center; margin-top: auto; color: var(--lg-text-3); font-size: .71875rem; line-height: 1.3; }
.card-note > span { text-box: trim-both cap alphabetic; }
.card-text {
  margin-block: .45rem .8rem;
  color: var(--lg-text-2);
  font-size: .9375rem;
  line-height: 1.5;
  text-wrap: balance;
}
.card-text:last-child { margin-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  color: var(--lg-text-3);
  font-size: .71875rem;
  font-weight: 600;
  line-height: 1.3;
}
.badge > span { text-box: trim-both cap alphabetic; }
.badge::before {
  content: "";
  flex: none;
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--wk-gold);
}
.card--link {
  transition: border-color var(--lg-dur-small) var(--lg-ease-glide),
              box-shadow var(--lg-dur-small) var(--lg-ease-glide);
}
.card-arrow { display: flex; align-items: center; justify-content: center; flex: none; width: 1.25rem; height: 1cap; color: var(--lg-accent); }
.card-arrow svg { display: block; }
@supports not (text-box: trim-both cap alphabetic) {
  .card-arrow { height: 1lh; }
}
.card--link:focus-visible { border-color: var(--wk-frame-hover); }
@media (hover: hover) {
  .card--link:hover { border-color: var(--wk-frame-hover); box-shadow: var(--lg-shadow-2); }
  .card--link:hover .card-title { text-decoration: underline; text-underline-offset: .18em; }
}

@media (min-width: 64rem) {
  .card-head { font-size: 1.375rem; }
}
@media (min-width: 100rem) {
  :root { --wk-frame: clamp(76rem, 70vw, 92rem); }
}
@media (min-width: 44rem) and (max-height: 50rem) {
  .hero { --identity-art: clamp(185px, 29vh, 232px); }
  main.landing { gap: 26px; padding-block: 12px 30px; }
  .catchline { font-size: clamp(2rem, 3.2vw, 2.8rem); }
}
/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  container-type: inline-size;
  color: var(--lg-text-3);
  font-family: Montserrat, "Montserrat Caption Fallback", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
}

.site-footer p {
  border-top: 1px solid var(--lg-divider);
  padding-top: 20px;
}
.site-footer .brand {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-inline-end: -.12em;
  color: var(--lg-text-2);
}

.site-footer .sep {
  display: inline-block;
  inline-size: 1em;
  white-space: pre;
}
.nw { white-space: nowrap; }
/* Measure against the footer type so enlarged text gets the same clean breaks. */
@container (max-width: 32em) {
  .site-footer .sep-wrap { display: none; }
  .site-footer .nw:last-child { display: block; margin-top: 2px; }
}
@container (max-width: 21em) {
  .site-footer .sep { display: none; }
  .site-footer .nw { display: block; }
}

/* ---------- 404 page ---------- */

.notfound .logo {
  width: var(--wk-logo-size);
  margin: calc(var(--wk-logo-size) * -.10) 0 calc(var(--wk-logo-size) * -.11);
  line-height: 0;
}
.notfound .logo img { width: 100%; height: auto; }

.notfound {
  max-width: var(--wk-frame);
  margin: 0 auto;
  padding: clamp(48px, 12vh, 96px) max(var(--wk-gutter), env(safe-area-inset-left)) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.notfound h1 {
  position: relative;
  margin-top: 12px;
  font-family: Montserrat, "Montserrat Headline Fallback", Arial, sans-serif;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--lg-text);
  text-wrap: balance;
}

.notfound-action {
  position: relative;
  margin-top: 8px;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--lg-control-float);
  padding: 0 24px;
  border-radius: var(--lg-radius-capsule);
  corner-shape: round;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--lg-dur-fade) var(--lg-ease-fade),
    border-color var(--lg-dur-fade) var(--lg-ease-fade);
}
@media (hover: hover) {
  .home-pill:hover {
    background: var(--lg-float-glass-hover);
  }
}

/* ---------- Bilingual visibility (head bootstrap sets html[lang]) ---------- */

html[lang="en"] .bilingual > [lang="nb"],
html[lang="nb"] .bilingual > [lang="en"] { display: none; }

/* Accessibility and material fallbacks */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: var(--wk-card-solid); }
  .lang-switch, .home-pill, .flow-toggle { background: var(--wk-float-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .card { background: var(--wk-card-solid); }
  .lang-switch, .home-pill, .flow-toggle { background: var(--wk-float-solid); }
  .card, .lang-switch, .home-pill, .flow-toggle {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lgc-segment-thumb, .card--link { transition: none !important; }
}
@media (forced-colors: active) {
  .liquid-field, .flow-toggle, .card-art { display: none; }
  .card, .lang-switch, .home-pill {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .lgc-segment-thumb { border: 2px solid Highlight; background: Canvas; box-shadow: none; }
  .lang-btn[aria-pressed="true"] { color: Highlight; text-decoration: underline; text-underline-offset: 4px; }
  .badge::before { background: CanvasText; }
}
