/* ============================================================
   Northbridge — Business Consulting Template
   Palette: navy #0d1b2e / gold #e8b64c / paper #f7f5f0
   ============================================================ */
:root {
  --navy: #0d1b2e;
  --navy-2: #12233c;
  --navy-3: #1b3557;
  --gold: #e8b64c;
  --gold-dark: #c99a2e;
  --paper: #f7f5f0;
  --ink: #22303f;
  --muted: #5f6d7d;
  --line: #e4dfd4;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(13, 27, 46, .10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: .8rem;
}
.eyebrow-light { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 1.1rem 0 1.6rem; }
.accent { color: var(--gold-dark); font-style: italic; }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f0c765; box-shadow: 0 10px 24px rgba(232, 182, 76, .35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: var(--navy); color: #9db1cc; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; gap: 1rem; }
.topbar-contacts { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy);
  color: var(--gold); display: grid; place-items: center; font-size: 1.1rem;
}
.brand-text em { color: var(--gold-dark); font-style: normal; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5rem 0 5.5rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #b8c6da; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; color: #9db1cc; font-size: .88rem; }
.hero-badges strong { display: block; color: var(--gold); font-size: 1.25rem; font-family: var(--font-display); }
.hero-art { position: relative; }
.chart-svg { border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.float-card {
  position: absolute; background: #fff; color: var(--navy); border-radius: 12px;
  padding: .7rem 1.1rem; box-shadow: var(--shadow); font-size: .8rem; line-height: 1.3;
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.15rem; font-family: var(--font-display); color: var(--gold-dark); }
.float-card-a { top: -18px; right: -10px; }
.float-card-b { bottom: -18px; left: -14px; animation-delay: 2.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Stats */
.stats { background: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.2rem 0; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--navy); display: block; }
.stat-label { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(13,27,46,.75); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head p:last-child { color: var(--muted); margin-top: .7rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-copy h2 { margin-bottom: 1rem; }
.split-copy > p { color: var(--muted); margin-bottom: 1.4rem; }
.checklist { list-style: none; margin-bottom: 1.8rem; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .7rem; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--gold);
  color: var(--navy); font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}

/* About tiles */
.about-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.tile {
  border-radius: var(--radius); padding: 1.6rem 1.3rem; color: #fff;
  min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem;
  box-shadow: var(--shadow);
}
.tile span { font-size: 1.9rem; }
.tile p { font-weight: 600; font-size: .95rem; }
.tile-a { background: linear-gradient(140deg, #1b3557, #0d1b2e); }
.tile-b { background: linear-gradient(140deg, #c99a2e, #e8b64c); color: var(--navy); margin-top: 1.6rem; }
.tile-c { background: linear-gradient(140deg, #33465e, #22303f); margin-top: -1.6rem; }
.tile-d { background: linear-gradient(140deg, #e8b64c, #b07f1a); color: var(--navy); }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: transform .2s ease, box-shadow .2s ease;
}
.section-alt .card { background: var(--paper); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--navy);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: .9rem; color: var(--gold-dark); }
.card-link:hover { text-decoration: underline; }

/* Case studies */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.work-thumb {
  height: 150px; border-radius: var(--radius); margin-bottom: 1rem;
  display: flex; align-items: flex-end; padding: 1rem;
}
.work-thumb span {
  background: rgba(255,255,255,.92); color: var(--navy); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
}
.wt-a { background: linear-gradient(140deg, #1b3557, #3d5a80); }
.wt-b { background: linear-gradient(140deg, #c99a2e, #e8b64c); }
.wt-c { background: linear-gradient(140deg, #22303f, #5f6d7d); }
.wt-d { background: linear-gradient(140deg, #0d1b2e, #1b3557); }
.work-item h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.work-item p { color: var(--muted); font-size: .88rem; }

/* Quote band */
.quote-band { background: var(--navy); color: #fff; text-align: center; }
.quote-slider { position: relative; max-width: 760px; margin: 0 auto; min-height: 180px; }
.quote { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.quote.is-active { opacity: 1; pointer-events: auto; }
.quote p { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.55rem); color: #e9eef6; margin-bottom: 1.4rem; }
.quote footer { color: var(--gold); font-size: .92rem; }
.quote footer strong { color: #fff; }
.quote-dots { display: flex; gap: .55rem; justify-content: center; margin-top: 1.6rem; }
.quote-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.3); transition: .2s;
}
.quote-dots button.is-active { background: var(--gold); transform: scale(1.25); }

/* Posts */
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { height: 160px; }
.pt-a { background: linear-gradient(140deg, #e8b64c, #c99a2e); }
.pt-b { background: linear-gradient(140deg, #1b3557, #0d1b2e); }
.pt-c { background: linear-gradient(140deg, #5f6d7d, #22303f); }
.post-body { padding: 1.4rem 1.5rem 1.7rem; }
.post-body time { font-size: .78rem; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post-body h3 { margin: .5rem 0 .5rem; font-size: 1.05rem; }
.post-body h3 a:hover { color: var(--gold-dark); }
.post-body p { color: var(--muted); font-size: .9rem; }

/* CTA band + form */
.cta-band { background: linear-gradient(155deg, var(--navy-2), var(--navy)); }
.on-dark { color: #fff; }
.on-dark-muted { color: #b8c6da; }
.contact-list { list-style: none; margin-top: 1.5rem; color: #d7e0ec; }
.contact-list li { margin-bottom: .6rem; }
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.3); display: grid; gap: 1rem;
}
.contact-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--line);
  border-radius: 9px; background: var(--paper); transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { color: #1c8a4b; font-weight: 600; font-size: .9rem; text-align: center; }

/* Footer */
.footer { background: #0a1522; color: #8fa2ba; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; margin-bottom: .9rem; }
.footer a { display: block; margin-bottom: .5rem; }
.footer a:hover { color: var(--gold); }
.brand-footer { color: #fff; margin-bottom: .9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .82rem;
}
.footer-bottom a { display: inline; }

/* AI Demo section */
.ai-section {
  position: relative; overflow: hidden; color: #c3d0e0;
  background: linear-gradient(165deg, #0a1522 0%, var(--navy) 55%, #16294a 100%);
}
.ai-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.ai-glow-a { width: 520px; height: 520px; background: rgba(232,182,76,.14); top: -180px; right: -140px; }
.ai-glow-b { width: 460px; height: 460px; background: rgba(61,90,128,.4); bottom: -200px; left: -160px; }
.ai-container { position: relative; }
.ai-section .section-head h2 { color: #fff; }
.ai-section .section-head p:last-child { color: #9db1cc; }
.ai-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(232,182,76,.1); border: 1px solid rgba(232,182,76,.4);
  padding: .45rem 1.05rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.ai-panel {
  display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 22px; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,182,76,.25);
  box-shadow: 0 40px 90px rgba(0,0,0,.45); backdrop-filter: blur(8px);
}
.ai-tools { padding: 2.2rem 2rem; }
.ai-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.ai-chips button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #d7e0ec;
  font: inherit; font-size: .84rem; font-weight: 600;
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer; transition: all .18s ease;
}
.ai-chips button:hover { border-color: rgba(232,182,76,.6); color: #fff; transform: translateY(-1px); }
.ai-chips button.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(232,182,76,.35); }
.ai-field { display: grid; gap: .45rem; font-size: .82rem; font-weight: 600; color: #b8c6da; margin-bottom: 1.2rem; }
.ai-field textarea {
  font: inherit; font-weight: 500; color: #fff; padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  background: rgba(10,21,34,.6); resize: vertical; min-height: 96px; transition: border-color .15s, box-shadow .15s;
}
.ai-field textarea::placeholder { color: #5d7597; }
.ai-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,182,76,.15); }
.ai-generate {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--navy);
  background: linear-gradient(100deg, #f0c765, var(--gold) 60%, var(--gold-dark));
  border: 0; border-radius: 12px; padding: .95rem 1.5rem; cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.ai-generate:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232,182,76,.4); }
.ai-generate:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.ai-disclaimer { margin-top: 1rem; font-size: .76rem; color: #7d92ad; line-height: 1.5; }

.ai-output { display: flex; flex-direction: column; background: #081019; border-left: 1px solid rgba(255,255,255,.08); min-height: 400px; }
.ai-output-bar {
  display: flex; align-items: center; gap: .45rem; padding: .85rem 1.2rem;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
}
.ai-dot { width: 10px; height: 10px; border-radius: 50%; }
.ai-dot:nth-child(1) { background: #f87171; } .ai-dot:nth-child(2) { background: #fbbf24; } .ai-dot:nth-child(3) { background: #34d399; }
.ai-output-title { margin-left: .6rem; font-size: .76rem; color: #7d92ad; letter-spacing: .05em; }
.ai-tag {
  margin-left: auto; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(232,182,76,.45); padding: .2rem .6rem; border-radius: 6px;
}
.ai-output-body { flex: 1; padding: 1.5rem 1.6rem; font-size: .93rem; line-height: 1.7; color: #c3d0e0; }
.ai-output-body h4 { color: var(--gold); font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 .7rem; }
.ai-output-body p { margin-bottom: .5rem; }
.ai-output-body ul { margin: .6rem 0 .8rem 1.2rem; }
.ai-output-body li { margin-bottom: .45rem; }
.ai-output-body em { color: #7d92ad; font-size: .82rem; }
.ai-output-body.is-streaming > * { animation: aiFadeUp .55s ease both; }
@keyframes aiFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ai-empty { text-align: center; padding: 3rem 1rem; color: #5d7597; }
.ai-empty-icon {
  width: 58px; height: 58px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: var(--gold);
  background: rgba(232,182,76,.1); border: 1px solid rgba(232,182,76,.3);
  animation: aiBreathe 3s ease-in-out infinite;
}
@keyframes aiBreathe { 50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(232,182,76,.25); } }
.ai-skel { display: grid; gap: .9rem; padding-top: .4rem; }
.ai-skel span {
  display: block; height: 13px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(232,182,76,.25) 50%, rgba(255,255,255,.06) 75%);
  background-size: 200% 100%; animation: aiShimmer 1.2s linear infinite;
}
.ai-skel span.short { width: 55%; }
@keyframes aiShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ai-output-foot {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.07); font-size: .72rem; color: #5d7597;
}
.ai-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: aiPulse 1.6s infinite;
}
@keyframes aiPulse { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
@media (max-width: 960px) {
  .ai-output { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); min-height: 340px; }
  .ai-tools { padding: 1.7rem 1.4rem; }
}

/* Floating AI chat */
.ai-fab-wrap { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; }
.ai-fab {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #f0c765, var(--gold) 55%, var(--gold-dark)); color: var(--navy);
  box-shadow: 0 14px 34px rgba(232,182,76,.45); transition: transform .18s;
}
.ai-fab::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(232,182,76,.55); animation: fabRing 2.4s ease-out infinite;
}
@keyframes fabRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.ai-fab:hover { transform: scale(1.07) rotate(8deg); }
.ai-fab-dot {
  position: absolute; top: 3px; right: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff; z-index: 2;
}
.ai-chat {
  width: min(370px, calc(100vw - 2rem)); background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(13,27,46,.35); border: 1px solid var(--line);
  margin-bottom: .9rem; overflow: hidden; display: flex; flex-direction: column;
  animation: chatIn .28s cubic-bezier(.34,1.4,.64,1); transform-origin: bottom right;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.ai-chat[hidden] { display: none !important; }
.ai-chat-head {
  background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff;
  padding: .95rem 1.05rem; display: flex; align-items: center; gap: .7rem;
}
.ai-chat-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f0c765, var(--gold-dark)); color: var(--navy); font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(232,182,76,.4);
}
.ai-chat-head-info { flex: 1; min-width: 0; }
.ai-chat-head-info strong { display: block; font-size: .95rem; }
.ai-chat-head-info span { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: #9db1cc; }
.ai-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.ai-chat-close { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; opacity: .8; }
.ai-chat-close:hover { opacity: 1; }
.ai-chat-msgs { height: 280px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; background: var(--paper); }
.ai-msg {
  max-width: 88%; padding: .7rem .9rem; border-radius: 14px; font-size: .86rem; line-height: 1.45;
  animation: msgIn .3s ease both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.ai-msg.user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.ai-wait { display: flex; gap: .32rem; align-items: center; padding: .85rem 1rem; }
.ai-wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dark); animation: tDots 1.1s ease-in-out infinite; }
.ai-wait span:nth-child(2) { animation-delay: .15s; }
.ai-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes tDots { 30% { transform: translateY(-5px); opacity: .5; } }
.ai-chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); background: #fff; }
.ai-chat-form input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font: inherit; font-size: .88rem;
  transition: border-color .15s;
}
.ai-chat-form input:focus { outline: none; border-color: var(--gold); }
.ai-chat-form button {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #f0c765, var(--gold-dark)); color: var(--navy);
  font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: transform .15s;
}
.ai-chat-form button:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .split, .ai-panel { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .topbar-note { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 4%;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; }
  .nav .btn { margin: .6rem 0 1rem; text-align: center; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .cards-3, .work-grid, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 3.2rem 0 4rem; }
  .float-card-a { right: 4px; }
  .float-card-b { left: 4px; }
}
