/* ==========================================================================
   Lahaina Gelato — CONCEPT B
   Palette sampled from the shop's own storefront photo:
   turquoise wall #6DCFD5, neon sign blue #60CAFA, gelato case red #B52827,
   plus pineapple yellow and coral pink from the printed menu board.
   Bright grounds only. Every token lives in :root.
   ========================================================================== */

:root {
  color-scheme: only light;

  --white:      #FFFFFF;
  --cream:      #FFFCF4;
  --cream-2:    #FFF6E4;

  --turq:       #6DCFD5;
  --turq-soft:  #D8F3F5;
  --turq-pale:  #EDFAFB;
  --turq-deep:  #14717F;

  --pine:       #FFC93C;
  --pine-soft:  #FFEEC0;
  --pine-deep:  #9C6B05;

  --coral:      #FF6E8A;
  --coral-soft: #FFDFE5;
  --coral-deep: #C0325A;

  --ink:        #1F2A30;
  --ink-soft:   #5A6670;
  --ink-faint:  #8E99A2;

  --display: "Baloo 2", "Gabarito", "Trebuchet MS", Helvetica, Arial, sans-serif;
  --body: "Nunito", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-micro: .75rem;
  --fs-sm:    .95rem;
  --fs-base:  1.075rem;
  --fs-lg:    1.2rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   clamp(2rem, 4.4vw, 3.2rem);
  --fs-3xl:   clamp(2.6rem, 7vw, 5rem);

  --s1: .5rem; --s2: .75rem; --s3: 1rem; --s4: 1.5rem;
  --s5: 2rem;  --s6: 3rem;   --s7: 4.5rem;

  --measure: 56ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --wrap: 1180px;
  --round: 26px;
  --round-lg: 40px;
  --bar-h: 72px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 800; line-height: 1.05;
  letter-spacing: -.015em; text-wrap: balance; margin: 0;
}
p, figure, dl, dd, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turq-deep); outline-offset: 3px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s3); top: -4rem; z-index: 100;
  background: var(--turq-deep); color: #fff; padding: var(--s2) var(--s4);
  border-radius: 0 0 14px 14px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 0; }

.eyebrow {
  font-family: var(--body); font-size: var(--fs-micro); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--s3);
  color: var(--coral-deep);
}

/* price capsule, carried over from the shop's printed menu board */
.pill {
  display: inline-flex; align-items: baseline; gap: .5em;
  background: var(--ink); color: #fff; border-radius: 999px; padding: .42em 1.05em;
  font-family: var(--display); font-weight: 700; font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill small {
  font-family: var(--body); font-weight: 700; font-size: .7em;
  letter-spacing: .09em; text-transform: uppercase; color: #B7C2C9;
}
.pill--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(31,42,48,.14); }
.pill--light small { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--display); font-size: var(--fs-sm); font-weight: 800;
  padding: .95em 1.9em; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 5px 0 0 var(--coral-deep); }
