/* falkorq.moe — combined stylesheet.
   Generated by scripts/build-css.mjs from css/fonts.css, css/tokens.css, css/base.css, css/components.css, css/sections.css.
   Edit the source files, then run: node scripts/build-css.mjs
   Keep the ?v= cache-buster in index.html in sync with a deploy. */

/* ===== css/fonts.css ===== */
/* ==========================================================================
   Self-hosted fonts: Roboto Flex (M3 brand/plain), JetBrains Mono (addresses),
   Material Symbols Rounded (subset generated from used ligatures).
   ========================================================================== */

/* Roboto Flex: Cyrillic */
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  font-optical-sizing: auto;
  src: url("../assets/fonts/roboto-flex-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Roboto Flex: Latin */
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  font-optical-sizing: auto;
  src: url("../assets/fonts/roboto-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono: Cyrillic */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* JetBrains Mono: Latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Material Symbols Rounded, variable FILL / wght / GRAD / opsz */
@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("../assets/fonts/material-symbols-rounded.woff2") format("woff2");
}

/* ===== css/tokens.css ===== */
/* ==========================================================================
   Material 3 Expressive tokens
   Seed #315E97. Scheme: expressive, ColorSpec 2025, contrast 0.
   Custom love role seed #C25E83.
   Generated by scripts/generate_theme.py. Do not edit by hand.
   ========================================================================== */

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

  /* Primary */
  --md-sys-color-primary: #2060a6;
  --md-sys-color-on-primary: #f8f8ff;
  --md-sys-color-primary-container: #9cc3ff;
  --md-sys-color-on-primary-container: #003d74;
  --md-sys-color-primary-fixed: #9cc3ff;
  --md-sys-color-primary-fixed-dim: #82b5ff;
  --md-sys-color-on-primary-fixed: #00284f;
  --md-sys-color-on-primary-fixed-variant: #004683;
  --md-sys-color-primary-dim: #07549a;

  /* Secondary */
  --md-sys-color-secondary: #416752;
  --md-sys-color-on-secondary: #e6ffee;
  --md-sys-color-secondary-container: #d0fbe0;
  --md-sys-color-on-secondary-container: #3c624e;
  --md-sys-color-secondary-fixed: #d0fbe0;
  --md-sys-color-secondary-fixed-dim: #c2ecd2;
  --md-sys-color-on-secondary-fixed: #2a4f3c;
  --md-sys-color-on-secondary-fixed-variant: #476c57;
  --md-sys-color-secondary-dim: #355b47;

  /* Tertiary */
  --md-sys-color-tertiary: #006e3f;
  --md-sys-color-on-tertiary: #e7ffeb;
  --md-sys-color-tertiary-container: #9bfdbe;
  --md-sys-color-on-tertiary-container: #006238;
  --md-sys-color-tertiary-fixed: #9bfdbe;
  --md-sys-color-tertiary-fixed-dim: #8deeb1;
  --md-sys-color-on-tertiary-fixed: #004e2b;
  --md-sys-color-on-tertiary-fixed-variant: #006e3f;
  --md-sys-color-tertiary-dim: #006037;

  /* Error */
  --md-sys-color-error: #ac3434;
  --md-sys-color-on-error: #fff7f6;
  --md-sys-color-error-container: #f56965;
  --md-sys-color-on-error-container: #65000b;
  --md-sys-color-error-dim: #70030f;

  /* Surface */
  --md-sys-color-background: #f9f9ff;
  --md-sys-color-on-background: #183355;
  --md-sys-color-surface: #f9f9ff;
  --md-sys-color-on-surface: #183355;
  --md-sys-color-surface-variant: #d4e3ff;
  --md-sys-color-on-surface-variant: #486084;
  --md-sys-color-surface-tint: #2060a6;
  --md-sys-color-surface-dim: #c7dbff;
  --md-sys-color-surface-bright: #f9f9ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f0f3ff;
  --md-sys-color-surface-container: #e7eeff;
  --md-sys-color-surface-container-high: #dde9ff;
  --md-sys-color-surface-container-highest: #d4e3ff;

  /* Outline and inverse */
  --md-sys-color-outline: #637ca2;
  --md-sys-color-outline-variant: #9ab3dc;
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;
  --md-sys-color-inverse-surface: #030e20;
  --md-sys-color-inverse-on-surface: #919db4;
  --md-sys-color-inverse-primary: #7ab0fc;

  /* Custom role: love, for the Yuna card and the heart marks */
  --md-sys-color-love: #a94a6f;
  --md-sys-color-on-love: #fffbff;
  --md-sys-color-love-container: #ffd9e3;
  --md-sys-color-on-love-container: #5f0d34;
  --md-sys-color-love-dim: #7d264a;
}

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

  /* Primary */
  --md-sys-color-primary: #a6c8ff;
  --md-sys-color-on-primary: #1a416f;
  --md-sys-color-primary-container: #224876;
  --md-sys-color-on-primary-container: #b6d2ff;
  --md-sys-color-primary-fixed: #a6c8ff;
  --md-sys-color-primary-fixed-dim: #98baf0;
  --md-sys-color-on-primary-fixed: #002c57;
  --md-sys-color-on-primary-fixed-variant: #254a79;
  --md-sys-color-primary-dim: #98baf0;

  /* Secondary */
  --md-sys-color-secondary: #b4ccbc;
  --md-sys-color-on-secondary: #304539;
  --md-sys-color-secondary-container: #152a1f;
  --md-sys-color-on-secondary-container: #92a99a;
  --md-sys-color-secondary-fixed: #def7e5;
  --md-sys-color-secondary-fixed-dim: #d0e8d7;
  --md-sys-color-on-secondary-fixed: #374d40;
  --md-sys-color-on-secondary-fixed-variant: #53695c;
  --md-sys-color-secondary-dim: #a7beae;

  /* Tertiary */
  --md-sys-color-tertiary: #ddffe4;
  --md-sys-color-on-tertiary: #006c3e;
  --md-sys-color-tertiary-container: #9bfdbe;
  --md-sys-color-on-tertiary-container: #006238;
  --md-sys-color-tertiary-fixed: #9bfdbe;
  --md-sys-color-tertiary-fixed-dim: #8deeb1;
  --md-sys-color-on-tertiary-fixed: #004e2b;
  --md-sys-color-on-tertiary-fixed-variant: #006e3f;
  --md-sys-color-tertiary-dim: #9bfdbe;

  /* Error */
  --md-sys-color-error: #ff716c;
  --md-sys-color-on-error: #490006;
  --md-sys-color-error-container: #8a1a1e;
  --md-sys-color-on-error-container: #ff9993;
  --md-sys-color-error-dim: #c94947;

  /* Surface */
  --md-sys-color-background: #060e1b;
  --md-sys-color-on-background: #d9e6ff;
  --md-sys-color-surface: #060e1b;
  --md-sys-color-on-surface: #d9e6ff;
  --md-sys-color-surface-variant: #15263e;
  --md-sys-color-on-surface-variant: #9bacca;
  --md-sys-color-surface-tint: #a6c8ff;
  --md-sys-color-surface-dim: #060e1b;
  --md-sys-color-surface-bright: #182d48;
  --md-sys-color-surface-container-lowest: #000000;
  --md-sys-color-surface-container-low: #091423;
  --md-sys-color-surface-container: #0d1a2c;
  --md-sys-color-surface-container-high: #112035;
  --md-sys-color-surface-container-highest: #15263e;

  /* Outline and inverse */
  --md-sys-color-outline: #657692;
  --md-sys-color-outline-variant: #384962;
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;
  --md-sys-color-inverse-surface: #f9f9ff;
  --md-sys-color-inverse-on-surface: #4d5564;
  --md-sys-color-inverse-primary: #3d6090;

  /* Custom role: love, for the Yuna card and the heart marks */
  --md-sys-color-love: #ffb0c9;
  --md-sys-color-on-love: #5f0d34;
  --md-sys-color-love-container: #7d264a;
  --md-sys-color-on-love-container: #ffd9e3;
  --md-sys-color-love-dim: #ffb0c9;
}

