/* ==========================================================================
   jonathan-castro.com  |  site.css
   Look: Option 4 "Combo" from the design canvas (locked Chat 3), Circuit Cyan palette.
   Markup reference for every component: _build/preview.html (never deployed).

    1  Fonts (self-hosted)         8  Mobile nav (flat liquid pills)
    2  Tokens                      9  Hero
    3  Base                       10  Glass card
    4  Layout + type helpers      11  Footer
    5  Page stage (hex + blobs)   12  Utilities
    6  Header                     13  Reduced motion / forced colors
    7  Liquid pill (3D)

   CSP note: nothing here needs inline styles or inline scripts. Pages must carry the
   goo filter <svg class="svg-defs"> block (see preview.html) because CSS filter:url(#id)
   only resolves filters that live in the same document.
   ========================================================================== */


/* 1  Fonts -------------------------------------------------------------------
   Fontsource v5.3.0 variable fonts, SIL OFL 1.1 (licenses sit next to the files).
   Each family is split latin / latin-ext; browsers only download the latin-ext
   file if a page actually uses one of those characters. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-italic.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;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-italic.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;
}


/* 2  Tokens ------------------------------------------------------------------ */

:root {
  /* Circuit Cyan palette (from the logo) */
  --ground: #071634;
  --deep: #04102a;
  --cyan: #3fe4f6;
  --teal: #1c86b0;
  --ice: #e6f4fa;
  --body: #b9cfe0;
  --muted: #7f9bb5;
  --text-2: #c9d3e2;          /* glass row labels */
  --muted-2: #8d9bb0;         /* glass row tags + subtitles */
  --ink: #04102a;             /* text sitting on a full cyan fill */

  --line: rgba(120, 220, 245, .14);
  --glass-border: rgba(214, 226, 245, .14);
  --cyan-wash: rgba(63, 228, 246, .12);

  /* Type */
  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-h1: clamp(2.4rem, 1.3rem + 3.4vw, 3.75rem);   /* 60px at full width, as Combo */
  --fs-h2: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); /* 19px at full width */

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);

  /* Shape + layout */
  --r-card: 22px;
  --r-sm: 12px;
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --gutter: 24px;
  /* Nav breakpoint is 1100px (media queries can't read custom properties). */

  color-scheme: dark;
}


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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--body);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ice);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
strong, b { color: var(--ice); font-weight: 600; }

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s var(--ease);
}
a:hover { color: var(--ice); }

img, picture { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: rgba(63, 228, 246, .3); color: var(--ice); }

hr { height: 1px; margin: 32px 0; border: 0; background: var(--line); }

/* Goo filter defs: zero size, still referenceable */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ink); }


/* 4  Layout + type helpers ---------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

main { position: relative; z-index: 1; display: block; }

.section { position: relative; padding-block: clamp(48px, 6vw, 80px); }
.section--deep { background: var(--deep); border-top: 1px solid var(--line); }

.page-head { padding-block: 24px clamp(32px, 5vw, 56px); }
.page-head .lead { margin-top: 20px; }

.eyebrow {
  margin: 0 0 20px;
  font: 500 13px/1.3 var(--f-head);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow--muted { font-weight: 600; color: var(--muted); }

.lead { max-width: 560px; font-size: var(--fs-lead); line-height: 1.6; }
.hl { color: var(--cyan); }
.muted { color: var(--muted); }

.grid-2, .grid-3 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--cyan); }
.prose > :first-child { margin-top: 0; }


/* 5  Page stage: hex grid + goo blobs behind the header and top of the page ----
   <div class="stage"> wraps header + main. .stage-bg is decoration only. */

.stage { position: relative; overflow: hidden; overflow: clip; }