.btn--coral:hover { background: #FF5C7C; box-shadow: 0 8px 0 0 var(--coral-deep); }
.btn--pine { background: var(--pine); color: var(--ink); box-shadow: 0 5px 0 0 #D9A115; }
.btn--pine:hover { background: #FFBE18; box-shadow: 0 8px 0 0 #D9A115; }
.btn--turq { background: var(--turq); color: var(--ink); box-shadow: 0 5px 0 0 var(--turq-deep); }
.btn--turq:hover { background: #55C6CD; box-shadow: 0 8px 0 0 var(--turq-deep); }
.btn--sky { background: #1877F2; color: #fff; box-shadow: 0 5px 0 0 #0E55B5; }
.btn--sky:hover { background: #2D88FF; box-shadow: 0 8px 0 0 #0E55B5; }
.btn--white { background: var(--white); color: var(--turq-deep); box-shadow: 0 5px 0 0 rgba(20,113,127,.35); }
.btn--white:hover { background: var(--pine); color: var(--ink); }

/* ------------------------------------------------------------ wave rule */
.wave { display: block; width: 100%; height: clamp(30px, 4.4vw, 62px); }
.wave svg { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); box-shadow: 0 2px 0 rgba(31,42,48,.06); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 80px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand-logo { width: 58px; height: 58px; flex: none; display: block; object-fit: contain; }
.brand-fallback { display: none; width: 58px; height: 58px; flex: none; }
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .brand-fallback { display: block; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.34rem;
  line-height: 1; letter-spacing: -.01em; color: var(--turq-deep);
}
.brand-sub {
  display: block; font-family: var(--body); font-size: .6rem; font-weight: 800;
  letter-spacing: .24em; text-transform: uppercase; color: var(--coral-deep); margin-top: .45em;
}
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  font-family: var(--display); font-size: var(--fs-sm); font-weight: 700;
  text-decoration: none; padding: .3em .1em; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--coral); }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .site-header .wrap { min-height: 66px; }
  .brand-logo, .brand-fallback { width: 44px; height: 44px; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  /* sunny wash: warm light pouring in from the top */
  background:
    radial-gradient(120% 88% at 50% -14%, #FFF3C4 0%, #FFF7DC 34%, var(--cream) 68%),
    var(--cream);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(var(--s5), 5vw, var(--s7)) clamp(var(--s6), 6vw, var(--s7)); text-align: center; }

/* soft colour haze behind the gelato, so the shapes sit in light not on top of it */
.hero::before {
  content: ""; position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(38% 46% at 6% 22%, rgba(109,207,213,.30), transparent 70%),
    radial-gradient(34% 42% at 95% 26%, rgba(255,110,138,.24), transparent 70%),
    radial-gradient(32% 40% at 88% 84%, rgba(255,201,60,.30), transparent 70%),
    radial-gradient(30% 38% at 10% 86%, rgba(255,201,60,.24), transparent 70%);
  pointer-events: none;
}

/* hero type and badge */
.hero-title { display: grid; justify-items: center; gap: var(--s3); width: max-content; max-width: 100%; }
.hero-badge { width: clamp(80px, 8vw, 112px); height: auto; display: block; }

.wordmark {
  font-family: var(--display); font-weight: 800;
  font-size: var(--fs-3xl); line-height: .92; letter-spacing: -.02em;
  margin: 0;
}
.wordmark span { display: block; }
.wordmark .w1 { color: var(--turq-deep); }
.wordmark .w2 { color: var(--coral-deep); }

.hero-tag {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); color: var(--ink); margin: 0;
}
.hero-lede { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-where {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.hero-where svg { width: 16px; height: 16px; color: var(--coral); flex: none; }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }

/* photo-led hero */
.hero .wrap {
  display: grid; gap: var(--s5); align-items: center; text-align: left;
}
@media (min-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.hero-copy { display: grid; gap: var(--s4); justify-items: start; }
.hero-photo {
  border-radius: var(--round-lg); overflow: hidden;
  box-shadow: 0 20px 0 -8px var(--turq-soft), 0 34px 64px -30px rgba(20,113,127,.55);
}
.hero-photo img { display: block; width: 100%; height: auto; }

@media (max-width: 919px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s4); text-align: center; }
  .hero-copy { display: contents; }
  .hero-title { order: 1; justify-self: center; }
  .hero-tag  { order: 3; }
  .hero-photo { order: 4; }
  .hero-lede { order: 5; }
  .hero-actions { order: 6; width: 100%; justify-content: center; }
  .hero-where { order: 7; justify-self: center; }
  .hero-lede { margin-inline: auto; }
}

/* --------------------------------------------------------------- ticker */
.ticker { background: var(--turq); color: var(--ink); overflow: hidden; padding: .85rem 0; }
.ticker-track { display: flex; width: max-content; animation: roll 46s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: .9em;
  padding-inline: clamp(1rem, 2.6vw, 2rem);
  font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* --------------------------------------------------------------- treats */
.treats { background: var(--white); padding-block: clamp(var(--s6), 6vw, var(--s7)); }
.section-head { text-align: center; max-width: 44ch; margin: 0 auto var(--s6); }
.section-head h2 { font-size: var(--fs-2xl); margin-bottom: var(--s2); }
.section-head p { color: var(--ink-soft); }

.cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s3) var(--s3) var(--s5); border-radius: var(--round-lg);
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.card-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 22px; margin-bottom: var(--s3);
}
.card h3, .card p, .card .card-pills { padding-inline: var(--s2); }
.card:nth-child(1) { background: var(--turq-soft); }
.card:nth-child(2) { background: var(--coral-soft); }
.card:nth-child(3) { background: var(--pine-soft); }
.card:hover { transform: translateY(-8px) rotate(-.7deg); }
.card h3 { font-size: var(--fs-xl); }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.card-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: var(--s3); }

/* ------------------------------------------------------------ storefront */
.shop { background: var(--turq-pale); padding-block: clamp(var(--s6), 6vw, var(--s7)); }
.shop .wrap { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 920px) { .shop .wrap { grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }
.shop-photo {
  position: relative; border-radius: var(--round-lg); overflow: hidden;
  background: var(--turq-soft);
  box-shadow: 0 18px 0 -8px var(--turq-soft), 0 30px 60px -30px rgba(20,113,127,.55);
}
.shop-photo img { display: block; width: 100%; height: auto; }
.shop-photo figcaption {
  padding: var(--s3) var(--s4); background: var(--white);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.shop h2 { font-size: var(--fs-2xl); margin-bottom: var(--s3); }
.shop-copy p { color: var(--ink-soft); max-width: var(--measure); }
.shop-facts { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.fact { display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); align-items: start; }
.fact svg { width: 22px; height: 22px; color: var(--coral); margin-top: 4px; }
.fact dt {
  font-size: var(--fs-micro); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .2em;
}
.fact dd { font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); }
.fact dd small { display: block; font-family: var(--body); font-weight: 400; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .2em; }
.shop-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------------------------------------------------------------- story */
.story { background: var(--cream-2); padding-block: clamp(var(--s6), 6vw, var(--s7)); }
.story .wrap { max-width: 780px; text-align: center; }
.story h2 { font-size: var(--fs-2xl); margin-bottom: var(--s4); }
.story-pull {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3;
  color: var(--turq-deep); margin-bottom: var(--s4);
}
.story p { color: var(--ink-soft); }
.story p + p { margin-top: var(--s3); }

/* --------------------------------------------------------------- social */
.social { background: var(--white); padding-block: clamp(var(--s6), 6vw, var(--s7)); text-align: center; }
.social h2 { font-size: var(--fs-2xl); margin-bottom: var(--s2); }
.social p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto var(--s5); }
.social-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.social p.social-note {
  margin: var(--s6) auto 0; font-size: var(--fs-sm);
  color: var(--ink-faint); max-width: 52ch;
}

/* ---------------------------------------------------------------- visit */
.visit { background: var(--turq); color: var(--ink); padding-block: clamp(var(--s6), 6vw, var(--s7)); }
.visit .wrap { display: grid; gap: var(--s5); }
@media (min-width: 920px) { .visit .wrap { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,5vw,4.5rem); align-items: center; } }
.visit .eyebrow { color: var(--turq-deep); }
.visit h2 { font-size: var(--fs-2xl); margin-bottom: var(--s4); }
.map { border-radius: var(--round); overflow: hidden; background: var(--white); box-shadow: 0 22px 50px -26px rgba(20,113,127,.75); }
.map svg { display: block; width: 100%; height: auto; }
.map-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s3) var(--s4); background: var(--white); font-size: var(--fs-sm); color: var(--ink-soft);
}
.map-foot a { color: var(--turq-deep); font-weight: 800; }

