/* ===========================================================================
   app.bundle.css - a UI nova do entelecy.app.

   Montado a partir de Entelecy.Site/entelecy-web-suite:
     src/foundation.css  (ordem das camadas + reset + base)
     src/tokens.css      (paleta, escalas, raios)
     src/components.css  (header, nav, botoes, cards, footer)
     examples/entelecy-app/page.css (o que so esta pagina usa)

   DUAS adaptacoes, ambas deliberadas:
   1. [data-theme="night"|"day"] viraram "dark"|"light" - a chave localStorage
      'theme' desta casa ja guarda dark/light, e quem ja escolheu um tema nao
      pode perder a escolha por causa de renomeacao.
   2. As @font-face vieram do site.bundle.css: as woff2 sao auto-hospedadas em
      /_ent/ e a suite as assume disponiveis, sem declara-las.

   site.bundle.css continua no lugar, intocado: ele e sincronizado de
   entelecy.ai por tools/sincronizar-site.ps1 e nao e nosso pra reescrever.

   REGERAR: python scratchpad/bundle.py (ou refazer a mao seguindo a ordem acima).
   =========================================================================== */

/* GERADO por BundleSiteCss (csproj). Não edite — edite os parciais em css/ e css/site/. */
/* Entelecy — fontes auto-hospedadas (Fraunces/Inter/JetBrains Mono, subsets latin+latin-ext).
Gerado a partir do CSS do Google Fonts; woff2 servidos de /_ent/. */
/* Fraunces 400 italic — latin-ext */
@font-face {
font-family: 'Fraunces';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(/_ent/fraunces-400-italic-latin-ext.woff2) format('woff2');
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;
}
/* Fraunces 400 italic — latin */
@font-face {
font-family: 'Fraunces';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(/_ent/fraunces-400-italic-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;
}
/* Fraunces 500 italic — latin-ext */
@font-face {
font-family: 'Fraunces';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url(/_ent/fraunces-400-italic-latin-ext.woff2) format('woff2');
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;
}
/* Fraunces 500 italic — latin */
@font-face {
font-family: 'Fraunces';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url(/_ent/fraunces-400-italic-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;
}
/* Fraunces 400 normal — latin-ext */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/_ent/fraunces-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* Fraunces 400 normal — latin */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/_ent/fraunces-400-normal-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;
}
/* Fraunces 500 normal — latin-ext */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/_ent/fraunces-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* Fraunces 500 normal — latin */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/_ent/fraunces-400-normal-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;
}
/* Fraunces 600 normal — latin-ext */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/_ent/fraunces-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* Fraunces 600 normal — latin */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/_ent/fraunces-400-normal-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;
}
/* Inter 400 normal — latin-ext */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/_ent/inter-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* Inter 400 normal — latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/_ent/inter-400-normal-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;
}
/* Inter 500 normal — latin-ext */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/_ent/inter-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* Inter 500 normal — latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/_ent/inter-400-normal-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;
}
/* Inter 600 normal — latin-ext */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/_ent/inter-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* Inter 600 normal — latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/_ent/inter-400-normal-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 400 normal — latin-ext */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/_ent/jetbrains-mono-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* JetBrains Mono 400 normal — latin */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/_ent/jetbrains-mono-400-normal-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 500 normal — latin-ext */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/_ent/jetbrains-mono-400-normal-latin-ext.woff2) format('woff2');
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;
}
/* JetBrains Mono 500 normal — latin */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/_ent/jetbrains-mono-400-normal-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;
}

/* --- src/foundation.css --- */
@layer entelecy.reset, entelecy.tokens, entelecy.base, entelecy.components, entelecy.page;

@layer entelecy.reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body,
  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }

  img,
  svg,
  iframe {
    max-width: 100%;
  }

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

