/* ============================================================================
   ջմɾմʂ — adaptación standalone del hero de omarchy.org
   ---------------------------------------------------------------------------
   Temas, animaciones y campo de píxeles extraídos del sitio Omarchy
   (https://omarchy.org · código: https://github.com/omacom/omarchy-site)
   con el texto del wordmark cambiado a ჯմɾմʂ.
   Créditos y detalles en README.md.
   ========================================================================= */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../assets/fonts/jbmono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../assets/fonts/jbmono-latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 800;
  src: url('../assets/fonts/jbmono-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 800;
  src: url('../assets/fonts/jbmono-latin-wght-italic.woff2') format('woff2-variations');
  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;
}

:root {
  --font-sans: 'Geist Variable', sans-serif;
  --font-mono: 'JetBrains Mono Variable', monospace;

  --nav-h: calc(3.5rem + env(safe-area-inset-top, 0px));
  --z-nav: 100;
  --z-dropdown: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

/* ------------------------------------------------------------- theme values
   Paletas base de omacom/omarchy themes/<id>/colors.toml; tonos intermedios
   mezclados. (Valores del sitio original.) */

:root,
[data-theme='tokyo-night'] {
  --t-bg-deep: #13141c;
  --t-bg: #1a1b26;
  --t-surface: #1f2230;
  --t-surface-2: #24283b;
  --t-border-subtle: #24283b;
  --t-border-strong: #414868;
  --t-text: #c0caf5;
  --t-text-secondary: #a9b1d6;
  --t-text-muted: #8b93b8;
  --t-brand: #9ece6a;
  --t-brand-soft: #9ece6a1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #292e42;
  --t-field-bg: #0e0e14;
  --t-field-dim: #39482e;
  --t-field-mid: #678549;
  --t-field-lit: #9ece6a;
  --t-field-hover: #bbdd97;
  --t-field-crest: #daecc6;
  color-scheme: dark;
  --t-hdr-text: #ced8ff;
  --t-hdr-text-2: #b7bfea;
  --t-hdr-brand: #acdc7e;
  --t-hdr-ink: #1a1c24;
  --t-hdr-surface-2: #32364f;
  --t-hdr-surface: #2d3044;
}

[data-theme='white'] {
  --t-bg-deep: #f5f5f5;
  --t-bg: #ffffff;
  --t-surface: #ffffff;
  --t-surface-2: #f5f5f5;
  --t-border-subtle: #e8e8e8;
  --t-border-strong: #c0c0c0;
  --t-text: #000000;
  --t-text-secondary: #383838;
  --t-text-muted: #4a4a4a;
  --t-brand: #6e6e6e;
  --t-brand-soft: #6e6e6e1f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #c0c0c0;
  --t-field-bg: #e8e8e8;
  --t-field-dim: #c3c3c3;
  --t-field-mid: #9c9c9c;
  --t-field-lit: #6e6e6e;
  --t-field-hover: #565656;
  --t-field-crest: #3c3c3c;
  color-scheme: light;
  --t-hdr-text: #e8e8e8;
  --t-hdr-text-2: #b0b0b0;
  --t-hdr-brand: #7a7a7a;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}

[data-theme='catppuccin'] {
  --t-bg-deep: #161622;
  --t-bg: #1e1e2e;
  --t-surface: #282839;
  --t-surface-2: #313244;
  --t-border-subtle: #313244;
  --t-border-strong: #585b70;
  --t-text: #cdd6f4;
  --t-text-secondary: #cdd6f4;
  --t-text-muted: #9399b2;
  --t-brand: #89b4fa;
  --t-brand-soft: #89b4fa1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #45475a;
  --t-field-bg: #101019;
  --t-field-dim: #34415c;
  --t-field-mid: #5b76a4;
  --t-field-lit: #89b4fa;
  --t-field-hover: #accafc;
  --t-field-crest: #d2e2fd;
  color-scheme: dark;
  --t-hdr-text: #dde6ff;
  --t-hdr-text-2: #dde6ff;
  --t-hdr-brand: #99c4ff;
  --t-hdr-ink: #1c1e29;
  --t-hdr-surface-2: #41425d;
  --t-hdr-surface: #383852;
}

[data-theme='gruvbox'] {
  --t-bg-deep: #1e1e1e;
  --t-bg: #282828;
  --t-surface: #32302f;
  --t-surface-2: #3c3836;
  --t-border-subtle: #3c3836;
  --t-border-strong: #665c54;
  --t-text: #d4be98;
  --t-text-secondary: #d4be98;
  --t-text-muted: #a89984;
  --t-brand: #7daea3;
  --t-brand-soft: #7daea31f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #504945;
  --t-field-bg: #161616;
  --t-field-dim: #354440;
  --t-field-mid: #56746d;
  --t-field-lit: #7daea3;
  --t-field-hover: #a4c6bf;
  --t-field-crest: #cee0dc;
  color-scheme: dark;
  --t-hdr-text: #ead4ae;
  --t-hdr-text-2: #ead4ae;
  --t-hdr-brand: #93c4b9;
  --t-hdr-ink: #222426;
  --t-hdr-surface-2: #524e4c;
  --t-hdr-surface: #484645;
}

[data-theme='matte-black'] {
  --t-bg-deep: #0d0d0d;
  --t-bg: #121212;
  --t-surface: #181818;
  --t-surface-2: #1e1e1e;
  --t-border-subtle: #1e1e1e;
  --t-border-strong: #333333;
  --t-text: #eaeaea;
  --t-text-secondary: #bebebe;
  --t-text-muted: #8a8a8a;
  --t-brand: #e68e0d;
  --t-brand-soft: #e68e0d1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #2a2a2a;
  --t-field-bg: #090909;
  --t-field-dim: #4b310a;
  --t-field-mid: #925b0b;
  --t-field-lit: #e68e0d;
  --t-field-hover: #eeb056;
  --t-field-crest: #f6d4a3;
  color-scheme: dark;
  --t-hdr-text: #f3f3f3;
  --t-hdr-text-2: #c7c7c7;
  --t-hdr-brand: #ef9716;
  --t-hdr-ink: #151719;
  --t-hdr-surface-2: #272727;
  --t-hdr-surface: #212121;
}

[data-theme='rose-pine'] {
  --t-bg-deep: #ede7e1;
  --t-bg: #faf4ed;
  --t-surface: #fffaf3;
  --t-surface-2: #ede7e1;
  --t-border-subtle: #e1dbd5;
  --t-border-strong: #cecacd;
  --t-text: #575279;
  --t-text-secondary: #5e587d;
  --t-text-muted: #676284;
  --t-brand: #56949f;
  --t-brand-soft: #56949f1f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #dfdad9;
  --t-field-bg: #e1dbd5;
  --t-field-dim: #b7c6c5;
  --t-field-mid: #8bafb4;
  --t-field-lit: #56949f;
  --t-field-hover: #43737c;
  --t-field-crest: #2f5157;
  color-scheme: light;
  --t-hdr-text: #8a895c;
  --t-hdr-text-2: #838358;
  --t-hdr-brand: #8b4736;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}

[data-theme='catppuccin-latte'] {
  --t-bg-deep: #e3e4e8;
  --t-bg: #eff1f5;
  --t-surface: #f8f9fb;
  --t-surface-2: #e3e4e8;
  --t-border-subtle: #d7d8dc;
  --t-border-strong: #acb0be;
  --t-text: #4c4f69;
  --t-text-secondary: #53556f;
  --t-text-muted: #5c5f77;
  --t-brand: #1e66f5;
  --t-brand-soft: #1e66f51f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #ccd0da;
  --t-field-bg: #d7d8dc;
  --t-field-dim: #a0b6e4;
  --t-field-mid: #6491ec;
  --t-field-lit: #1e66f5;
  --t-field-hover: #1750bf;
  --t-field-crest: #103887;
  color-scheme: light;
  --t-hdr-text: #8b8973;
  --t-hdr-text-2: #84836d;
  --t-hdr-brand: #b97200;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}

[data-theme='ethereal'] {
  --t-bg-deep: #040816;
  --t-bg: #060b1e;
  --t-surface: #0c122c;
  --t-surface-2: #131a3a;
  --t-border-subtle: #131a3a;
  --t-border-strong: #6d7db6;
  --t-text: #ffcead;
  --t-text-secondary: #ffcead;
  --t-text-muted: #b6a6b2;
  --t-brand: #7d82d9;
  --t-brand-soft: #7d82d91f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #252e56;
  --t-field-bg: #030610;
  --t-field-dim: #282b4c;
  --t-field-mid: #4f538d;
  --t-field-lit: #7d82d9;
  --t-field-hover: #a4a8e4;
  --t-field-crest: #ced0f1;
  color-scheme: dark;
  --t-hdr-text: #ffd4bd;
  --t-hdr-text-2: #ffd4bd;
  --t-hdr-brand: #8088e9;
  --t-hdr-ink: #0f1420;
  --t-hdr-surface-2: #16204a;
  --t-hdr-surface: #10183c;
}

[data-theme='everforest'] {
  --t-bg-deep: #21272c;
  --t-bg: #2d353b;
  --t-surface: #303a40;
  --t-surface-2: #343f44;
  --t-border-subtle: #343f44;
  --t-border-strong: #475258;
  --t-text: #d3c6aa;
  --t-text-secondary: #d3c6aa;
  --t-text-muted: #918f84;
  --t-brand: #7fbbb3;
  --t-brand-soft: #7fbbb31f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #3d484d;
  --t-field-bg: #181d20;
  --t-field-dim: #374c4c;
  --t-field-mid: #587f7b;
  --t-field-lit: #7fbbb3;
  --t-field-hover: #a5cfca;
  --t-field-crest: #cee5e2;
  color-scheme: dark;
  --t-hdr-text: #ebe3ca;
  --t-hdr-text-2: #ebe3ca;
  --t-hdr-brand: #97d8d3;
  --t-hdr-ink: #242b30;
  --t-hdr-surface-2: #4c5c64;
  --t-hdr-surface: #485760;
}

[data-theme='flexoki-light'] {
  --t-bg-deep: #f2efe4;
  --t-bg: #fffcf0;
  --t-surface: #f9f6ea;
  --t-surface-2: #f2efe4;
  --t-border-subtle: #e5e2d8;
  --t-border-strong: #b7b5ac;
  --t-text: #100f0f;
  --t-text-secondary: #454340;
  --t-text-muted: #555450;
  --t-brand: #205ea6;
  --t-brand-soft: #205ea61f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #cecdc3;
  --t-field-bg: #e5e2d8;
  --t-field-dim: #aabac9;
  --t-field-mid: #6b90b9;
  --t-field-lit: #205ea6;
  --t-field-hover: #194981;
  --t-field-crest: #12345b;
  color-scheme: light;
  --t-hdr-text: #d5d3c9;
  --t-hdr-text-2: #a09f98;
  --t-hdr-brand: #c58432;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}

[data-theme='hackerman'] {
  --t-bg-deep: #080910;
  --t-bg: #0b0c16;
  --t-surface: #10121f;
  --t-surface-2: #151828;
  --t-border-subtle: #151828;
  --t-border-strong: #2d3450;
  --t-text: #ddf7ff;
  --t-text-secondary: #ddf7ff;
  --t-text-muted: #a4b2ca;
  --t-brand: #82fb9c;
  --t-brand-soft: #82fb9c1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #1f253a;
  --t-field-bg: #06060c;
  --t-field-dim: #2b5037;
  --t-field-mid: #539e65;
  --t-field-lit: #82fb9c;
  --t-field-hover: #a8fcba;
  --t-field-crest: #d0fdd9;
  color-scheme: dark;
  --t-hdr-text: #e3fdff;
  --t-hdr-text-2: #e3fdff;
  --t-hdr-brand: #88ffa8;
  --t-hdr-ink: #12141c;
  --t-hdr-surface-2: #1b1e34;
  --t-hdr-surface: #16182b;
}

[data-theme='kanagawa'] {
  --t-bg-deep: #17171e;
  --t-bg: #1f1f28;
  --t-surface: #202838;
  --t-surface-2: #223249;
  --t-border-subtle: #223249;
  --t-border-strong: #54546d;
  --t-text: #dcd7ba;
  --t-text-secondary: #dcd7ba;
  --t-text-muted: #a7a492;
  --t-brand: #dcd7ba;
  --t-brand-soft: #dcd7ba1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #363646;
  --t-field-bg: #111116;
  --t-field-dim: #4e4c47;
  --t-field-mid: #8f8c7c;
  --t-field-lit: #dcd7ba;
  --t-field-hover: #e6e3cf;
  --t-field-crest: #f2f0e5;
  color-scheme: dark;
  --t-hdr-text: #ede8d0;
  --t-hdr-text-2: #ede8d0;
  --t-hdr-brand: #ede8d0;
  --t-hdr-ink: #1d1f26;
  --t-hdr-surface-2: #33435f;
  --t-hdr-surface: #323a4e;
}

[data-theme='last-horizon'] {
  --t-bg-deep: #090809;
  --t-bg: #0c0b0c;
  --t-surface: #0c0b0c;
  --t-surface-2: #0c0b0c;
  --t-border-subtle: #0c0b0c;
  --t-border-strong: #584e51;
  --t-text: #fafcfb;
  --t-text-secondary: #e2dddc;
  --t-text-muted: #a9a5a6;
  --t-brand: #b59790;
  --t-brand-soft: #b597901f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #584e51;
  --t-field-bg: #060606;
  --t-field-dim: #3a322f;
  --t-field-mid: #72605c;
  --t-field-lit: #b59790;
  --t-field-hover: #cbb6b1;
  --t-field-crest: #e3d7d5;
  color-scheme: dark;
  --t-hdr-text: #ffffff;
  --t-hdr-text-2: #e8e3e2;
  --t-hdr-brand: #bb9d96;
  --t-hdr-ink: #121416;
  --t-hdr-surface-2: #121112;
  --t-hdr-surface: #121112;
}

[data-theme='lumon'] {
  --t-bg-deep: #101b21;
  --t-bg: #16242d;
  --t-surface: #182836;
  --t-surface-2: #1b2d40;
  --t-border-subtle: #1b2d40;
  --t-border-strong: #304860;
  --t-text: #f2fcff;
  --t-text-secondary: #d6e2ee;
  --t-text-muted: #a0c1d8;
  --t-brand: #8bc9eb;
  --t-brand-soft: #8bc9eb1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #243d56;
  --t-field-bg: #0b1216;
  --t-field-dim: #314956;
  --t-field-mid: #5a839a;
  --t-field-lit: #8bc9eb;
  --t-field-hover: #aed9f1;
  --t-field-crest: #d3eaf7;
  color-scheme: dark;
  --t-hdr-text: #fdffff;
  --t-hdr-text-2: #e1f4ff;
  --t-hdr-brand: #96dbff;
  --t-hdr-ink: #172026;
  --t-hdr-surface-2: #263f56;
  --t-hdr-surface: #243a4c;
}

[data-theme='lupine'] {
  --t-bg-deep: #ececec;
  --t-bg: #fafafa;
  --t-surface: #ffffff;
  --t-surface-2: #ececec;
  --t-border-subtle: #dedede;
  --t-border-strong: #9e9e9e;
  --t-text: #000000;
  --t-text-secondary: #212121;
  --t-text-muted: #484848;
  --t-brand: #3264eb;
  --t-brand-soft: #3264eb1f;
  --t-brand-ink: #ffffff;
  --t-elevation:
    0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 3px oklch(0 0 0 / 0.05),
    0 4px 10px -4px oklch(0 0 0 / 0.05);
  --t-elevation-hover:
    0 0 0 1px oklch(0 0 0 / 0.09), 0 1px 3px oklch(0 0 0 / 0.07),
    0 4px 10px -4px oklch(0 0 0 / 0.08);
  --t-img-outline: rgb(0 0 0 / 0.1);
  --t-scroll-thumb: rgb(0 0 0 / 0.18);
  --t-selection: #d0d0d0;
  --t-field-bg: #dedede;
  --t-field-dim: #aab9e2;
  --t-field-mid: #7392e6;
  --t-field-lit: #3264eb;
  --t-field-hover: #274eb7;
  --t-field-crest: #1c3781;
  color-scheme: light;
  --t-hdr-text: #dedede;
  --t-hdr-text-2: #bdbdbd;
  --t-hdr-brand: #ac7a00;
  --t-hdr-ink: #000000;
  --t-hdr-surface-2: #000000;
  --t-hdr-surface: #000000;
}

[data-theme='miasma'] {
  --t-bg-deep: #191919;
  --t-bg: #222222;
  --t-surface: #272727;
  --t-surface-2: #2c2c2c;
  --t-border-subtle: #2c2c2c;
  --t-border-strong: #666666;
  --t-text: #c2c2b0;
  --t-text-secondary: #c2c2b0;
  --t-text-muted: #8c8c82;
  --t-brand: #78824b;
  --t-brand-soft: #78824b1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #383838;
  --t-field-bg: #121212;
  --t-field-dim: #313423;
  --t-field-mid: #515735;
  --t-field-lit: #78824b;
  --t-field-hover: #a0a881;
  --t-field-crest: #ccd0bb;
  color-scheme: dark;
  --t-hdr-text: #d4d4c2;
  --t-hdr-text-2: #d4d4c2;
  --t-hdr-brand: #8a945d;
  --t-hdr-ink: #1e2022;
  --t-hdr-surface-2: #3e3e3e;
  --t-hdr-surface: #393939;
}

[data-theme='nord'] {
  --t-bg-deep: #222730;
  --t-bg: #2e3440;
  --t-surface: #343b49;
  --t-surface-2: #3b4252;
  --t-border-subtle: #3b4252;
  --t-border-strong: #4c566a;
  --t-text: #d8dee9;
  --t-text-secondary: #d8dee9;
  --t-text-muted: #9fa7b4;
  --t-brand: #81a1c1;
  --t-brand-soft: #81a1c11f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #434c5e;
  --t-field-bg: #191c23;
  --t-field-dim: #384452;
  --t-field-mid: #596e85;
  --t-field-lit: #81a1c1;
  --t-field-hover: #a7bdd4;
  --t-field-crest: #cfdbe7;
  color-scheme: dark;
  --t-hdr-text: #f1faff;
  --t-hdr-text-2: #f1faff;
  --t-hdr-brand: #9abde4;
  --t-hdr-ink: #252a33;
  --t-hdr-surface-2: #545e75;
  --t-hdr-surface: #4e576c;
}

[data-theme='osaka-jade'] {
  --t-bg-deep: #0c1512;
  --t-bg: #111c18;
  --t-surface: #1a2a22;
  --t-surface-2: #23372b;
  --t-border-subtle: #23372b;
  --t-border-strong: #53685b;
  --t-text: #f7e8b2;
  --t-text-secondary: #c1c497;
  --t-text-muted: #969978;
  --t-brand: #509475;
  --t-brand-soft: #5094751f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #32473b;
  --t-field-bg: #090f0d;
  --t-field-dim: #1e372c;
  --t-field-mid: #35614d;
  --t-field-lit: #509475;
  --t-field-hover: #84b49e;
  --t-field-crest: #bcd6cb;
  color-scheme: dark;
  --t-hdr-text: #fff7bf;
  --t-hdr-text-2: #cad3a4;
  --t-hdr-brand: #59a382;
  --t-hdr-ink: #151d1d;
  --t-hdr-surface-2: #2c4638;
  --t-hdr-surface: #23382e;
}

[data-theme='retro-82'] {
  --t-bg-deep: #031222;
  --t-bg: #05182e;
  --t-surface: #081e37;
  --t-surface-2: #0a2540;
  --t-border-subtle: #0a2540;
  --t-border-strong: #2a6b78;
  --t-text: #f6dcac;
  --t-text-secondary: #f6dcac;
  --t-text-muted: #9ab69b;
  --t-brand: #faa968;
  --t-brand-soft: #faa9681f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #134e5a;
  --t-field-bg: #020c17;
  --t-field-dim: #4c3b2f;
  --t-field-mid: #9c6d49;
  --t-field-lit: #faa968;
  --t-field-hover: #fcc395;
  --t-field-crest: #fddec6;
  color-scheme: dark;
  --t-hdr-text: #f8e8c3;
  --t-hdr-text-2: #f8e8c3;
  --t-hdr-brand: #fcb57f;
  --t-hdr-ink: #0e1a27;
  --t-hdr-surface-2: #0c3157;
  --t-hdr-surface: #0a2a4e;
}

[data-theme='ristretto'] {
  --t-bg-deep: #211b1b;
  --t-bg: #2c2525;
  --t-surface: #342a28;
  --t-surface-2: #3d2f2a;
  --t-border-subtle: #3d2f2a;
  --t-border-strong: #72696a;
  --t-text: #e6d9db;
  --t-text-secondary: #e6d9db;
  --t-text-muted: #aca1a2;
  --t-brand: #f38d70;
  --t-brand-soft: #f38d701f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #403e41;
  --t-field-bg: #181414;
  --t-field-dim: #5a3830;
  --t-field-mid: #a05f4d;
  --t-field-lit: #f38d70;
  --t-field-hover: #f7af9b;
  --t-field-crest: #fad4c9;
  color-scheme: dark;
  --t-hdr-text: #feedef;
  --t-hdr-text-2: #feedef;
  --t-hdr-brand: #ffa184;
  --t-hdr-ink: #242224;
  --t-hdr-surface-2: #55433e;
  --t-hdr-surface: #4c3e3c;
}

[data-theme='solitude'] {
  --t-bg-deep: #0c0e10;
  --t-bg: #101315;
  --t-surface: #101315;
  --t-surface-2: #101315;
  --t-border-subtle: #101315;
  --t-border-strong: #4b4e55;
  --t-text: #cacccc;
  --t-text-secondary: #a5aeb4;
  --t-text-muted: #8a8d90;
  --t-brand: #798186;
  --t-brand-soft: #7981861f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #343d41;
  --t-field-bg: #080a0b;
  --t-field-dim: #2a2e30;
  --t-field-mid: #4e5457;
  --t-field-lit: #798186;
  --t-field-hover: #a1a7aa;
  --t-field-crest: #cccfd1;
  color-scheme: dark;
  --t-hdr-text: #d2d6d7;
  --t-hdr-text-2: #adb8bf;
  --t-hdr-brand: #818b91;
  --t-hdr-ink: #14181b;
  --t-hdr-surface-2: #181d20;
  --t-hdr-surface: #181d20;
}

[data-theme='vantablack'] {
  --t-bg-deep: #090909;
  --t-bg: #000000;
  --t-surface: #0d0d0d;
  --t-surface-2: #1a1a1a;
  --t-border-subtle: #1a1a1a;
  --t-border-strong: #7a7a7a;
  --t-text: #ffffff;
  --t-text-secondary: #ffffff;
  --t-text-muted: #a8a8a8;
  --t-brand: #8d8d8d;
  --t-brand-soft: #8d8d8d1f;
  --t-brand-ink: #0c0e10;
  --t-elevation: 0 0 0 1px oklch(1 0 0 / 0.07);
  --t-elevation-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --t-img-outline: rgb(255 255 255 / 0.1);
  --t-scroll-thumb: rgb(255 255 255 / 0.14);
  --t-selection: #1a1a1a;
  --t-field-bg: #070707;
  --t-field-dim: #2f2f2f;
  --t-field-mid: #5a5a5a;
  --t-field-lit: #8d8d8d;
  --t-field-hover: #afafaf;
  --t-field-crest: #d4d4d4;
  color-scheme: dark;
  --t-hdr-text: #ffffff;
  --t-hdr-text-2: #ffffff;
  --t-hdr-brand: #949494;
  --t-hdr-ink: #131517;
  --t-hdr-surface-2: #212121;
  --t-hdr-surface: #141414;
}

/* -------------------------------------------------------------------- base */

* {
  box-sizing: border-box;
}

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

:focus-visible {
  outline: 2px solid var(--t-brand);
  outline-offset: 2px;
}

html,
body {
  min-height: 100%;
  font-family: var(--font-mono);
}

body {
  margin: 0;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: var(--t-bg);
  color: var(--t-text);
  font-family: var(--font-mono);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  text-wrap: balance;
}

[id] {
  scroll-margin-top: var(--nav-h);
}

::selection {
  background: var(--t-selection);
  color: var(--t-text);
}

a,
button,
input,
select,
textarea,
[role='button'] {
  touch-action: manipulation;
}

/* Los cambios de tema no deben animar: cada color haría tween por su cuenta */
.no-transitions,
.no-transitions * {
  transition: none !important;
}

.img-outlined {
  outline: 1px solid var(--t-img-outline);
  outline-offset: -1px;
}

.ring-elevation {
  box-shadow: var(--t-elevation);
}
.ring-elevation-hover {
  transition-property: box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.ring-elevation-hover:hover {
  box-shadow: var(--t-elevation-hover);
}

.skip-link {
  position: absolute;
  left: 4px;
  z-index: var(--z-modal);
  transform: translateY(-120%);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  outline-offset: 2px;
  background: var(--t-bg);
  color: var(--t-text);
}
.skip-link:focus-visible {
  transform: translateY(16px);
}

/* La retícula del campo: el slot del wordmark es el 88% del contenedor con
   padding, tope 896px, dividido en 81 columnas — exactamente la retícula
   que dibuja el canvas. */
.pixel-container {
  container-type: inline-size;
}
.pixel-container > * {
  --pxc: calc(min((100cqw - 48px) * 0.88, 896px) / 81);
  /* Las filas son 50/51 de una columna: las unidades del wordmark son 51x50 */
  --pxr: calc(var(--pxc) * 50 / 51);
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  padding-top: env(safe-area-inset-top);
  background: color-mix(
    in srgb,
    var(--nav-ground, var(--t-bg)) calc(var(--nav-surface, 0) * 90%),
    transparent
  );
  backdrop-filter: blur(calc(var(--nav-surface, 0) * 12px));
}
.site-header[data-nav-blend] {
  --nav-surface: 0;
}

.nav-bar {
  margin: 0 auto;
  display: flex;
  height: 3.5rem;
  max-width: 72rem;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
}
@media (min-width: 640px) {
  .nav-bar {
    padding-inline: 24px;
  }
}

/* Mientras el hero está debajo, las etiquetas reales se apartan y la copia
   mezclada dentro del hero se ve a través de la barra transparente. */
[data-nav-blend] .nav-links a,
[data-nav-blend] .nav-glyph,
[data-nav-blend] .nav-toggle {
  color: transparent;
}
[data-nav-blend] .nav-links a,
[data-nav-blend] .nav-glyph:hover,
[data-nav-blend] .nav-glyph[aria-expanded='true'],
[data-nav-blend] .nav-toggle:hover {
  background-color: transparent;
  transition: none;
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--t-brand);
  text-decoration: none;
}
.nav-logo svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .nav-logo svg {
    width: calc(var(--pxc) * 2);
    height: calc(var(--pxc) * 2);
  }
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  padding: 6px 12px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--t-text-secondary);
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.nav-links a:hover {
  background: var(--t-surface-2);
  color: var(--t-text);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icons {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 640px) {
  .nav-icons {
    display: flex;
  }
}

.nav-glyph {
  position: relative;
  display: flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--t-text-secondary);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.nav-glyph::before {
  content: '';
  position: absolute;
  inset: -4px;
}
.nav-glyph:hover {
  color: var(--t-text);
}
@media (min-width: 1024px) {
  .nav-glyph {
    height: calc(var(--pxr) * 3);
    width: calc(var(--pxr) * 3);
  }
}
.nav-glyph svg {
  width: 20px;
  height: 20px;
}

.nav-toggle {
  display: flex;
  position: relative;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--t-text-secondary);
  cursor: pointer;
}
.nav-toggle:hover {
  color: var(--t-text);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
}

/* El fantasma: copia de las etiquetas dentro del stacking context del hero,
   mezclada con el canvas mediante difference. */
.nav-ghost {
  pointer-events: none;
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  mix-blend-mode: difference;
  padding-top: env(safe-area-inset-top);
  opacity: 1;
  transition: opacity 150ms ease-out;
}

/* Etiquetas e iconos del fantasma: mismas métricas que la barra real */
.ghost-icon {
  display: flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .ghost-icon {
    height: calc(var(--pxr) * 3);
    width: calc(var(--pxr) * 3);
  }
}
.ghost-icon svg {
  width: 20px;
  height: 20px;
}

/* Los iconos de tema solo existen en la barra real de móvil */
@media (min-width: 640px) {
  .mobile-only {
    display: none !important;
  }
}
@media (max-width: 639.98px) {
  .nav-toggle {
    display: flex;
  }
}

/* Las barras del menú se pliegan en una X */
.nav-toggle line {
  transform-origin: 12px 12px;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), opacity 140ms ease-out;
}
.nav-toggle[aria-expanded='true'] .bar1 {
  transform: translateY(6.25px) rotate(45deg) scaleX(0.88);
  transform-origin: 12px 5.75px;
}
.nav-toggle[aria-expanded='true'] .bar2 {
  transform: scaleX(0);
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .bar3 {
  transform: translateY(-6.25px) rotate(-45deg) scaleX(0.88);
  transform-origin: 12px 18.25px;
}

/* Con el menú abierto la barra lleva la superficie del menú */
.site-header.menu-open {
  --nav-surface: 1;
  background: color-mix(in srgb, var(--t-bg) 95%, transparent);
  backdrop-filter: blur(16px);
}

/* Menú móvil */
.site-menu {
  position: absolute;
  inset-inline: 0;
  top: var(--nav-h);
  border-bottom: 1px solid var(--t-border-subtle);
  background: color-mix(in srgb, var(--t-bg) 95%, transparent);
  backdrop-filter: blur(16px);
}
@media (min-width: 640px) {
  .site-menu {
    display: none;
  }
}
.site-menu nav {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 16px;
}
.site-menu a,
.site-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  text-align: left;
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--t-text-secondary);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.site-menu a:hover,
.site-menu button:hover {
  color: var(--t-text);
}
.menu-scrim {
  position: absolute;
  inset-inline: 0;
  top: var(--nav-h);
  /* La página mide justo el viewport: el velo termina en el pliegue, sin
     crear 56px de scroll fantasma mientras el menú está abierto. */
  height: calc(100svh - var(--nav-h));
  background: rgb(0 0 0 / 0.55);
}
@supports (backdrop-filter: blur(1px)) {
  .menu-scrim {
    backdrop-filter: blur(4px);
  }
}
@media (min-width: 640px) {
  .menu-scrim {
    display: none;
  }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--t-border-subtle);
  padding-top: var(--nav-h);
  margin-top: calc(var(--nav-h) * -1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: var(--t-field-bg);
}

.hero-shader-host {
  pointer-events: none;
  position: absolute;
  inset: 0;
  user-select: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  animation: canvas-warmup 900ms ease-out both;
}

.hero-center {
  pointer-events: none;
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.hero-spacer {
  flex: 1;
}

/* El wordmark: div con la máscara SVG del bitmap ջմɾմʂ, banda a banda */
.hero-wordmark {
  width: 88%;
  max-width: 56rem; /* max-w-4xl */
  color: var(--t-field-lit);
  aspect-ratio: 4131 / 950;
  background-color: currentColor;
  -webkit-mask-image: url('../assets/brand/wordmark-jmrms.svg');
  mask-image: url('../assets/brand/wordmark-jmrms.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.hero-wordmark.invisible {
  visibility: hidden;
}

/* El wordmark renderizado en el servidor se mantiene fuera de la vista
   mientras un efecto va a dibujarlo (ver etchInitScript). El canvas lo
   esconde para siempre una vez que ha pintado. */
.etch-pending .hero-wordmark {
  visibility: hidden;
}

.hero-quiet {
  pointer-events: auto;
  margin-top: 48px;
  display: flex;
  width: 100%;
  max-width: 42rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero-quiet {
    margin-top: calc(var(--pxr) * 5);
  }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--t-text);
  margin: 0;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 30px;
  }
}
.hero-title a {
  color: var(--t-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 150ms ease-out;
}
.hero-title a:hover {
  text-decoration-color: var(--t-brand);
}

.hero-sub {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.625;
  color: var(--t-text-secondary);
}
.hero-sub span {
  display: block;
  text-wrap: balance;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  width: 100%;
  max-width: 320px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
@media (min-width: 640px) {
  .hero-ctas {
    width: auto;
    max-width: none;
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .hero-ctas {
    gap: calc(var(--pxc) * 2);
  }
}

/* Botones: los dos quedan totalmente opacos, hover incluido — el outline es
   un panel translúcido que deja ver el campo. */
.btn {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--t-brand);
  color: var(--t-brand-ink);
  transition: background-color 150ms ease-out;
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--t-brand), white 14%);
}
.btn-outline {
  border-color: var(--t-border-strong);
  background: color-mix(in srgb, var(--t-surface) 55%, transparent);
  color: var(--t-text);
  backdrop-filter: blur(8px);
  transition: background-color 150ms ease-out;
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--t-surface-2) 80%, transparent);
}

/* -------------------------------------------------------------- hero intro */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-intro [data-hero-stagger] {
  animation: hero-rise 550ms cubic-bezier(0.21, 0.47, 0.32, 0.98) both;
  animation-delay: calc(var(--stagger, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .hero-intro [data-hero-stagger] {
    animation: none;
  }
}

@keyframes canvas-warmup {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas {
    animation: none;
  }
}

/* -------------------------------------------------------------- nav mark
   La ballena del logo se traza al pasar el puntero: la silueta (un solo
   trazo continuo, con el aro del ojo) se dibuja de golpe con el mismo
   dashoffset que el espiral original, y la pupila entra después con un
   pop breve. */

.mark-draw .mark-line {
  stroke-dasharray: 1;
}
@keyframes mark-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.mark-draw .mark-pupil {
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes mark-pop {
  from {
    opacity: 0;
    transform: scale(0.25);
  }
  70% {
    opacity: 1;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.mark-draw-trigger:is(:hover, :focus-visible) .mark-draw .mark-line {
  animation: mark-draw 640ms cubic-bezier(0.45, 0, 0.25, 1) both;
}
.mark-draw-trigger:is(:hover, :focus-visible) .mark-draw .mark-pupil {
  animation: mark-pop 260ms cubic-bezier(0.34, 1.56, 0.64, 1) 500ms both;
}
@media (prefers-reduced-motion: reduce) {
  .mark-draw path {
    animation: none !important;
  }
}

/* ------------------------------------------------------------ hint notice */

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.notice-in {
  animation: notice-in 300ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .notice-in {
    animation: none;
  }
}

.theme-hint {
  position: fixed;
  top: 104px;
  right: 16px;
  z-index: var(--z-dropdown);
  width: 288px;
}
@media (min-width: 640px) {
  .theme-hint {
    top: 68px;
  }
}
.theme-hint-card {
  position: relative;
  background: var(--t-surface);
  box-shadow: var(--t-elevation);
}
.theme-hint-open {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 40px 16px 16px;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: background-color 150ms ease-out;
}
.theme-hint-open:hover {
  background: var(--t-surface-2);
}
.theme-hint-open svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--t-brand);
}
.theme-hint-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--t-text);
}
.theme-hint-body {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.625;
  color: var(--t-text-secondary);
}
.theme-hint-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  padding: 0;
  color: var(--t-text-muted);
  cursor: pointer;
  transition: color 150ms ease-out;
}
.theme-hint-dismiss:hover {
  color: var(--t-text);
}
.theme-hint-dismiss svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------ theme picker */

.picker-dimmer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  isolation: isolate;
  background: rgb(0 0 0 / 0.55);
}
@supports (backdrop-filter: blur(1px)) {
  .picker-dimmer {
    backdrop-filter: blur(4px);
  }
}