/* ------------------------------------------------------------ menu page */
.menu-hero { background: var(--cream); position: relative; overflow: hidden; text-align: center; }
.menu-hero .wrap { position: relative; z-index: 2; padding-block: clamp(var(--s5), 5vw, var(--s7)); }
.menu-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: var(--s3); color: var(--turq-deep); }
.menu-hero p { color: var(--ink-soft); max-width: var(--measure); margin-inline: auto; font-size: var(--fs-lg); }

.board-grid { display: grid; gap: var(--s4); padding-block: clamp(var(--s6), 5vw, var(--s7)); }
@media (min-width: 900px) { .board-grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); align-items: start; } }
.course { border-radius: var(--round-lg); padding: var(--s5); background: var(--white); }
.course:nth-child(6n+1) { background: var(--turq-soft); }
.course:nth-child(6n+2) { background: var(--coral-soft); }
.course:nth-child(6n+3) { background: var(--pine-soft); }
.course:nth-child(6n+4) { background: var(--pine-soft); }
.course:nth-child(6n+5) { background: var(--turq-soft); }
.course:nth-child(6n+6) { background: var(--coral-soft); }
.course-head { margin-bottom: var(--s4); }
.course-head h2 { font-size: var(--fs-xl); }
.course-head p {
  font-family: var(--body); font-size: var(--fs-micro); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--turq-deep); margin-top: .5em;
}
.rows { list-style: none; padding: 0; display: grid; gap: .2rem; }
.rows li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s3);
  padding: .55rem 0; border-bottom: 1px solid rgba(31,42,48,.12);
}
.rows li:last-child { border-bottom: 0; }
.rows .name { font-family: var(--display); font-weight: 700; }
.rows .name small { display: block; font-family: var(--body); font-weight: 400; font-size: var(--fs-sm); color: var(--ink-soft); }
.chiprow { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: var(--s4); }
.note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--ink-soft); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--turq-deep); color: rgba(255,255,255,.85); padding: var(--s7) 0 var(--s5); margin-bottom: var(--bar-h); }
@media (min-width: 901px) { .site-footer { margin-bottom: 0; } }
.site-footer a { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--pine); }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s6); } }
.footer-blurb { margin-top: var(--s3); font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h3 {
  font-family: var(--body); font-size: var(--fs-micro); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: var(--s3);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.footer-bottom {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.24);
  display: grid; gap: var(--s2); font-size: var(--fs-micro); color: rgba(255,255,255,.62); line-height: 1.65;
}

/* ----------------------------------------------------------- mobile bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--white);
  box-shadow: 0 -2px 12px rgba(31,42,48,.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1rem .5rem; font-family: var(--display); font-size: var(--fs-sm);
  font-weight: 800; text-decoration: none;
}
.actionbar a:first-child { background: var(--pine); color: var(--ink); }
.actionbar a:last-child { background: var(--coral); color: #fff; }
.actionbar svg { width: 17px; height: 17px; }
@media (min-width: 901px) { .actionbar { display: none; } }

/* ============================================== OPTIONAL: demo assistant */
.chat-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom));
  z-index: 46; display: inline-flex; align-items: center; gap: .5em;
  padding: .9em 1.35em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--coral); color: #fff;
  font-family: var(--display); font-size: var(--fs-sm); font-weight: 800;
  box-shadow: 0 5px 0 0 var(--coral-deep);
  transition: background-color .18s ease, transform .18s ease;
}
.chat-fab:hover { background: #FF5C7C; transform: translateY(-2px); }
.chat-fab svg { width: 18px; height: 18px; }
@media (min-width: 901px) { .chat-fab { bottom: clamp(1rem, 3vw, 1.75rem); } }

.chat-panel {
  position: fixed; z-index: 47;
  right: clamp(1rem, 3vw, 1.75rem); left: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(var(--bar-h) + 4.8rem + env(safe-area-inset-bottom));
  max-width: 362px; margin-left: auto;
  display: flex; flex-direction: column; background: var(--white); color: var(--ink);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 26px 60px -22px rgba(31,42,48,.5);
}
.chat-panel[hidden] { display: none; }
@media (min-width: 901px) { .chat-panel { bottom: calc(clamp(1rem, 3vw, 1.75rem) + 3.9rem); } }
.chat-head { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s4); background: var(--turq); color: var(--ink); }
.chat-title { font-family: var(--display); font-size: 1.14rem; font-weight: 800; line-height: 1.1; }
.chat-badge { margin-top: .4em; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--turq-deep); }
.chat-close { margin-left: auto; background: transparent; border: 0; cursor: pointer; color: var(--turq-deep); padding: .2em; line-height: 0; border-radius: 8px; }
.chat-close svg { width: 20px; height: 20px; }
.chat-log { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); max-height: 15rem; overflow-y: auto; background: var(--cream); }
.chat-msg { max-width: 88%; padding: .62rem .9rem; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.5; }
.chat-msg--bot { background: var(--white); border-bottom-left-radius: 6px; box-shadow: 0 1px 3px rgba(31,42,48,.1); }
.chat-msg--me { background: var(--coral); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.chat-link { display: inline-block; margin-top: .4em; font-weight: 800; color: var(--turq-deep); }
.chat-typing { display: flex; gap: 4px; align-items: center; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: var(--s3) var(--s4) var(--s2); }
.chat-chips button {
  background: var(--pine-soft); border: 0; border-radius: 999px;
  padding: .45em .95em; font-family: var(--display); font-size: var(--fs-micro); font-weight: 800;
  color: var(--ink); cursor: pointer; transition: background-color .16s ease;
}
.chat-chips button:hover { background: var(--pine); }
.chat-foot { padding: 0 var(--s4) var(--s3); font-size: .68rem; line-height: 1.5; color: var(--ink-faint); }
.chat-form { display:flex; gap:.5rem; padding:.75rem 1rem; border-top:1px solid rgba(0,0,0,.08); background:#fff; }
.chat-form input { min-width:0; flex:1; border:1px solid rgba(0,0,0,.18); border-radius:999px; padding:.7rem .9rem; font:inherit; }
.chat-form input:focus { outline:3px solid rgba(38,185,188,.24); border-color:var(--turq-deep); }
.chat-form button { border:0; border-radius:999px; padding:.7rem 1rem; background:var(--coral); color:#fff; font:700 .9rem/1 var(--body); cursor:pointer; }

/* -------------------------------------------------------------- gallery */
.gallery { background: var(--cream-2); padding-block: clamp(var(--s6), 6vw, var(--s7)); }
.gallery-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery-grid img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--round-lg);
  box-shadow: 0 14px 0 -6px var(--white), 0 26px 46px -26px rgba(31,42,48,.5);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.gallery-grid img:hover { transform: translateY(-8px) rotate(-.8deg); }
