.agents-home {
  --paper: #faf8f3;
  --ink: #242f2a;
  --soft: #526056;
  --accent: #496b55;
  --line: #dbded3;
  --surface: #fffefa;
  --fd-bg: var(--paper);
  --fd-surface: var(--surface);
  --fd-text: var(--ink);
  --fd-text-soft: var(--soft);
  --fd-text-mute: var(--soft);
  --fd-line: var(--line);
  --fd-teal: #365f4a;
  --fd-body: 'Instrument Sans', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--fd-body);
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] .agents-home {
  --paper: #151e1a;
  --ink: #f3f0e8;
  --soft: #bcc6bd;
  --accent: #a8c1a6;
  --line: #3a473d;
  --surface: #202d25;
  --fd-teal: #487458;
}
.agents-home *, .agents-home *::before, .agents-home *::after { box-sizing: inherit; }
.agents-home main { flex: 1; }
.agents-home :is(h1, h2, h3, p) { margin: 0; }
.agents-home a { color: inherit; text-decoration: none; }
.agents-home :is(button, textarea, input) { font: inherit; }
.agents-home button { cursor: pointer; }
.agents-home [hidden] { display: none !important; }
.agents-home svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.agents-home :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1260px, calc(100% - clamp(40px, 10vw, 136px))); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; top: 10px; left: 12px; padding: 10px 14px; background: var(--surface); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; border-bottom: 1px solid var(--line); }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); font-size: 14px; font-weight: 600; }
.wordmark { position: relative; font: 300 39px/1 var(--display); letter-spacing: -.073em; }
.wordmark span, .wordmark svg { color: var(--accent); }
.wordmark svg { position: absolute; left: 56%; top: -3px; width: 13px; height: 7px; stroke-width: 2.15; }
.catalogue-link { display: inline-flex; align-items: center; min-height: 44px; }
.catalogue-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.masthead .ph-nav-login { padding: 10px 21px; border-radius: 25px; background: var(--ink); color: var(--paper); }
.masthead .ph-nav-login:hover { background: var(--accent); }

