/* ==========================================================================
   Juan Dela Cruz — Executive VA · "Inbox Zero" template
   by Very Online Studio

   1.  Fonts
   2.  Themes (colour tokens)  ← change colours here
   3.  Base / typography
   4.  Buttons, links, utilities
   5.  Nav + progress
   6.  Hero
   7.  Tools
   8.  Chaos → Calm (signature scene)
   9.  Services
   10. A week with Juan
   11. Results
   12. Experience
   13. Proof folder + lightbox
   14. Testimonials deck
   15. Packages
   16. FAQ
   17. Contact + footer
   18. Demo theme switcher (DEMO ONLY)
   19. Reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* 2. Themes ----------------------------------------------------------------
   Every colour on the page comes from these tokens. To make a new theme,
   copy one block, rename it and set <html data-theme="yourname">.          */
:root,
[data-theme="matcha"] {
  --bg: #F6F2EA;
  --bg-2: #EDE7DA;
  --surface: #FFFDF8;
  --surface-2: #FAF6EE;
  --ink: #1F3A2E;
  --ink-2: #4F6357;
  --ink-3: #8C998F;
  --line: rgb(31 58 46 / .13);
  --line-2: rgb(31 58 46 / .24);
  --brand: #9DBB7F;
  --brand-2: #E2EBD4;
  --brand-ink: #3B693D;
  --accent: #D27552;
  --accent-2: #F6DFD2;
  --accent-ink: #A2462A;
  --good: #3F8A47;
  --good-ink: #2A6631;
  --warn: #C43D31;
  --inv-bg: #1F3A2E;
  --inv-ink: #F6F2EA;
  --inv-ink-2: #C3D2C0;
  --inv-brand: #B9D69A;
  --inv-line: rgb(246 242 234 / .16);
  --shadow: 31 58 46;
  --note-y: #FBE6A2; --note-p: #F8CBC2; --note-b: #CFE0F2; --note-g: #D7E8C3; --note-ink: #3A3222;
  --cat-a: #9DBB7F; --cat-b: #E8A47F; --cat-c: #A7B8E6; --cat-d: #E6C46A;
  --tab-sage: #B5CE9E; --tab-lilac: #CDC1EB; --tab-sky: #B7D3EA; --tab-clay: #E9B59B; --tab-butter: #EFD98F; --tab-rose: #ECBAC2;
  --grain: .07;
  --scheme: light;
}
[data-theme="midnight"] {
  --bg: #0E1325;
  --bg-2: #131A31;
  --surface: #1A2140;
  --surface-2: #1F274A;
  --ink: #EEEBF8;
  --ink-2: #B3B0CF;
  --ink-3: #7E7BA3;
  --line: rgb(238 235 248 / .11);
  --line-2: rgb(238 235 248 / .22);
  --brand: #B6A4F4;
  --brand-2: #282757;
  --brand-ink: #CDBFFF;
  --accent: #E9B85C;
  --accent-2: #3A3121;
  --accent-ink: #F2CB7E;
  --good: #79D4A1;
  --good-ink: #79D4A1;
  --warn: #FF7B6B;
  --inv-bg: #E9E4F8;
  --inv-ink: #12162C;
  --inv-ink-2: #48466E;
  --inv-brand: #5E48C6;
  --inv-line: rgb(18 22 44 / .14);
  --shadow: 2 4 16;
  --note-y: #EAD58D; --note-p: #E8B8B0; --note-b: #B9CDEA; --note-g: #C2D9AD; --note-ink: #29231A;
  --cat-a: #9583E8; --cat-b: #E3B05A; --cat-c: #67B3D6; --cat-d: #E07F9C;
  --tab-sage: #6F9A80; --tab-lilac: #8D80D8; --tab-sky: #5E93C2; --tab-clay: #C68563; --tab-butter: #C8A659; --tab-rose: #C67B8F;
  --grain: .05;
  --scheme: dark;
}
[data-theme="peach"] {
  --bg: #FFF4EC;
  --bg-2: #FFE6D8;
  --surface: #FFFBF8;
  --surface-2: #FFF5EE;
  --ink: #3A1D2A;
  --ink-2: #6B4753;
  --ink-3: #A8868F;
  --line: rgb(58 29 42 / .13);
  --line-2: rgb(58 29 42 / .24);
  --brand: #F47458;
  --brand-2: #FFDCCD;
  --brand-ink: #B13A22;
  --accent: #FFC24B;
  --accent-2: #FFEBC2;
  --accent-ink: #855600;
  --good: #2D8C5F;
  --good-ink: #1E6644;
  --warn: #CF3A2F;
  --inv-bg: #3A1D2A;
  --inv-ink: #FFF4EC;
  --inv-ink-2: #EBCAC5;
  --inv-brand: #FFAE93;
  --inv-line: rgb(255 244 236 / .16);
  --shadow: 120 52 40;
  --note-y: #FFE08A; --note-p: #FFC3B6; --note-b: #C9DDF7; --note-g: #CEEBC5; --note-ink: #3A2420;
  --cat-a: #F47458; --cat-b: #FFC24B; --cat-c: #8DB6F0; --cat-d: #B89DF0;
  --tab-sage: #A8D2B4; --tab-lilac: #D3C4F5; --tab-sky: #B8D6F5; --tab-clay: #FFB39A; --tab-butter: #FFD877; --tab-rose: #FFB7C5;
  --grain: .06;
  --scheme: light;
}

:root {
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 56px);
  --maxw: 1280px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: clamp(28px, 3.4vw, 44px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.7, 0, .3, 1);
  --sh-sm: 0 1px 2px rgb(var(--shadow) / .06), 0 2px 6px -2px rgb(var(--shadow) / .10);
  --sh-md: 0 1px 2px rgb(var(--shadow) / .06), 0 10px 28px -10px rgb(var(--shadow) / .22);
  --sh-lg: 0 2px 6px rgb(var(--shadow) / .06), 0 26px 60px -18px rgb(var(--shadow) / .32);
  --focus: var(--accent-ink);
  color-scheme: var(--scheme);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
/* Paper grain (decorative) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 1.6 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
::selection { background: var(--brand); color: var(--ink); }
[data-theme="midnight"] ::selection { color: #0E1325; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
/* Clip transient animation offsets so phones never widen the layout viewport */
main, .footer { overflow-x: clip; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(88px, 11vw, 168px); position: relative; }

