@charset "UTF-8";
/* ==========================================================================
   Sky Glass theme: frosted panels on a soft sky-blue gradient.
   Applies only when <html data-palette="glass"> (set from the theme menu).
   The frost is built from translucency, a fine top highlight and the page
   grain over an already-soft gradient, so no panel uses backdrop-filter:
   the only blur on the page stays the top bar's, and blurs never stack.
   ========================================================================== */
html[data-palette="glass"] {
  --paper: #E8F2FC;
  --paper-2: rgba(255, 255, 255, .55);
  --ink: #0E2236;
  --ink-2: #3A5068;
  --ink-3: #4A6078;
  --line: rgba(14, 34, 54, .12);
  --accent: #1458A3;
  --inv-bg: #0D2442;
  --inv-accent: #9FD4FF;

  --glass: rgba(255, 255, 255, .42);
  --glass-hover: rgba(255, 255, 255, .64);
  --glass-edge: rgba(255, 255, 255, .78);
  --glass-hl: inset 0 1px 0 rgba(255, 255, 255, .85);
  --glass-shadow: 0 12px 32px -20px rgba(20, 70, 130, .32);
  --glass-shadow-hover: 0 20px 44px -22px rgba(20, 70, 130, .44);
  --glass-r: 18px;
  /* the "blurred" backdrop is just wide, soft radial gradients: no filter needed */
  --sea-bg:
    radial-gradient(60vw 48vw at 8% -4%, #BFDDF8 0%, transparent 62%),
    radial-gradient(52vw 44vw at 96% 10%, #DCEBFB 0%, transparent 60%),
    radial-gradient(70vw 58vw at 60% 104%, #A9CFF2 0%, transparent 64%),
    radial-gradient(40vw 36vw at 30% 60%, #F4F9FE 0%, transparent 70%),
    #E3EEFA;
}
html[data-palette="glass"][data-theme="dark"] {
  --paper: #0A1424;
  --paper-2: rgba(255, 255, 255, .06);
  --ink: #E4EEF8;
  --ink-2: #A6B9CF;
  --ink-3: #A0B3C9;
  --line: rgba(228, 238, 248, .12);
  --accent: #8CC8FF;
  --inv-bg: #0B1D36;
  --inv-accent: #9FD4FF;

  --glass: rgba(255, 255, 255, .045);
  --glass-hover: rgba(255, 255, 255, .085);
  --glass-edge: rgba(255, 255, 255, .11);
  --glass-hl: inset 0 1px 0 rgba(255, 255, 255, .08);
  --glass-shadow: 0 14px 34px -22px rgba(0, 0, 0, .7);
  --glass-shadow-hover: 0 22px 46px -22px rgba(0, 0, 0, .8);
  --sea-bg:
    radial-gradient(60vw 48vw at 8% -4%, #163A66 0%, transparent 62%),
    radial-gradient(52vw 44vw at 96% 10%, #10294A 0%, transparent 60%),
    radial-gradient(70vw 58vw at 60% 104%, #12345C 0%, transparent 64%),
    #08111F;
}

html[data-palette="glass"] body { background: var(--sea-bg); background-attachment: fixed; }
html[data-palette="glass"] .case-modal,
html[data-palette="glass"] .case-modal::backdrop { background: var(--sea-bg); background-attachment: fixed; }
html[data-palette="glass"] .case-modal__head { background: color-mix(in srgb, var(--paper) 82%, transparent); }

/* ---------- the glass surface, shared by every panel ---------- */
html[data-palette="glass"] :is(.values li, .proof, .case, .record__card, .contact__grid) {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--glass-r);
  box-shadow: var(--glass-hl), var(--glass-shadow);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), translate .45s var(--ease);
}
@media (hover: hover) {
  html[data-palette="glass"] :is(.values li, .case, .contact__grid):hover {
    background: var(--glass-hover);
    box-shadow: var(--glass-hl), var(--glass-shadow-hover);
    translate: 0 -2px;
  }
}

/* ---------- intro: three glass cards, then one panel for stats and logos ---------- */
html[data-palette="glass"] .values { gap: 14px; border-top: 0; }
html[data-palette="glass"] .values li, html[data-palette="glass"] .values li + li { padding: var(--band) 28px; }
html[data-palette="glass"] .values__icon { background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* stats and logos share one card, split by a hairline inset to the card padding */
html[data-palette="glass"] .proof { margin-top: 14px; }
html[data-palette="glass"] .stats { border-top: 0; }
html[data-palette="glass"] .stats div, html[data-palette="glass"] .stats div:first-child { padding-inline: 28px; }
html[data-palette="glass"] .trusted { margin-inline: 28px; border-top: 1px solid var(--glass-edge); }

/* ---------- projects: separate glass tiles ---------- */
html[data-palette="glass"] .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; }
html[data-palette="glass"] .case, html[data-palette="glass"] .case:nth-child(n) { padding: var(--gutter); }
html[data-palette="glass"] .case__tile .frame--shot { outline-color: var(--glass-edge); border-radius: 12px; }

/* ---------- record: one panel, blocks split by hairlines inset to the card padding ---------- */
html[data-palette="glass"] .record__block { margin-inline: 28px; padding-block: 28px; border-top: 0; }
html[data-palette="glass"] .record__block + .record__block { border-top: 1px solid var(--glass-edge); }

/* ---------- contact: the form and links sit on one panel ---------- */
html[data-palette="glass"] .contact__grid { padding: clamp(24px, 4cqi, 48px); }

/* ---------- every menu is a frosted panel (topbar popovers and form dropdowns): translucency, glass edge and highlight, no blur ---------- */
html[data-palette="glass"] :is(.nav-menu__panel, .theme-menu__panel) {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-hl), var(--glass-shadow-hover);
}
html[data-palette="glass"] .dd__menu { background: color-mix(in srgb, var(--dd-bg) 94%, transparent); border-color: rgba(var(--dd-rgb), .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 46px -22px rgba(0, 0, 0, .8); }
html[data-palette="glass"] :is(.nav-menu__panel, .theme-menu__panel, .dd__menu) { border-radius: 16px; }
html[data-palette="glass"] :is(.nav-menu__list a, .theme-menu__list button, .nav-menu__all, .dd__menu [role="option"]) { border-radius: 10px; }
html[data-palette="glass"] .theme-menu__modes { border-color: var(--glass-edge); background: var(--glass); }
html[data-palette="glass"] .hero-lens__tip { border-radius: 16px; }
html[data-palette="glass"] .chat {
  background: color-mix(in srgb, var(--paper) 98%, transparent);
  border-left-color: var(--glass-edge); box-shadow: var(--glass-hl), -24px 0 60px -30px rgba(0, 0, 0, .5);
}
html[data-palette="glass"] .chat__chip { border-color: var(--glass-edge); background: var(--glass); }
html[data-palette="glass"] .msg--bot { background: var(--glass); border: 1px solid var(--glass-edge); }

/* ---------- night-sky inverse band ---------- */
html[data-palette="glass"] .together {
  background:
    radial-gradient(50vw 40vw at 85% 0%, rgba(159, 212, 255, .18) 0%, transparent 60%),
    radial-gradient(40vw 36vw at 0% 100%, rgba(120, 140, 230, .16) 0%, transparent 60%),
    var(--inv-bg);
}

@container page (max-width: 960px) {
  html[data-palette="glass"] .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page (max-width: 720px) {
  html[data-palette="glass"] .values { grid-template-columns: 1fr; }
}
@container page (max-width: 560px) {
  html[data-palette="glass"] .case-grid { grid-template-columns: 1fr; }
}