.stage-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 960px;
  z-index: 0;
  pointer-events: none;
}
.stage-hex {
  position: absolute;
  inset: 0;
  background: url("../img/hex.svg") repeat;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 30%, transparent 75%);
}
.stage-flow {
  position: absolute;
  right: -120px;
  top: 150px;
  width: 900px;
  height: 700px;
  opacity: .38;
}
.flow { position: absolute; inset: 0; filter: url(#gooB); }
.flow i {
  position: absolute;
  border-radius: 50%;
  animation: roam 20s ease-in-out infinite alternate;
}
.flow .b1 { left: 260px; top: 140px; width: 420px; height: 420px; background: radial-gradient(circle at 40% 35%, var(--cyan), var(--teal) 70%); }
.flow .b2 { left: 120px; top: 360px; width: 280px; height: 280px; background: var(--teal); animation-duration: 26s; animation-delay: -6s; }
.flow .b3 { left: 560px; top: 80px; width: 240px; height: 240px; background: #2fb6d8; animation-duration: 22s; animation-delay: -11s; animation-direction: alternate-reverse; }
.flow .b4 { left: 480px; top: 440px; width: 180px; height: 180px; background: var(--cyan); animation-duration: 17s; animation-delay: -3s; }

@keyframes roam {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(70px, -50px) scale(1.12); }
  100% { transform: translate(-60px, 40px) scale(.92); }
}

/* Inner pages: same backdrop, calmer */
.stage-bg--quiet { height: 680px; }
.stage-bg--quiet .stage-flow { opacity: .22; top: 60px; }
.stage-bg--quiet .stage-hex {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 78% 30%, #000 20%, transparent 70%);
}

/* site.js adds .is-paused while the backdrop is off screen */
.stage-bg.is-paused .flow i { animation-play-state: paused; }


/* 6  Header ------------------------------------------------------------------ */

.site-header { position: relative; z-index: 3; padding: 10px var(--gutter) 0; }

.hdr-inner {
  position: relative;
  max-width: var(--wrap-wide);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  text-decoration: none;
}
.brand img {
  width: 46px;
  height: 46px;
  transition: filter .4s var(--ease);
}
.brand:hover img, .brand:focus-visible img { filter: drop-shadow(0 0 10px rgba(63, 228, 246, .55)); }
.brand-name {
  font: 600 19px/1 var(--f-head);
  letter-spacing: -.005em;
  color: var(--ice);
}
.brand:hover { color: var(--ice); }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu button only shows on small screens with JS (section 8) */
.nav-toggle { display: none; }


/* 7  Liquid pill (3D) ---------------------------------------------------------
   Ported 1:1 from Combo. Structure (see preview.html):
   .lq (stage, gives perspective) > .lq-pl (tilted body) > .lq-seat, .lq-pool, .lq-pill
   .lq-pill > 8x i.lq-sl (glass slices, first one gets .lq-sl--b) + .lq-tp (top face)
   .lq-tp > .lq-clip (.lq-liq > .lq-lb + 3x i.lq-dp) (.lq-gl) + a.lq-hit (.lq-ico + .lq-txt)
   States: hover, keyboard focus and .is-on (current page) all fill the pill.
   Variants: .lq--big (hero CTAs), .lq-pl.alt (deeper teal liquid, used for Showcase). */

.lq {
  position: relative;
  flex: 0 0 150px;
  height: 130px;
  perspective: 1400px;
}
.lq--big { flex: 0 0 214px; height: 150px; }

.lq-pl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176px;
  height: 56px;
  margin: -28px 0 0 -88px;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-38deg);
}
.lq--big .lq-pl { width: 224px; height: 66px; margin: -33px 0 0 -112px; }

.lq-seat, .lq-pool, .lq-pill { position: absolute; inset: 0; border-radius: 28px; }
.lq--big .lq-seat, .lq--big .lq-pool, .lq--big .lq-pill { border-radius: 33px; }

.lq-seat {
  transform: translate3d(-6px, 10px, 0);
  background: rgba(0, 4, 14, .6);
  filter: blur(10px);
}