.picker-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
  touch-action: none;
}
.picker-dialog.dimmer-close {
  position: absolute;
  inset: 0;
}

.picker-deck {
  pointer-events: none;
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.picker-card-slot {
  position: absolute;
  width: min(68vw, 46rem);
}
@media (min-width: 640px) {
  .picker-card-slot {
    width: min(72vw, 46rem);
  }
}
.picker-card {
  pointer-events: auto;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.picker-card-frame {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  background: var(--t-brand);
  clip-path: polygon(2.5% 0%, 100% 0%, 97.5% 100%, 0% 100%);
}
.picker-card-frame.side {
  background: #71717a;
}
.picker-card-inner {
  background: #000;
}
.picker-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.picker-card.spot img {
  filter: none;
}
.picker-card.side img {
  filter: brightness(var(--card-dim, 0.55));
}
.picker-card:hover {
  --card-dim: 0.78;
}
.picker-deck-spacer {
  visibility: hidden;
  width: min(68vw, 46rem);
}
@media (min-width: 640px) {
  .picker-deck-spacer {
    width: min(72vw, 46rem);
  }
}

.picker-name {
  position: relative;
  margin-top: 6px;
  padding: 14px 16px;
  text-align: center;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: filter 150ms ease-out;
}
.picker-name:hover {
  filter: brightness(1.25);
}
.picker-name span {
  display: block;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px var(--t-text);
  color: var(--t-bg);
}
.picker-name span.dark-ink {
  -webkit-text-stroke: 2px var(--t-bg);
  color: var(--t-text);
}

.picker-chevron {
  position: absolute;
  top: 50%;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid var(--t-border-subtle);
  background: var(--t-bg);
  color: var(--t-text);
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
.picker-chevron:hover {
  background: var(--t-surface-2);
}
.picker-chevron.prev {
  left: 12px;
}
.picker-chevron.next {
  right: 12px;
}
@media (min-width: 640px) {
  .picker-chevron.prev {
    left: 24px;
  }
  .picker-chevron.next {
    right: 24px;
  }
}
.picker-chevron svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------- etch picker
   Panel de desarrollo: aparece solo con ?etch= en la dirección. */

/* ---------------------------------------------- selector de efectos (etch)
   El popover del botón de efectos de texto: el ?etch= de la dirección, en
   un botón. La lista se construye desde js/main.js. */

.etch-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 12px;
  z-index: 80;
  width: 348px;
  max-width: calc(100vw - 24px);
  border: 1px solid var(--t-border-subtle);
  background: var(--t-surface);
  box-shadow: var(--t-elevation);
  padding: 8px;
}
.etch-popover-head {
  padding: 2px 8px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-text-muted);
}
.etch-popover-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-height: min(56vh, 400px);
  overflow-y: auto;
}
.etch-popover-list button {
  display: flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 5px 8px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--t-text-secondary);
  border-radius: 2px;
}
.etch-popover-list button:hover {
  background: var(--t-surface-2);
  color: var(--t-text);
}
.etch-popover-list button.active {
  background: var(--t-surface-2);
  color: var(--t-brand);
}
.etch-popover-foot {
  padding: 8px 8px 2px;
  font-size: 12px;
  color: var(--t-text-muted);
}