/* Type */
.h2 {
  font-family: var(--f-display);
  font-weight: 370;
  font-size: clamp(2.35rem, 1.45rem + 3.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  text-wrap: balance;
}
.h2 em, .hero__title em, .calm__title em, .contact__title em, .finale__title em {
  font-style: italic;
  font-weight: 340;
  color: var(--brand-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }
.eyebrow--inv { color: var(--inv-ink-2); }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: balance; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lede { margin-top: 1.4rem; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.section-head--split .lede { margin: 0; max-width: 36ch; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }

/* 4. Buttons & links ------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--btn-h);
  padding: 0 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), background-color .35s var(--ease-out);
}
.btn--sm { --btn-h: 40px; padding: 0 1.05em; font-size: .9rem; }
.btn--lg { --btn-h: 56px; padding: 0 1.7em; font-size: 1.02rem; }
.btn__icon { width: 1.15em; height: 1.15em; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover .btn__icon:not(.btn__icon--lead) { transform: translateX(3px); }
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary::before { background: var(--brand); }
.btn--primary:hover { color: var(--ink); }
[data-theme="midnight"] .btn--primary:hover { color: #0E1325; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost::before { background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--inv-ink); color: var(--inv-bg); }
.btn--light::before { background: var(--inv-brand); }
.btn--light:hover { color: var(--inv-bg); }
[data-theme="midnight"] .btn--light:hover,
[data-theme="peach"] .btn--light:hover { color: var(--inv-bg); }
.text-link { color: var(--brand-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: background-color .3s, transform .3s var(--ease-out);
}
.icon-btn:hover { background: var(--bg-2); transform: scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }

/* 5. Nav ------------------------------------------------------------------ */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding: 12px var(--gutter) 0;
  transition: translate .55s var(--ease-out);
}
.nav.is-hidden, .nav.is-away { translate: 0 -140%; }
.nav.is-open { translate: none; }
.nav__inner {
  position: relative;
  max-width: calc(var(--maxw) + 24px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 7px 7px 7px 10px;
  border-radius: 999px;
}
.nav__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; border-radius: 999px; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-family: var(--f-display); font-style: italic; font-size: .95rem; font-weight: 500;
  font-variation-settings: "SOFT" 100;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; top: 1px; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--bg);
}
.brand__name { font-family: var(--f-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; font-variation-settings: "SOFT" 60; }
.nav__menu { display: flex; align-items: center; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative; display: block;
  padding: 8px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__menu-foot { display: none; }
.nav__toggle { display: none; }

@media (max-width: 899.98px) {
  .nav { padding-top: 10px; }
  .brand__name { font-size: 1.02rem; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface);
    font-size: .9rem; font-weight: 600;
    position: relative; z-index: 2;
  }
  .nav__toggle-lines { display: grid; gap: 5px; width: 16px; }
  .nav__toggle-lines span { display: block; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out); }
  .nav.is-open .nav__toggle-lines span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .nav.is-open .nav__toggle-lines span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: 110px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    visibility: hidden; opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease-in-out), opacity .4s, visibility 0s .6s;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .7s var(--ease-in-out), opacity .2s, visibility 0s; }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links a {
    font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 380; line-height: 1.15;
    color: var(--ink); padding: 6px 0; background: none !important;
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
  }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links li:nth-child(2) a { transition-delay: .05s; }
  .nav.is-open .nav__links li:nth-child(3) a { transition-delay: .1s; }
  .nav.is-open .nav__links li:nth-child(4) a { transition-delay: .15s; }
  .nav.is-open .nav__links li:nth-child(5) a { transition-delay: .2s; }
  .nav__menu-foot { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }
  .nav__inner { z-index: 2; }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(104px, 13vh, 150px) 0 clamp(72px, 9vh, 110px);
  display: flex; align-items: center;
  overflow: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.blob--a { width: 62vmax; height: 62vmax; left: -22vmax; top: -26vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 42%, transparent), transparent); }
.blob--b { width: 54vmax; height: 54vmax; right: -24vmax; top: 4vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); animation-duration: 26s; animation-delay: -6s; }
.blob--c { width: 40vmax; height: 40vmax; left: 30%; bottom: -26vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 24%, transparent), transparent); animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 75%);
  opacity: .55;
}
.is-paused .blob, .is-paused .floater__bob, .is-paused .time-badge__pulse, .is-paused .scroll-cue__dot, .is-paused .portrait__wave { animation-play-state: paused; }

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.hero__eyebrow::before { display: none; }
.hero__eyebrow { color: var(--brand-ink); }
.hero__title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(2.85rem, 1.5rem + 4.4vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  text-wrap: balance;
}
.hero__title em { display: inline; }
.rotator {
  display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .32em;
  margin-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 380;
  letter-spacing: -.015em;
  line-height: 1.25;
  font-variation-settings: "SOFT" 80;
}
.rotator__lead { color: var(--ink-2); }
.rotator__words { position: relative; display: inline-block; color: var(--brand-ink); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.rotator__squiggle { display: none; }
.rotator__word { white-space: nowrap; }
html:not(.js) .rotator__word:not(:last-child)::after,
.reduced-motion .rotator__word:not(:last-child)::after { content: ","; }
html:not(.js) .rotator__word:nth-last-child(2)::after,
.reduced-motion .rotator__word:nth-last-child(2)::after { content: " &"; }
.motion-ok .rotator__words { height: 1.25em; }
.motion-ok .rotator__mask { display: block; position: relative; height: 1.25em; clip-path: inset(-.25em -.4em -.3em -.1em); }
.motion-ok .rotator__word { position: absolute; left: 0; top: 0; opacity: 0; padding-right: .12em; }
.motion-ok .rotator__word:first-child { opacity: 1; }
.motion-ok .rotator__squiggle { display: block; position: absolute; left: 0; bottom: -.32em; width: 100%; height: .4em; color: var(--accent); overflow: visible; }
.hero__lede { margin-top: clamp(16px, 2vw, 24px); font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.8vw, 34px); }
.time-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: .86rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.time-badge strong { color: var(--ink); font-weight: 600; }
.time-badge__pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; }
.time-badge__pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* Portrait + floating cards */
.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); }
.portrait { position: relative; margin: 0; }
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 34px 34px / 40% 40% 34px 34px;
  overflow: hidden;
  background: var(--brand-2);
  box-shadow: var(--sh-lg);
}
.portrait__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); pointer-events: none; }
.portrait__img { width: 100%; height: 100%; object-fit: cover; }
.portrait__tag {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--f-display); font-style: italic; font-size: 1.05rem; font-variation-settings: "SOFT" 100, "WONK" 1;
  white-space: nowrap; box-shadow: var(--sh-md);
}
.portrait__wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }

.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; }
.floater--invite { top: 9%; left: -18%; }
.floater--toast { top: 47%; right: -16%; }
.floater--chat { bottom: 7%; left: -22%; }
.floater--stat { top: -3%; right: -2%; }
.floater__bob { animation: bob 6s ease-in-out infinite; }
.floater--toast .floater__bob { animation-duration: 7.2s; animation-delay: -2s; }
.floater--chat .floater__bob { animation-duration: 6.6s; animation-delay: -4s; }
.floater--stat .floater__bob { animation-duration: 5.4s; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(.6deg); } }
.ui-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--sh-lg);
  font-size: .8rem;
  line-height: 1.35;
  color: var(--ink);
  min-width: 0;
}
.ui-card svg { width: 14px; height: 14px; }
.ui-card__kicker { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
.ui-card__title { font-weight: 650; font-size: .88rem; letter-spacing: -.01em; }
.ui-card__meta { color: var(--ink-2); font-size: .74rem; margin-top: 2px; }
.ui-card__meta span { opacity: .5; }
.ui-card__actions { display: flex; gap: 6px; margin-top: 10px; }
.ui-pill { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .7rem; font-weight: 600; }
.ui-pill--solid { background: var(--ink); color: var(--bg); border-color: transparent; }
.floater--invite .ui-card { width: 214px; }
.ui-card--toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 11px; }
.ui-card__tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--good); color: #fff; flex: none; }
.ui-card__tick svg { width: 17px; height: 17px; }
.ui-card--chat { width: 228px; display: grid; gap: 7px; padding: 12px; }
.chat-line { padding: 8px 11px; border-radius: 14px; font-size: .78rem; }
.chat-line--them { background: var(--bg-2); border-bottom-left-radius: 4px; }
.chat-line--me { background: var(--brand); color: #15261d; border-bottom-right-radius: 4px; justify-self: end; font-weight: 550; }
[data-theme="midnight"] .chat-line--me { color: #12142a; }
[data-theme="peach"] .chat-line--me { color: #2a0f17; }
.chat-line__who { display: block; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.ui-card--stat { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: .82rem; }
.ui-card--stat svg { color: var(--brand-ink); width: 16px; height: 16px; }
.ui-card--stat strong { font-family: var(--f-display); font-size: 1.05rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; padding: 8px; border-radius: 999px; }
.scroll-cue__track { display: block; width: 24px; height: 38px; border-radius: 999px; border: 1.5px solid var(--line-2); position: relative; }
.scroll-cue__dot { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink-2); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

@media (max-width: 899.98px) {
  .hero { align-items: flex-start; padding-top: 104px; }
  .hero__layout { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { width: min(78%, 360px); margin-bottom: 20px; }
  .floater--invite { left: -20%; top: 6%; }
  .floater--toast { right: -18%; top: 50%; }
  .floater--chat { left: -14%; bottom: -5%; }
  .floater--stat { right: -10%; top: -4%; }
  .floater--invite .ui-card { width: 176px; }
  .ui-card--chat { width: 184px; }
  .ui-card { font-size: .72rem; padding: 10px 11px; }
  .ui-card__title { font-size: .78rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .hero__ctas .btn { flex: 1 1 auto; }
  .floater--invite { left: -14%; }
  .floater--toast { right: -14%; }
  .floater--chat { left: -12%; }
  .floater--stat { right: -6%; }
  .floater--invite .ui-card { width: 160px; }
  .ui-card--chat { width: 168px; }
  .floater--stat { display: none; }
}

/* 7. Tools ---------------------------------------------------------------- */
.tools { padding-top: clamp(72px, 9vw, 130px); }
.tools__layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.tools__intro .lede { margin-top: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  font-weight: 550; font-size: .97rem; letter-spacing: -.01em;
  transition: translate .45s var(--ease-out), rotate .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.chip:hover { translate: 0 -3px; rotate: -1.2deg; box-shadow: var(--sh-md); border-color: var(--line-2); }
.chip__glyph {
  width: 32px; height: 32px; padding: 7px;
  border-radius: 50%;
  background: var(--brand-2); color: var(--brand-ink);
  transition: transform .5s var(--ease-out);
}
.chip:nth-child(3n+2) .chip__glyph { background: var(--accent-2); color: var(--accent-ink); }
.chip:nth-child(5n+4) .chip__glyph { background: color-mix(in srgb, var(--cat-c) 32%, var(--surface)); color: var(--ink); }
.chip:hover .chip__glyph { transform: rotate(-14deg) scale(1.08); }
@media (max-width: 899.98px) {
  .tools__layout { grid-template-columns: 1fr; }
  .chip { font-size: .92rem; padding-right: 14px; }
  .chip__glyph { width: 28px; height: 28px; padding: 6px; }
}

/* 8. Chaos → Calm --------------------------------------------------------- */
.calm { position: relative; background: var(--bg-2); overflow: clip; }
.calm__stage {
  position: relative;
  display: flex; flex-direction: column;
  gap: clamp(14px, 2vh, 22px);
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  max-width: 1560px; margin-inline: auto;
}
.motion-ok .calm__stage {
  height: 100vh; height: 100svh;
  justify-content: center;
  padding-top: clamp(18px, 3.2vh, 34px);
  padding-bottom: clamp(14px, 2.6vh, 28px);
}
.calm__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 28px; }
.calm__titles .eyebrow { margin-bottom: .6rem; }
.calm__title {
  font-family: var(--f-display); font-weight: 360;
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.6rem);
  line-height: 1; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 40;
}
.calm__arrow { display: inline-block; color: var(--accent); font-family: var(--f-sans); font-weight: 300; }
.calm__meters { display: flex; flex-wrap: wrap; gap: 10px; }
.meter {
  --stress: 0;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.meter__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); transition: background-color .4s, color .4s; }
.meter__icon svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform .45s var(--ease-out), opacity .3s; }
.meter__ok { opacity: 0; transform: scale(.4) rotate(-30deg); }
.meter--inbox.is-zero .meter__icon, html:not(.motion-ok) .meter--inbox .meter__icon { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); }
.meter--inbox.is-zero .meter__icon svg:first-child, html:not(.motion-ok) .meter--inbox .meter__icon svg:first-child { opacity: 0; transform: scale(.4); }
.meter--inbox.is-zero .meter__ok, html:not(.motion-ok) .meter--inbox .meter__ok { opacity: 1; transform: none; }
.meter__text { display: grid; line-height: 1.1; }
.meter__label { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 380px) { .meter__label { letter-spacing: .04em; } .meter__wave { width: 40px !important; } }
.meter__value { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 450; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.js-unread { display: inline-block; min-width: 2.6ch; text-align: right; }
.meter--stress { padding-left: 16px; gap: 14px; }
.meter--stress .meter__value { min-width: 6.4em; }
.meter__wave { width: 96px; height: 30px; color: color-mix(in oklab, var(--warn) calc(var(--stress) * 100%), var(--good)); overflow: visible; }
.meter--stress .meter__value { color: color-mix(in oklab, var(--warn) calc(var(--stress) * 100%), var(--ink)); }

.calm__body { position: relative; flex: 1 1 auto; min-height: 0; }
.motion-ok .calm__body { max-height: clamp(620px, 70vh, 820px); }
.calm__board {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
.lane {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
  padding: 14px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 -1px var(--lane, var(--brand));
}
.lane--cal { --lane: var(--cat-c); }
.lane--clients { --lane: var(--accent); }
.lane--admin { --lane: var(--cat-d); }
.lane--cal .lane__icon { background: color-mix(in srgb, var(--cat-c) 30%, var(--surface)); color: var(--ink); }
.lane--clients .lane__icon { background: var(--accent-2); color: var(--accent-ink); }
.lane--admin .lane__icon { background: color-mix(in srgb, var(--cat-d) 32%, var(--surface)); color: var(--ink); }
.lane__foot {
  margin-top: auto;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
}
.lane__stack { grid-row: span 2; position: relative; width: 30px; height: 30px; }
.lane__stack::before, .lane__stack::after { content: ""; position: absolute; inset: 0; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); }
.lane__stack::before { transform: rotate(-9deg) translate(-2px, 2px); }
.lane__stack::after { background: color-mix(in srgb, var(--lane, var(--brand)) 40%, var(--surface)); transform: rotate(4deg); }
.lane__foot-k { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.lane__foot-v { font-family: var(--f-display); font-size: 1.35rem; font-weight: 420; letter-spacing: -.02em; line-height: 1.1; font-variation-settings: "SOFT" 80; }
.lane__head { display: flex; align-items: center; gap: 9px; padding: 2px 2px 4px; }
.lane__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-2); color: var(--brand-ink); flex: none; }
.lane__icon svg { width: 17px; height: 17px; }
.lane__title { font-size: .98rem; font-weight: 650; letter-spacing: -.01em; }
.lane__badge { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good-ink); font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lane__cards { display: grid; gap: 8px; align-content: start; }
.tcard {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.tcard__tick { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); flex: none; }
.tcard__tick svg { width: 13px; height: 13px; }
.tcard__body { display: grid; min-width: 0; }
.tcard__title { font-size: .95rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.25; }
.tcard__meta { font-size: .8rem; color: var(--ink-2); line-height: 1.3; margin-top: 2px; }

.week-grid { flex: 1; min-height: 190px; display: grid; grid-template-rows: auto 1fr; gap: 6px; }
.week-grid__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.week-grid__events {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(18px, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(100% / 9 - 1px), var(--line) calc(100% / 9 - 1px), var(--line) calc(100% / 9)),
    var(--surface);
  border: 1px solid var(--line);
  container-type: inline-size;
}
.ev {
  --c: var(--cat-a);
  grid-column: var(--d); grid-row: var(--s) / span var(--l);
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; overflow: hidden;
  padding: 3px 6px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 34%, var(--surface));
  border-left: 3px solid var(--c);
  font-size: .68rem; line-height: 1.12;
}
.ev--b { --c: var(--cat-b); }
.ev--c { --c: var(--cat-c); }
.ev--d { --c: var(--cat-d); }
.ev--focus { --c: var(--good); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--good) 18%, var(--surface)) 0 6px, color-mix(in srgb, var(--good) 28%, var(--surface)) 6px 12px); }
.ev__t { font-weight: 650; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
@container (max-width: 360px) { .ev__m { display: none; } }
.ev__m { font-family: var(--f-mono); font-size: .54rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* "Before" mess layer — only shown when the scroll animation is active */
.mess { display: none; }
.motion-ok .mess { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mi {
  position: absolute; left: var(--x); top: var(--y);
  box-shadow: 0 1px 1px rgb(0 0 0 / .06), 0 10px 22px -10px rgb(var(--shadow) / .35);
  will-change: transform, opacity;
}
.mi__lift { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 34px 60px -16px rgb(var(--shadow) / .5), 0 12px 24px -12px rgb(var(--shadow) / .35); opacity: 0; pointer-events: none; }
.note {
  width: clamp(118px, 10vw, 156px); aspect-ratio: 1;
  padding: 22px 14px 12px;
  border-radius: 3px 3px 14px 3px;
  background: linear-gradient(160deg, color-mix(in srgb, #fff 30%, var(--c)), var(--c) 55%);
  color: var(--note-ink);
  font-family: var(--f-display); font-style: italic; font-weight: 420;
  font-size: clamp(1rem, .8rem + .55vw, 1.32rem); line-height: 1.12;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.note--y { --c: var(--note-y); } .note--p { --c: var(--note-p); } .note--b { --c: var(--note-b); } .note--g { --c: var(--note-g); }
.note b { font-style: normal; font-weight: 800; color: #B3261E; letter-spacing: .02em; }
.note__tape { position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; margin-left: -29px; background: rgb(255 255 255 / .55); border: 1px solid rgb(0 0 0 / .04); transform: rotate(-4deg); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.note__text { position: relative; display: block; }
.mail {
  width: clamp(196px, 15.5vw, 244px);
  display: grid; gap: 3px;
  padding: 11px 14px 12px 26px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mail__dot { position: absolute; left: 11px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: #2F7BEA; }
.mail__from { font-family: var(--f-mono); font-size: .62rem; color: var(--ink-2); letter-spacing: .02em; }
.mail__subj { font-size: .84rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.mail__bar { height: 6px; width: 78%; margin-top: 4px; border-radius: 4px; background: var(--line); }
.cal {
  --c: var(--cat-a);
  width: clamp(158px, 12.5vw, 196px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 38%, var(--surface));
  border-left: 4px solid var(--c);
}
.cal--b { --c: var(--cat-b); } .cal--d { --c: var(--cat-d); }
.cal__time { font-family: var(--f-mono); font-size: .7rem; font-weight: 600; color: var(--ink-2); }
.cal__name { font-size: .88rem; font-weight: 700; letter-spacing: -.01em; }
.cal__warn { position: absolute; right: -10px; top: -12px; padding: 3px 8px; border-radius: 999px; background: var(--warn); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 14px -6px var(--warn); }
.phone {
  width: clamp(98px, 7.8vw, 120px); aspect-ratio: 9 / 18;
  padding: 6px;
  border-radius: 20px;
  background: #17181d;
}
.phone__screen {
  position: relative; display: grid; align-content: start; justify-items: center; gap: 6px;
  height: 100%; padding: 22px 8px 8px;
  border-radius: 15px;
  background: linear-gradient(170deg, #3a3f63, #8a6d8f 60%, #d3907a);
  color: #fff; overflow: hidden;
}
.phone__screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 34%; height: 7px; margin-left: -17%; border-radius: 6px; background: #17181d; }
.phone__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #E5383B; font-family: var(--f-sans); font-weight: 800; font-size: 1.15rem; box-shadow: 0 0 0 4px rgb(229 56 59 / .3); }
.phone__label { font-size: .58rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.phone__n { width: 100%; height: 18px; border-radius: 7px; background: rgb(255 255 255 / .3); }
.receipt {
  width: clamp(92px, 7.4vw, 112px);
  display: grid; gap: 4px;
  padding: 12px 10px 20px;
  background: #FFFEF8;
  color: #3b3b3b;
  font-family: var(--f-mono); font-size: .58rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 92% 100%, 84% calc(100% - 6px), 75% 100%, 67% calc(100% - 6px), 58% 100%, 50% calc(100% - 6px), 42% 100%, 33% calc(100% - 6px), 25% 100%, 17% calc(100% - 6px), 8% 100%, 0 calc(100% - 6px));
  box-shadow: none;
  filter: drop-shadow(0 8px 10px rgb(var(--shadow) / .22));
}
.receipt__h { font-weight: 800; letter-spacing: .2em; text-align: center; padding-bottom: 4px; border-bottom: 1px dashed #bbb; }
.receipt__l { border-bottom: 1px dotted #ddd; padding-bottom: 2px; }
.receipt__t { font-weight: 800; font-size: .74rem; text-align: right; margin-top: 2px; }
.coffee { width: clamp(108px, 9vw, 140px); aspect-ratio: 1; box-shadow: none; }
.coffee__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 57%, rgb(139 82 38 / .34) 59%, rgb(139 82 38 / .16) 63%, rgb(139 82 38 / .28) 66%, transparent 69%),
    radial-gradient(circle at 46% 54%, rgb(128 78 42 / .07) 0 50%, transparent 52%);
}
.coffee__ring::after { content: ""; position: absolute; inset: 8% -6% -6% 10%; border-radius: 50%; background: radial-gradient(circle, transparent 60%, rgb(128 78 42 / .12) 62%, transparent 66%); }
[data-theme="midnight"] .coffee__ring { filter: brightness(2.2) saturate(.8); opacity: .7; }
.todo {
  width: clamp(124px, 10vw, 150px);
  display: grid; gap: 2px;
  padding: 10px 12px 12px 22px;
  background: #fff repeating-linear-gradient(to bottom, transparent 0 17px, #cfe0f0 17px 18px);
  background-position: 0 6px;
  color: #2b3240;
  border-left: 1px solid #f1b5b5;
  font-family: var(--f-display); font-style: italic; font-size: .95rem; line-height: 18px;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.todo__h { font-style: normal; font-weight: 800; font-family: var(--f-sans); font-size: .7rem; letter-spacing: .12em; color: #B3261E; }
.slack {
  width: clamp(170px, 13vw, 200px);
  display: grid; gap: 2px;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.slack__ch { font-family: var(--f-mono); font-size: .64rem; color: var(--ink-2); }
.slack__msg { font-size: .84rem; font-weight: 650; }

/* Finale + confetti */
.calm__finale {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  margin: 28px auto 0;
  padding: clamp(22px, 3vw, 34px) clamp(28px, 4vw, 52px);
  width: fit-content; max-width: 100%;
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
.motion-ok .calm__finale {
  position: absolute; inset: 0; z-index: 5;
  margin: auto; height: fit-content;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.finale__check { width: clamp(64px, 7vw, 92px); height: auto; color: var(--good); margin-bottom: 6px; }
.finale__title { font-family: var(--f-display); font-weight: 380; font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; }
.finale__sub { color: var(--ink-2); font-size: .98rem; }
.calm__confetti { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible; }
.confetti { position: absolute; left: 0; top: 0; width: 9px; height: 13px; border-radius: 2px; will-change: transform, opacity; }
.calm__foot { display: none; }
.motion-ok .calm__foot { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; padding-left: 150px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.calm__clock { position: relative; display: grid; overflow: hidden; height: 1.4em; }
.calm__clock span { grid-area: 1 / 1; }
.calm__clock-b { opacity: 0; color: var(--good-ink); }
.calm__hint { display: inline-flex; align-items: center; gap: 10px; }
.calm__hint-mouse { width: 14px; height: 22px; border-radius: 8px; border: 1.5px solid currentColor; position: relative; }
.calm__hint-mouse::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: cue 1.8s var(--ease-in-out) infinite; }

@media (max-width: 1100px) and (min-width: 900px) {
  .tcard__meta { display: none; }
}
/* Tablet + phone: 2×2 board */
@media (max-width: 899.98px) {
  .calm__head { align-items: flex-start; }
  .calm__meters { width: 100%; gap: 8px; }
  .meter { flex: 1 1 0; min-width: 0; }
  .meter--stress .meter__value { min-width: 0; }
  .motion-ok .calm__body { max-height: none; }
  .calm__board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lane__badge { display: none; }
  .motion-ok .calm__foot { padding-left: 150px; }
  .motion-ok .calm__finale { width: min(calc(100% - 24px), 520px); }
  .motion-ok .tcard[data-extra] { display: none; }
}
/* Short laptop screens: keep every lane inside its column */
@media (min-width: 900px) and (max-height: 800px) {
  .motion-ok .tcard__meta { display: none; }
  .motion-ok .tcard { padding-block: 10px; align-items: center; }
  .motion-ok .lane__foot { padding-block: 8px; }
  .motion-ok .lane__foot-v { font-size: 1.1rem; }
}
@media (min-width: 900px) and (max-height: 640px) {
  .motion-ok .tcard[data-extra] { display: none; }
  .motion-ok .lane__foot-k { display: none; }
  .motion-ok .lane__stack { grid-row: auto; width: 22px; height: 22px; }
}
/* Phone: compact board, fewer chaos items, phone-specific scatter positions */
@media (max-width: 599.98px) {
  .calm__stage { padding-inline: 14px; }
  .calm__title { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .calm__titles .eyebrow { margin-bottom: .35rem; font-size: .66rem; }
  .meter { padding: 7px 10px 7px 7px; gap: 8px; border-radius: 14px; }
  .meter--stress { padding-left: 10px; }
  .meter__icon { width: 32px; height: 32px; border-radius: 10px; }
  .meter__icon svg { width: 17px; height: 17px; }
  .meter__value { font-size: 1.05rem; }
  .meter__wave { width: 54px; height: 24px; flex: none; }
  .calm__board { gap: 8px; }
  .lane { padding: 8px; gap: 6px; border-radius: 16px; box-shadow: inset 0 2px 0 -1px var(--lane, var(--brand)); }
  .lane__head { gap: 6px; padding: 0; }
  .lane__icon { width: 24px; height: 24px; border-radius: 8px; }
  .lane__icon svg { width: 14px; height: 14px; }
  .lane__title { font-size: .82rem; }
  .tcard { padding: 7px 8px; gap: 7px; border-radius: 10px; }
  .tcard__tick { width: 17px; height: 17px; }
  .tcard__tick svg { width: 10px; height: 10px; }
  .tcard__title { font-size: .72rem; }
  .tcard__meta { font-size: .64rem; }
  .motion-ok [data-extra] { display: none !important; }
  .mi { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .lane__foot { padding: 6px 8px; gap: 0 8px; border-radius: 10px; }
  .lane__stack { width: 20px; height: 20px; }
  .lane__stack::before, .lane__stack::after { border-radius: 5px; }
  .lane__foot-k { font-size: .48rem; letter-spacing: .06em; }
  .lane__foot-v { font-size: .9rem; }
  .motion-ok .calm__foot { padding-left: 0; font-size: .6rem; }
  .week-grid { min-height: 0; gap: 3px; }
  .week-grid__days { font-size: .5rem; gap: 2px; }
  .week-grid__events { grid-template-rows: repeat(9, minmax(11px, 1fr)); gap: 2px; padding: 2px; border-radius: 8px; }
  .ev { padding: 1px 3px; border-left-width: 2px; border-radius: 4px; font-size: .5rem; }
  .ev__m { display: none; }
  .note { width: clamp(84px, 24vw, 112px); padding: 16px 9px 8px; font-size: clamp(.82rem, 3.4vw, 1rem); }
  .note__tape { width: 40px; height: 13px; margin-left: -20px; top: -6px; }
  .mail { width: clamp(150px, 44vw, 190px); padding: 8px 10px 9px 20px; }
  .mail__dot { left: 8px; top: 12px; width: 6px; height: 6px; }
  .mail__subj { font-size: .72rem; }
  .cal { width: clamp(120px, 34vw, 150px); padding: 7px 9px; gap: 0 7px; }
  .cal__name { font-size: .74rem; }
  .cal__warn { font-size: .54rem; right: -6px; top: -10px; }
  .phone { width: clamp(70px, 19vw, 88px); border-radius: 15px; padding: 4px; }
  .phone__screen { border-radius: 11px; padding-top: 16px; }
  .phone__badge { width: 32px; height: 32px; font-size: .9rem; }
  .phone__label { font-size: .46rem; }
  .phone__n { height: 12px; }
  .coffee { width: clamp(80px, 22vw, 104px); }
  .finale__sub { font-size: .86rem; }
}
@media (max-width: 599.98px) and (max-height: 700px) {
  .tcard__meta { display: none; }
  .lane__foot { display: none; }
}

/* 9. Services ------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column;
  padding: 12px 12px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: box-shadow .5s var(--ease-out), border-color .4s;
  transform-style: preserve-3d;
}
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / .22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-theme="midnight"] .svc::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgb(182 164 244 / .12), transparent 45%); }
.svc:hover { box-shadow: var(--sh-lg); border-color: var(--line-2); }
.svc:hover::after { opacity: 1; }
.svc__art {
  aspect-ratio: 240 / 140;
  border-radius: calc(var(--r-xl) - 10px);
  background: linear-gradient(150deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 40%, var(--bg-2)));
  overflow: hidden;
  margin-bottom: 22px;
}
.svc:nth-child(2) .svc__art, .svc:nth-child(6) .svc__art { background: linear-gradient(150deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 40%, var(--bg-2))); }
.svc:nth-child(4) .svc__art { background: linear-gradient(150deg, color-mix(in srgb, var(--cat-c) 30%, var(--surface)), var(--bg-2)); }
.svc__art svg { width: 100%; height: 100%; overflow: visible; }
.svc__title, .svc__text, .svc__tags { padding-inline: 14px; }
.svc__title { font-family: var(--f-display); font-weight: 420; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; font-variation-settings: "SOFT" 60; }
.svc__text { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 0; }
.svc__tags li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* SVG micro-animation palette */
.a-panel { fill: var(--surface); stroke: var(--line); }
.a-row { fill: var(--bg); stroke: var(--line); }
.a-bar { fill: color-mix(in srgb, var(--ink) 16%, transparent); }
.a-dot { fill: var(--accent); } .a-dot--2 { fill: var(--brand); } .a-dot--3 { fill: var(--cat-c); }
.a-tray { fill: var(--brand-2); stroke: var(--brand-ink); stroke-width: 2; stroke-linejoin: round; }
.a-tray-lip { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.a-zero { fill: var(--good); }
.a-zero-tick, .a-badge-tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a-cell { fill: var(--bg); stroke: var(--line); }
.a-head { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.a-ev { fill: var(--cat-a); } .a-ev--fixed2 { fill: var(--cat-c); } .a-ev--move { fill: var(--accent); }
.a-clock { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.a-hand { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.a-hand--m { stroke: var(--accent); }
.a-box { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; }
.a-chk { fill: none; stroke: var(--good); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.a-ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.a-ring { fill: none; stroke: var(--brand-ink); stroke-width: 6; stroke-linecap: round; }
.a-star { fill: var(--accent); }
.a-route-bg { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; }
.a-route { fill: none; stroke: var(--brand-ink); stroke-width: 2.5; stroke-linecap: round; }
.a-pin { fill: var(--accent); } .a-pin--b { fill: var(--brand-ink); }
.a-pin-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.pin--b .a-pin-pulse { stroke: var(--brand-ink); }
.a-label { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; fill: var(--ink-2); }
.a-plane { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-axis { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.a-bar-v { fill: color-mix(in srgb, var(--brand) 55%, var(--surface)); } .a-bar-v--hi { fill: var(--brand-ink); }
.a-trend { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.a-lens { fill: rgb(255 255 255 / .35); stroke: var(--ink); stroke-width: 2.5; }
.a-lens-h { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.a-tile { stroke: var(--line); }
.a-tile--1 { fill: color-mix(in srgb, var(--brand) 50%, var(--surface)); }
.a-tile--2 { fill: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.a-tile--3 { fill: color-mix(in srgb, var(--cat-c) 50%, var(--surface)); }
.a-badge { fill: var(--good); }
.a-heart { fill: var(--warn); opacity: 0; }

/* 10. A week with Juan ----------------------------------------------------- */
.week { position: relative; background: var(--bg); overflow: clip; }
.week__pin { padding-block: clamp(88px, 11vw, 150px); }
.week__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: clamp(32px, 5vh, 56px); }
.week__lede { max-width: 40ch; }
.week__progress { display: none; }
.week__track { display: grid; gap: 18px; width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; padding: 0; }
.day {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.day__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.day__name { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 3vw, 5.4rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; font-variation-settings: "SOFT" 100; color: var(--ink); }
.day__theme { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); padding: 5px 11px; border-radius: 999px; background: var(--brand-2); white-space: nowrap; }
.day--fri { background: var(--inv-bg); color: var(--inv-ink); border-color: transparent; }
.day--fri .day__name { color: var(--inv-ink); }
.day--fri .day__theme { background: var(--inv-line); color: var(--inv-brand); }
.day__tasks { display: grid; gap: 10px; }
.task {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.day--fri .task { background: color-mix(in srgb, var(--inv-ink) 7%, transparent); border-color: var(--inv-line); }
.task__time { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-2); }
.day--fri .task__time { color: var(--inv-ink-2); }
.task__title { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1.3; }
.task__tag { padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.day--fri .task__tag { border-color: var(--inv-line); color: var(--inv-ink-2); }
.task--done .task__tag { background: var(--inv-brand); color: var(--inv-bg); border-color: transparent; }
.task--done .task__title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.25rem; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Desktop horizontal mode */
@media (min-width: 900px) {
  .motion-ok .week__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 72px 40px; }
  .motion-ok .week__head { margin-bottom: clamp(20px, 3.4vh, 40px); }
  .motion-ok .week__progress { display: block; width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto clamp(40px, 5.6vh, 56px); position: relative; }
  .week__progress-line { display: block; height: 2px; border-radius: 2px; background: var(--line-2); }
  .week__progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-ink), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; border-radius: inherit; }
  .week__progress-dots { position: absolute; inset: 0; }
  .week__progress-dots span {
    position: absolute; top: -8px; translate: -50% 0;
    display: grid; justify-items: center; gap: 8px;
    font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
    transition: color .4s;
  }
  .week__progress-dots span::before {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--line-2);
    transition: border-color .4s, background-color .4s, transform .5s var(--ease-out), box-shadow .5s;
  }
  .week__progress-dots span:nth-child(1) { left: 0; translate: 0 0; justify-items: start; }
  .week__progress-dots span:nth-child(2) { left: 25%; }
  .week__progress-dots span:nth-child(3) { left: 50%; }
  .week__progress-dots span:nth-child(4) { left: 75%; }
  .week__progress-dots span:nth-child(5) { left: 100%; translate: -100% 0; justify-items: end; }
  .week__progress-dots span.is-on { color: var(--ink); }
  .week__progress-dots span.is-on::before { border-color: var(--brand-ink); background: var(--brand-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 30%, transparent); }
  .motion-ok .week__viewport { overflow: visible; }
  .motion-ok .week__track {
    display: flex; gap: clamp(16px, 1.6vw, 24px);
    width: max-content; margin: 0;
    padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2);
  }
  .motion-ok .day { width: clamp(330px, 31vw, 450px); flex: none; }
  .motion-ok .day__tasks { gap: 8px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .motion-ok .day__name { font-size: 3.2rem; }
  .motion-ok .task { padding: 9px 14px; }
  .motion-ok .week__head .h2 { font-size: 2.6rem; }
}
/* Static desktop (reduced motion / no JS): a tidy grid of days */
@media (min-width: 900px) {
  html:not(.motion-ok) .week__track { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
/* Vertical (mobile / no-JS) mode: a rail on the left */
@media (max-width: 899.98px) {
  .week__track { position: relative; padding-left: 26px; width: calc(100% - 2 * var(--gutter)); }
  .week__track::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line-2); }
  .week__track::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(var(--brand-ink), var(--accent)); transform-origin: 50% 0; transform: scaleY(var(--fill, 1)); }
  .day::before { content: ""; position: absolute; left: -26px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand-ink); }
  .day__name { font-size: 3rem; }
  .task { grid-template-columns: 1fr; }
  .task__tag { justify-self: start; }
}

/* 11. Results -------------------------------------------------------------- */
.results { padding-block: clamp(40px, 6vw, 80px); }
.results__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: var(--inv-bg);
  color: var(--inv-ink);
  isolation: isolate;
}
.results__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--inv-brand) 22%, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--inv-line) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
}
.results__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 76px); }
.results__dial { position: absolute; top: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 64px); width: clamp(150px, 17vw, 240px); height: auto; z-index: -1; overflow: visible; }
.dial__ticks { stroke: var(--inv-line); stroke-width: 2; stroke-linecap: round; }
.dial__track { fill: none; stroke: var(--inv-line); stroke-width: 10; }
.dial__arc { fill: none; stroke: var(--inv-brand); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 386 515; }
.dial__hand { stroke: var(--inv-ink); stroke-width: 4; stroke-linecap: round; }
.dial__pin { fill: var(--inv-brand); }
@media (max-width: 960px) { .results__dial { display: none; } }
.results__head .eyebrow { margin-bottom: 1rem; }
.results .h2 em { color: var(--inv-brand); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.stat { position: relative; padding-top: 22px; }
.stat__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--inv-line); }
.stat__line::after { content: ""; position: absolute; inset: 0; background: var(--inv-brand); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
.stat__num {
  display: flex; align-items: baseline; gap: .08em;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(3.4rem, 2rem + 4.6vw, 7rem);
  line-height: .95; letter-spacing: -.045em;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "SOFT" 100;
}
.stat__unit { font-style: italic; font-size: .42em; letter-spacing: -.01em; color: var(--inv-brand); font-variation-settings: "SOFT" 100, "WONK" 1; }
.stat__unit--pre { font-style: normal; font-size: .6em; margin-right: .04em; }
.stat__label { margin-top: 14px; color: var(--inv-ink-2); font-size: .98rem; max-width: 22ch; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 12. Experience ----------------------------------------------------------- */
.exp__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.exp__intro { position: sticky; top: 110px; }
.exp__intro .lede { margin-top: 1.4rem; }
.exp__resume { margin-top: 32px; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px 2px; margin-top: 40px; }
.stamp { width: clamp(92px, 8vw, 112px); color: var(--brand-ink); }
.stamp--b { color: var(--accent-ink); rotate: 8deg; }
.stamp--c { color: var(--ink); rotate: -6deg; }
.stamp--d { color: var(--brand-ink); rotate: 5deg; }
.stamp--a { rotate: -8deg; }
.stamp svg { width: 100%; height: auto; overflow: visible; }
.stamp__o { fill: color-mix(in srgb, currentColor 6%, transparent); stroke: currentColor; stroke-width: 2.5; }
.stamp__i { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 4; }
.stamp__ring { font-family: var(--f-mono); font-size: 9px; font-weight: 700; fill: currentColor; }
.stamp__mid { font-family: var(--f-display); font-size: 22px; font-weight: 600; font-style: italic; text-anchor: middle; fill: currentColor; }
.stamp__star { fill: currentColor; }
.stamp__lock { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.stamp:hover svg { animation: spin 6s linear infinite; }

.timeline { position: relative; padding-left: 44px; }
.timeline__rail { position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--line-2); }
.timeline__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--brand-ink), var(--accent)); transform-origin: 50% 0; }
.timeline__list { display: grid; gap: 18px; }
.role { position: relative; }
.role__node {
  position: absolute; left: -38px; top: 28px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  transition: border-color .4s, background-color .4s, box-shadow .6s var(--ease-out);
}
.role.is-active .role__node, html:not(.motion-ok) .role__node { border-color: var(--brand-ink); background: var(--brand-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 30%, transparent); }
.role__card { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.role__when { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.role__title { margin-top: 8px; font-family: var(--f-display); font-weight: 430; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); line-height: 1.15; letter-spacing: -.02em; font-variation-settings: "SOFT" 60; }
.role__title span { display: block; margin-top: 4px; font-family: var(--f-sans); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.role__text { margin-top: 12px; color: var(--ink-2); }
.role__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.role__chips li { padding: 4px 11px; border-radius: 999px; background: var(--brand-2); color: var(--brand-ink); font-size: .78rem; font-weight: 600; }
@media (max-width: 899.98px) {
  .exp__layout { grid-template-columns: 1fr; }
  .exp__intro { position: static; }
  .timeline { padding-left: 34px; }
  .timeline__rail { left: 8px; }
  .role__node { left: -33px; }
}

/* 13. Proof folder --------------------------------------------------------- */
.proof { background: var(--bg-2); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(18px, 2.2vw, 30px); }
.proof-card {
  --tab: var(--tab-sage);
  display: block; width: 100%;
  padding: 0; border: 0; background: none; text-align: left;
  border-radius: var(--r-lg);
}
.proof-card[data-tab="lilac"] { --tab: var(--tab-lilac); }
.proof-card[data-tab="sky"] { --tab: var(--tab-sky); }
.proof-card[data-tab="clay"] { --tab: var(--tab-clay); }
.proof-card[data-tab="butter"] { --tab: var(--tab-butter); }
.proof-card[data-tab="rose"] { --tab: var(--tab-rose); }
.folder { position: relative; display: block; aspect-ratio: 4 / 3.25; perspective: 900px; }
.folder__back {
  position: absolute; inset: 9% 0 0;
  border-radius: 6px 22px 22px 22px;
  background: color-mix(in srgb, var(--tab) 82%, #000 8%);
}
.folder__back::before { content: ""; position: absolute; left: 0; top: -9%; width: 42%; height: 14%; border-radius: 16px 16px 0 0; background: inherit; }
.folder__doc {
  position: absolute; left: 7%; right: 7%; top: 3%; bottom: 12%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35);
  transform: translateY(4%) rotate(-1deg);
  transition: transform .7s var(--ease-out);
}
.folder__doc img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.folder__front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tab) 92%, #fff 8%), var(--tab));
  box-shadow: 0 -1px 0 rgb(255 255 255 / .45) inset, 0 -10px 24px -14px rgb(0 0 0 / .3);
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease-out);
}
.folder__front::after { content: ""; position: absolute; left: 7%; top: 26%; width: 34%; height: 30%; border-radius: 8px; background: rgb(255 255 255 / .38); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .05); }
.proof-card:hover .folder__doc, .proof-card:focus-visible .folder__doc { transform: translateY(-9%) rotate(-2.5deg); }
.proof-card:hover .folder__front, .proof-card:focus-visible .folder__front { transform: rotateX(-18deg); }
.proof-card__meta { display: grid; gap: 4px; padding: 18px 6px 0; }
.proof-card__type { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.proof-card__title { font-family: var(--f-display); font-weight: 430; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; font-variation-settings: "SOFT" 60; }
.proof-card__open { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 600; color: var(--brand-ink); }
.proof-card__open svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.proof-card:hover .proof-card__open svg { transform: translate(2px, -2px); }
.proof-card:focus-visible { outline-offset: 8px; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .proof-grid { grid-template-columns: 1fr; } }

/* Lightbox (native <dialog>) */
.lightbox {
  width: min(1120px, 100vw - 32px);
  max-width: none; max-height: calc(100vh - 32px); max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop { background: rgb(var(--shadow) / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-theme="midnight"] .lightbox::backdrop { background: rgb(2 4 12 / .72); }
.lightbox__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  max-height: inherit;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / .5);
  overflow: hidden;
}
.lightbox__media { display: grid; place-items: center; padding: clamp(16px, 2.6vw, 36px); background: var(--bg-2); min-height: 0; }
.lightbox__media img { width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; border-radius: 14px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .4); background: #fff; }
.lightbox__body { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px); overflow-y: auto; min-height: 0; }
.lightbox__count { margin-bottom: 1rem; }
.lightbox__content h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.05; letter-spacing: -.025em; font-variation-settings: "SOFT" 60; padding-right: 40px; }
.lightbox__content p { margin-top: 1rem; color: var(--ink-2); }
.lightbox__content ul { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lightbox__content li { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: .94rem; }
.lightbox__content img { display: none; }
.lightbox__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
@media (max-width: 820px) {
  .lightbox { width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
  .lightbox__panel { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox__media { padding: 56px 16px 16px; }
  .lightbox__media img { max-height: 46svh; }
  .lightbox__body { overflow: visible; }
}

/* 14. Testimonials deck ---------------------------------------------------- */
.voices { padding: 0; background: var(--bg); overflow: clip; }
.voices__pin { padding-block: clamp(88px, 11vw, 150px); }
.voices__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.voices__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.6rem; color: var(--ink-2); }
.voices__rating strong { color: var(--ink); }
.voices__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.voices__stars svg { width: 18px; height: 18px; }
.voices__dots { display: none; }
.deck { display: grid; gap: 16px; margin: 0; }
.quote figure { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.quote--2 { background: color-mix(in srgb, var(--brand-2) 70%, var(--surface)); }
.quote--3 { background: color-mix(in srgb, var(--accent-2) 75%, var(--surface)); }
.quote--4 { background: color-mix(in srgb, var(--cat-c) 22%, var(--surface)); }
.quote--5 { background: color-mix(in srgb, var(--note-y) 34%, var(--surface)); }
[data-theme="midnight"] .quote--5 { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.quote blockquote p {
  font-family: var(--f-display); font-weight: 360;
  font-size: clamp(1.32rem, 1rem + 1.25vw, 2.05rem);
  line-height: 1.2; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 80;
  text-wrap: pretty;
}
.quote__by { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.quote__by > span { display: grid; }
.quote__by strong { font-weight: 650; }
.quote__by span span { color: var(--ink-2); font-size: .86rem; }
.quote__avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--surface); }
.motion-ok .voices__dots { display: flex; gap: 8px; margin: 2rem 0 0; padding: 0; list-style: none; }
.voices__dots li { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width .5s var(--ease-out), background-color .4s; }
.voices__dots li.is-on { width: 28px; background: var(--brand-ink); }
.motion-ok .voices__pin { height: 100vh; height: 100svh; display: flex; align-items: center; padding-block: 72px 32px; }
.motion-ok .voices__layout { width: min(100% - 2 * var(--gutter), var(--maxw)); }
.motion-ok .deck { position: relative; display: block; height: clamp(300px, 46vh, 400px); }
.motion-ok .quote { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
@media (max-width: 899.98px) {
  .voices__layout { grid-template-columns: 1fr; gap: 28px; }
  .motion-ok .voices__pin { align-items: flex-start; padding-top: 84px; }
  .motion-ok .voices__intro .h2 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .motion-ok .voices__rating { margin-top: .9rem; font-size: .9rem; }
  .motion-ok .voices__dots { margin-top: 1rem; }
  .motion-ok .deck { height: clamp(270px, 42svh, 340px); margin-top: 6px; }
}

/* 15. Packages -------------------------------------------------------------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.pricing { background: var(--bg-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.8vw, 38px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.plan__name { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan__amt { font-family: var(--f-display); font-weight: 340; font-size: clamp(2.8rem, 2rem + 2.2vw, 4rem); line-height: 1; letter-spacing: -.04em; font-variation-settings: "SOFT" 80; }
.plan__per { color: var(--ink-2); font-size: .95rem; }
.plan__desc { margin-top: 14px; color: var(--ink-2); font-size: .98rem; min-height: 3.2em; }
.plan__list { display: grid; gap: 11px; margin: 26px 0 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.plan__list svg { width: 20px; height: 20px; padding: 3px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--brand-2); color: var(--brand-ink); }
.plan__cta { margin-top: auto; width: 100%; }
.plan--featured {
  color: var(--inv-ink);
  border: 2px solid transparent;
  background:
    linear-gradient(var(--inv-bg), var(--inv-bg)) padding-box,
    conic-gradient(from var(--angle), var(--brand), var(--accent), var(--inv-brand), var(--brand)) border-box;
  box-shadow: var(--sh-lg);
  animation: spin-angle 6s linear infinite;
}
@keyframes spin-angle { to { --angle: 360deg; } }
.plan--featured .plan__name, .plan--featured .plan__per, .plan--featured .plan__desc { color: var(--inv-ink-2); }
.plan--featured .plan__list { border-color: var(--inv-line); }
.plan--featured .plan__list svg { background: var(--inv-line); color: var(--inv-brand); }
.plan--featured .btn--primary { background: var(--inv-ink); color: var(--inv-bg); }
.plan--featured .btn--primary::before { background: var(--inv-brand); }
.plan--featured .btn--primary:hover { color: var(--inv-bg); }
.plan__flag {
  position: absolute; top: 18px; right: 18px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--inv-brand); color: var(--inv-bg);
  font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.is-off .plan--featured { animation-play-state: paused; }
@media (min-width: 961px) { .plan--featured { translate: 0 -14px; } }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan__desc { min-height: 0; }
}

/* 16. FAQ ------------------------------------------------------------------- */
.faq__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.faq__intro .lede { margin-top: 1.3rem; }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.2vw, 26px) 4px;
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.18rem, 1.02rem + .55vw, 1.55rem);
  letter-spacing: -.015em; line-height: 1.25;
  font-variation-settings: "SOFT" 60;
  border-radius: 8px;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand-ink); }
.qa__icon { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: currentColor; border-radius: 2px; }
.qa__icon::after { transform: rotate(90deg); }
.qa[open]:not(.is-closing) .qa__icon { transform: rotate(135deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 54px 26px 4px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 899.98px) {
  .faq__layout { grid-template-columns: 1fr; }
  .qa__body p { padding-right: 4px; }
}

/* 17. Contact + footer ------------------------------------------------------ */
.contact { padding-bottom: clamp(48px, 6vw, 80px); }
.contact__panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 7vw, 110px) clamp(24px, 6vw, 96px);
  border-radius: clamp(28px, 4vw, 56px);
  background: var(--inv-bg); color: var(--inv-ink);
}
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact__bg .blob--a { width: 60vmax; height: 60vmax; left: auto; right: -26vmax; top: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-brand) 34%, transparent), transparent); }
.contact__bg .blob--b { width: 46vmax; height: 46vmax; right: auto; left: -20vmax; top: auto; bottom: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); }
.contact__title {
  font-family: var(--f-display); font-weight: 320;
  font-size: clamp(3rem, 1.2rem + 7.2vw, 9rem);
  line-height: .94; letter-spacing: -.045em;
  max-width: 12ch;
  font-variation-settings: "SOFT" 50;
}
.contact__title em { color: var(--inv-brand); }
.contact__lede { margin-top: clamp(22px, 3vw, 36px); max-width: 48ch; font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); color: var(--inv-ink-2); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: clamp(28px, 4vw, 48px); }
.contact__badge { position: relative; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; color: var(--inv-ink); text-decoration: none; }
.contact__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.contact__badge-ring text { font-family: var(--f-mono); font-size: 10px; font-weight: 600; fill: currentColor; }
.contact__badge-arrow { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--inv-brand); color: var(--inv-bg); transition: transform .5s var(--ease-out); }
.contact__badge:hover .contact__badge-arrow { transform: rotate(45deg) scale(1.1); }
.contact__badge:hover .contact__badge-ring { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; margin-top: clamp(44px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--inv-line); }
.contact__list li { display: grid; gap: 6px; font-size: .98rem; min-width: 0; }
.contact__list a { text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease-out); justify-self: start; }
.contact__list a:hover { background-size: 100% 1.5px; }
.contact__k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-ink-2); }
.contact__avail { display: inline-flex; align-items: center; gap: 10px; }
.contact__slots { display: inline-flex; gap: 4px; }
.contact__slots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--inv-ink-2); }
.contact__slots i.on { background: var(--inv-brand); border-color: var(--inv-brand); }
.is-off .contact__badge-ring, .is-off .blob { animation-play-state: paused; }
@media (max-width: 960px) { .contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contact__list { grid-template-columns: 1fr; } .contact__badge { width: 100px; height: 100px; } }