.lq-pool {
  opacity: 0;
  transform: translateZ(.5px) scale(1.1, 1.4);
  filter: blur(14px);
  background: radial-gradient(closest-side, rgba(63, 228, 246, .8), rgba(63, 228, 246, .22) 60%, rgba(63, 228, 246, 0));
  transition: opacity .7s var(--ease) .2s;
}

.lq-pill {
  transform-style: preserve-3d;
  transition: transform .28s var(--ease);
}
.lq-pl:hover .lq-pill { transform: translateZ(5px); }
.lq-pill:has(.lq-hit:active) { transform: translateZ(-2px); transition-duration: .12s; }

/* Glass slices: the stacked edge that makes the pill look thick */
.lq-sl {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(214, 226, 245, .11);
  background: linear-gradient(0deg, rgba(63, 228, 246, .07) 50%, rgba(220, 232, 250, .012) 50%) 0 0 / 100% 200% no-repeat;
  transition: background-position .9s var(--ease-io), border-color .6s var(--ease);
}
.lq-sl--b { border-color: rgba(214, 226, 245, .28); }
.lq-sl:nth-child(2) { transform: translateZ(2px); }
.lq-sl:nth-child(3) { transform: translateZ(4px); }
.lq-sl:nth-child(4) { transform: translateZ(6px); }
.lq-sl:nth-child(5) { transform: translateZ(8px); }
.lq-sl:nth-child(6) { transform: translateZ(10px); }
.lq-sl:nth-child(7) { transform: translateZ(12px); }
.lq-sl:nth-child(8) { transform: translateZ(14px); }

/* Top face */
.lq-tp {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateZ(16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .03) 58%),
    linear-gradient(165deg, rgba(150, 170, 200, .20), rgba(40, 56, 84, .26));
  border: 1px solid rgba(230, 240, 255, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -8px 16px rgba(190, 210, 240, .06);
  transition: border-color .5s var(--ease) .2s, box-shadow .7s var(--ease) .2s;
}

.lq-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.lq-liq { position: absolute; inset: 0; filter: url(#gooN); opacity: .9; }

/* Liquid body: rests at 36%, rises to full */
.lq-lb {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -24px;
  height: calc(36% + 24px);
  overflow: hidden;
  background: linear-gradient(180deg, #a6f5fc 0%, var(--cyan) 30%, #22b8dc 60%, var(--teal) 100%);
  transition: height .8s var(--ease-io);
}
.lq-lb::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 0;
  width: 110px;
  height: 60%;
  background: radial-gradient(closest-side, rgba(225, 250, 255, .5), rgba(225, 250, 255, 0));
  animation: lq-shine 8s ease-in-out infinite alternate;
}
@keyframes lq-shine { from { transform: translateX(20px); } to { transform: translateX(160px); } }

/* Goo drips bobbing on the surface */
.lq-dp {
  position: absolute;
  bottom: 28%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  animation: lq-drip 2.8s var(--ease-io) infinite;
}
.lq-dp.d1 { left: 22%; }
.lq-dp.d2 { left: 48%; animation-delay: -.9s; }
.lq-dp.d3 { left: 72%; animation-delay: -1.8s; }
@keyframes lq-drip {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(.55); }
}

/* Gloss highlight */
.lq-gl {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 3px;
  height: 42%;
  border-radius: 26px 26px 20px 20px / 20px 20px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
}
.lq-gl::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 2px;
  width: 28px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  filter: blur(2px);
}

/* The actual link / button */
.lq-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 18px 0 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #e8f4fa;
  font: 600 15px/1 var(--f-body);
  letter-spacing: .01em;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(4, 16, 42, .6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .4s var(--ease) .2s, text-shadow .4s;
}
.lq--big .lq-hit { font-size: 17px; }
button.lq-hit { height: 100%; margin: 0; -webkit-appearance: none; appearance: none; }   /* submit pill (mkpage "submit" option) */
button.lq-hit:disabled { cursor: progress; }
.lq-pl:has(.lq-hit:disabled) { opacity: .7; }
.lq-hit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.lq-ico { flex: 0 0 44px; display: grid; place-items: center; }
.lq--big .lq-ico { flex-basis: 54px; }
.lq-txt { flex: 1; text-align: center; }