@layer entelecy.base {
  html {
    background: var(--ec-bg);
  }

  body {
    min-width: 20rem;
    min-height: 100vh;
    overflow-x: clip;
    color: var(--ec-text);
    background: var(--ec-bg);
    font-family: var(--ec-font-sans);
    font-size: var(--ec-step-0);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    transition: color var(--ec-duration-base) var(--ec-ease),
      background var(--ec-duration-base) var(--ec-ease);
  }

  a {
    color: inherit;
  }

  main,
  section,
  article,
  aside,
  nav {
    min-width: 0;
  }

  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  h1,
  h2 {
    font-family: var(--ec-font-display);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.02;
  }

  h1 {
    font-size: var(--ec-step-4);
  }

  h2 {
    font-size: var(--ec-step-3);
  }

  h3 {
    font-size: var(--ec-step-1);
    line-height: 1.25;
  }

  em {
    font-weight: 400;
  }

  :focus-visible {
    outline: 2px solid var(--ec-focus);
    outline-offset: 4px;
  }

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

  .ec-container {
    width: min(100% - (2 * var(--ec-gutter)), var(--ec-content));
    margin-inline: auto;
  }

  .ec-reading {
    max-width: var(--ec-reading);
  }

  .ec-section {
    padding-block: var(--ec-space-9);
    border-top: 1px solid var(--ec-line);
  }

  .ec-sr-only {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  @media (max-width: 44rem) {
    :root {
      --ec-gutter: 1rem;
      --ec-header-height: 4rem;
    }

    .ec-section {
      padding-block: var(--ec-space-8);
    }
  }

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

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }
}


/* --- src/tokens.css --- */
@layer entelecy.tokens {
  :root {
    color-scheme: light dark;

    --ec-font-sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    --ec-font-display: Georgia, "Times New Roman", serif;
    --ec-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    --ec-step--1: clamp(0.76rem, 0.72rem + 0.12vw, 0.84rem);
    --ec-step-0: clamp(0.94rem, 0.9rem + 0.16vw, 1.04rem);
    --ec-step-1: clamp(1.12rem, 1rem + 0.35vw, 1.34rem);
    --ec-step-2: clamp(1.42rem, 1.18rem + 0.72vw, 1.9rem);
    --ec-step-3: clamp(1.9rem, 1.45rem + 1.38vw, 2.8rem);
    --ec-step-4: clamp(2.55rem, 1.75rem + 2.5vw, 4.35rem);

    --ec-space-1: 0.25rem;
    --ec-space-2: 0.5rem;
    --ec-space-3: 0.75rem;
    --ec-space-4: 1rem;
    --ec-space-5: 1.5rem;
    --ec-space-6: 2rem;
    --ec-space-7: 3rem;
    --ec-space-8: 4.5rem;
    --ec-space-9: 7rem;

    --ec-radius-sm: 0.55rem;
    --ec-radius-md: 0.9rem;
    --ec-radius-lg: 1.35rem;
    --ec-radius-xl: 2rem;
    --ec-radius-pill: 999px;

    --ec-content: 76rem;
    --ec-reading: 44rem;
    --ec-gutter: clamp(1rem, 3vw, 3rem);
    --ec-header-height: 4.75rem;

    --ec-gold-100: #fff1df;
    --ec-gold-300: #e2b585;
    --ec-gold-500: #b97b46;
    --ec-copper: #d76b43;
    --ec-blue: #6aa8cb;
    --ec-green: #7fb7a0;

    --ec-duration-fast: 140ms;
    --ec-duration-base: 240ms;
    --ec-ease: cubic-bezier(0.2, 0.72, 0.24, 1);
  }

  :root,
  [data-theme="dark"] {
    --ec-bg: #0d0c0c;
    --ec-bg-elevated: #151313;
    --ec-surface: rgb(25 22 21 / 0.82);
    --ec-surface-strong: #1b1817;
    --ec-text: #f0ece6;
    --ec-text-muted: #aaa39d;
    --ec-text-faint: #756f6b;
    --ec-line: rgb(238 205 170 / 0.16);
    --ec-line-strong: rgb(238 205 170 / 0.3);
    --ec-accent: #e2b585;
    --ec-accent-ink: #18110c;
    --ec-focus: #fff1df;
    --ec-shadow: 0 28px 80px rgb(0 0 0 / 0.3);
    --ec-glow: 0 0 24px rgb(226 181 133 / 0.08);
    --ec-logo-filter: none;
    --ec-code-bg: #0d1015;
    --ec-code-text: #cbd5e1;
    --ec-code-muted: #8c939e;
    --ec-code-line: rgb(255 255 255 / 0.11);
    --ec-code-button: #d7dce4;
  }

  [data-theme="light"] {
    --ec-bg: #f3efe8;
    --ec-bg-elevated: #faf7f2;
    --ec-surface: rgb(255 252 247 / 0.82);
    --ec-surface-strong: #fffdfa;
    --ec-text: #1b1714;
    --ec-text-muted: #6f665f;
    --ec-text-faint: #978c83;
    --ec-line: rgb(69 50 35 / 0.14);
    --ec-line-strong: rgb(69 50 35 / 0.26);
    --ec-accent: #a86535;
    --ec-accent-ink: #fffaf4;
    --ec-focus: #7f4d2d;
    --ec-shadow: 0 28px 80px rgb(72 52 36 / 0.11);
    --ec-glow: 0 0 24px rgb(168 101 53 / 0.06);
    --ec-logo-filter: invert(1);
    --ec-code-bg: #eee5d8;
    --ec-code-text: #3c3129;
    --ec-code-muted: #75685d;
    --ec-code-line: rgb(72 52 36 / 0.16);
    --ec-code-button: #4b3c31;
  }
}