@media (max-width: 639.98px) {
  .etch-popover {
    right: 8px;
    left: 8px;
    width: auto;
  }
  .etch-popover-list {
    grid-template-columns: repeat(2, 1fr);
    max-height: 48vh;
  }
}

/* -------------------------------------------------------------- view transitions
   El split-wipe de 10 grados que usa el sitio al cambiar de tema. */

@property --theme-wipe {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 0px;
}

::view-transition {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  filter: none;
}

::view-transition-group(root) {
  animation: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

::view-transition-image-pair(root) {
  animation: none;
  inset: 0;
  overflow: hidden;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  opacity: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: none;
  object-position: 0 0;
  filter: none;
}

::view-transition-new(root) {
  z-index: 0;
}

/* Snapshot a tamaño del viewport. 100deg = 10° fuera de vertical, arriba
   inclinado a la derecha (/). La rendija arranca cerrada y crece. */
::view-transition-old(root),
::view-transition-old(theme-picker) {
  animation: theme-split-wipe 200ms cubic-bezier(0.7, 0, 1, 1) both;
  mask-image: linear-gradient(
    100deg,
    #000 0,
    #000 calc(50% - var(--theme-wipe) + 1px),
    #0000 calc(50% - var(--theme-wipe) + 1px),
    #0000 calc(50% + var(--theme-wipe) - 1px),
    #000 calc(50% + var(--theme-wipe) - 1px),
    #000 100%
  );
  mask-mode: alpha;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

::view-transition-old(root) {
  z-index: 1;
}

/* Escarchado solo para un wipe que nace del picker. */
:root.theme-wipe-frosted::view-transition-old(root) {
  filter: blur(4px);
}

::view-transition-group(theme-picker) {
  animation: none;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  z-index: 2;
}

::view-transition-image-pair(theme-picker) {
  animation: none;
  inset: 0;
}

::view-transition-old(theme-picker) {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: none;
  object-position: 0 0;
}

@keyframes theme-split-wipe {
  from {
    --theme-wipe: 0px;
  }

  to {
    --theme-wipe: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(theme-picker) {
    animation: none;
  }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--t-bg);
  border-bottom: 1px solid var(--t-border-subtle);
}
.footer-inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--t-text-muted);
}
.footer-inner a {
  color: var(--t-text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--t-border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease-out, color 150ms ease-out;
}
.footer-inner a:hover {
  color: var(--t-text);
  text-decoration-color: var(--t-brand);
}

/* ------------------------------------------------------------------ utils */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
