:root {
  --ink: #123630;
  --ink-soft: #41665e;
  --paper: #f8f6f0;
  --sea: #5f9b98;
  --sea-deep: #28746f;
  --sand: #eee1c9;
  --sun: #f1c868;
  --coral: #cd765d;
  --line: rgba(18, 54, 48, .16);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px); background: #fffdf9; border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 800; letter-spacing: -.035em; font-size: 1.07rem; }
.site-header nav { display: flex; gap: clamp(12px, 3vw, 30px); color: var(--ink-soft); font-size: .92rem; }
.site-header nav a:hover { color: var(--sea-deep); }

.city-page { min-height: calc(100vh - 68px); padding-bottom: 104px; }
.city-masthead {
  max-width: 1260px; margin: auto; padding: 22px clamp(20px, 5vw, 70px); display: flex;
  justify-content: space-between; align-items: center; color: var(--ink-soft);
}
.city-name { margin: 0; letter-spacing: .19em; font-size: .73rem; font-weight: 800; }
.masthead-actions { display: flex; gap: 22px; align-items: center; font-size: .88rem; }
.search-button { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 8px 15px; color: var(--ink); }
.city-hero {
  min-height: 460px; position: relative; overflow: hidden; padding: clamp(54px, 8vw, 108px) clamp(20px, 10vw, 170px);
  background: linear-gradient(115deg, #e1f0ed 0%, #cbe1db 63%, #93bfba 100%);
}
.city-hero-copy { max-width: 650px; position: relative; z-index: 1; }
.kicker, .panel-overline { color: var(--sea-deep); letter-spacing: .13em; font-size: .72rem; font-weight: 800; margin: 0 0 12px; }
.city-hero h1 { max-width: 620px; font-size: clamp(2.45rem, 6vw, 5.2rem); letter-spacing: -.068em; line-height: .96; margin: 0; }
.city-hero p:not(.kicker) { max-width: 490px; font-size: 1.06rem; line-height: 1.6; margin: 26px 0 30px; color: #285149; }
.city-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.primary-action, .secondary-action { padding: 12px 17px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.primary-action { color: white; background: var(--ink); }
.secondary-action { border: 1px solid rgba(18, 54, 48, .35); }
.hero-shape { position: absolute; right: 0; top: 0; height: 100%; width: min(49vw, 650px); overflow: hidden; opacity: .87; }
.sun { position: absolute; border-radius: 50%; width: 270px; height: 270px; background: var(--sun); top: 72px; right: 23%; }
.shore { position: absolute; width: 140%; height: 220px; background: #78aaa6; border-radius: 50% 50% 0 0; left: -30%; bottom: -110px; transform: rotate(-7deg); }
.shore-two { background: #3c867f; bottom: -154px; transform: rotate(6deg); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: -46px auto 0; padding: 0 24px; position: relative; z-index: 1; }
.service-grid article { padding: 28px; background: #fffdf9; box-shadow: 0 14px 38px rgba(31, 75, 68, .1); border-radius: 4px; }
.service-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--ink); font-weight: 800; }
.service-grid h2 { margin: 18px 0 7px; font-size: 1.04rem; }
.service-grid p { color: var(--ink-soft); font-size: .91rem; line-height: 1.5; margin: 0; }

.prototype-note {
  position: fixed; bottom: 16px; left: 16px; z-index: 10; padding: 9px 12px; max-width: 260px;
  background: rgba(255,253,249,.9); backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(18,54,48,.12);
  border: 1px solid rgba(18,54,48,.1); border-radius: 8px; color: var(--ink-soft); font-size: .7rem; line-height: 1.4;
}
.prototype-note strong { display: block; color: var(--ink); font-size: .75rem; }

.wayfinder { position: fixed; right: clamp(16px, 2.8vw, 32px); bottom: 20px; z-index: 20; }
.guide-dock { display: grid; justify-items: end; }
.guide-launch {
  border: 0; background: transparent; position: relative; width: 160px; padding: 0; cursor: pointer;
  transition: transform .25s ease;
}
.guide-launch:hover { transform: translateY(-4px); }
.guide-launch img { position: relative; z-index: 2; display: block; width: 126px; margin-left: auto; filter: drop-shadow(0 14px 15px rgba(18,54,48,.18)); }
.help-bubble {
  position: absolute; z-index: 4; right: 98px; top: 13px; width: 136px; padding: 10px 12px; border-radius: 14px 14px 3px 14px;
  background: var(--ink); color: white; font-weight: 700; text-align: left; font-size: .81rem; line-height: 1.22; box-shadow: 0 10px 22px rgba(18,54,48,.18);
}
.beam { position: absolute; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.guide-dock .beam {
  z-index: 0; right: 2px; top: 19px; width: 166px; height: 60px; transform-origin: 90% 50%;
  clip-path: polygon(100% 40%, 100% 60%, 0 100%, 0 0); background: linear-gradient(90deg, rgba(255,245,188,0), rgba(255,248,189,.7));
}
.wayfinder-panel {
  display: none; width: min(390px, calc(100vw - 32px)); overflow: hidden; border-radius: 18px; background: #fffdf9;
  box-shadow: 0 24px 70px rgba(18,54,48,.24); border: 1px solid rgba(18,54,48,.12);
}
.wayfinder[data-state="open"] .wayfinder-panel,
.wayfinder[data-state="listening"] .wayfinder-panel,
.wayfinder[data-state="thinking"] .wayfinder-panel,
.wayfinder[data-state="answer"] .wayfinder-panel { display: block; }
.wayfinder:not([data-state="closed"]) .guide-dock { display: none; }
.panel-header { display: flex; justify-content: space-between; padding: 18px 19px 15px; background: linear-gradient(135deg, #e3f1ee, #cee4df); }
.panel-header h2 { margin: 0; font-size: 1.27rem; letter-spacing: -.04em; }
.panel-header p:not(.panel-overline) { margin: 2px 0 0; color: var(--ink-soft); font-size: .87rem; }
.panel-overline { margin-bottom: 6px; font-size: .61rem; }
.icon-button { border: 0; background: transparent; color: var(--ink-soft); font-size: 1.85rem; line-height: 1; padding: 0 2px; align-self: start; }
.guide-stage { height: 126px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 4px; padding: 5px 22px; background: #f5f1e8; border-bottom: 1px solid var(--line); }
.guide-stage img { width: 105px; z-index: 2; transform-origin: 52% 65%; transition: transform .32s ease; }
.guide-stage p { position: relative; z-index: 2; max-width: 190px; margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.35; }
.beam-stage {
  z-index: 1; left: 12px; bottom: 12px; width: 226px; height: 105px; transform-origin: 37% 72%;
  clip-path: polygon(0 50%, 0 58%, 100% 100%, 100% 0); background: linear-gradient(90deg, rgba(245,219,113,.42), rgba(255,245,184,0));
}
.demo-messages { min-height: 107px; max-height: 225px; overflow-y: auto; padding: 16px 18px 7px; background: #fffdf9; }
.message { max-width: 92%; padding: 10px 12px; margin-bottom: 8px; font-size: .84rem; line-height: 1.42; border-radius: 12px; }
.ty-message { background: #e4f0ed; color: var(--ink); border-bottom-left-radius: 3px; }
.user-message { margin-left: auto; background: var(--ink); color: white; border-bottom-right-radius: 3px; }
.wayfinder-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.wayfinder-form textarea { min-width: 0; flex: 1; min-height: 43px; max-height: 90px; resize: vertical; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); outline-color: var(--sea-deep); }
.wayfinder-form button { min-height: 43px; border: 0; padding: 0 13px; border-radius: 9px; color: white; background: var(--ink); font-weight: 700; }
.motion-note { min-height: 38px; margin: 0; padding: 5px 14px 12px; color: var(--ink-soft); font-size: .68rem; line-height: 1.35; }

.wayfinder[data-state="listening"] .guide-stage img { transform: rotate(-5deg) translate(5px, -1px); }
.wayfinder[data-state="listening"] .guide-stage p::before { content: "Listening"; display: block; color: var(--sea-deep); font-weight: 800; font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.wayfinder[data-state="thinking"] .beam { opacity: 1; }
.wayfinder[data-state="thinking"] .guide-stage img { animation: thinking-bob 1.2s ease-in-out infinite; }
.wayfinder[data-state="thinking"] .beam-stage { animation: sweep 1.8s ease-in-out infinite; }
.wayfinder[data-state="thinking"] .guide-dock .beam { animation: sweep 1.8s ease-in-out infinite; }
.wayfinder[data-state="answer"] .guide-stage img { transform: translateY(-2px) rotate(2deg); }
@keyframes sweep { 0%,100% { transform: rotate(-13deg); opacity: .33; } 50% { transform: rotate(14deg); opacity: .86; } }
@keyframes thinking-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }

.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 720px) {
  .site-header nav a:first-child { display: none; }
  .masthead-actions a { display: none; }
  .city-hero { min-height: 455px; }
  .hero-shape { width: 100%; opacity: .43; }
  .service-grid { grid-template-columns: 1fr; margin-top: -22px; padding-bottom: 58px; }
  .service-grid article:not(:first-child) { display: none; }
  .prototype-note { display: none; }
  .wayfinder { bottom: 12px; right: 12px; }
  .guide-launch { width: 136px; }
  .guide-launch img { width: 109px; }
  .help-bubble { right: 80px; top: 9px; width: 127px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .wayfinder[data-state="thinking"] .beam { opacity: 0; }
}