/* Reference ---------------------------------------------------------------- */
:root {
  /* Typefaces */
  --md-ref-typeface-brand: "Roboto Flex", Roboto, system-ui, sans-serif;
  --md-ref-typeface-plain: "Roboto Flex", Roboto, system-ui, sans-serif;
  --md-ref-typeface-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --md-ref-typeface-weight-regular: 400;
  --md-ref-typeface-weight-medium: 500;
  --md-ref-typeface-weight-bold: 700;

  /* Typescale */
  --md-sys-typescale-display-large-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-display-large-size: 3.5625rem;
  --md-sys-typescale-display-large-line-height: 4rem;
  --md-sys-typescale-display-large-weight: 400;
  --md-sys-typescale-display-large-tracking: -0.0125rem;
  --md-sys-typescale-display-large-emphasized-weight: 500;
  --md-sys-typescale-display-large-emphasized-tracking: 0;

  --md-sys-typescale-display-medium-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-display-medium-size: 2.8125rem;
  --md-sys-typescale-display-medium-line-height: 3.25rem;
  --md-sys-typescale-display-medium-weight: 400;
  --md-sys-typescale-display-medium-tracking: 0;
  --md-sys-typescale-display-medium-emphasized-weight: 500;
  --md-sys-typescale-display-medium-emphasized-tracking: 0;

  --md-sys-typescale-display-small-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-display-small-size: 2.25rem;
  --md-sys-typescale-display-small-line-height: 2.75rem;
  --md-sys-typescale-display-small-weight: 400;
  --md-sys-typescale-display-small-tracking: 0;
  --md-sys-typescale-display-small-emphasized-weight: 500;
  --md-sys-typescale-display-small-emphasized-tracking: 0;

  --md-sys-typescale-headline-large-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-large-size: 2rem;
  --md-sys-typescale-headline-large-line-height: 2.5rem;
  --md-sys-typescale-headline-large-weight: 400;
  --md-sys-typescale-headline-large-tracking: 0;
  --md-sys-typescale-headline-large-emphasized-weight: 500;
  --md-sys-typescale-headline-large-emphasized-tracking: 0;

  --md-sys-typescale-headline-medium-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-medium-size: 1.75rem;
  --md-sys-typescale-headline-medium-line-height: 2.25rem;
  --md-sys-typescale-headline-medium-weight: 400;
  --md-sys-typescale-headline-medium-tracking: 0;
  --md-sys-typescale-headline-medium-emphasized-weight: 500;
  --md-sys-typescale-headline-medium-emphasized-tracking: 0;

  --md-sys-typescale-headline-small-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-headline-small-size: 1.5rem;
  --md-sys-typescale-headline-small-line-height: 2rem;
  --md-sys-typescale-headline-small-weight: 400;
  --md-sys-typescale-headline-small-tracking: 0;
  --md-sys-typescale-headline-small-emphasized-weight: 500;
  --md-sys-typescale-headline-small-emphasized-tracking: 0;

  --md-sys-typescale-title-large-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-title-large-size: 1.375rem;
  --md-sys-typescale-title-large-line-height: 1.75rem;
  --md-sys-typescale-title-large-weight: 400;
  --md-sys-typescale-title-large-tracking: 0;
  --md-sys-typescale-title-large-emphasized-weight: 500;
  --md-sys-typescale-title-large-emphasized-tracking: 0;

  --md-sys-typescale-title-medium-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-title-medium-size: 1rem;
  --md-sys-typescale-title-medium-line-height: 1.5rem;
  --md-sys-typescale-title-medium-weight: 500;
  --md-sys-typescale-title-medium-tracking: 0.0125rem;
  --md-sys-typescale-title-medium-emphasized-weight: 700;
  --md-sys-typescale-title-medium-emphasized-tracking: 0.009375rem;

  --md-sys-typescale-title-small-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-title-small-size: 0.875rem;
  --md-sys-typescale-title-small-line-height: 1.25rem;
  --md-sys-typescale-title-small-weight: 500;
  --md-sys-typescale-title-small-tracking: 0.00625rem;
  --md-sys-typescale-title-small-emphasized-weight: 700;
  --md-sys-typescale-title-small-emphasized-tracking: 0.00625rem;

  --md-sys-typescale-body-large-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-body-large-size: 1rem;
  --md-sys-typescale-body-large-line-height: 1.5rem;
  --md-sys-typescale-body-large-weight: 400;
  --md-sys-typescale-body-large-tracking: 0.03125rem;
  --md-sys-typescale-body-large-emphasized-weight: 500;
  --md-sys-typescale-body-large-emphasized-tracking: 0.009375rem;

  --md-sys-typescale-body-medium-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-body-medium-size: 0.875rem;
  --md-sys-typescale-body-medium-line-height: 1.25rem;
  --md-sys-typescale-body-medium-weight: 400;
  --md-sys-typescale-body-medium-tracking: 0.0125rem;
  --md-sys-typescale-body-medium-emphasized-weight: 500;
  --md-sys-typescale-body-medium-emphasized-tracking: 0.015625rem;

  --md-sys-typescale-body-small-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-body-small-size: 0.75rem;
  --md-sys-typescale-body-small-line-height: 1rem;
  --md-sys-typescale-body-small-weight: 400;
  --md-sys-typescale-body-small-tracking: 0.025rem;
  --md-sys-typescale-body-small-emphasized-weight: 500;
  --md-sys-typescale-body-small-emphasized-tracking: 0.025rem;

  --md-sys-typescale-label-large-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-label-large-size: 0.875rem;
  --md-sys-typescale-label-large-line-height: 1.25rem;
  --md-sys-typescale-label-large-weight: 500;
  --md-sys-typescale-label-large-tracking: 0.00625rem;
  --md-sys-typescale-label-large-emphasized-weight: 700;
  --md-sys-typescale-label-large-emphasized-tracking: 0.00625rem;

  --md-sys-typescale-label-medium-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-label-medium-size: 0.75rem;
  --md-sys-typescale-label-medium-line-height: 1rem;
  --md-sys-typescale-label-medium-weight: 500;
  --md-sys-typescale-label-medium-tracking: 0.03125rem;
  --md-sys-typescale-label-medium-emphasized-weight: 700;
  --md-sys-typescale-label-medium-emphasized-tracking: 0.03125rem;

  --md-sys-typescale-label-small-font: var(--md-ref-typeface-plain);
  --md-sys-typescale-label-small-size: 0.6875rem;
  --md-sys-typescale-label-small-line-height: 1rem;
  --md-sys-typescale-label-small-weight: 500;
  --md-sys-typescale-label-small-tracking: 0.03125rem;
  --md-sys-typescale-label-small-emphasized-weight: 700;
  --md-sys-typescale-label-small-emphasized-tracking: 0.03125rem;

  /* Shape: M3 Expressive corner scale */
  --md-sys-shape-corner-none: 0;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-large-increased: 20px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-extra-large-increased: 32px;
  --md-sys-shape-corner-extra-extra-large: 48px;
  --md-sys-shape-corner-full: 9999px;

  /* State: 2025 focus indicator is 3dp secondary, 2dp outside */
  --md-sys-state-hover-opacity: 0.08;
  --md-sys-state-focus-opacity: 0.1;
  --md-sys-state-pressed-opacity: 0.1;
  --md-sys-state-dragged-opacity: 0.16;
  --md-sys-state-disabled-container-opacity: 0.12;
  --md-sys-state-disabled-content-opacity: 0.38;
  --md-sys-state-focus-indicator-thickness: 3px;
  --md-sys-state-focus-indicator-offset: 2px;

  /* Elevation: tonal surfaces first, shadows only for floating layers */
  --md-sys-elevation-level0: none;
  --md-sys-elevation-level1: 0 1px 2px 0 rgb(0 0 0 / 0.18), 0 1px 3px 1px rgb(0 0 0 / 0.08);
  --md-sys-elevation-level2: 0 1px 2px 0 rgb(0 0 0 / 0.2), 0 2px 6px 2px rgb(0 0 0 / 0.1);
  --md-sys-elevation-level3: 0 2px 4px 0 rgb(0 0 0 / 0.2), 0 4px 10px 3px rgb(0 0 0 / 0.1);
  --md-sys-elevation-level4: 0 2px 4px 0 rgb(0 0 0 / 0.2), 0 6px 14px 4px rgb(0 0 0 / 0.1);
  --md-sys-elevation-level5: 0 4px 8px 0 rgb(0 0 0 / 0.2), 0 8px 20px 6px rgb(0 0 0 / 0.12);

  /* Legacy durations, for simple fades and state layers */
  --md-sys-motion-duration-short1: 50ms;
  --md-sys-motion-duration-short2: 100ms;
  --md-sys-motion-duration-short3: 150ms;
  --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium1: 250ms;
  --md-sys-motion-duration-medium2: 300ms;
  --md-sys-motion-duration-medium3: 350ms;
  --md-sys-motion-duration-medium4: 400ms;
  --md-sys-motion-duration-long1: 450ms;
  --md-sys-motion-duration-long2: 500ms;
  --md-sys-motion-duration-long3: 550ms;
  --md-sys-motion-duration-long4: 600ms;
  --md-sys-motion-duration-extra-long4: 1000ms;

  /* Spacing: 8dp-based M3 scale */
  --md-sys-space-0: 0;
  --md-sys-space-25: 2px;
  --md-sys-space-50: 4px;
  --md-sys-space-75: 6px;
  --md-sys-space-100: 8px;
  --md-sys-space-125: 10px;
  --md-sys-space-150: 12px;
  --md-sys-space-175: 14px;
  --md-sys-space-200: 16px;
  --md-sys-space-250: 20px;
  --md-sys-space-300: 24px;
  --md-sys-space-400: 32px;
  --md-sys-space-450: 36px;
  --md-sys-space-500: 40px;
  --md-sys-space-600: 48px;
  --md-sys-space-700: 56px;
  --md-sys-space-800: 64px;
  --md-sys-space-900: 72px;

  /* Layout */
  --md-sys-layout-margin-compact: 16px;
  --md-sys-layout-margin-medium: 24px;
  --md-sys-layout-margin-expanded: 32px;
  --md-sys-layout-gap: 16px;
  --md-sys-layout-max-width: 1160px;
  --md-sys-layout-rail-width: 88px;
  --md-sys-layout-top-bar-height: 64px;
  --md-sys-layout-nav-bar-height: 72px;

  /* Safe areas */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

/* ==========================================================================
   Material 3 Expressive motion springs
   Values: AndroidX Compose ExpressiveMotionTokens / StandardMotionTokens,
   converted to CSS linear() curves (Apache-2.0, via m3e-tokens).
   Spatial springs animate position, size, scale, rotation, corner radius and
   shape. Effects springs animate color, opacity and elevation, and never
   overshoot. Reduced motion snaps spatial changes to 0ms and keeps a short
   effects cross-fade.
   ========================================================================== */

/* Motion */
:root {
  --md-sys-motion-spring-fast-spatial-easing: cubic-bezier(0.42, 1.67, 0.21, 0.9);
  --md-sys-motion-spring-default-spatial-easing: cubic-bezier(0.38, 1.21, 0.22, 1);
  --md-sys-motion-spring-slow-spatial-easing: cubic-bezier(0.39, 1.29, 0.35, 0.98);
  --md-sys-motion-spring-fast-effects-easing: cubic-bezier(0.31, 0.94, 0.34, 1);
  --md-sys-motion-spring-default-effects-easing: cubic-bezier(0.34, 0.8, 0.34, 1);
  --md-sys-motion-spring-slow-effects-easing: cubic-bezier(0.34, 0.88, 0.34, 1);
  --md-sys-motion-spring-expressive-fast-spatial-easing: linear(0, .0016 .48%, .0061 .95%, .0134 1.43%, .0292 2.14%, .0426 2.62%, .0665 3.33%, .0945 4.05%, .1259 4.76%, .1847 5.95%, .2492 7.14%, .3174 8.33%, .5274 11.9%, .5946 13.1%, .6462 14.05%, .7075 15.24%, .7645 16.43%, .817 17.62%, .8555 18.57%, .8908 19.52%, .9305 20.71%, .9588 21.67%, .9897 22.86%, 1.016 24.05%, 1.0379 25.24%, 1.0557 26.43%, 1.0697 27.62%, 1.0835 29.29%, 1.0915 30.95%, 1.0948 32.86%, 1.0925 35%, 1.0875 36.67%, 1.0794 38.57%, 1.0345 46.9%, 1.0153 51.19%, 1.0014 55.71%, .9934 60.71%, .9912 67.62%, .9995 87.14%, 1);
  --md-sys-motion-spring-expressive-fast-spatial-duration: .42s;
  --md-sys-motion-spring-expressive-fast-spatial-bezier: cubic-bezier(.42, 1.67, .21, .9);
  --md-sys-motion-spring-expressive-fast-spatial-bezier-duration: .35s;
  --md-sys-motion-spring-expressive-default-spatial-easing: linear(0, .0017 .63%, .0064 1.26%, .014 1.89%, .0241 2.53%, .0365 3.16%, .0562 4%, .073 4.63%, .0978 5.47%, .1178 6.11%, .1462 6.95%, .1994 8.42%, .2556 9.89%, .4279 14.32%, .4832 15.79%, .5363 17.26%, .5937 18.95%, .6407 20.42%, .6844 21.89%, .7249 23.37%, .762 24.84%, .7958 26.32%, .8264 27.79%, .8539 29.26%, .8785 30.74%, .9031 32.42%, .9244 34.11%, .9426 35.79%, .958 37.47%, .9709 39.16%, .9828 41.05%, .9923 42.95%, .9996 44.84%, 1.0057 46.95%, 1.0103 49.26%, 1.0133 51.79%, 1.015 55.16%, 1.0148 59.16%, 1.0036 81.47%, 1);
  --md-sys-motion-spring-expressive-default-spatial-duration: 475ms;
  --md-sys-motion-spring-expressive-default-spatial-bezier: cubic-bezier(.38, 1.21, .22, 1);
  --md-sys-motion-spring-expressive-default-spatial-bezier-duration: .5s;
  --md-sys-motion-spring-expressive-slow-spatial-easing: linear(0, .0016 .61%, .006 1.22%, .0131 1.83%, .0254 2.6%, .0376 3.21%, .0555 3.97%, .0759 4.73%, .0985 5.5%, .1436 6.87%, .1987 8.4%, .2569 9.92%, .4352 14.5%, .4923 16.03%, .5415 17.4%, .5934 18.93%, .6421 20.46%, .6873 21.98%, .7249 23.36%, .7596 24.73%, .7948 26.26%, .8266 27.79%, .855 29.31%, .8803 30.84%, .9025 32.37%, .9239 34.05%, .9421 35.73%, .9576 37.4%, .9705 39.08%, .9821 40.92%, .9914 42.75%, .9993 44.73%, 1.0055 46.87%, 1.0101 49.16%, 1.0132 51.6%, 1.015 54.96%, 1.0148 59.08%, 1.0035 81.53%, 1.0013 89.77%, 1);
  --md-sys-motion-spring-expressive-slow-spatial-duration: 655ms;
  --md-sys-motion-spring-expressive-slow-spatial-bezier: cubic-bezier(.39, 1.29, .35, .98);
  --md-sys-motion-spring-expressive-slow-spatial-bezier-duration: .65s;
  --md-sys-motion-spring-expressive-fast-effects-easing: linear(0, .0018 .67%, .007 1.34%, .0151 2.01%, .0258 2.68%, .0388 3.36%, .0537 4.03%, .0881 5.37%, .1273 6.71%, .1697 8.05%, .3712 14.09%, .4143 15.44%, .4558 16.78%, .5148 18.79%, .5517 20.13%, .5865 21.48%, .635 23.49%, .6647 24.83%, .7056 26.85%, .7305 28.19%, .7645 30.2%, .785 31.54%, .8128 33.56%, .8374 35.57%, .859 37.58%, .8779 39.6%, .8995 42.28%, .9133 44.3%, .929 46.98%, .9419 49.66%, .9526 52.35%, .9614 55.03%, .9702 58.39%, .977 61.74%, .9823 65.1%, .9872 69.13%, .9912 73.83%, .9959 83.22%, .9989 99.33%, 1);
  --md-sys-motion-spring-expressive-fast-effects-duration: 149ms;
  --md-sys-motion-spring-expressive-fast-effects-bezier: cubic-bezier(.31, .94, .34, 1);
  --md-sys-motion-spring-expressive-fast-effects-bezier-duration: .15s;
  --md-sys-motion-spring-expressive-default-effects-easing: linear(0, .0008 .43%, .003 .87%, .0066 1.3%, .0175 2.17%, .0246 2.61%, .0415 3.48%, .0616 4.35%, .0842 5.22%, .1219 6.52%, .1628 7.83%, .3661 13.91%, .4219 15.65%, .4621 16.96%, .5129 18.7%, .5605 20.43%, .594 21.74%, .6356 23.48%, .6737 25.22%, .7086 26.96%, .7402 28.7%, .7689 30.43%, .7948 32.17%, .8181 33.91%, .839 35.65%, .862 37.83%, .882 40%, .8992 42.17%, .9141 44.35%, .9292 46.96%, .9418 49.57%, .9538 52.61%, .9634 55.65%, .9711 58.7%, .978 62.17%, .9832 65.65%, .9913 73.91%, .9958 83.04%, .9989 99.57%, 1);
  --md-sys-motion-spring-expressive-default-effects-duration: .23s;
  --md-sys-motion-spring-expressive-default-effects-bezier: cubic-bezier(.34, .8, .34, 1);
  --md-sys-motion-spring-expressive-default-effects-bezier-duration: .2s;
  --md-sys-motion-spring-expressive-slow-effects-easing: linear(0, .0015 .61%, .0059 1.23%, .0129 1.84%, .022 2.45%, .0332 3.07%, .0461 3.68%, .0605 4.29%, .0844 5.21%, .1199 6.44%, .1583 7.67%, .2087 9.2%, .3635 13.8%, .4131 15.34%, .4606 16.87%, .5146 18.71%, .5567 20.25%, .5962 21.78%, .633 23.31%, .6671 24.85%, .7045 26.69%, .733 28.22%, .7641 30.06%, .792 31.9%, .8169 33.74%, .8391 35.58%, .8588 37.42%, .879 39.57%, .8988 42.02%, .9156 44.48%, .9297 46.93%, .9429 49.69%, .9537 52.45%, .9634 55.52%, .9711 58.59%, .9834 65.64%, .9914 73.93%, .9959 83.13%, .999 99.69%, 1);
  --md-sys-motion-spring-expressive-slow-effects-duration: 326ms;
  --md-sys-motion-spring-expressive-slow-effects-bezier: cubic-bezier(.34, .88, .34, 1);
  --md-sys-motion-spring-expressive-slow-effects-bezier-duration: .3s;
  /* Unprefixed aliases follow the expressive scheme. */
  --md-sys-motion-spring-fast-spatial-easing: var(--md-sys-motion-spring-expressive-fast-spatial-easing);
  --md-sys-motion-spring-fast-spatial-duration: var(--md-sys-motion-spring-expressive-fast-spatial-duration);
  --md-sys-motion-spring-default-spatial-easing: var(--md-sys-motion-spring-expressive-default-spatial-easing);
  --md-sys-motion-spring-default-spatial-duration: var(--md-sys-motion-spring-expressive-default-spatial-duration);
  --md-sys-motion-spring-slow-spatial-easing: var(--md-sys-motion-spring-expressive-slow-spatial-easing);
  --md-sys-motion-spring-slow-spatial-duration: var(--md-sys-motion-spring-expressive-slow-spatial-duration);
  --md-sys-motion-spring-fast-effects-easing: var(--md-sys-motion-spring-expressive-fast-effects-easing);
  --md-sys-motion-spring-fast-effects-duration: var(--md-sys-motion-spring-expressive-fast-effects-duration);
  --md-sys-motion-spring-default-effects-easing: var(--md-sys-motion-spring-expressive-default-effects-easing);
  --md-sys-motion-spring-default-effects-duration: var(--md-sys-motion-spring-expressive-default-effects-duration);
  --md-sys-motion-spring-slow-effects-easing: var(--md-sys-motion-spring-expressive-slow-effects-easing);
  --md-sys-motion-spring-slow-effects-duration: var(--md-sys-motion-spring-expressive-slow-effects-duration);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --md-sys-motion-spring-fast-spatial-duration: 0ms;
    --md-sys-motion-spring-default-spatial-duration: 0ms;
    --md-sys-motion-spring-slow-spatial-duration: 0ms;
    --md-sys-motion-spring-fast-effects-duration: 149ms;
    --md-sys-motion-spring-default-effects-duration: 149ms;
    --md-sys-motion-spring-slow-effects-duration: 149ms;
  }
}

