/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f5efe3;
  --bg-2:      #e9dec5;
  --paper:     #fffcf6;
  --ink:       #241c14;
  --ink-soft:  #382c1f;
  --ink-mute:  #756a5a;
  --accent:    #a8623a;
  --accent-2:  #4b5d3f;
  --gold:      #c49456;
  --line:      rgba(36, 28, 20, 0.12);
  --line-soft: rgba(36, 28, 20, 0.07);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before { content: ""; width: 1.4em; height: 1px; background: var(--accent); display: inline-block; }
em { font-style: italic; color: var(--accent); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--paper); box-shadow: 0 14px 30px -14px rgba(168, 98, 58, .65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(168, 98, 58, .75); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out), height .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(245, 239, 227, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -24px rgba(36,28,20,.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); transition: height .3s var(--ease-out); }
.nav.is-solid .brand-logo { height: 40px; filter: none; }
.brand-logo-footer { height: 38px; filter: none; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: .92rem; font-weight: 500; position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent);
  transition: right .4s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-phone { display: none; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.nav-burger { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490; background: var(--paper);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  display: flex; flex-direction: column; padding: 2rem clamp(1.25rem, 6vw, 3rem);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 1.7rem; padding-block: .6rem; border-bottom: 1px solid var(--line-soft); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(36,25,15,.55) 0%, rgba(36,25,15,.28) 32%, rgba(36,25,15,.42) 68%, rgba(36,25,15,.82) 100%);
}
.hero-inner { padding-block: clamp(3rem, 9vw, 6rem); width: 100%; }
.hero-kicker { color: var(--paper); opacity: .92; }
.hero-kicker::before { background: var(--gold); }
.hero-title {
  color: var(--paper);
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  max-width: 15ch;
  margin-block: .5rem 1.1rem;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub { color: rgba(255,251,240,.88); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 48ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; color: var(--paper); }
.hero-trust-item { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.hero-stars { color: var(--gold); letter-spacing: .05em; }
.hero-scroll {
  position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 2rem; z-index: 1;
  display: none; flex-direction: column; align-items: center; gap: .6rem; color: var(--paper); opacity: .8;
}
.hero-scroll span { writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: scrollLine 2.4s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(1); opacity: .9; } 50% { transform: scaleY(.5); opacity: .4; } }
@media (min-width: 960px) { .hero-scroll { display: flex; } }

/* =============================================================
   7. Manifesto / about
   ============================================================= */
.manifesto { padding-block: clamp(4.5rem, 10vw, 8rem); background: var(--bg); }
.manifesto-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.manifesto-num { font-family: var(--serif); font-size: 3.4rem; color: var(--accent); line-height: 1; opacity: .85; }
.manifesto-text { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-family: var(--serif); font-weight: 400; line-height: 1.32; color: var(--ink-soft); }
.manifesto-text em { color: var(--accent-2); }
.manifesto-foot { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 2.2rem; }
.manifesto-stat { display: flex; flex-direction: column; gap: .1rem; }
.manifesto-stat b { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.manifesto-stat span { font-size: .82rem; color: var(--ink-mute); }
@media (min-width: 860px) {
  .manifesto-grid { grid-template-columns: .8fr 1.6fr; gap: 3rem; }
}

/* =============================================================
   8. Marquee ticker
   ============================================================= */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-style: normal; font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   9. Services bento
   ============================================================= */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .5rem; }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; margin-top: 1rem; max-width: 54ch; }

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.bento-card {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
  isolation: isolate;
}
.bento-card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: 0 34px 60px -30px rgba(168,98,58,.45); }
.bento-media { aspect-ratio: 4 / 3; overflow: hidden; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08); transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.bento-card:hover .bento-media img { transform: scale(1.1); filter: saturate(1.2) brightness(1.05); }
.bento-body { padding: 1.5rem; }
.bento-body h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.bento-body p { color: var(--ink-mute); font-size: .94rem; }

/* =============================================================
   10. Process
   ============================================================= */
