/* A single Celestial palette and spacing rhythm across the complete page. */
.martini-stage .mix-pace { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; color: #cbd9e8; font-size: 12px; line-height: 1.5; text-align: center; }
.mix-brand-mark { display: block; flex: 0 0 34px; width: 34px; height: 34px; overflow: hidden; }
.mix-logo-shimmer { animation: celestial-logo-light 5s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes celestial-logo-light { 0%, 12% { transform: translateX(0); } 62%, 100% { transform: translateX(510px); } }
@media (prefers-reduced-motion: reduce) { .mix-logo-shimmer { animation: none; opacity: 0; } }
:root {
  --ink: #263238;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-blue: #edf2f7;
  --surface-warm: #f7eee8;
  --blue: #9ebadf;
  --blue-ink: #456787;
  --accent: #ff7043;
  --accent-ink: #ad482c;
  --muted: #596872;
  --line: #dce1e4;
  --coral: var(--accent);
  --pink: var(--accent);
  --lilac: var(--blue);
  --sunrise-gradient: radial-gradient(ellipse at 28% 130%, #ff8a58 0%, #ff7043 32%, #ff704300 70%), radial-gradient(ellipse at 84% -70%, #9ebadf 0%, #9ebadf00 70%), linear-gradient(110deg, #a34830 0%, #b54c35 52%, #52616b 100%);
  --page-gutter: clamp(20px, 5vw, 76px);
  --page-inset: max(var(--page-gutter), calc((100vw - 1288px) / 2));
}

body { background: var(--paper); }
main > section[id], #industries, #about { scroll-margin-top: 116px; }
#top { scroll-margin-top: 100px; }
.button { border-radius: 8px; font-size: 1rem; font-weight: 500; min-height: 50px; }
.button:hover { background: #354750; }
.coral, .agents-eyebrow { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 4px; }

/* The stationery's warm sunrise, contained within the slim top banner. */
.site-header {
  position: sticky;
  isolation: isolate;
  top: 0;
  z-index: 30;
  height: auto;
  min-height: 96px;
  display: block;
  padding: 0 var(--page-inset);
  color: white;
  background: var(--sunrise-gradient);
  border-bottom: 1px solid #2632381f;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: 96px;
  max-width: 1288px;
  margin: auto;
}
.header-inner > .brand { padding: 0; }
.site-header .brand-logo {
  width: 176px;
  height: auto;
  /* Keep the original letterforms; screen removes the source image's white mat. */
  filter: invert(1) grayscale(1) brightness(4);
  mix-blend-mode: screen;
}
.site-header .contact-trigger {
  justify-self: end;
  min-height: 48px;
  padding: 12px 19px;
  gap: 20px;
  border-radius: 8px;
  background: #fffaf3;
  border-color: #fffaf3;
  color: var(--ink);
  white-space: nowrap;
}
.site-header .contact-trigger:hover { background: #edf2f7; border-color: #edf2f7; }
.site-header .contact-trigger > span { color: var(--accent-ink); width: auto; height: auto; }
.site-header a:focus-visible { outline-color: white; box-shadow: 0 0 0 7px #26323880; }

/* White and charcoal carry the page; the toolkit gradient adds a quiet accent. */
.hero {
  padding: 68px var(--page-inset) 80px;
  background: radial-gradient(ellipse at 90% 6%, #9ebadf24, transparent 55%), var(--paper);
  color: var(--ink);
  gap: clamp(32px, 4vw, 64px);
}
.hero .eyebrow { color: var(--blue-ink); }
.hero h1 em { color: var(--accent-ink); }
.hero-intro, .speed-note { color: var(--muted); }
.hero .button { background: var(--ink); color: white; }
.hero .button:hover { background: #354750; }
.hero .button > span { color: var(--blue); }
.speed-note { font-size: .875rem; }
.speed-note strong { color: var(--ink); }
.martini-stage {
  color: white;
  background: var(--ink);
  border: 1px solid #36474f;
  border-radius: 20px;
  box-shadow: 0 20px 50px #2632380d;
}
.mix-heading span { color: var(--blue); }
.expertise-grid > span { background: #30414b; border-color: #576975; }
.mix-result .result-title { font-size: 30px; }
.mix-result .result-everyday { font-size: 34px; }
.mix-result .result-delivery { font-size: 15px; letter-spacing: .2px; }
.mix-result rect { fill: var(--paper); stroke: var(--blue); }
.mix-result .result-time { fill: var(--accent-ink); }
.motion-toggle { color: #d0dbe5; font-size: .8125rem; }

.platform.content-section {
  max-width: none;
  padding: 96px var(--page-inset);
  background: linear-gradient(120deg, #e8eef5 0%, #f1f4f6 72%, #f7eee8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.platform .ci-heading .eyebrow { color: var(--blue-ink); }
.platform-demo-cta { max-width: 340px; flex: 0 1 340px; }
.platform-demo-cta p { font-size: 1.125rem; line-height: 1.6; margin: 0; color: var(--muted); }
.platform-demo-cta strong { display: block; font-size: 1.375rem; font-weight: 500; line-height: 1.4; margin: 9px 0 22px; color: var(--ink); }
.platform-demo-cta .button { background: var(--ink); color: white; }
.platform-demo-cta .button:hover { background: #354750; }
.platform-demo-cta .button > span { color: var(--blue); }
.platform .ci-experience {
  border-color: #d4dee6;
  border-radius: 16px;
  box-shadow: 0 12px 32px #26323808;
}
.ci-toolbar, .ci-demo-footer { background: #f5f7f9; }
.ci-step, .ci-step[data-ci-step="discover"] {
  --step-color: var(--blue-ink);
  --step-surface: var(--surface-blue);
  --step-border: #afc1d3;
}
.ci-step[data-ci-step="improve"] {
  --step-color: var(--accent-ink);
  --step-surface: var(--surface-warm);
  --step-border: #dfb19e;
}
.ci-mode-switch button[aria-pressed="true"], .ci-play, .ci-action { background: var(--ink); color: #fff; }
.ci-tour-kicker, .ci-kicker { color: var(--blue-ink); }
.ci-live { color: var(--blue-ink); }
.ci-live i { background: var(--blue-ink); }
.ci-map-status, .ci-experience[data-mapped="true"] .ci-map-status { color: var(--blue-ink); }
.ci-file-icon, .ci-documents > div:nth-child(2) .ci-file-icon {
  background: var(--surface-blue);
  border-color: #afc1d3;
  color: var(--blue-ink);
}
.ci-documents > div:nth-child(3) .ci-file-icon {
  background: var(--surface-warm);
  border-color: #dfb19e;
  color: var(--accent-ink);
}
.ci-documents i, .ci-flow-no, .ci-flow-approved { color: var(--blue-ink); }
.ci-map-heading > span:last-child { background: var(--surface-blue); color: var(--blue-ink); }
.ci-flow-start, .ci-flow-end, .ci-flow-rework { background: var(--surface-blue); border-color: #a6bbcf; color: var(--blue-ink); }
.ci-flow-decision { color: var(--accent-ink); }
.ci-flow-decision svg { fill: var(--surface-warm); stroke: #cca58f; }
.ci-flow-approval { background: #f8e5db; border-color: #dba78f; color: var(--accent-ink); }
.ci-insight { background: var(--surface-warm); border-color: #e4c5b5; color: var(--accent-ink); }

.voice-notes {
  padding-inline: var(--page-inset);
  background: var(--ink);
}
.voice-demo {
  background: var(--surface-blue);
  border-color: #879cad;
  border-radius: 16px;
  box-shadow: none;
}
.voice-copy h2 em { color: var(--blue); }
.voice-cta { background: var(--blue); color: var(--ink); }
.voice-cta:hover { background: #bbcee7; color: var(--ink); }
.voice-recording { background: #f9fafb; }
.voice-node, .voice-finding-idea { background: var(--surface-blue); }
.voice-finding-gap, .voice-demo[data-voice-stage="3"] .voice-node-gap { background: var(--surface-warm); }
.voice-demo[data-voice-stage="3"] .voice-phrase-gap { background: #f2dace; }
.voice-demo[data-voice-stage="2"] .voice-phrase-process,
.voice-demo[data-voice-stage="3"] .voice-phrase-process { background: #dce6f1; }

.agents-inner { max-width: none; padding-inline: var(--page-inset); }
.agent-coverage { background: var(--paper); }
.coverage-heading h2 em, .portfolio-heading h2 em, .approach-delivery h3 em { color: var(--accent-ink); }
.kaizen-mark { background: transparent; border-color: #cba994; outline-color: #e7d8ce; }
.kaizen-kanji, .kaizen-name { color: var(--accent-ink); }
.kaizen-meaning { color: var(--muted); }
.industry-feed { border-color: var(--line); }
.industry-group li { color: var(--ink); }
.industry-spark { background: var(--blue); }
.business-type svg, .business-type:nth-child(2) svg { color: var(--blue-ink); }
.approach-panel { border-color: #d1dce5; border-radius: 16px; }
.approach-people { background: var(--ink); }
.approach-delivery { background: var(--surface-blue); }
.approach-stage-icon { background: var(--surface-warm); color: var(--accent-ink); border-color: #dab29e; }
.approach-stages li:nth-child(n+3) .approach-stage-icon { background: #e4edf6; color: var(--blue-ink); border-color: #a8bed4; }
.approach-stages::before { background: #b9c9d7; }
.approach-loop { color: var(--blue-ink); border-color: #cdd9e3; }

.agent-portfolio { background: #f0f3f5; border-top: 1px solid var(--line); }
.portfolio-agent, .portfolio-agent[data-tone] {
  --card-accent: var(--blue);
  --card-tint: #f5f7f9;
  border-color: #d7e0e6;
  border-top: 3px solid var(--card-accent);
  border-radius: 12px;
  background: white;
}
.portfolio-card-top { background: white; }
.portfolio-status.is-launched { color: var(--blue-ink); background: var(--surface-blue); border-color: #c5d4e3; }
.portfolio-status.is-mvp { color: var(--accent-ink); background: var(--surface-warm); border-color: #e3cabc; }
.portfolio-impact { border-color: #e0e5e9; }
.portfolio-position-line i { background: var(--blue-ink); }

/* The earlier portrait treatment, with the current team and founder image. */
.team.agents-people { max-width: none; padding-inline: var(--page-inset); background: var(--surface); color: var(--ink); }
.person { min-width: 0; }
.person img { height: auto; }
.person span { color: var(--accent-ink); }

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  margin: 0;
  padding: 112px var(--page-inset) 104px;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}
.cta .eyebrow { color: var(--blue-ink); font-size: .875rem; letter-spacing: .1em; }
.cta h2 { font-size: clamp(2.65rem, 4.2vw, 4.25rem); line-height: 1.1; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.cta h2 em { color: var(--accent-ink); font-style: normal; }
.cta-intro { font-size: 1.125rem; line-height: 1.6; margin: 0 0 26px; max-width: 380px; color: var(--muted); }
.cta .button-light { background: var(--ink); color: white; }
.cta .button-light:hover { background: #354750; }
.cta .button > span { color: var(--blue); }
footer { padding: 34px var(--page-inset); gap: 24px; background: var(--paper); border-top: 1px solid var(--line); font-size: .875rem; }
footer p { color: var(--muted); }
footer .brand-logo { mix-blend-mode: multiply; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; text-align: left; }
.footer-brand { min-width: 0; }
.footer-brand p { margin: 14px 0 0; }
.footer-copyright { margin: 0; }
.contact-welcome { background: var(--ink); }
.contact-eyebrow { color: var(--blue); }
.contact-method span, .contact-method span:nth-child(2) { background: var(--surface-blue); }
.contact-method span:nth-child(3) { background: var(--blue); }
.lab-header, .lab-result { background: var(--surface-blue); }

/* Three independent entry points, tied together by the same improvement story. */
.celestial-ways { padding: 96px var(--page-inset) 72px; background: var(--surface-blue); border-block: 1px solid var(--line); }
.ways-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 40px; }
.ways-heading .eyebrow { color: var(--blue-ink); font-size: .875rem; letter-spacing: .08em; margin-bottom: 20px; }
.ways-heading h2 { font-family: Adelle, Georgia, serif; font-size: clamp(2.65rem, 4.8vw, 4.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; margin: 0; }
.ways-heading h2 em { font-style: normal; color: var(--blue-ink); }
.ways-heading > p { max-width: 420px; margin: 0 0 4px; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.way-card { display: flex; flex-direction: column; min-width: 0; padding: 30px 28px 20px; background: var(--surface); border: 1px solid #d3dde6; border-radius: 14px; }
.way-label { display: flex; align-items: center; gap: 12px; color: var(--blue-ink); font-size: .75rem; font-weight: 600; letter-spacing: .06em; line-height: 1.5; }
.way-label svg { width: 24px; height: 24px; flex: 0 0 24px; }
.way-card h3 { font-family: Adelle, Georgia, serif; font-size: clamp(1.8rem, 2.3vw, 2.2rem); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; margin: 26px 0 18px; }
.way-card > p { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.way-detail { margin-top: auto; padding-top: 2px; color: var(--blue-ink); font-size: .875rem; line-height: 1.6; }
.way-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; border-top: 1px solid var(--line); margin-top: 22px; padding-block: 14px 8px; font-size: 1rem; font-weight: 500; }
.way-link > span { font-size: 1.25rem; }
.way-link:hover { color: var(--accent-ink); }
.way-voice { background: #e5edf3; border-color: #c8d6e1; }
.way-agents { background: #566d7d; color: #fff; border-color: #566d7d; }
.way-agents .way-label, .way-agents .way-detail, .way-agents > p { color: #f0f5f8; }
.way-agents .way-link { border-color: #a9bac6; }
.way-agents .way-link:hover { color: #fff; text-decoration: underline; }
.way-agents .way-link:focus-visible { outline-color: #fff; }
.way-platform { background: var(--ink); color: white; border-color: var(--ink); }
.way-platform .way-label, .way-platform .way-detail { color: var(--blue); }
.way-platform > p { color: #d6e0e7; }
.way-platform .way-link { border-color: #53636e; }
.way-platform .way-link:hover { color: var(--blue); }
.way-platform .way-link:focus-visible { outline-color: var(--blue); }
.ways-together { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; padding-top: 32px; }
.ways-together strong { font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
.ways-together strong br { display: none; }
.ways-together strong br::after { content: " "; }
.ways-together p { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0; max-width: 610px; }

/* Keep intrinsic content from widening grid columns or small-screen dialogs. */
.hero-copy, .ways-heading > *, .cta-copy, .cta-action, .ci-step-copy { min-width: 0; }
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-heading h2, .person h3, .way-card h3 { overflow-wrap: anywhere; }
.person span { display: block; min-height: 2.7em; }
.person p { font-size: .875rem; color: var(--muted); }
.contact-dialog, .voice-lab { overscroll-behavior: contain; }
.contact-close, .lab-close { min-width: 44px; min-height: 44px; }
.lab-header { position: sticky; top: 0; z-index: 3; }
.lab-input-tabs button, .lab-result-tabs button, .lab-result-footer button, .lab-sample-row button { min-height: 44px; }
.voice-audience > a { min-height: 44px; }

@media (max-width: 1100px) {
  .header-inner { gap: 26px; }
  .site-header .brand-logo { width: 158px; }
  .site-header .contact-trigger { padding-inline: 16px; gap: 14px; }
  .way-card { padding: 24px 22px 18px; }
  .way-label { min-height: 36px; }
  .cta { gap: 32px; }
  .platform-demo-cta { margin-top: 26px; }
}

@media (max-width: 1000px) {
  .site-header { min-height: 82px; }
  .header-inner { min-height: 82px; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .site-header .contact-trigger { grid-column: 2; grid-row: 1; justify-self: end; margin-block: 16px; }
  main > section[id], #industries, #about { scroll-margin-top: 104px; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-copy { max-width: 740px; }
  .martini-stage { width: 100%; max-width: 620px; margin: 8px auto 0; }
  .hero-actions { flex-wrap: wrap; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways-grid { grid-template-columns: 1fr; gap: 16px; }
  .way-card { padding: 28px; }
  .way-label { min-height: 0; }
  .way-card h3 { font-size: 2rem; margin-top: 22px; }
  .way-card > p { max-width: 660px; }
  .way-card .way-detail { margin-top: 0; }
  .ways-heading, .cta { grid-template-columns: 1fr; gap: 26px; }
  .ways-heading > p { max-width: 610px; }
  .cta-intro { max-width: 520px; }
}

@media (max-width: 760px) {
  .platform-demo-cta { max-width: 460px; margin-top: 26px; }
}

@media (max-width: 700px) {
  .hero { padding-bottom: 64px; }
  .platform.content-section { padding-block: 68px; }
  .cta { padding-block: 80px; }
  .cta h2 { font-size: clamp(2.3rem, 8.3vw, 3.6rem); }
  .cta-intro { font-size: 1rem; max-width: 420px; }
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer p { margin: 0; }
  .celestial-ways { padding-block: 64px 48px; }
  .ways-heading { margin-bottom: 30px; }
  .ways-heading h2 { font-size: clamp(2.6rem, 9.5vw, 3.7rem); }
  .ways-heading > p { font-size: 1rem; }
  .ways-together { grid-template-columns: 1fr; gap: 12px; padding-top: 26px; }
  .ways-together strong br { display: block; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { max-width: 340px; margin-top: 16px; }
  .footer-copyright { font-size: .8125rem; }
  .person span { min-height: 0; }
  .kaizen-mark { width: 100%; max-width: 340px; grid-template-columns: auto minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .person-featured { grid-row: auto; }
  .team.agents-people { padding-block: 64px; }
  .team-heading h2 br, .content-section .ci-heading h2 br { display: none; }
  .team-heading > p br { display: none; }
  .platform-demo-cta strong { font-size: 1.25rem; }
  .platform-demo-cta p { font-size: 1rem; }
  .platform .ci-heading .eyebrow { font-size: .8125rem; }
  .ci-cycle { gap: 8px; padding-inline: 12px; }
  .ci-step { min-width: 0; padding-inline: 7px; }
  .ci-step strong { font-size: 1.125rem; }
  .ci-step + .ci-step::before { display: none; }
  .ci-mode-switch button { min-height: 48px; font-size: .875rem; }
  .ci-mode-switch { min-width: 0; }
  .ci-documents { grid-template-columns: 1fr; gap: 8px; }
  .ci-documents > div { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 12px; }
  .ci-documents .ci-file-icon { margin: 0; }
  .ci-documents i { position: static; margin-left: auto; }
  .ci-window-heading, .ci-map-heading, .voice-map-heading { flex-wrap: wrap; }
  .ci-window-heading { font-size: .875rem; }
  .ci-stage-shell { padding-inline: 12px; }
  .ci-return { margin-inline: 8px; }
  .ci-return span { font-size: .75rem; white-space: normal; text-align: center; width: max-content; max-width: 90%; }
  .ci-project-context { flex-wrap: wrap; font-size: .875rem; }
  .voice-map, .ci-flowchart { min-width: 0; }
  .lab-header h2 { font-size: 1.65rem; }
  .lab-input-tabs, .lab-result-tabs { gap: 6px; justify-content: space-between; }
  .lab-input-tabs button, .lab-result-tabs button { white-space: normal; text-align: left; }
  .lab-header > div { min-width: 0; }
}

@media (max-width: 480px) {
  .site-header .brand-logo { width: 128px; }
  .header-inner { gap: 0 12px; }
  .site-header .contact-trigger { min-height: 44px; padding: 10px 13px; font-size: .875rem; gap: 10px; }
  .hero .eyebrow { font-size: 1.125rem; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 3.45rem); }
  .hero-actions { flex-wrap: wrap; gap: 20px; }
  .hero-intro { font-size: 1rem; }
  .cta h2 br { display: none; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { justify-content: space-between; width: 100%; }
  .speed-note { padding-left: 0; border: 0; }
  .martini-stage { padding: 24px 16px 12px; }
  .expertise-grid { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .expertise-grid > span { padding: 14px; font-size: .875rem; }
  .expertise-grid strong, .expertise-grid small { display: block; }
  .expertise-grid strong br, .expertise-grid small br { display: none; }
  .expertise-grid small { font-size: .875rem; margin-top: 5px; line-height: 1.5; }
  .expertise-grid > span:last-child { border-color: #8397a8; }
  .mix-progress { font-size: .75rem; gap: 6px; }
  .martini-caption { font-size: .875rem; }
  .motion-toggle { position: static; min-height: 44px; margin: 6px auto 0; font-size: .875rem; }
  .way-card { padding: 25px 22px 17px; }
  .way-link { font-size: 1rem; }
  .ways-heading .eyebrow, .cta .eyebrow { font-size: .8125rem; letter-spacing: .05em; line-height: 1.7; }
  .voice-offer { align-items: stretch; flex-direction: column; }
  .voice-price { margin: 0; }
  .voice-offer .voice-cta { justify-content: space-between; }
  .person h3 { font-size: 1rem; line-height: 1.35; }
  .person span { font-size: .75rem; letter-spacing: .03em; line-height: 1.6; }
  .approach-people h3, .approach-delivery h3 { font-size: 1.9rem; }
}

@media (max-width: 360px) {
  :root { --page-gutter: 15px; }
  .site-header .brand-logo { width: 110px; }
  .header-inner { gap: 0 9px; }
  .site-header .contact-trigger { padding-inline: 10px; }
  .site-header .contact-trigger > span { display: none; }
  .way-card { padding-inline: 18px; }
  .portfolio-card-top { flex-wrap: wrap; }
  .voice-node { padding-inline: 3px; }
  .voice-node strong { font-size: .8125rem; }
  .ci-flowchart { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); }
  .ci-flow-node { font-size: .8125rem; }
  .ci-step-copy > span:last-child { display: none; }
  .ci-step { min-height: 88px; }
  .ci-step strong { font-size: 1rem; }
  .kaizen-kanji { font-size: 3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover { transform: none; }
}

/* The original, lighter portrait mosaic with the celestialvibe.ai roster. */
.team.agents-people {
  padding-block: clamp(72px, 7vw, 112px);
  background: var(--paper);
  color: var(--ink);
}
.agents-people .team-heading { align-items: end; gap: 32px; margin-bottom: 48px; }
.team-heading .eyebrow { color: var(--accent-ink); }
.team-heading h2 { color: var(--ink); }
.team-heading > p { color: var(--muted); }
.team-heading .brand-note {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: clamp(24px, 2.5vw, 36px);
  border: 1px solid #e2e5e7;
  border-bottom: 5px solid transparent;
  border-radius: 3px;
  background: linear-gradient(white, white) padding-box, var(--sunrise-gradient) border-box;
  box-shadow: 0 8px 22px #26323806;
}
.brand-note-label { margin: 0 0 16px; color: var(--muted); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; }
.brand-note-message { margin: 0; color: var(--ink); font-family: Adelle, Georgia, serif; font-size: clamp(1.55rem, 2vw, 2rem); font-weight: 400; line-height: 1.3; letter-spacing: -.025em; }
.brand-note-message span { display: block; color: var(--accent-ink); }
.team-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 44px 24px; align-items: stretch; }
.team-grid .person { min-width: 0; grid-column: span 3; grid-row: auto; }
.team-grid .person > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  background: #f3f5f7;
  filter: none;
  margin: 0;
  padding: 0;
  transition: transform .25s ease;
}
.team-grid .person > .person-caption { padding-top: 18px; text-align: left; }
.team-grid .person h3 {
  color: var(--ink);
  font-family: "Museo Sans 500", "DM Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
  min-height: 2.7em;
  margin: 0 0 6px;
  overflow-wrap: normal;
}
.team-grid .person p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.team-grid .person-featured { grid-column: span 6; grid-row: span 2; display: flex; flex-direction: column; }
.team-grid .person-featured > img { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; }
.team-grid .person-featured h3 { font-size: 1.75rem; min-height: 0; }
.team-grid .person:nth-last-child(-n+3) { grid-column: span 4; }

/* The banner glow meets the white page with a single quiet edge. */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: #ffffff4d;
  pointer-events: none;
}
.martini-stage { background: radial-gradient(ellipse at 95% 0%, #9ebadf1f, transparent 60%), var(--ink); }
.platform.content-section { background: linear-gradient(135deg, #f7faff, #edf2f7 72%, #f9f0eb); }
.cta { background: linear-gradient(120deg, #f1f5fb, #e3ecf8 65%, #f7e6de); }
.cta h2 em { color: var(--ink); }
.cta .eyebrow { color: var(--blue-ink); }
.site-footer { background: white; padding-block: 40px; }
.way-card { border-radius: 12px; }
.contact-welcome { background: radial-gradient(ellipse at 100% 100%, #9ebadf26, transparent 70%), var(--ink); }

/* One continuous wood scene, with the invitation left and the Celestial sign right. */
.cta.cta-with-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: clamp(580px, 42vw, 820px);
  background: #322b20;
  color: #fffaf3;
  padding-block: clamp(76px, 7vw, 112px);
}
.cta.cta-with-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #17130f80, #17130f24 48%, transparent 66%);
}
.cta-content { position: relative; z-index: 2; min-width: 0; max-width: 600px; }
.cta-content .eyebrow { color: #eee5d9; }
.cta-content h2, .cta-content h2 em { color: #fffaf3; }
.cta-content .cta-intro { margin-top: 28px; color: #eee5d9; max-width: 420px; }
.cta-content .button-light { background: #fffaf3; color: var(--ink); }
.cta-content .button-light:hover { background: #e7eef7; }
.cta-content .button > span { color: var(--ink); }
.cta-content .button:focus-visible { outline-color: #fffaf3; }
.cta-brand-image { position: absolute; inset: 0; z-index: 0; margin: 0; pointer-events: none; }
.cta-brand-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }

@media (max-width: 1000px) {
  .team-heading .brand-note { justify-self: start; }
  .cta.cta-with-brand {
    --wood-sign-height: clamp(260px, 52vw, 500px);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding-top: calc(var(--wood-sign-height) + 16px);
    padding-bottom: 72px;
    background-image: url("assets/celestial-wood-wide.png");
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
  }
  .cta.cta-with-brand::after { background: linear-gradient(0deg, #17130f8c, #17130f33 65%, transparent 85%); }
  .cta-brand-image {
    bottom: auto;
    height: calc(var(--wood-sign-height) + 48px);
    mask-image: linear-gradient(#000 75%, transparent);
    -webkit-mask-image: linear-gradient(#000 75%, transparent);
  }
  .cta-brand-image img { object-position: right center; }
  .cta-content { max-width: 620px; }
  .cta-content h2 { max-width: 620px; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .team-grid .person:hover img { transform: translateY(-4px); }
}
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .team-grid .person, .team-grid .person:nth-last-child(-n+3) { grid-column: span 1; }
  .team-grid .person-featured { grid-column: span 2; }
}
@media (max-width: 620px) {
  .agents-people .team-heading { margin-bottom: 32px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .team-grid .person-featured { grid-row: auto; display: block; }
  .team-grid .person-featured > img { height: auto; aspect-ratio: 6 / 7; }
  .team-grid .person h3 { font-size: 1rem; min-height: 2.7em; }
  .team-grid .person-featured h3 { font-size: 1.5rem; min-height: 0; }
  .team-grid .person p { font-size: .875rem; }
  .team-grid .person > .person-caption { padding-top: 16px; }
  .team-grid .person:last-child { grid-column: 1 / -1; width: calc((100% - 20px) / 2); justify-self: center; }
  .cta.cta-with-brand { padding-bottom: 56px; }
  .cta-content .cta-intro { margin-top: 24px; }
}
@media (max-width: 360px) {
  .team-grid { column-gap: 14px; }
  .team-grid .person h3 { overflow-wrap: anywhere; }
  .team-grid .person:last-child { width: calc((100% - 14px) / 2); }
}

/* Reference portraits use clipped windows of the unmodified team sheet. */
.team-grid .person > .team-portrait { display:block; width:100%; height:auto; aspect-ratio:6 / 7; border-radius:12px; overflow:hidden; background:#f3f5f7; padding:0; margin:0; transition:transform .25s ease; }
.team-grid .person > .team-portrait-placeholder { background:#f3f5f7; display:grid; place-items:center; color:#526b80; font-size:clamp(2rem, 4vw, 4rem); font-weight:500; letter-spacing:.04em; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .team-grid .person:hover > .team-portrait { transform:translateY(-4px); } }
@media (min-width:981px) {
  .team-grid .person:nth-last-child(-n+5) { grid-column:span 4; }
  .team-grid .person:nth-last-child(2) { grid-column:3 / span 4; }
  .team-grid .person:last-child { grid-column:7 / span 4; }
}

.team-grid .person .team-portrait-placeholder > span { font:inherit; color:inherit; letter-spacing:inherit; margin:0; }

/* Equal portraits with a short Celestial accent keep the team grid light and lively. */
.team-grid .person { position: relative; }
.team-grid .person-featured { grid-row: auto; display: block; }
.team-grid .person-featured > img { height: auto; aspect-ratio: 6 / 7; }
.team-grid .person-featured h3 { font-size: 1.25rem; min-height: 2.7em; }
.team-grid .person > .person-caption::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: var(--blue);
  transition: width .25s ease;
}
.team-grid .person:nth-child(3n + 2) > .person-caption::before { background: var(--accent); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .team-grid .person:hover > .person-caption::before { width: 46px; }
}
@media (min-width: 1001px) {
  .team-grid .person,
  .team-grid .person-featured,
  .team-grid .person:nth-last-child(-n + 5) { grid-column: span 3; }
  .team-grid .person:nth-last-child(2) { grid-column: 4 / span 3; }
  .team-grid .person:last-child { grid-column: 7 / span 3; }
}
@media (min-width: 621px) and (max-width: 1000px) {
  .team-grid .person,
  .team-grid .person-featured,
  .team-grid .person:nth-last-child(-n + 3) { grid-column: span 1; }
  .team-grid .person:last-child { grid-column: 2; }
}
@media (max-width: 620px) {
  .team-grid .person-featured { grid-column: span 1; }
  .team-grid .person-featured h3 { font-size: 1rem; min-height: 2.7em; }
  .team-grid .person:last-child { grid-column: span 1; width: auto; justify-self: stretch; }
}

/* Clearer module labels; the original three cards and glass stay in place. */
.martini-stage .expertise-grid > span { border-top: 2px solid #ff9979; }
.martini-stage .expertise-grid strong { color: #ffb59a; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.martini-stage .expertise-grid small { color: #e0e8ef; font-size: 14px; line-height: 1.55; white-space: nowrap; overflow-wrap: normal; }
.martini-stage .expertise-grid small br { display: block; }
.martini-stage .mix-map-copy { font-style: normal; white-space: nowrap; }
.mix-capsule { opacity: 0; animation: celestial-agent-one 15s linear infinite; }
.mix-capsule rect { fill: #344b5d; stroke: #b2c9e2; stroke-width: 1.25; }
.mix-capsule text { fill: #f6f9fc; text-anchor: middle; font-family: "DM Sans", sans-serif; font-size: 18px; font-weight: 500; }
.mix-capsule-two { animation-name: celestial-agent-two; }
.mix-capsule-two rect { fill: #4d4545; stroke: #ffb59a; }
.mix-capsule-three { animation-name: celestial-agent-three; }

/* Reserve enough room for three equal cards in the two-column hero. */
@media (min-width: 1181px) {
  .hero { grid-template-columns: minmax(0, 1.03fr) minmax(580px, .97fr); }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 740px; }
  .martini-stage { width: 100%; max-width: 620px; margin: 8px auto 0; }
}

/* Mobile tabs preserve the full copy without forcing it into narrow columns. */
@media (max-width: 660px) {
  .martini-stage {
    min-width: 0;
    padding: 24px 14px 12px;
  }

  .martini-stage .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    text-align: center;
    gap: 0;
    min-height: 118px;
    margin-inline: 2px;
    padding-bottom: 78px;
    border-bottom: 1px solid #465965;
  }

  .martini-stage .expertise-grid > span {
    display: block;
    min-width: 0;
    min-height: 40px;
    padding: 9px 4px 11px;
    border: 0;
    border-bottom: 2px solid #526775;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .martini-stage .expertise-grid > span[data-mix-active="true"] {
    border-bottom-color: #ff9979;
  }

  .martini-stage .expertise-grid strong {
    color: #c4d0d9;
    font-size: .9375rem;
    line-height: 1.15;
    overflow-wrap: normal;
  }

  .martini-stage .expertise-grid > span[data-mix-active="true"] strong {
    color: #ffb59a;
  }

  .martini-stage .expertise-grid small {
    position: absolute;
    left: 0;
    right: 0;
    top: 53px;
    display: block;
    margin: 0;
    color: #e0e8ef;
    font-size: .8125rem;
    line-height: 1.45;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .22s ease, transform .22s ease;
  }

  .martini-stage .expertise-grid > span[data-mix-active="true"] small {
    opacity: 1;
    transform: none;
  }

  .martini-stage .martini {
    margin-top: -10px;
  }

  .martini-stage .mix-result rect { x: 50px; width: 500px; }
  .martini-stage .result-delivery { font-size: 28px; letter-spacing: 0; }
  .martini-stage .result-everyday { font-size: 46px; }
  .martini-stage .motion-toggle {
    position: static;
    min-height: 44px;
    margin: 6px auto 0;
    font-size: .875rem;
  }
}
@media (max-width: 360px) {
  .martini-stage { padding-inline: 8px; }
}
@keyframes celestial-agent-one {
  0%, 14% { opacity: 0; transform: translate(100px, 12px); }
  18% { opacity: 1; transform: translate(110px, 32px); }
  27%, 33% { opacity: 1; transform: translate(230px, 184px); }
  39% { opacity: 1; transform: translate(232px, 180px); }
  45% { opacity: 1; transform: translate(234px, 186px); }
  51% { opacity: 1; transform: translate(232px, 192px); }
  56% { opacity: 1; transform: translate(230px, 184px); }
  61%, 100% { opacity: 0; transform: translate(255px, 202px); }
}
@keyframes celestial-agent-two {
  0%, 16% { opacity: 0; transform: translate(500px, 12px); }
  20% { opacity: 1; transform: translate(490px, 32px); }
  29%, 33% { opacity: 1; transform: translate(370px, 184px); }
  39% { opacity: 1; transform: translate(368px, 180px); }
  45% { opacity: 1; transform: translate(366px, 186px); }
  51% { opacity: 1; transform: translate(368px, 192px); }
  56% { opacity: 1; transform: translate(370px, 184px); }
  61%, 100% { opacity: 0; transform: translate(345px, 202px); }
}
@keyframes celestial-agent-three {
  0%, 1% { opacity: 0; transform: translate(300px, 12px); }
  5% { opacity: 1; transform: translate(300px, 32px); }
  18%, 33% { opacity: 1; transform: translate(300px, 255px); }
  39% { opacity: 1; transform: translate(308px, 251px); }
  45% { opacity: 1; transform: translate(300px, 247px); }
  51% { opacity: 1; transform: translate(292px, 251px); }
  56% { opacity: 1; transform: translate(300px, 255px); }
  61%, 100% { opacity: 0; transform: translate(300px, 265px); }
}
@media (max-width: 480px) { .mix-capsule text { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) {
  .mix-capsule { animation: none; opacity: 1; }
  .mix-capsule-one { transform: translate(160px, 49px); }
  .mix-capsule-two { transform: translate(300px, 49px); }
  .mix-capsule-three { transform: translate(440px, 49px); }
}