/* ===== css/base.css ===== */
/* ==========================================================================
   Base: reset, document, typography, layout primitives, focus, a11y
   ========================================================================== */

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--md-sys-layout-top-bar-height) + 16px + var(--safe-area-top));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-top: calc(var(--md-sys-layout-top-bar-height) + var(--safe-area-top));
  padding-bottom: calc(var(--md-sys-layout-nav-bar-height) + var(--safe-area-bottom) + 28px);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
  overflow-x: clip;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-body-large-font);
  font-size: var(--md-sys-typescale-body-large-size);
  font-weight: var(--md-sys-typescale-body-large-weight);
  line-height: var(--md-sys-typescale-body-large-line-height);
  letter-spacing: var(--md-sys-typescale-body-large-tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: var(--md-sys-color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);
  outline-offset: var(--md-sys-state-focus-indicator-offset);
  border-radius: var(--md-sys-shape-corner-small);
}

::selection {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: calc(8px + var(--safe-area-top));
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--md-sys-color-primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--md-sys-layout-max-width);
  margin-inline: auto;
  padding-inline: var(--md-sys-layout-margin-compact);
}

.shape-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.m3-icon {
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex: none;
}

.text-balance {
  text-wrap: balance;
}

@media (min-width: 600px) {
  .container {
    padding-inline: var(--md-sys-layout-margin-medium);
  }
}