/* --- src/components.css --- */
@layer entelecy.components {
  .ec-header {
    min-height: var(--ec-header-height);
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--ec-line);
    background: color-mix(in srgb, var(--ec-bg) 86%, transparent);
    backdrop-filter: blur(18px);
  }

  .ec-header__inner {
    min-height: var(--ec-header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--ec-space-6);
  }

  .ec-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .ec-brand img {
    width: 7.6rem;
    height: auto;
    display: block;
    filter: var(--ec-logo-filter);
  }

  .ec-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
  }

  .ec-nav a,
  .ec-quiet-link {
    color: var(--ec-text-muted);
    font-size: var(--ec-step--1);
    text-decoration: none;
    transition: color var(--ec-duration-fast) ease;
  }

  .ec-nav a:hover,
  .ec-quiet-link:hover {
    color: var(--ec-text);
  }

  .ec-nav a[aria-current="page"] {
    position: relative;
    color: var(--ec-text);
    font-weight: 650;
  }

  .ec-nav a[aria-current="page"]::after {
    height: 1px;
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.7rem;
    left: 0;
    background: var(--ec-accent);
  }

  .ec-header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: var(--ec-space-2);
  }

  .ec-nav__mobile-action {
    display: none;
  }

  .ec-pill,
  .ec-theme-toggle,
  .ec-menu-toggle {
    min-height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ec-space-2);
    padding-inline: 0.85rem;
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius-pill);
    color: var(--ec-text);
    background: transparent;
    font-size: var(--ec-step--1);
    text-decoration: none;
    cursor: pointer;
  }

  .ec-theme-toggle {
    padding-inline: 0.8rem;
  }

  .ec-theme-toggle__track {
    width: 2rem;
    height: 1.12rem;
    position: relative;
    display: inline-block;
    border-radius: var(--ec-radius-pill);
    background: color-mix(in srgb, var(--ec-text) 12%, transparent);
  }

  .ec-theme-toggle__track i {
    width: 0.72rem;
    aspect-ratio: 1;
    position: absolute;
    left: 0.2rem;
    top: 50%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--ec-gold-100), var(--ec-gold-300));
    box-shadow: 0 0 8px rgb(226 181 133 / 0.7);
    transform: translateY(-50%);
    transition: left var(--ec-duration-base) var(--ec-ease);
  }

  [data-theme="dark"] .ec-theme-toggle__track i {
    left: 1.08rem;
  }

  .ec-enter {
    min-height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.15rem;
    border: 1px solid var(--ec-text);
    border-radius: var(--ec-radius-pill);
    color: var(--ec-bg);
    background: var(--ec-text);
    font-size: var(--ec-step--1);
    font-weight: 700;
    text-decoration: none;
  }

  .ec-menu-toggle {
    display: none;
  }

  .ec-button {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ec-space-3);
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--ec-line-strong);
    border-radius: var(--ec-radius-pill);
    color: var(--ec-text);
    background: transparent;
    font-weight: 650;
    text-decoration: none;
    transition: transform var(--ec-duration-fast) ease,
      border-color var(--ec-duration-fast) ease,
      background var(--ec-duration-fast) ease;
  }

  .ec-button:hover {
    transform: translateY(-2px);
    border-color: var(--ec-accent);
  }

  .ec-button--primary {
    color: var(--ec-accent-ink);
    border-color: var(--ec-accent);
    background: var(--ec-accent);
  }

  .ec-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--ec-space-3);
    color: var(--ec-accent);
    font-family: var(--ec-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .ec-eyebrow::before {
    width: 1.6rem;
    height: 1px;
    content: "";
    background: currentColor;
  }

  .ec-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    align-items: end;
    gap: var(--ec-space-7);
    margin-bottom: var(--ec-space-7);
  }

  .ec-section-heading p {
    color: var(--ec-text-muted);
  }

  .ec-card {
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius-lg);
    background: var(--ec-surface);
    box-shadow: var(--ec-glow);
  }

  .ec-number-grid,
  .ec-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ec-space-4);
  }

  .ec-number-card,
  .ec-feature-card {
    min-height: 15rem;
    padding: var(--ec-space-6);
  }

  .ec-number-card__index {
    color: var(--ec-accent);
    font-family: var(--ec-font-mono);
    font-size: var(--ec-step--1);
  }

  .ec-number-card h3,
  .ec-feature-card h3 {
    margin-top: var(--ec-space-7);
    margin-bottom: var(--ec-space-3);
  }

  .ec-number-card p,
  .ec-feature-card p {
    color: var(--ec-text-muted);
  }

  .ec-footer {
    border-top: 1px solid var(--ec-line);
    background: var(--ec-bg-elevated);
  }

  .ec-footer__inner {
    min-height: 5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--ec-space-5);
    color: var(--ec-text-faint);
    font-family: var(--ec-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .ec-footer__inner :last-child {
    justify-self: end;
  }

  .ec-reveal {
    opacity: 1;
    transform: none;
  }

  .ec-js .ec-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 560ms var(--ec-ease), transform 560ms var(--ec-ease);
  }

  .ec-js .ec-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  @media (max-width: 62rem) {
    .ec-header__inner {
      grid-template-columns: auto minmax(0, 1fr);
      gap: var(--ec-space-4);
    }

    .ec-menu-toggle {
      display: inline-flex;
    }

    .ec-nav {
      position: absolute;
      inset: calc(100% + 1px) var(--ec-gutter) auto;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: var(--ec-space-3);
      border: 1px solid var(--ec-line);
      border-radius: var(--ec-radius-lg);
      background: var(--ec-bg-elevated);
      box-shadow: var(--ec-shadow);
    }

    .ec-nav[data-open] {
      display: flex;
    }

    .ec-nav a {
      padding: 0.8rem 0.9rem;
      border-radius: var(--ec-radius-sm);
    }

    .ec-nav a:hover {
      background: var(--ec-surface);
    }

    .ec-nav a[aria-current="page"]::after {
      display: none;
    }

    .ec-header__actions .ec-language {
      display: none;
    }
  }

  @media (max-width: 48rem) {
    .ec-theme-toggle {
      width: 2.9rem;
      padding-inline: 0.4rem;
    }

    .ec-theme-toggle > span:not(.ec-theme-toggle__track),
    .ec-enter {
      display: none;
    }

    .ec-menu-toggle {
      min-width: 3.25rem;
      min-height: 2.5rem;
      padding-inline: 0.65rem;
    }

    .ec-nav .ec-nav__mobile-action {
      display: flex;
      justify-content: center;
      margin-top: var(--ec-space-2);
      color: var(--ec-accent-ink);
      background: var(--ec-accent);
      font-weight: 700;
    }

    .ec-section-heading,
    .ec-number-grid,
    .ec-feature-grid {
      grid-template-columns: 1fr;
    }

    .ec-number-card,
    .ec-feature-card {
      min-height: auto;
    }

    .ec-number-card h3,
    .ec-feature-card h3 {
      margin-top: var(--ec-space-6);
    }

    .ec-footer__inner {
      grid-template-columns: 1fr;
      justify-items: start;
      padding-block: var(--ec-space-5);
    }

    .ec-footer__inner :last-child {
      justify-self: start;
    }
  }

  @media (max-width: 34rem) {
    .ec-brand img {
      width: 6.25rem;
    }

    .ec-header__inner {
      gap: var(--ec-space-2);
    }

    .ec-header__actions {
      gap: var(--ec-space-1);
    }
  }
}