/* Filled state: hover, keyboard focus, current page */
.lq-pl:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-pool { opacity: 1; }
.lq-pl:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-sl { background-position: 0 100%; border-color: rgba(63, 228, 246, .22); }
.lq-pl:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-sl--b { border-color: rgba(63, 228, 246, .5); }
.lq-pl:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-tp {
  border-color: rgba(170, 245, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -8px 16px rgba(200, 250, 255, .18), 0 0 0 1px rgba(63, 228, 246, .3), 0 0 34px rgba(63, 228, 246, .5);
}
.lq-pl:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-lb { height: calc(100% + 48px); }
.lq-pl:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-hit { color: var(--ink); text-shadow: none; }

/* Alt: deeper teal liquid, text stays light when filled */
.lq-pl.alt .lq-lb { background: linear-gradient(180deg, #38b8dc 0%, var(--teal) 40%, #0f4f78 100%); }
.lq-pl.alt .lq-dp { background: var(--teal); }
.lq-pl.alt .lq-dp.d1 { left: 30%; animation-delay: -.4s; }
.lq-pl.alt .lq-dp.d2 { left: 62%; animation-delay: -1.4s; }
.lq-pl.alt .lq-dp.d3 { display: none; }
.lq-pl.alt:is(:hover, .is-on, :has(.lq-hit:focus-visible)) .lq-hit { color: var(--ice); text-shadow: 0 1px 6px rgba(4, 16, 42, .6); }


/* 8  Mobile nav (under 1100px): menu button + glass panel of flat liquid pills.
   Without JS the pills simply stack under the brand, always visible. */

@media (max-width: 1099px) {
  .site-nav { flex: 1 1 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 12px; }

  /* Flatten the 3D pill */
  .site-nav .lq { flex: none; height: 52px; perspective: none; }
  .site-nav .lq-pl {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 52px;
    margin: 0;
    transform: none;
  }
  .site-nav .lq-seat, .site-nav .lq-pool, .site-nav .lq-sl { display: none; }
  .site-nav .lq-pill, .site-nav .lq-tp { border-radius: 26px; transform: none; }
  .site-nav .lq-pl:hover .lq-pill { transform: none; }
  .site-nav .lq-hit { padding-right: 18px; font-size: 16px; }
  /* Shallower resting liquid so the label clears the surface */
  .site-nav .lq-lb { height: calc(20% + 24px); }
  .site-nav .lq-dp { bottom: 10%; width: 12px; height: 12px; }

  /* With JS: collapse into a panel behind the menu button */
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px 0 14px;
    border: 1px solid rgba(230, 240, 255, .3);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 58%),
      linear-gradient(165deg, rgba(150, 170, 200, .20), rgba(40, 56, 84, .26));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    color: var(--ice);
    font: 600 15px/1 var(--f-body);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  }
  .js .nav-toggle:hover, .js .nav-toggle[aria-expanded="true"] {
    border-color: rgba(170, 245, 255, .8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 22px rgba(63, 228, 246, .35);
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 100%);
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-card);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 24%),
      linear-gradient(165deg, rgba(46, 60, 84, .78), rgba(12, 18, 30, .88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 48px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }
  .js .site-header.is-open .site-nav { display: block; animation: panel-in .28s var(--ease); }
  .js .site-nav .nav-list { padding-bottom: 0; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Burger icon -> X */
.burger { position: relative; width: 18px; height: 14px; }
.burger i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }


/* 9  Hero ---------------------------------------------------------------------- */

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 540px; min-width: 0; }
.hero .lead { margin: 24px 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.hero-art { flex: 0 1 380px; display: flex; justify-content: center; }
.hero-logo { position: relative; width: 340px; max-width: 100%; aspect-ratio: 340 / 378; }
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 228, 246, .28), rgba(63, 228, 246, 0) 62%);
}
.hero-logo picture { position: relative; width: 100%; height: 100%; }
.hero-logo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}