.introduction { text-align: center; padding: clamp(42px, 6.2vh, 84px) 16px 0; }
.introduction h1 { font: 500 clamp(51px, 5.45vw, 85px)/.97 'Bricolage Grotesque', var(--fd-body); letter-spacing: -.044em; }
.introduction em { color: var(--accent); font: italic 300 1.12em/1.02 var(--display); letter-spacing: -.051em; }
.introduction p { margin-top: 17px; color: var(--soft); font-size: clamp(16px, 1.4vw, 20px); }
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2vw, 34px); max-width: 1080px; padding: clamp(32px, 5.3vh, 64px) 0 clamp(44px, 7.5vh, 94px); }
.agents:focus { outline: none; }
.agent-lia { --tint: #faf0e9; --edge: #e0c8b7; --tone: #865037; }
.agent-noe { --tint: #eef3e8; --edge: #c7d4bc; --tone: #486142; }
.agent-iris { --tint: #eaf1f5; --edge: #c3d3df; --tone: #426379; }
[data-theme="dark"] .agent-lia { --tint: #332a24; --edge: #5e493b; --tone: #edb891; }
[data-theme="dark"] .agent-noe { --tint: #273327; --edge: #495942; --tone: #b4d0a7; }
[data-theme="dark"] .agent-iris { --tint: #25323a; --edge: #425764; --tone: #a9cbe0; }
.agent { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; border-radius: 24px; }
.agent-person { position: relative; display: inline-flex; flex: none; justify-content: center; }
.agent-person img { display: block; width: clamp(92px, 8.5vw, 126px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--edge); }
.agent-name { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); padding: 2px 14px 3px; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); color: var(--tone); font: 600 14px/1.4 var(--fd-body); }
.agent-bubble { position: relative; display: grid; flex: 1; align-content: start; width: 100%; padding: 23px clamp(17px, 1.8vw, 27px) 20px; border: 1px solid var(--edge); border-radius: 24px; background: var(--tint); }
.agent-bubble::before { content: ''; position: absolute; top: -7px; left: calc(50% - 6px); width: 12px; height: 12px; border: solid var(--edge); border-width: 1px 0 0 1px; background: var(--tint); transform: rotate(45deg); }
.agent-action { font: 700 clamp(19px, 1.55vw, 23px)/1.18 'Bricolage Grotesque', var(--fd-body); letter-spacing: -.033em; }
.agent-message { margin-top: 8px; max-width: 29ch; color: var(--soft); font-size: 15px; line-height: 1.48; }
.agent-forward { justify-self: end; display: grid; place-items: center; width: 35px; height: 35px; margin-top: 12px; border: 1px solid var(--edge); border-radius: 50%; color: var(--tone); background: var(--surface); }
.agent-forward svg { width: 17px; }
@media (hover:hover) {
  .agent:hover .agent-bubble { border-color: var(--tone); }
  .agent:hover .agent-bubble::before { border-color: var(--tone); }
  .agent:hover .agent-forward { color: var(--surface); border-color: var(--tone); background: var(--tone); }
}
@media (prefers-reduced-motion:no-preference) {
  .agent { transition: transform .18s ease; }
  .agent:hover { transform: translateY(-3px); }
}

.search-panel { display: none; width: min(600px, calc(100% - 36px)); margin: 0 auto clamp(40px, 7vh, 86px); padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); scroll-margin-top: 16px; }
.search-panel:target { display: block; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.panel-heading img { flex: none; border-radius: 50%; }
.panel-heading h2 { font: 700 clamp(20px, 2vw, 26px)/1.15 'Bricolage Grotesque', var(--fd-body); letter-spacing: -.04em; }
.panel-heading p { color: var(--soft); font-size: 14px; }
.panel-close { margin-left: auto; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.search-panel .bl-thread { max-height: 52vh; padding: 8px 0 16px; }
.lia-project-start { margin: 0; padding: 0; border: 0; }
.lia-project-start legend { margin-bottom: 10px; padding: 0; font: 650 20px/1.3 'Bricolage Grotesque', var(--fd-body); }
.lia-project-start button { min-height: 44px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); font-weight: 600; }
.lia-project-start button + button { margin-left: 4px; }
.lia-project-start button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lia-followup-prompt, .is-conversing #lia-first-prompt, .is-conversing .lia-project-start { display: none; }
.is-conversing .lia-followup-prompt { display: inline; }
#ph-lia-inline textarea { padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
#ph-lia-inline textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-panel .bl-message > p { font-size: 15px; }
.search-panel .bl-status, .search-panel .bl-error { margin: 10px 0; }
.search-panel .bl-suggestions { padding: 8px 0; }
.search-panel .bl-form { padding: 0; border: 0; background: none; }
.search-panel .bl-form label, .manual-search summary { font: 600 15px/1.5 var(--fd-body); color: var(--ink); }
.search-panel .bl-form textarea, .city-row input { color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 16px/1.5 var(--fd-body); }
.search-panel .bl-form [type="submit"], .city-row button { display: grid; place-items: center; min-height: 46px; min-width: 46px; border: 0; border-radius: 12px; color: var(--paper); background: var(--ink); }
.search-panel .bl-form button:disabled { opacity: .5; cursor: default; }
.search-panel .bl-privacy-note { margin-top: 8px; font-size: 12px; }
.search-panel .bl-privacy-note a { text-decoration: underline; }
.manual-search { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--line); }
.manual-search summary { min-height: 44px; padding-block: 11px; cursor: pointer; }
.manual-search summary::marker { color: var(--accent); }
.manual-search fieldset { margin: 6px 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.manual-search fieldset label { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.manual-search input { accent-color: var(--accent); }
.manual-type { display: grid; gap: 4px; margin-bottom: 12px; font-weight: 600; }
.manual-type select { width: 100%; min-height: 44px; padding: 6px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 16px/1.5 var(--fd-body); }
.city-row { display: flex; flex-wrap: wrap; gap: 8px; }
.city-row input { min-width: 12ch; flex: 1; padding: 8px 12px; }
.city-row button { padding: 8px 14px; font-weight: 600; }
.ph-form-error { color: var(--fd-terracotta, #a0523c); }

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 25px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--soft); font-size: 12px; }
.site-footer > * { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer select { min-height: 36px; font-size: 12px; border-color: var(--line); border-radius: 9px; background: var(--surface); color: var(--soft); }

@media (max-width: 720px) {
  .masthead { min-height: 67px; }
  .wordmark { font-size: 34px; }
  .masthead nav { gap: 16px; font-size: 13px; }
  .masthead .ph-nav-login { padding: 8px 15px; }
  .introduction { padding-top: 40px; }
  .introduction h1 { font-size: clamp(35px, 10.7vw, 55px); }
  .introduction p { margin-top: 12px; }
  .agents { max-width: 480px; grid-template-columns: 1fr; gap: 16px; padding-block: 30px 37px; }
  .agent { flex-direction: row; gap: 15px; }
  .agent-person img { width: clamp(62px, 17.5vw, 87px); }
  .agent-name { bottom: -7px; padding: 0 10px 1px; font-size: 12px; }
  .agent-bubble { align-self: stretch; align-content: center; padding: 16px 34px 16px 16px; border-radius: 18px; min-height: 96px; }
  .agent-bubble::before { left: -6px; top: calc(50% - 5px); width: 10px; height: 10px; transform: rotate(-45deg); }
  .agent-action { font-size: 19px; }
  .agent-message { font-size: 13px; margin-top: 4px; line-height: 1.4; }
  .agent-forward { position: absolute; right: 9px; top: calc(50% - 12px); width: 23px; height: 23px; margin: 0; border: 0; background: transparent; }
  .site-footer { justify-content: center; text-align: center; }
  .site-footer > * { justify-content: center; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 28px); }
  .masthead { gap: 8px; }
  .masthead nav { gap: 10px; font-size: 12px; }
  .masthead .ph-nav-login { padding-inline: 12px; }
  .wordmark { font-size: 28px; }
  .agent { gap: 11px; }
  .agent-action { font-size: 17px; }
  .agent-bubble { padding: 12px 27px 12px 12px; }
}