/* --- examples/entelecy-app/page.css --- */
@layer entelecy.page {
  body {
    background-image:
      radial-gradient(circle at 82% 5%, rgb(226 181 133 / 0.07), transparent 25rem),
      linear-gradient(180deg, transparent 0 38rem, rgb(106 168 203 / 0.025) 55rem, transparent 72rem);
  }

  .app-hero {
    min-height: clamp(36rem, 73vh, 48rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: var(--ec-space-8);
  }

  .app-hero__copy {
    width: 100%;
    max-width: 58rem;
    text-align: center;
  }

  .app-hero .ec-eyebrow {
    justify-content: center;
  }

  .app-hero h1 {
    max-width: 14ch;
    margin-block: var(--ec-space-5);
    margin-inline: auto;
  }

  .app-hero__copy > p:not(.ec-eyebrow) {
    max-width: 42rem;
    margin-inline: auto;
    color: var(--ec-text-muted);
    font-size: var(--ec-step-1);
  }

  .app-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ec-space-3);
    margin-top: var(--ec-space-6);
  }

  .app-projects {
    background: color-mix(in srgb, var(--ec-bg-elevated) 76%, transparent);
  }

  .app-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .app-project {
    min-width: 0;
  }

  .app-project__preview {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius-lg);
    background: #12100f;
    box-shadow: var(--ec-shadow);
    text-decoration: none;
    transition: transform var(--ec-duration-base) var(--ec-ease),
      border-color var(--ec-duration-base) ease;
  }

  .app-project__preview:hover {
    transform: translateY(-5px);
    border-color: var(--ec-accent);
  }

  .app-project__bar {
    height: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.34rem;
    padding-inline: 0.75rem;
    color: #928b84;
    background: #171413;
    font: 0.58rem/1 var(--ec-font-mono);
  }

  .app-project__bar i {
    width: 0.38rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #5b514b;
  }

  .app-project__bar i:first-child {
    background: var(--ec-copper);
  }

  .app-project__bar b {
    min-width: 0;
    margin-left: var(--ec-space-2);
    overflow: hidden;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-project__viewport {
    height: clamp(15rem, 26vw, 22rem);
    position: relative;
    display: block;
    overflow: hidden;
    background: #ece8df;
  }

  .app-project__viewport > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #b7afa4;
    font-family: var(--ec-font-display);
    font-size: 4rem;
  }

  .app-project iframe {
    width: 250%;
    height: 250%;
    max-width: none;
    position: absolute;
    inset: 0 auto auto 0;
    border: 0;
    background: white;
    transform: scale(0.4);
    transform-origin: top left;
    pointer-events: none;
  }

  .app-project h3 {
    margin-top: var(--ec-space-4);
    font-family: var(--ec-font-display);
    font-weight: 400;
  }

  .app-project h3 a {
    text-decoration: none;
  }

  .app-project h3 a:hover {
    color: var(--ec-accent);
  }

  .app-address {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
    align-items: center;
    gap: var(--ec-space-8);
  }

  .app-address h2 {
    margin-block: var(--ec-space-5);
  }

  .app-address p:last-child {
    color: var(--ec-text-muted);
  }

  .app-address__example {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--ec-space-6);
  }

  .app-address__example span,
  .app-address__example small {
    color: var(--ec-text-muted);
    font-family: var(--ec-font-mono);
    font-size: 0.72rem;
  }

  .app-address__example strong {
    overflow-wrap: anywhere;
    font-family: var(--ec-font-display);
    font-size: var(--ec-step-2);
    font-weight: 400;
  }

  .app-address__example em {
    color: var(--ec-accent);
  }

  .ec-feature-card > span {
    color: var(--ec-text-faint);
    font-family: var(--ec-font-mono);
    font-size: 0.72rem;
  }

  .app-cta__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--ec-space-6);
  }

  .app-cta h2 {
    max-width: 18ch;
    margin-top: var(--ec-space-4);
  }

  @media (max-width: 62rem) {
    .app-hero__copy {
      max-width: 52rem;
    }
  }

  @media (max-width: 48rem) {
    .app-project-grid,
    .app-address {
      grid-template-columns: 1fr;
    }

    .app-hero {
      min-height: auto;
    }

    .app-hero h1 {
      max-width: 11ch;
    }

    .app-hero__actions .ec-button {
      flex: 1 1 12rem;
    }

    .app-project__viewport {
      height: min(64vw, 20rem);
    }

    .app-cta__inner {
      align-items: flex-start;
      flex-direction: column;
    }
  }

  @media (max-width: 32rem) {
    .app-hero__actions {
      align-items: stretch;
      flex-direction: column;
    }

    .app-hero__actions .ec-button {
      width: 100%;
      flex: none;
    }

    .app-project__viewport {
      height: 68vw;
    }
  }

}