@media (min-width: 840px) {
  body {
    padding-bottom: 0;
    padding-left: calc(var(--md-sys-layout-rail-width) + 40px + var(--safe-area-left));
  }

  .container {
    padding-inline: var(--md-sys-layout-margin-expanded);
  }
}

@media (min-width: 1200px) {
  :root {
    --md-sys-layout-max-width: 1200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (forced-colors: active) {
  .m3-icon {
    forced-color-adjust: auto;
  }
}

/* ===== css/components.css ===== */
/* ==========================================================================
   Components: app bars, navigation, menus, sheet, buttons, chips, cards,
   lists, tabs, snackbar, footer, state layers and ripple.
   ========================================================================== */

/* Shared state layer ------------------------------------------------------- */
.m3-interactive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.m3-interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-short3)
    var(--md-sys-motion-easing-standard);
}

@media (hover: hover) {
  .m3-interactive:hover::after {
    opacity: var(--md-sys-state-hover-opacity);
  }
}

.m3-interactive:focus-visible::after {
  opacity: var(--md-sys-state-focus-opacity);
}

.m3-interactive:active::after {
  opacity: var(--md-sys-state-pressed-opacity);
}

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.14;
  transform: scale(0);
  pointer-events: none;
  animation: ripple 620ms var(--md-sys-motion-easing-standard-decelerate) forwards;
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* Top app bar -------------------------------------------------------------- */
.top-app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: calc(var(--md-sys-layout-top-bar-height) + var(--safe-area-top));
  padding: var(--safe-area-top) max(12px, var(--safe-area-right)) 0 max(12px, var(--safe-area-left));
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--md-sys-motion-spring-default-effects-duration)
      var(--md-sys-motion-spring-default-effects-easing),
    border-color var(--md-sys-motion-spring-default-effects-duration)
      var(--md-sys-motion-spring-default-effects-easing);
}

.top-app-bar.is-scrolled {
  background: var(--md-sys-color-surface-container);
  border-bottom-color: var(--md-sys-color-outline-variant);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding-right: 8px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  border-radius: var(--md-sys-shape-corner-full);
}

.brand:focus-visible {
  outline-offset: 0;
}

.brand__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  transform: rotate(-6deg);
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

.brand:hover .brand__avatar {
  transform: rotate(4deg) scale(1.05);
}

.brand__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand__name {
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand__dot {
  color: var(--md-sys-color-primary);
}

.top-app-bar__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant);
  transition:
    border-radius var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing),
    transform var(--md-sys-motion-duration-short3)
      var(--md-sys-motion-easing-standard);
}

.icon-button .m3-icon {
  font-size: 24px;
}

.icon-button:active {
  transform: scale(0.92);
}

.icon-button.is-active {
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
}

.theme-toggle .m3-icon {
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

.theme-toggle:active .m3-icon {
  transform: rotate(35deg);
}

/* App menu */
.app-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: max(8px, var(--safe-area-right));
  display: grid;
  min-width: 232px;
  padding: 8px;
  border-radius: 20px;
  background: var(--md-sys-color-surface-container-high);
  box-shadow: var(--md-sys-elevation-level2);
  border: 1px solid var(--md-sys-color-outline-variant);
  transform-origin: top right;
  animation: menu-in 180ms var(--md-sys-motion-spring-fast-spatial-easing);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-4px);
  }
}

.app-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-medium);
  color: var(--md-sys-color-on-surface);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  letter-spacing: 0.00625rem;
  text-decoration: none;
  white-space: nowrap;
}

.app-menu__item .m3-icon {
  font-size: 22px;
  color: var(--md-sys-color-on-surface-variant);
}

.app-menu__trail {
  margin-left: auto;
  font-size: 18px !important;
  opacity: 0.66;
}

.app-menu__item:hover {
  background: var(--md-sys-color-surface-container-highest);
}

.app-menu__item:active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--md-sys-color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 0 3px 3px 0;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Navigation rail --------------------------------------------------------- */
.nav-rail {
  position: fixed;
  top: 50%;
  left: calc(12px + var(--safe-area-left));
  z-index: 35;
  display: none;
  flex-direction: column;
  gap: 4px;
  width: var(--md-sys-layout-rail-width);
  padding: 12px 6px;
  border-radius: 32px;
  background: var(--md-sys-color-surface-container-high);
  box-shadow: var(--md-sys-elevation-level2);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
  transform: translateY(-50%);
}

.nav-rail__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 64px;
  padding: 4px 2px;
  border-radius: 20px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.nav-rail__indicator {
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  border-radius: var(--md-sys-shape-corner-full);
  transition:
    background-color var(--md-sys-motion-spring-fast-effects-duration)
      var(--md-sys-motion-spring-fast-effects-easing),
    transform var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing);
}

.nav-rail__item .m3-icon {
  font-size: 24px;
  transition: font-variation-settings var(--md-sys-motion-duration-short3) linear;
}

@media (hover: hover) {
  .nav-rail__item:hover .nav-rail__indicator {
    background: var(--md-sys-color-surface-container-highest);
  }
}

.nav-rail__item:active .nav-rail__indicator {
  transform: scale(0.9);
}

.nav-rail__item[aria-current="location"] {
  color: var(--md-sys-color-on-surface);
}

.nav-rail__item[aria-current="location"] .nav-rail__indicator,
.nav-rail__item.is-active .nav-rail__indicator {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.nav-rail__item[aria-current="location"] .m3-icon,
.nav-rail__item.is-active .m3-icon {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-rail__label {
  line-height: 1;
}

/* Bottom navigation ------------------------------------------------------- */
.nav-bar {
  position: fixed;
  left: max(12px, var(--safe-area-left));
  right: max(12px, var(--safe-area-right));
  bottom: calc(12px + var(--safe-area-bottom));
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  width: auto;
  max-width: 520px;
  height: var(--md-sys-layout-nav-bar-height);
  margin-inline: auto;
  padding: 6px;
  border-radius: 32px;
  background: var(--md-sys-color-surface-container-high);
  box-shadow: var(--md-sys-elevation-level3);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
  transition:
    transform var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing),
    opacity var(--md-sys-motion-spring-fast-effects-duration)
      var(--md-sys-motion-spring-fast-effects-easing);
}

.nav-bar.is-hidden {
  transform: translateY(calc(100% + 24px + var(--safe-area-bottom)));
  opacity: 0;
  pointer-events: none;
}

.nav-bar__item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  padding: 4px 0;
  border-radius: 24px;
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-bar__indicator {
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  border-radius: var(--md-sys-shape-corner-full);
  transition:
    background-color var(--md-sys-motion-spring-fast-effects-duration)
      var(--md-sys-motion-spring-fast-effects-easing),
    transform var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing);
}

.nav-bar__item .m3-icon {
  font-size: 24px;
  transition: font-variation-settings var(--md-sys-motion-duration-short3) linear;
}

.nav-bar__item:active .nav-bar__indicator {
  transform: scale(0.88);
}

.nav-bar__item[aria-current="location"] {
  color: var(--md-sys-color-on-surface);
}