@media (max-width: 640px) {
  .hero-inner { padding-top: 16px; padding-bottom: 64px; gap: 32px; }
  .hero-art { flex-basis: 100%; }
  .hero-logo { width: 240px; }
}


/* 10  Glass card (Opt 2 sidebar / "taskbar" recipe) -------------------------------- */

.glass {
  position: relative;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 24%),
    linear-gradient(165deg, rgba(46, 60, 84, .50), rgba(12, 18, 30, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 48px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
.glass--pad { padding: 24px; }

.glass-head { display: flex; align-items: center; min-height: 56px; }
.glass-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cyan-wash);
  color: var(--cyan);
}
.glass-title { display: flex; flex-direction: column; padding-left: 12px; }
.glass-title strong { font: 600 17px/1.25 var(--f-head); color: var(--ice); }
.glass-title span { margin-top: 2px; font-size: 13px; color: var(--muted-2); }

.glass-rule {
  height: 1px;
  margin: 10px 4px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(214, 226, 245, .14) 15%, rgba(214, 226, 245, .14) 85%, transparent);
}

.glass-list { margin: 0; padding: 0; list-style: none; }
.glass-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .25s var(--ease);
}
.glass-row:hover { background: rgba(63, 228, 246, .06); }
.glass-row .ri { flex: 0 0 46px; display: flex; justify-content: center; color: var(--cyan); }
.glass-row .rl { padding-left: 10px; }
.glass-row .rt {
  margin-left: auto;
  margin-right: 10px;
  padding-left: 12px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}


/* 11  Footer -------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--deep);
  color: var(--muted);
  font-size: 14px;
}
.ftr-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.ftr-inner p { margin: 0; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.ftr-links a { color: var(--body); text-decoration: none; }
.ftr-links a:hover { color: var(--cyan); }


/* 12  Utilities ------------------------------------------------------------------ */

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


/* 14  Page sections (Phase 2) ------------------------------------------------------- */

.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p:last-child { margin-bottom: 0; }
.section-foot { margin-top: 28px; }

/* Arrow link: "See everything I work with ->" */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
.text-link svg { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--ice); }
.text-link:hover svg { transform: translateX(4px); }

/* Point cards: icon, short heading, one paragraph */
.point .glass-icon { margin-bottom: 18px; }
.point h3 { margin-bottom: 8px; }
.point p { margin: 0; }

/* Feature card: copy on the left, a big liquid pill on the right */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 48px;
  padding: clamp(24px, 4vw, 40px);
}
.feature-copy { flex: 1 1 440px; min-width: 0; }
.feature-copy h2 { margin-bottom: 12px; }
.feature-copy p:last-child { margin-bottom: 0; }
.feature .lq { margin-inline: auto; }

/* Closing call to action */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 520px; margin: 0 auto; }
.cta-band .hero-ctas { justify-content: center; margin-top: 12px; }


/* 15  Pricing (services page) ------------------------------------------------------- */

.section[id] { scroll-margin-top: 16px; }

/* Jump links under the page heading */
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.jump-links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--ice);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.jump-links a:hover { border-color: rgba(63, 228, 246, .6); background: rgba(63, 228, 246, .08); color: var(--ice); }