.footer { padding: 28px 0 calc(84px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.1rem; font-weight: 500; }
.footer__brand .brand__mark { width: 32px; height: 32px; font-size: .85rem; }
.footer__role { color: var(--ink-2); font-family: var(--f-sans); font-size: .9rem; font-weight: 400; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__links a, .footer__small a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.footer__links a:hover, .footer__small a:hover { color: var(--ink); }
.footer__small { width: 100%; order: 3; font-size: .84rem; color: var(--ink-2); padding-top: 18px; border-top: 1px solid var(--line); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.footer__top svg { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .4s var(--ease-out); }
.footer__top:hover svg { transform: rotate(-90deg) translateX(3px); }

/* 18. DEMO ONLY: theme switcher — remove for client sites ------------------- */
.demo-switch { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 80; }
.menu-open .demo-switch { opacity: 0; visibility: hidden; }
.demo-switch fieldset {
  display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 6px 7px 6px 12px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg);
}
.demo-switch__label { float: left; padding: 0 4px 0 0; text-transform: uppercase; font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .16em; color: var(--ink-2); }
.demo-switch__opt { position: relative; display: block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); transition: transform .3s var(--ease-out); }
.demo-switch__opt:hover { transform: scale(1.12); }
.demo-switch__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.demo-switch__opt:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.demo-switch__opt:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.demo-switch__opt--matcha { background: linear-gradient(135deg, #F6F2EA 50%, #1F3A2E 50%); }
.demo-switch__opt--midnight { background: linear-gradient(135deg, #B6A4F4 50%, #0E1325 50%); }
.demo-switch__opt--peach { background: linear-gradient(135deg, #FFE6D8 50%, #F47458 50%); }

/* Theme change: circular reveal (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-reveal .8s var(--ease-in-out) both; }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 30px) var(--vt-y, 100%)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 30px) var(--vt-y, 100%)); } }

/* SplitText masks: leave room for descenders/italic overhang */
.split-line-mask { padding: .06em .12em .14em 0; margin: -.06em -.12em -.14em 0; }

/* JS start states (only when JS is running; removed again if scripts fail) */
.js [data-hero-item], .js [data-reveal], .js [data-split], .js [data-scramble] { opacity: 0; }
.js .hero__visual .portrait__frame { clip-path: inset(100% 0 0 0); }
.js .floater__card, .js .portrait__tag { opacity: 0; }
.js .nav__inner { opacity: 0; }
.reduced-motion [data-hero-item], .reduced-motion [data-split], .reduced-motion [data-scramble] { opacity: 1; }
.reduced-motion .hero__visual .portrait__frame { clip-path: none; }
.reduced-motion .floater__card, .reduced-motion .portrait__tag, .reduced-motion .nav__inner { opacity: 1; }

/* 19. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-new(root) { animation: none; }
}