.nav-bar__item[aria-current="location"] .nav-bar__indicator,
.nav-bar__item.is-active .nav-bar__indicator {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.nav-bar__item[aria-current="location"] .m3-icon,
.nav-bar__item.is-active .m3-icon {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-bar__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons ----------------------------------------------------------------- */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--md-sys-shape-corner-full);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  letter-spacing: 0.00625rem;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing),
    transform var(--md-sys-motion-duration-short3)
      var(--md-sys-motion-easing-standard),
    background-color var(--md-sys-motion-spring-fast-effects-duration)
      var(--md-sys-motion-spring-fast-effects-easing);
}

.button .m3-icon {
  font-size: 20px;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short3) linear;
}

@media (hover: hover) {
  .button:hover::after {
    opacity: var(--md-sys-state-hover-opacity);
  }
}

.button:focus-visible::after {
  opacity: var(--md-sys-state-focus-opacity);
}

.button:active {
  transform: scale(0.96);
  border-radius: 18px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: var(--md-sys-state-disabled-content-opacity);
}

.button--filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.button--tonal {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.button--outlined {
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
  background: transparent;
}

.button--text {
  min-height: 48px;
  padding: 0 10px;
  color: var(--md-sys-color-primary);
  background: transparent;
}

.button--full {
  width: 100%;
}

/* Chips ------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.75rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.chip--accent {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Menus (desktop More) ---------------------------------------------------- */
.more-menu-region {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.more-menu {
  position: fixed;
  min-width: 216px;
  padding: 8px;
  border-radius: 20px;
  background: var(--md-sys-color-surface-container-high);
  box-shadow: var(--md-sys-elevation-level2);
  border: 1px solid var(--md-sys-color-outline-variant);
  pointer-events: auto;
  transform-origin: bottom left;
  animation: menu-in 180ms var(--md-sys-motion-spring-fast-spatial-easing);
}

.more-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-medium);
  color: var(--md-sys-color-on-surface);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  text-decoration: none;
  white-space: nowrap;
}

.more-menu__item .m3-icon {
  font-size: 22px;
  color: var(--md-sys-color-on-surface-variant);
}

.more-menu__item:hover {
  background: var(--md-sys-color-surface-container-highest);
}

.more-menu__item[aria-current="location"] {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

/* Bottom sheet ------------------------------------------------------------ */
.more-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  overflow: hidden;
}

.more-sheet::backdrop {
  background: transparent;
}

.more-sheet__scrim {
  position: absolute;
  inset: 0;
  background: var(--md-sys-color-scrim);
  opacity: 0;
  transition: opacity 220ms linear;
}

.more-sheet__surface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px calc(20px + var(--safe-area-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--md-sys-color-surface-container-low);
  transform: translateY(100%);
  transition: transform var(--md-sys-motion-spring-slow-spatial-duration)
    var(--md-sys-motion-spring-slow-spatial-easing);
}

.more-sheet.is-open .more-sheet__scrim {
  opacity: 0.42;
}

.more-sheet.is-open .more-sheet__surface {
  transform: translateY(0);
}

.more-sheet.is-closing .more-sheet__surface {
  transform: translateY(100%);
  transition-duration: 200ms;
  transition-timing-function: var(--md-sys-motion-easing-standard-accelerate);
}

.more-sheet__handle {
  width: 32px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background: var(--md-sys-color-outline-variant);
}

.more-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.more-sheet__title {
  font: 500 1.5rem/2rem var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
}

.more-sheet__subtitle {
  margin-top: 2px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.more-sheet__list {
  display: grid;
  gap: 4px;
}

.more-sheet__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px 8px;
  border-radius: 20px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.more-sheet__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
}

.more-sheet__icon .m3-icon {
  font-size: 24px;
}

.more-sheet__icon--love {
  background: var(--md-sys-color-love-container);
  color: var(--md-sys-color-on-love-container);
}

.more-sheet__icon--primary {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.more-sheet__icon--secondary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.more-sheet__icon--tertiary {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.more-sheet__label {
  align-self: end;
  font: 500 1rem/1.5rem var(--md-ref-typeface-plain);
}

.more-sheet__description {
  align-self: start;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

.more-sheet__item:hover {
  background: var(--md-sys-color-surface-container);
}

.more-sheet__item[aria-current="location"] {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.more-sheet__item[aria-current="location"] .more-sheet__description {
  color: var(--md-sys-color-on-primary-container);
  opacity: 0.8;
}

/* Tabs -------------------------------------------------------------------- */
.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 620px;
  padding: 5px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container);
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.75rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--md-sys-motion-duration-short3) linear;
}

.tab .m3-icon {
  font-size: 20px;
}

.tab[aria-selected="true"] {
  color: var(--md-sys-color-on-primary-container);
  font-weight: 700;
}

.tab:active {
  transform: scale(0.97);
}

.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 0;
  width: calc((100% - 10px) / 3);
  height: calc(100% - 10px);
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary-container);
  transition:
    transform var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing),
    width var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing);
}

.tab-panel {
  padding-top: 24px;
  animation: panel-in 280ms var(--md-sys-motion-spring-fast-spatial-easing);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(var(--panel-shift, 0px)) translateY(8px);
  }
}

/* Snackbar ---------------------------------------------------------------- */
.snackbar {
  position: fixed;
  left: max(12px, var(--safe-area-left));
  right: max(12px, var(--safe-area-right));
  bottom: calc(var(--md-sys-layout-nav-bar-height) + var(--safe-area-bottom) + 26px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  width: auto;
  max-width: 440px;
  min-height: 52px;
  margin-inline: auto;
  padding: 10px 8px 10px 16px;
  border-radius: 16px;
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  box-shadow: var(--md-sys-elevation-level3);
  font: 400 0.875rem/1.25rem var(--md-ref-typeface-plain);
  animation: snackbar-in 240ms var(--md-sys-motion-spring-fast-spatial-easing);
}

@keyframes snackbar-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

.snackbar__text {
  flex: 1;
}

.snackbar__action {
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-inverse-primary);
  font: 700 0.75rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.03em;
}