/* Stat tiles: a label, a big number, a small note */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.stat {
  padding: 16px 18px;
  border: 1px solid rgba(63, 228, 246, .14);
  border-radius: 16px;
  background: rgba(63, 228, 246, .06);
}
.stat .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.stat .v { display: block; margin-top: 6px; font: 700 28px/1.1 var(--f-head); color: var(--ice); }
.stat .v small { margin-left: 2px; font: 500 15px/1 var(--f-body); color: var(--body); }
.stat .n { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.glass h3 { margin-bottom: 14px; }
.subhead { margin: 36px 0 14px; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Price rows: name + scope on the left, price + delivery on the right */
.price-list { margin: 0; padding: 0; list-style: none; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 14px 4px;
  border-top: 1px solid rgba(214, 226, 245, .08);
}
.price-row:first-child { border-top: 0; padding-top: 4px; }
.pr-main { flex: 1 1 260px; min-width: 0; }
.pr-main strong { display: block; font: 600 16px/1.3 var(--f-head); color: var(--ice); }
.pr-main span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted-2); }
.pr-meta { flex: 0 0 auto; text-align: right; }
.pr-price { display: block; font: 700 18px/1.2 var(--f-head); color: var(--cyan); }
.pr-time { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .pr-meta { flex-basis: 100%; display: flex; align-items: baseline; gap: 12px; text-align: left; }
}

.grid-2--top { align-items: start; }

/* Plan cards (on-call) */
.plan h3 { margin-bottom: 6px; }
.plan-price { margin: 0 0 14px; }
.plan-price .amt { font: 700 36px/1 var(--f-head); color: var(--ice); }
.plan-price .per { margin-left: 4px; color: var(--muted); }

/* Check lists */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 9px 0; padding-left: 26px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}


/* 16  Contact form (/contact) ------------------------------------------------------- */

.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}

.contact-form { display: grid; gap: 20px; margin-top: 24px; }
.contact-form p { margin: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ice); }
.field-opt { font-weight: 400; color: var(--muted); }
.contact-form .field-hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.contact-form .field-error { margin-top: 6px; font-size: 14px; font-weight: 600; color: #ffb4a8; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  background: rgba(4, 16, 42, .6);
  color: var(--ice);
  font: 400 16px/1.45 var(--f-body);   /* 16px keeps iOS from zooming in on focus */
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field :is(input, select, textarea):hover { border-color: rgba(63, 228, 246, .35); }
.field :is(input, select, textarea):focus { border-color: var(--cyan); }
.field [aria-invalid="true"] { border-color: #ff8f80; }

.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--muted); }   /* "Pick one" */
.select option { color: var(--ice); background: var(--ground); }
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Honeypot: off screen for people, still in the DOM for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { min-height: 65px; }

/* The big pill's stage is 150px tall around a 66px pill, so pull the row in. */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: -28px 0 -24px; }
.form-actions .form-status { flex: 1 1 220px; }
.form-status { min-height: 1.5em; font-weight: 600; color: var(--body); }
.form-status.is-ok { color: var(--cyan); }
.form-status.is-err { color: #ffb4a8; }
.form-status a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* 17  Link list card (404) ---------------------------------------------------------- */
/* Each row is one whole link. Icons float here (no tile); other pages keep their tiles. */
.glass--narrow { max-width: 620px; }
.glass-list--links { display: grid; gap: 6px; }
.glass-list--links a { text-decoration: none; padding: 6px 10px 6px 6px; }
.glass-list--links .glass-icon { background: none; }
.glass-list--links a:hover strong,
.glass-list--links a:focus-visible strong { color: var(--cyan); }

/* 13  Reduced motion / forced colors ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lq-dp, .flow i, .lq-lb::after { animation: none; }
  .lq-pill, .lq-sl, .lq-tp, .lq-lb, .lq-pool, .lq-hit, .burger i { transition: none; }
  .js .site-header.is-open .site-nav { animation: none; }
}

@media (forced-colors: active) {
  .lq-tp, .glass, .js .nav-toggle { border: 1px solid CanvasText; }
  .lq-hit { color: LinkText; text-shadow: none; }
  .lq-liq, .lq-gl, .stage-bg { display: none; }
}
