/* muyano.ai — site stylesheet
   Fonts: Fraunces (display) + IBM Plex Sans (text). Loaded from Google Fonts in the page head; system fallbacks below.
   Colors: ink/blue/orange are the MUYANO brand; --d1..--d8 are the eight domain colors from the Scope of Services deck. */

:root {
  /* Brand: the two rings of the MUYANO mark. Orange ring #FF3532 → #FF8E4C; blue ring #58D9E3 → #034FAE. */
  --ink: #14213A;
  --ink-2: #3A4760;
  --mist: #7B8699;
  --line: rgba(20, 33, 58, 0.14);
  --line-strong: rgba(20, 33, 58, 0.32);
  --paper: #FFFFFF;
  --tint: #F3F6FA;
  --tint-2: #E7EDF5;
  --blue: #1F6FBF;
  --blue-deep: #034FAE;
  --blue-sky: #2E94C9;
  --cyan: #58D9E3;
  --blue-soft: #E6F1FB;
  --orange: #FF603F;
  --orange-red: #FF3532;
  --orange-light: #FF8E4C;
  --orange-dark: #E8452E;

  --d1: #8B7CF6; --d2: #3EC1C9; --d3: #8FD14F; --d4: #F2C94C;
  --d5: #F28C5A; --d6: #F49AC2; --d7: #C9A7F5; --d8: #2BB5B0;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  --header-h-small: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-variation-settings: "opsz" 144, "SOFT" 30; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--mist); }
.small { font-size: .92rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--tight { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { margin-bottom: .35em; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn-primary { background: var(--orange); background-image: linear-gradient(120deg, var(--orange-red), var(--orange-light)); color: #fff; background-size: 160% 100%; background-position: 0 0; transition: background-position .35s var(--ease), transform .2s var(--ease); }
.btn-primary:hover { background-position: 100% 0; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 11px 16px; font-size: .95rem; }
.btn:active { transform: translateY(1px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-condensed { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-condensed .header-inner { height: var(--header-h-small); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; display: block; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { margin: 0; position: relative; }
.nav a, .nav button.nav-link { font: inherit; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav button.nav-link:hover, .nav a[aria-current="page"] { background: var(--tint); }
.nav .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav li.is-open > .nav-link .chev { transform: rotate(180deg); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(26, 34, 51, .12); padding: 8px; margin: 6px 0 0; list-style: none; display: none; }
.nav li.is-open > .submenu { display: block; }
.submenu a { display: block; padding: 10px 12px; }
.submenu a span { display: block; font-size: .82rem; color: var(--mist); font-weight: 400; }
.submenu .sub-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h-small)); background: #fff; display: none; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px; overflow: auto; z-index: 49; border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav button.nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .submenu a { font-size: 1rem; border-bottom: 0; }
  .nav a.header-cta { margin: 20px 0 0; border-bottom: 0; justify-content: center; background: var(--orange); color: #fff; border-radius: var(--radius); font-size: 1rem; padding: 16px; }
  .header-inner { height: var(--header-h-small); }
  .hide-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 112px 0 96px; isolation: isolate; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 24ch; margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-bg { position: absolute; inset: -10% -10% -10% -10%; z-index: 0; pointer-events: none; opacity: .55; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg .drift { animation: drift 60s linear infinite; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-104px, -60px, 0); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 30% 40%, rgba(255,255,255,0) 40%, #fff 100%); }
.hero .h-line { display: block; opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero .h-line:nth-child(2) { animation-delay: .12s; }
.hero .lede { opacity: 0; animation: rise .8s var(--ease) .3s forwards; }
.hero .cta-row { opacity: 0; animation: rise .8s var(--ease) .45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .hero { padding: 64px 0 56px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.crumb { font-size: .92rem; color: var(--mist); margin-bottom: 18px; }
.crumb a { color: var(--mist); }
.crumb a:hover { color: var(--ink); }
.door-glyph { width: 46px; height: 52px; margin-bottom: 22px; }

/* ---------- Hex glyph ---------- */
.hex-glyph { display: inline-block; width: 22px; height: 25px; vertical-align: -6px; margin-right: 10px; }

/* ---------- Doors (journey) ---------- */
.journey { position: relative; padding-top: 36px; }
.journey-line { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.journey.is-in .journey-line { transition: transform 1.6s var(--ease); transform: scaleX(1); }
.journey-dots { position: absolute; left: 0; right: 0; top: 0; height: 24px; pointer-events: none; }
.journey-dots i { position: absolute; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transform: scale(0); }
.journey-dots i:nth-child(1) { left: calc(12.5% - 6px); } .journey-dots i:nth-child(2) { left: calc(37.5% - 6px); } .journey-dots i:nth-child(3) { left: calc(62.5% - 6px); } .journey-dots i:nth-child(4) { left: calc(87.5% - 6px); }
.journey.is-in .journey-dots i { animation: popdot .4s var(--ease) forwards; }
.journey.is-in .journey-dots i:nth-child(1) { animation-delay: .25s; } .journey.is-in .journey-dots i:nth-child(2) { animation-delay: .65s; } .journey.is-in .journey-dots i:nth-child(3) { animation-delay: 1.05s; } .journey.is-in .journey-dots i:nth-child(4) { animation-delay: 1.45s; background: var(--orange); border-color: var(--orange); }
@keyframes popdot { to { transform: scale(1); } }
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.door { margin: 0; }
.door a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.door a:hover, .door a:focus-visible { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(26, 34, 51, .35); }
.door .door-glyph { width: 30px; height: 34px; margin-bottom: 22px; }
.door h3 { font-size: 1.35rem; margin-bottom: 10px; }
.door p { font-size: .98rem; color: var(--ink-2); margin: 0 0 18px; }
.door .arrow-link { margin-top: auto; color: var(--ink); font-size: .95rem; }
@media (max-width: 960px) { .doors { grid-template-columns: repeat(2, 1fr); } .journey-line, .journey-dots { display: none; } .journey { padding-top: 0; } }
@media (max-width: 520px) { .doors { grid-template-columns: 1fr; } }

/* ---------- Eight-domain strip (home) ---------- */
.domain-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 20px; }
.domain-strip li { margin: 0; }
.domain-strip a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 16px; text-decoration: none; color: var(--ink); border-radius: var(--radius); border: 1px solid transparent; transition: background .2s, border-color .2s; opacity: 0; transform: translateY(10px); }
.domain-strip.is-in a { animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.domain-strip a:hover { background: #fff; border-color: var(--line); }
.domain-strip .hex-glyph { width: 30px; height: 34px; margin: 2px 0 0; }
.domain-strip b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.domain-strip i { display: block; font-style: normal; font-family: var(--font-display); font-size: 1rem; color: var(--ink-2); margin: 2px 0 6px; }
.domain-strip span { display: block; font-size: .9rem; color: var(--mist); line-height: 1.45; }
@media (max-width: 960px) { .domain-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .domain-strip { grid-template-columns: 1fr; } }

/* ---------- Three lines (how we work, home) ---------- */
.three-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.three-lines li { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; padding-top: 18px; border-top: 1px solid var(--ink); }
@media (max-width: 800px) { .three-lines { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Principal block ---------- */
.principal-block { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--tint-2); display: grid; place-items: center; color: var(--mist); font-size: .9rem; text-align: center; padding: 12px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.counters { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 22px 0 8px; }
.counter b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; }
.counter span { display: block; font-size: .92rem; color: var(--mist); margin-top: 6px; }
@media (max-width: 720px) { .principal-block { grid-template-columns: 1fr; } .portrait { max-width: 260px; } }

/* ---------- Closing block ---------- */
.closing { background: var(--ink); background-image: linear-gradient(135deg, var(--blue-deep) 0%, var(--ink) 70%); color: #fff; }
.closing h2 { color: #fff; }
.closing p { color: rgba(255, 255, 255, .8); }
.closing .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .5); }
.closing .btn-secondary:hover { border-color: #fff; }

/* ---------- Hex map (What we do) ---------- */
.hexmap-scroll { overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; width: 100vw; margin-left: calc(50% - 50vw); padding-left: max(var(--gutter), calc(50vw - 590px)); padding-right: var(--gutter); }
.hexmap { --hex-w: 96px; --hex-h: 110px; display: grid; grid-template-columns: repeat(8, calc(var(--hex-w) * 1.5)); gap: 0 8px; width: max-content; }
.hexcol { display: flex; flex-direction: column; }
.hexcol-head { min-height: 128px; padding-bottom: 12px; }
.hexcol-head b { display: block; font-weight: 600; font-size: .86rem; line-height: 1.25; color: var(--ink); }
.hexcol-head i { display: block; font-style: normal; font-family: var(--font-display); font-size: .98rem; margin: 4px 0 4px; }
.hexcol-head span { display: block; font-size: .78rem; line-height: 1.35; color: var(--mist); }
.hexstack { position: relative; width: calc(var(--hex-w) * 1.5); height: calc(var(--hex-h) * (0.75 * (var(--n) - 1) + 1)); }
.hex { position: absolute; width: var(--hex-w); height: var(--hex-h); left: 0; top: calc(var(--i) * var(--hex-h) * 0.75); display: grid; place-items: center; padding: 0; border: 0; background: var(--c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); cursor: pointer; font: inherit; color: var(--ink); transition: transform .2s var(--ease), filter .2s; }
.hex:nth-child(even) { left: calc(var(--hex-w) * 0.5); }
.hex::before { content: ""; position: absolute; inset: 2px; background: color-mix(in srgb, var(--c) 30%, #fff); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); z-index: 0; transition: background .2s; }
.hex span { position: relative; z-index: 1; font-size: .66rem; font-weight: 600; line-height: 1.12; text-align: center; padding: 0 8px; hyphens: manual; }
.hex:hover, .hex:focus-visible, .hex.is-active { transform: translateY(-3px); z-index: 2; }
.hex:hover::before, .hex:focus-visible::before, .hex.is-active::before { background: color-mix(in srgb, var(--c) 55%, #fff); }
.hex:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.hexmap-caption { min-height: 56px; margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--c, var(--line-strong)); background: var(--tint); font-size: .98rem; color: var(--ink-2); transition: border-color .2s; }
.hexmap-caption b { color: var(--ink); }
.hexmap-caption .hint { color: var(--mist); }

/* ---------- Domains and tiles ---------- */
.domain { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.domain-head { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.domain-head .hex-glyph { width: 36px; height: 41px; margin: 4px 0 0; }
.domain-head h2 { font-size: 1.9rem; margin-bottom: 4px; }
.domain-head .word { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-2); }
.domain-head p { margin: 6px 0 0; color: var(--ink-2); }
.tiles { border-top: 1px solid var(--line); }
.tile { border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.tile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-family: var(--font-display); font-size: 1.25rem; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary .plus { flex: none; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.tile summary .plus::before, .tile summary .plus::after { content: ""; position: absolute; width: 10px; height: 1.5px; background: var(--ink); }
.tile summary .plus::after { transform: rotate(90deg); }
.tile summary .plus { position: relative; }
.tile[open] summary .plus { transform: rotate(45deg); background: var(--tint); }
.tile summary:hover .plus { background: var(--tint); }
.tile-body { padding: 0 4px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile-body p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.tile-body .label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 4px; }
@media (max-width: 720px) { .tile-body { grid-template-columns: 1fr; } .domain-head h2 { font-size: 1.6rem; } }
.tiles-controls { display: flex; gap: 10px; justify-content: flex-end; margin: 0 0 12px; }
.linkish { background: none; border: 0; font: inherit; font-size: .92rem; color: var(--blue); cursor: pointer; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }

/* ---------- Door page ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.walk { list-style: none; margin: 0; padding: 0; }
.walk li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.walk li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; background: var(--c, var(--blue)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.walk li:last-child { border-bottom: 1px solid var(--line); }
.start-card { border: 1px solid var(--line); border-left: 4px solid var(--c, var(--blue)); border-radius: var(--radius); padding: 26px 28px; background: #fff; }
.start-card h3 { margin-bottom: 8px; }
.start-card p { margin-bottom: 18px; color: var(--ink-2); }
.domain-list { list-style: none; margin: 0; padding: 0; }
.domain-list li { margin: 0 0 12px; }
.domain-list b { display: block; }
.domain-list span { color: var(--ink-2); font-size: .98rem; }

/* ---------- Q&A ---------- */
.qa { max-width: 72ch; }
.qa-item { padding: 26px 0; border-top: 1px solid var(--line); }
.qa-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.qa-item p { margin: 0; color: var(--ink-2); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Chat intake (diagnostic) ---------- */
.chat { max-width: 760px; margin: 0 auto; }
.chat-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(26, 34, 51, .35); }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--tint); font-size: .92rem; }
.chat-top b { font-weight: 600; }
.progress { height: 4px; background: var(--tint-2); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue-deep)); transition: width .5s var(--ease); }
.chat-log { padding: 22px 18px; min-height: 360px; max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 1rem; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: rise .35s var(--ease) forwards; }
.msg.bot { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg p { margin: 0 0 .6em; max-width: none; } .msg p:last-child { margin-bottom: 0; }
.msg.result { max-width: 100%; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--blue)); border-radius: var(--radius); padding: 20px 22px; }
.msg.result h3 { margin-bottom: 8px; }
.msg.result .cta-row { margin-top: 12px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 16px; background: var(--tint); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-options { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 18px 18px; }
.chip { font: inherit; font-weight: 500; font-size: .96rem; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover, .chip:focus-visible { border-color: var(--ink); background: var(--tint); }
.chip.primary { border-color: var(--orange); color: var(--orange-dark); }
.chip.primary:hover { background: var(--orange); color: #fff; }
.chat-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mist); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.email-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.email-form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); min-width: 220px; flex: 1; }
.form-note { font-size: .85rem; color: var(--mist); margin: 6px 0 0; }

/* ---------- Assistant widget ---------- */
.assistant-launch { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 12px; height: 54px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(26, 34, 51, .55); transition: transform .2s var(--ease), background .2s; }
.assistant-launch:hover { transform: translateY(-2px); background: var(--blue-deep); }
.assistant-launch svg { width: 24px; height: 24px; }
.assistant-launch .dot { position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.assistant { position: fixed; right: 20px; bottom: 86px; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); z-index: 61; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 70px -30px rgba(26, 34, 51, .5); display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.assistant.is-open { display: flex; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.assistant-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--tint); }
.assistant-head b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.assistant-close { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.assistant-close:hover { background: var(--tint-2); }
.assistant-disclosure { font-size: .78rem; color: var(--mist); padding: 8px 16px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.assistant-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.assistant-log .msg { font-size: .95rem; max-width: 90%; }
.assistant-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.assistant-chips .chip { font-size: .86rem; padding: 8px 12px; }
.assistant-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.assistant-input input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.assistant-input button { font: inherit; font-weight: 600; padding: 10px 14px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; cursor: pointer; }
.assistant-input button:hover { background: var(--blue-deep); }
@media (max-width: 520px) { .assistant { right: 8px; bottom: 80px; width: calc(100vw - 16px); height: calc(100vh - 100px); } .assistant-launch { right: 12px; bottom: 12px; } .assistant-launch .label { display: none; } .assistant-launch { padding: 0 15px; } }

/* ---------- Contact / book ---------- */
.book-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.calendly-inline-widget { min-width: 320px; height: 720px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-card { border-top: 1px solid var(--ink); padding-top: 22px; }
.contact-card p { margin-bottom: 10px; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: .9rem; color: var(--ink-2); }
.footer-lines { display: grid; gap: 14px; }
.footer-lines ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-lines li { margin: 0; }
.footer-lines a { color: var(--ink-2); }
.footer-lines a:hover { color: var(--ink); }
.placeholder { background: #FFF4D6; color: #7A4B00; padding: 0 4px; border-radius: 3px; font-weight: 500; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .40s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], [data-reveal-stagger] > *, .domain-strip a, .hero .h-line, .hero .lede, .hero .cta-row, .msg { opacity: 1; transform: none; }
  .journey-line { transform: none; }
  .journey-dots i { transform: none; }
}

/* ---------- Print ---------- */
@media print { .site-header, .assistant, .assistant-launch, .hero-bg { display: none !important; } .section { padding: 24px 0; } }