.snackbar__action:hover {
  background: color-mix(in srgb, var(--md-sys-color-inverse-primary) 12%, transparent);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  margin-top: 40px;
  padding: 32px 0 calc(var(--md-sys-layout-nav-bar-height) + var(--safe-area-bottom) + 40px);
  background: var(--md-sys-color-surface-container-low);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.site-footer__inner {
  display: grid;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__name {
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-footer__name span {
  color: var(--md-sys-color-primary);
}

.site-footer__owner {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

.site-footer__quote {
  max-width: 42ch;
}

.site-footer__quote blockquote {
  color: var(--md-sys-color-on-surface);
  font: 500 1rem/1.5rem var(--md-ref-typeface-plain);
}

.site-footer__quote figcaption {
  margin-top: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  text-decoration: none;
}

.site-footer__links a:hover {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: start;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.site-footer__top:active {
  transform: scale(0.96);
}

/* Theme transition -------------------------------------------------------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
  animation: none !important;
}

/* Responsive components --------------------------------------------------- */
@media (min-width: 840px) {
  .nav-rail {
    display: flex;
  }

  .nav-bar {
    display: none;
  }

  .site-footer {
    margin-top: 64px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 32px;
  }

  .site-footer__links {
    justify-content: flex-end;
  }

  .site-footer__top {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .snackbar {
    bottom: 24px;
  }

  .tabs {
    max-width: 640px;
  }

  .tab {
    padding: 0 16px;
    font-size: 0.875rem;
  }

  .tab .m3-icon {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 1rem;
  }

  .nav-bar__item {
    font-size: 0.625rem;
  }

  .nav-bar__indicator {
    width: 52px;
  }

  .button {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .more-sheet__surface,
  .more-sheet__scrim,
  .app-menu,
  .more-menu,
  .tab-indicator {
    transition: none;
    animation: none;
  }

  .nav-bar.is-hidden {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .ripple {
    display: none;
  }

  .scroll-progress {
    display: none;
  }
}

/* ===== css/sections.css ===== */
/* ==========================================================================
   Sections: hero, about, Yuna, work, signals, setup, networks, support
   ========================================================================== */

.section {
  padding-block: 40px 8px;
}

/* Render long off-screen sections on demand. This keeps the first layout
   (and font swap) cheap while keeping the DOM fully present for SEO. */
.section:not(.section--hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* About is partly inside the first viewport: keep it in the initial render
   so the portrait is not held back by content-visibility. */
.section#about {
  content-visibility: visible;
}

.section--hero {
  padding-top: 8px;
  padding-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-heading__mark {
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--md-sys-color-primary-container);
  transform: rotate(-8deg);
}

.section-heading__mark--flower {
  clip-path: url(#shape-flower);
  background: var(--md-sys-color-primary-container);
}

.section-heading__mark--sunny {
  clip-path: url(#shape-sunny);
  background: var(--md-sys-color-secondary-container);
  transform: rotate(8deg);
}

.section-heading__mark--clover {
  clip-path: url(#shape-clover);
  background: var(--md-sys-color-tertiary-container);
  transform: rotate(14deg);
}

.section-title {
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--md-sys-color-on-surface);
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 2px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.875rem/1.25rem var(--md-ref-typeface-plain);
  letter-spacing: 0.0125rem;
}

/* Hero -------------------------------------------------------------------- */
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
  border-radius: 32px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor__shape {
  position: absolute;
  display: block;
}

.hero-decor__shape--flower {
  width: 172px;
  height: 172px;
  top: -58px;
  right: -48px;
  background: var(--md-sys-color-primary-container);
  opacity: 0.55;
  clip-path: url(#shape-flower);
}

.hero-decor__shape--sunny {
  width: 74px;
  height: 74px;
  right: 16px;
  bottom: 108px;
  background: var(--md-sys-color-secondary-container);
  opacity: 0.9;
  clip-path: url(#shape-sunny);
}

.hero-decor__shape--clover {
  width: 24px;
  height: 24px;
  top: 118px;
  right: 94px;
  background: var(--md-sys-color-tertiary-container);
  clip-path: url(#shape-clover);
}

.hero-decor__dot {
  position: absolute;
  border-radius: 50%;
}

.hero-decor__dot--one {
  width: 9px;
  height: 9px;
  top: 80px;
  right: 28px;
  background: var(--md-sys-color-love);
  opacity: 0.7;
}

.hero-decor__dot--two {
  width: 6px;
  height: 6px;
  top: 148px;
  right: 52px;
  background: var(--md-sys-color-primary);
  opacity: 0.55;
}

.hero-top {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}

.hero-avatar-wrap {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 108px;
  max-width: 100%;
  margin-top: 4px;
}

.hero-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  transform-origin: 50% 55%;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  inset: 4% 3% 1% 2%;
  z-index: -1;
  background: var(--md-sys-color-secondary-container);
  clip-path: url(#shape-avatar);
  transform: translate(-5px, 7px) rotate(-5deg) scale(0.98);
}

.hero-avatar__ring {
  width: 100%;
  height: 100%;
  padding: 5px;
  background: var(--md-sys-color-primary-container);
  clip-path: url(#shape-avatar);
}

.hero-avatar__inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: url(#shape-avatar);
  background: var(--md-sys-color-primary-container);
}

.hero-avatar__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--md-sys-motion-spring-slow-spatial-duration)
    var(--md-sys-motion-spring-slow-spatial-easing);
}

.hero-avatar-wrap:hover .hero-avatar__inner img {
  transform: scale(1.08) rotate(-1.5deg);
}

.hero-copy {
  display: contents;
  min-width: 0;
}

.hero-greeting {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: var(--md-sys-color-primary);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
  letter-spacing: 0.01em;
}

.hero-title {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 2px;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(2.1rem, 9.6vw, 3rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-title__slash,
.hero-title__dot {
  color: var(--md-sys-color-primary);
}

.hero-tagline {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: 30ch;
  margin-top: 18px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-meta {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.75rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.meta-chip .m3-icon {
  font-size: 17px;
  color: var(--md-sys-color-primary);
}

.hero-actions {
  grid-column: 1 / -1;
  grid-row: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-actions .button {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 16px;
}

.sticker {
  position: absolute;
  left: -8px;
  bottom: 4px;
  z-index: 2;
  padding: 5px 12px 6px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  border: 2px solid var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-level1);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: rotate(-7deg);
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

/* The visual sticker is small; this keeps its touch target at 48 px. */
.sticker::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.hero-avatar-wrap:hover .sticker {
  transform: rotate(3deg) scale(1.04);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 62px;
  padding: 8px 10px;
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  transition: background-color var(--md-sys-motion-duration-short3) linear;
}

.quick-link:hover {
  background: var(--md-sys-color-surface-container);
}

.quick-link__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

.quick-link__icon .m3-icon {
  font-size: 20px;
}

.quick-link:active .quick-link__icon {
  transform: scale(0.9) rotate(-6deg);
}

.quick-link__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.quick-link__label {
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.03em;
}

.quick-link__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 0.8125rem/1.1rem var(--md-ref-typeface-plain);
  letter-spacing: -0.01em;
}

.hero-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.hero-credit .m3-icon {
  font-size: 15px;
  color: var(--md-sys-color-love);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

/* Slow ambience is transform-only, so phones can keep it. Durations on
   phones are longer and the amplitude stays small; desktop gets the faster
   original loop and compositor hints. */
@media (prefers-reduced-motion: no-preference) {
  .hero-avatar {
    animation: avatar-float 24s ease-in-out infinite alternate;
  }

  .hero-decor__shape--flower {
    animation: shape-turn 92s linear infinite;
  }

  .hero-decor__shape--sunny {
    animation: shape-turn-reverse 76s linear infinite;
  }

  .hero-decor__shape--clover {
    animation: shape-turn 64s linear infinite;
  }

  .hero-avatar.is-booped {
    animation: avatar-boop 460ms var(--md-sys-motion-spring-fast-spatial-easing);
  }

  .sticker.is-booped {
    animation: sticker-pop 460ms var(--md-sys-motion-spring-fast-spatial-easing);
  }

  .yuna-heart {
    animation: yuna-heartbeat 4.8s ease-in-out infinite;
  }
}

@media (min-width: 840px) and (prefers-reduced-motion: no-preference) {
  .hero-avatar {
    animation-duration: 18s;
    will-change: transform;
  }

  .hero-decor__shape {
    will-change: transform;
  }

  .hero-decor__shape--flower {
    animation-duration: 64s;
  }

  .hero-decor__shape--sunny {
    animation-duration: 48s;
  }

  .hero-decor__shape--clover {
    animation-duration: 36s;
  }
}

/* The decorative layer drifts a little as the hero leaves the screen.
   It is scroll-linked, not a scroll listener, and only touches transform. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-decor {
      animation: hero-decor-drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 680px;
    }
  }
}

@keyframes hero-decor-drift {
  to {
    transform: translateY(-36px) rotate(3deg);
  }
}

@keyframes avatar-float {
  0% {
    transform: rotate(-1.5deg) scale(1);
  }
  45% {
    transform: rotate(1.5deg) scale(1.018);
  }
  100% {
    transform: rotate(-0.5deg) scale(0.995);
  }
}

@keyframes avatar-boop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  32% {
    transform: scale(0.94) rotate(-3deg);
  }
  68% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes sticker-pop {
  0% {
    scale: 1;
    rotate: 0deg;
  }
  35% {
    scale: 1.16;
    rotate: 3deg;
  }
  100% {
    scale: 1;
    rotate: 0deg;
  }
}

@keyframes yuna-heartbeat {
  0%,
  82%,
  100% {
    transform: scale(1);
  }
  86% {
    transform: scale(1.09);
  }
  90% {
    transform: scale(0.98);
  }
  94% {
    transform: scale(1.04);
  }
}

.boop-heart {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 3;
  color: var(--md-sys-color-love);
  font-size: 17px;
  pointer-events: none;
  opacity: 0;
  animation: boop-heart 900ms ease-out forwards;
}

@keyframes boop-heart {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), -58px) scale(1.1) rotate(var(--rot, 0deg));
  }
}

/* Section marks settle into place as they enter the viewport. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading__mark {
      animation: mark-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
  }
}

@keyframes mark-settle {
  from {
    rotate: -16deg;
    scale: 0.82;
  }
  to {
    rotate: 0deg;
    scale: 1;
  }
}

@keyframes shape-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shape-turn-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

/* About ------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 12px;
}

.about-portrait {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--md-sys-color-primary-container);
  clip-path: url(#shape-arch);
}

.about-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--md-sys-motion-spring-slow-spatial-easing);
}

.about-portrait:hover img {
  transform: scale(1.04);
}

.about-portrait figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.625rem/0.875rem var(--md-ref-typeface-plain);
  letter-spacing: 0.03em;
}

.about-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.about-lead__hello {
  font: 500 0.8125rem/1.125rem var(--md-ref-typeface-plain);
  letter-spacing: 0.04em;
}

.about-lead__text {
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.about-lead .chip {
  background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 12%, transparent);
  color: var(--md-sys-color-on-primary-container);
}

.about-features {
  display: grid;
  gap: 12px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  border-radius: 28px;
  background: var(--md-sys-color-surface-container-low);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

.feature-card--secondary .feature-card__icon {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.feature-card--tertiary .feature-card__icon {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.feature-card:hover .feature-card__icon {
  transform: rotate(-6deg) scale(1.06);
}

.feature-card__title {
  font: 600 1.25rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
}

.feature-card__text {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.0125rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 28px;
  background: color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px;
  background: var(--md-sys-color-surface-container-low);
}

.stat__value {
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

/* Yuna -------------------------------------------------------------------- */
.yuna-card {
  display: grid;
  gap: 16px;
  padding: 14px;
  border-radius: 32px;
  background: var(--md-sys-color-love-container);
  color: var(--md-sys-color-on-love-container);
}

.yuna-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
}

.yuna-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.yuna-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yuna-photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.625rem/0.875rem var(--md-ref-typeface-plain);
  letter-spacing: 0.03em;
}

.yuna-copy {
  padding: 8px 10px 12px;
}

.yuna-heart {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--md-sys-color-love);
  color: var(--md-sys-color-on-love);
}

.yuna-heart .m3-icon {
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.yuna-card .section-title {
  color: var(--md-sys-color-on-love-container);
}

.yuna-card .section-subtitle {
  color: var(--md-sys-color-on-love-container);
}

.yuna-counter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 16px;
}

.yuna-counter__value {
  display: inline-block;
  min-width: 3ch;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(3.5rem, 13vw, 6.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.yuna-counter__label {
  color: var(--md-sys-color-on-love-container);
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.yuna-note {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.5;
}

.yuna-sign {
  margin-top: 14px;
  font: 500 0.75rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.04em;
}

/* Work -------------------------------------------------------------------- */
.work-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.work-group {
  min-width: 0;
}

.work-group__label {
  margin-bottom: 10px;
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.75rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.04em;
}

.work-grid {
  display: grid;
  gap: 10px;
}

.work-grid:focus-visible {
  border-radius: 28px;
  outline-offset: 4px;
}

.work-group__progress {
  display: none;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border-radius: 24px;
  background: var(--md-sys-color-surface-container-low);
  transition:
    border-radius var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing),
    transform var(--md-sys-motion-spring-fast-spatial-duration)
      var(--md-sys-motion-spring-fast-spatial-easing),
    background-color var(--md-sys-motion-duration-short3) linear;
}

@media (hover: hover) {
  .work-card:hover {
    transform: translateY(-4px);
    border-radius: 20px;
    background: var(--md-sys-color-surface-container);
  }
}

.work-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.work-card--secondary .work-card__icon {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.work-card--tertiary .work-card__icon {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.work-card--love .work-card__icon {
  background: var(--md-sys-color-love-container);
  color: var(--md-sys-color-on-love-container);
}

.work-card__icon .m3-icon {
  font-size: 22px;
}

.work-card__title {
  font: 600 1.25rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.025em;
}

.work-card__text {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.45;
}

.work-card__role {
  align-self: flex-start;
  margin-top: auto;
}

.work-art {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  background: var(--md-sys-color-primary-container);
}

.work-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.work-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-art figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
}

/* Phones turn each work group into a swipeable, edge-to-edge snap row.
   The next card peeks in, so the gesture is visible without a hint. */
@media (max-width: 599px) {
  .work-grid {
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 82%, 340px);
    margin-inline: calc(var(--md-sys-layout-margin-compact) * -1);
    padding-inline: var(--md-sys-layout-margin-compact);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--md-sys-layout-margin-compact);
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .work-grid::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    min-height: 196px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .work-group__progress {
    display: block;
    height: 3px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--md-sys-color-surface-container);
  }

  .work-group__progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--md-sys-color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 120ms linear;
  }
}

/* Signals ----------------------------------------------------------------- */
.signals-grid {
  display: grid;
  gap: 12px;
}

.now-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 32px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.now-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: none;
  overflow: hidden;
  border-radius: 20px;
  background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 12%, transparent);
}

.now-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-card__fallback {
  font-size: 34px;
  opacity: 0.7;
}

.now-card__eq {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  padding: 3px 5px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 82%, transparent);
}

.now-card__eq span {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--md-sys-color-primary-container);
  transform-origin: bottom;
  animation: eq 900ms ease-in-out infinite alternate;
}

.now-card__eq span:nth-child(2) {
  animation-delay: 140ms;
  height: 65%;
}

.now-card__eq span:nth-child(3) {
  animation-delay: 280ms;
}

.now-card__eq span:nth-child(4) {
  animation-delay: 420ms;
  height: 48%;
}

@keyframes eq {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

.now-card__body {
  min-width: 0;
}

.now-card__eyebrow {
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.04em;
}

.now-card__track {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 1.25rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.025em;
}

.now-card__artist {
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.now-card__source {
  margin-top: 2px;
  font: 400 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.now-card__link {
  margin: 6px 0 0 -10px;
  color: var(--md-sys-color-on-primary-container);
}

.clock-card {
  padding: 20px;
  border-radius: 28px;
  background: var(--md-sys-color-surface-container-high);
}

.clock-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clock-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-primary);
}

.clock-card__icon .m3-icon {
  font-size: 21px;
}

.clock-card__title {
  font: 600 1rem/1.5rem var(--md-ref-typeface-plain);
}

.clock-card__time {
  margin-top: 16px;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.clock-card__seconds {
  color: var(--md-sys-color-primary);
  font-size: 0.55em;
  letter-spacing: -0.02em;
}

.clock-card__date {
  margin-top: 6px;
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.8125rem/1.125rem var(--md-ref-typeface-plain);
}

.clock-card__note {
  margin-top: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.status-card {
  padding: 18px;
  border-radius: 28px;
  background: var(--md-sys-color-surface-container-low);
}

.status-card__title {
  font: 600 1.125rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
}

.status-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.status-row__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.status-row__icon--secondary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.status-row__icon--tertiary {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.status-row__icon .m3-icon {
  font-size: 20px;
}

.status-row__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.status-row__label {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.status-row__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.github-card {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
}

.github-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.github-card__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--md-sys-color-on-surface);
  color: var(--md-sys-color-surface);
}

.github-card__title {
  font: 600 1rem/1.5rem var(--md-ref-typeface-plain);
}

.github-card__handle {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

.github-card__link {
  margin-left: auto;
  width: 48px;
  height: 48px;
}

.github-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.github-stat {
  padding: 10px;
  border-radius: 14px;
  background: var(--md-sys-color-surface-container-low);
}

.github-stat dt {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.625rem/0.875rem var(--md-ref-typeface-plain);
}

.github-stat dd {
  margin: 2px 0 0;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.language-bar {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--md-sys-color-surface-container);
}

.language-bar__seg {
  display: block;
  width: 0;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms var(--md-sys-motion-spring-slow-spatial-easing);
}

.language-bar__seg.is-grown {
  transform: scaleX(1);
}

.language-bar__seg--one {
  background: var(--md-sys-color-primary);
}

.language-bar__seg--two {
  background: var(--md-sys-color-secondary);
}

.language-bar__seg--three {
  background: var(--md-sys-color-tertiary);
}

.language-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  margin-top: 8px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.language-legend li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.language-legend li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-card__scope {
  margin-top: 8px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.625rem/0.875rem var(--md-ref-typeface-plain);
  letter-spacing: 0.02em;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-sys-color-primary);
}

.language-dot--two {
  background: var(--md-sys-color-secondary);
}

.language-dot--three {
  background: var(--md-sys-color-tertiary);
}

.quote-card {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  background: var(--md-sys-color-surface-container-high);
  touch-action: pan-y;
}

.quote-card__art {
  margin: 0;
  overflow: hidden;
}

.quote-card__art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.quote-card__art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.quote-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.quote-card__mark {
  color: var(--md-sys-color-primary);
  font-size: 30px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.quote-card__text {
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  transition:
    opacity 240ms var(--md-sys-motion-spring-fast-effects-easing),
    transform 300ms var(--md-sys-motion-spring-fast-spatial-easing);
}

.quote-card__text.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.quote-card__source {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

/* Setup ------------------------------------------------------------------- */
.setup-card {
  padding: 10px;
  border-radius: 32px;
  background: var(--md-sys-color-surface-container-low);
}

.tabs {
  margin-inline: auto;
}

.tab-panels {
  padding: 18px 8px 8px;
  touch-action: pan-y;
}

.spec-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-hero__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 16px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.spec-hero__title {
  font: 600 1.25rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
}

.spec-hero__note {
  margin-top: 2px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1rem var(--md-ref-typeface-plain);
}

.spec-list {
  margin-top: 16px;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.8125rem/1.125rem var(--md-ref-typeface-plain);
}

.spec-row dd {
  max-width: 62%;
  text-align: right;
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.spec-footnote {
  margin-top: 16px;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.75rem/1.125rem var(--md-ref-typeface-plain);
}

/* Networks ---------------------------------------------------------------- */
.networks-grid {
  display: grid;
  gap: 12px;
}

.network-group {
  padding: 12px;
  border-radius: 28px;
  background: var(--md-sys-color-surface-container-low);
}

.network-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 8px;
}

.network-group__title {
  font: 600 1.125rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.02em;
}

.network-group__count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.link-list {
  display: grid;
  gap: 2px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 6px 8px;
  border-radius: 16px;
  color: var(--md-sys-color-on-surface);
  text-align: left;
  text-decoration: none;
  transition: background-color var(--md-sys-motion-duration-short3) linear;
}

.link-row:hover {
  background: var(--md-sys-color-surface-container);
}

.link-row:active {
  background: var(--md-sys-color-surface-container-high);
}

.link-row__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.link-row__icon--secondary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.link-row__icon--tertiary {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.link-row__icon--love {
  background: var(--md-sys-color-love-container);
  color: var(--md-sys-color-on-love-container);
}

.link-row__icon .m3-icon {
  font-size: 20px;
}

.link-row__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.15;
}

.link-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 0.875rem/1.25rem var(--md-ref-typeface-plain);
}

.link-row__note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.link-row__trail {
  font-size: 19px;
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.72;
  transition: transform var(--md-sys-motion-spring-fast-spatial-duration)
    var(--md-sys-motion-spring-fast-spatial-easing);
}

.link-row:hover .link-row__trail {
  transform: translate(1px, -1px);
}

.networks-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: 28px;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.networks-note__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-primary);
}

.networks-note p {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.networks-note .button {
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
}

/* Support ----------------------------------------------------------------- */
.support-compact {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 32px;
  background: var(--md-sys-color-surface-container-low);
}

.support-compact__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-compact__eyebrow {
  color: var(--md-sys-color-primary);
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.05em;
}

.support-compact__title {
  margin-top: 2px;
  font: 600 1.25rem/1.5rem var(--md-ref-typeface-brand);
  letter-spacing: -0.025em;
}

.support-compact__count {
  align-self: center;
}

.support-compact__wallet {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.wallet-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wallet-picker__item {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  font: 500 0.8125rem/1.125rem var(--md-ref-typeface-plain);
  letter-spacing: 0.01em;
  transition:
    background-color var(--md-sys-motion-duration-short3) linear,
    color var(--md-sys-motion-duration-short3) linear,
    transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
}

@media (hover: hover) {
  .wallet-picker__item:hover {
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
  }
}

.wallet-picker__item:active {
  transform: scale(0.96);
}

.wallet-picker__item[aria-pressed="true"] {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.wallet-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.wallet-panel__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-panel__category {
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
  letter-spacing: 0.06em;
}

.wallet-panel__tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-corner-full);
  background: color-mix(in srgb, var(--md-sys-color-on-primary-container) 12%, transparent);
  font: 500 0.6875rem/1rem var(--md-ref-typeface-plain);
}

.wallet-panel__address {
  overflow-wrap: anywhere;
  font-family: var(--md-ref-typeface-mono);
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.wallet-panel__copy {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: 500 0.8125rem/1.125rem var(--md-ref-typeface-plain);
  transition: transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
}

.wallet-panel__copy .m3-icon {
  font-size: 20px;
}

.wallet-panel__copy:active {
  transform: scale(0.96);
}

.support-compact__side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.support-invoices {
  display: grid;
  gap: 8px;
}

@media (min-width: 380px) {
  .support-invoices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.invoice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px;
  border-radius: 18px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.invoice__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.invoice__icon .m3-icon {
  font-size: 20px;
}

.invoice__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.invoice__title {
  font: 600 0.8125rem/1.125rem var(--md-ref-typeface-plain);
  letter-spacing: -0.01em;
}

.invoice__note {
  color: var(--md-sys-color-on-surface-variant);
  font: 400 0.625rem/0.875rem var(--md-ref-typeface-plain);
}

.support-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--md-sys-color-love-container);
  color: var(--md-sys-color-on-love-container);
  font: 400 0.75rem/1.25rem var(--md-ref-typeface-plain);
}

.support-note__heart {
  margin-top: 1px;
  color: var(--md-sys-color-love);
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* Reveal ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity var(--md-sys-motion-spring-default-effects-duration)
        var(--md-sys-motion-spring-default-effects-easing),
      transform var(--md-sys-motion-spring-default-spatial-duration)
        var(--md-sys-motion-spring-default-spatial-easing);
    transition-delay: calc(var(--delay, 0) * 60ms);
  }

  .js [data-reveal].is-visible.is-instant {
    transition: none;
  }
}

/* Responsive -------------------------------------------------------------- */
@media (min-width: 380px) {
  .hero-avatar-wrap {
    width: 120px;
  }

  .hero-top {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 16px;
  }
}

@media (min-width: 600px) {
  .section {
    padding-block: 56px 12px;
  }

  .section--hero {
    padding-top: 12px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 24px;
  }

  .section-heading__mark {
    width: 52px;
    height: 52px;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-card {
    padding: 28px;
    border-radius: 36px;
  }

  .hero-top {
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 28px;
    align-items: center;
  }

  .hero-avatar-wrap {
    grid-column: 1;
    grid-row: 1 / span 5;
    align-self: center;
    width: 100%;
    margin-top: 0;
  }

  .hero-copy {
    display: block;
    grid-column: 2;
  }

  .hero-greeting,
  .hero-title,
  .hero-tagline,
  .hero-meta,
  .hero-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-title {
    margin-top: 4px;
    font-size: clamp(3rem, 6.4vw, 4rem);
  }

  .hero-tagline {
    margin-top: 14px;
    font-size: 1.0625rem;
  }

  .hero-meta {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .button {
    flex: 0 0 auto;
  }

  .quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
  }

  .quick-link {
    min-height: 68px;
    padding: 10px;
    gap: 8px;
  }

  .quick-link__icon {
    width: 38px;
    height: 38px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .about-portrait {
    border-radius: 28px;
  }

  .about-lead {
    padding: 26px;
  }

  .about-features {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
  }

  .yuna-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 36px;
  }

  .yuna-photo {
    aspect-ratio: 1;
    height: 100%;
    border-radius: 26px;
  }

  .yuna-copy {
    padding: 12px 18px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work-grid--three .work-card:last-child {
    grid-column: 1 / -1;
  }

  .signals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .signals-grid > * {
    min-width: 0;
  }

  .now-card {
    padding: 22px;
  }

  .quote-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .quote-card__art img {
    aspect-ratio: 1;
  }

  .setup-card {
    padding: 14px;
  }

  .tab-panels {
    padding: 22px 12px 12px;
  }

  .networks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .networks-note {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .networks-note p {
    flex: 1;
  }

  .support-compact {
    gap: 18px;
    padding: 22px;
  }

  .wallet-picker__item {
    padding-inline: 16px;
  }
}

@media (min-width: 840px) {
  .section {
    padding-block: 72px 16px;
  }

  .section--hero {
    padding-top: 16px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .hero-card {
    padding: 40px;
    border-radius: 44px;
  }

  .hero-top {
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 40px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 5.2vw, 4.6rem);
  }

  .hero-tagline {
    max-width: 34ch;
    font-size: 1.125rem;
  }

  .hero-avatar-wrap {
    width: 100%;
  }

  .hero-decor__shape--flower {
    width: 230px;
    height: 230px;
    top: -76px;
    right: -54px;
  }

  .hero-decor__shape--sunny {
    width: 92px;
    height: 92px;
    right: 26px;
    bottom: 148px;
  }

  .quick-links {
    margin-top: 32px;
  }

  .quick-link {
    min-height: 74px;
    padding: 12px 14px;
    gap: 11px;
  }

  .quick-link__icon {
    width: 42px;
    height: 42px;
  }

  .quick-link__label {
    font-size: 0.75rem;
  }

  .quick-link__value {
    font-size: 0.875rem;
  }

  .about-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .about-portrait {
    grid-column: span 4;
    border-radius: 32px;
  }

  .about-lead {
    grid-column: span 8;
    padding: 36px;
  }

  .about-features {
    grid-column: 1 / -1;
    gap: 16px;
  }

  .feature-card {
    min-height: 220px;
    padding: 24px;
  }

  .stat {
    padding: 22px 24px;
  }

  .yuna-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    padding: 24px;
    border-radius: 40px;
  }

  .yuna-photo {
    border-radius: 30px;
  }

  .yuna-copy {
    padding: 20px 28px;
  }

  .work-groups {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 24px;
  }

  .work-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 92px;
    border-radius: 32px;
  }

  .work-art img {
    aspect-ratio: 3 / 4;
  }

  .work-card {
    min-height: 180px;
    padding: 20px;
  }

  .signals-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .now-card {
    grid-column: span 7;
  }

  .clock-card {
    grid-column: span 5;
  }

  .status-card {
    grid-column: span 5;
  }

  .github-card {
    grid-column: span 7;
  }

  .language-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  }

  .quote-card__body {
    padding: 28px 32px;
  }

  .setup-card {
    padding: 20px;
    border-radius: 36px;
  }

  .tab-panels {
    padding: 26px 16px 16px;
  }

  .spec-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
  }

  .spec-row {
    display: block;
    padding: 16px;
    border: 0;
    border-radius: 18px;
    background: var(--md-sys-color-surface-container);
  }

  .spec-row dt {
    margin-bottom: 4px;
  }

  .spec-row dd {
    max-width: none;
    text-align: left;
  }

  .networks-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .network-group {
    grid-column: span 4;
    padding: 14px;
  }

  .networks-note {
    grid-column: 1 / -1;
    padding: 22px 24px;
  }

  .support-compact {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 18px 20px;
    padding: 24px;
  }

  .support-compact__head {
    grid-column: 1 / -1;
  }

  .support-compact__wallet {
    grid-column: 1;
  }

  .support-compact__side {
    grid-column: 2;
  }
}

@media (min-width: 1200px) {
  .hero-top {
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: 52px;
  }

  .hero-card {
    padding: 44px;
  }
}

@media (max-width: 599px) {
  .spec-row {
    display: block;
  }

  .spec-row dd {
    max-width: none;
    margin-top: 2px;
    text-align: left;
  }

  .tab {
    font-size: 0.6875rem;
    gap: 4px;
    min-height: 48px;
  }

  .tab .m3-icon {
    font-size: 18px;
  }

  .tab-indicator {
    top: 5px;
    height: calc(100% - 10px);
  }

  .networks-note .button {
    align-self: stretch;
  }
}

@media (max-width: 380px) {
  .hero-top {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 10px;
  }

  .hero-avatar-wrap {
    width: 96px;
  }

  .sticker {
    font-size: 0.9375rem;
    padding: 4px 9px;
  }

  .hero-actions .button {
    padding-inline: 14px;
  }

  .hero-actions .button span:last-child {
    font-size: 0.8125rem;
  }

  .quick-link {
    gap: 7px;
    padding-inline: 8px;
  }

  .quick-link__icon {
    width: 32px;
    height: 32px;
  }

  .quick-link__value {
    font-size: 0.75rem;
  }

  .github-stats {
    gap: 6px;
  }

  .github-stat {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-avatar,
  .hero-decor__shape,
  .now-card__eq span {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .quote-card__text {
    transition: none;
  }
}

@media print {
  .section {
    content-visibility: visible;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .top-app-bar,
  .nav-bar,
  .nav-rail,
  .scroll-progress {
    display: none;
  }
}