.process-wrap { display: grid; gap: 2.6rem; grid-template-columns: 1fr; align-items: center; }
.process-media { border-radius: 22px; overflow: hidden; aspect-ratio: 5/4; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-list { display: flex; flex-direction: column; gap: 1.6rem; }
.process-step { display: flex; gap: 1.2rem; align-items: flex-start; padding-block: .4rem; }
.process-step-n { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); min-width: 2.4ch; }
.process-step h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.process-step p { color: var(--ink-mute); font-size: .93rem; }
@media (min-width: 900px) { .process-wrap { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   11. Gallery
   ============================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: 18px; overflow: hidden; }
.gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item:not(:nth-child(1)) { aspect-ratio: 4/5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.1rem 1.2rem .9rem;
  background: linear-gradient(0deg, rgba(20,14,8,.78), transparent);
  color: var(--paper); font-size: .84rem; opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: none; }
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonials-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.6rem; }
.rating-badge { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.rating-badge b { font-family: var(--serif); font-size: 1.6rem; }
.rating-badge .hero-stars { color: var(--gold); }
.rating-badge small { display: block; color: var(--ink-mute); font-size: .78rem; }
.t-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.t-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.t-card .hero-stars { color: var(--gold); }
.t-card p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--ink-soft); }
.t-foot { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--ink-mute); }
.t-foot b { color: var(--ink); font-weight: 600; }
.t-source { font-size: .76rem; color: var(--ink-mute); display: flex; align-items: center; gap: .4rem; }
@media (min-width: 860px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   13. Contact
   ============================================================= */
.contact { background: var(--ink); color: var(--paper); border-radius: 28px; overflow: hidden; position: relative; }
.contact-halo { position: absolute; inset: -60% -10% -40% -10%; background: radial-gradient(45% 40% at 30% 30%, rgba(196,148,86,.35), transparent 70%); filter: blur(90px); pointer-events: none; }
.contact-grid { position: relative; display: grid; gap: 2.6rem; grid-template-columns: 1fr; padding: clamp(2.2rem, 6vw, 4rem); }
.contact-info h2 { color: var(--paper); font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.contact-info p { color: rgba(255,251,240,.78); margin-top: 1rem; max-width: 44ch; }
.contact-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .9rem; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: rgba(255,251,240,.92); }
.contact-list a:hover { color: var(--gold); }

.form-card { background: rgba(255,251,240,.06); border: 1px solid rgba(255,251,240,.16); border-radius: 20px; padding: 1.8rem; backdrop-filter: blur(10px); }
.form-row { display: grid; gap: .9rem; margin-bottom: .9rem; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .78rem; margin-bottom: .4rem; color: rgba(255,251,240,.7); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border-radius: 10px; border: 1px solid rgba(255,251,240,.2);
  background: rgba(255,251,240,.05); color: var(--paper); font: inherit;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .78rem; color: rgba(255,251,240,.68); margin-block: .8rem 1.1rem; }
.form-consent input { margin-top: .2rem; }
.form-msg { margin-top: .9rem; font-size: .86rem; padding: .7rem .9rem; border-radius: 10px; display: none; }
.form-msg.is-visible { display: block; }
.form-msg.ok { background: rgba(75,93,63,.35); border: 1px solid rgba(75,93,63,.6); }
.form-msg.err { background: rgba(168,98,58,.3); border: 1px solid rgba(168,98,58,.6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { padding-block: 3.5rem 2.2rem; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; align-items: flex-start; }
.footer-brand p { color: var(--ink-mute); font-size: .88rem; margin-top: .5rem; max-width: 34ch; }
.footer-links { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }
.footer-col a, .footer-col span { display: block; font-size: .9rem; margin-bottom: .55rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .78rem; color: var(--ink-mute); }
.footer-bottom a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   15. Custom cursor
   ============================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 30px; height: 30px; margin: -15px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 9998; mix-blend-mode: multiply; transition: transform .18s var(--ease-out), width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out); opacity: 0; }
.cursor-ring.is-ready { opacity: 1; }
.cursor-ring.is-hover { width: 54px; height: 54px; margin: -27px; background: rgba(168,98,58,.12); }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* =============================================================
   16. AI assistant widget
   ============================================================= */
.ai-fab {
  position: fixed; right: clamp(1rem, 4vw, 1.8rem); bottom: clamp(1rem, 4vw, 1.8rem); z-index: 700;
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px -12px rgba(168,98,58,.6);
  transition: transform .4s var(--ease-bounce);
}
.ai-fab:hover { transform: scale(1.07); }
.ai-fab svg { width: 26px; height: 26px; }
.ai-fab-badge { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--bg); }

.ai-panel {
  position: fixed; right: clamp(.7rem, 4vw, 1.8rem); bottom: clamp(4.6rem, 10vw, 6.2rem); z-index: 700;
  width: min(380px, calc(100vw - 1.4rem)); max-height: min(600px, 74vh);
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 40px 80px -30px rgba(36,28,20,.5);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.ai-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.ai-head { background: var(--ink); color: var(--paper); padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.ai-head-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; }
.ai-head b { display: block; font-size: .96rem; }
.ai-head small { color: rgba(255,251,240,.68); font-size: .75rem; }
.ai-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ai-close:hover { background: rgba(255,251,240,.12); }
.ai-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; background: var(--bg); }
.ai-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.ai-msg.bot { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: var(--accent); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.typing { display: flex; gap: .3rem; align-items: center; padding-block: .9rem; }
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: aiDot 1.2s ease-in-out infinite; }
.ai-dot:nth-child(2) { animation-delay: .15s; } .ai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-suggest { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem 1rem; }
.ai-chip { font-size: .78rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); }
.ai-chip:hover { border-color: var(--accent); color: var(--accent); }
.ai-input-row { display: flex; gap: .6rem; padding: .9rem; border-top: 1px solid var(--line); background: var(--paper); }
.ai-input-row input { flex: 1; padding: .75rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .88rem; }
.ai-input-row input:focus { outline: none; border-color: var(--accent); }
.ai-send { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--paper); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-send:disabled { opacity: .5; }
.ai-send svg { width: 18px; height: 18px; }

/* =============================================================
   17. Credits page
   ============================================================= */
.page-credits { padding-top: calc(var(--nav-h) + 2rem); }
.credits-list li { padding-block: .9rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-mute); }
.credits-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   18. Reduced motion — only truly intrusive effects
   ============================================================= */
/* Nothing here is autoplay video, particles or big parallax, so the
   marquee, count-ups and hover effects keep running (see gotcha A.2). */
