/* NoahAgency — global styles */
:root {
  --ink: #0f1b2d;
  --ink-2: #33415a;
  --muted: #64708a;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --bg-dark: #0a0d14;   /* matches the logo's own background */
  --accent: #1f6feb;    /* logo blue */
  --accent-dark: #1554c0;
  --accent-soft: #e7effd;
  --sky: #38bdf8;       /* the bright end of the logo's blue swoosh */
  --gold: #c9973b;      /* logo gold */
  --gold-text: #9a6f1e; /* gold darkened for text on white */
  --gold-soft: rgba(201, 151, 59, .16);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --max: 1160px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #c8d0de; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 680px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Placeholder highlight — replace every one before publishing */
.ph { background: #fff3bf; color: #7a5b00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.link-arrow {
  font-weight: 600; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .btn { color: #fff; padding: 11px 22px; font-size: .95rem; }
.nav-links .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: 110px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); z-index: -1;
}
.hero h1 { max-width: 900px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.page-hero { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 880px; }

/* Trust strip */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust p { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.logos span { font-weight: 700; color: #8a93a6; font-size: 1.02rem; letter-spacing: -.01em; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 20px; font-size: 1.1rem;
}

/* Problem block */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.problem-list { list-style: none; padding: 0; margin: 0; }
.problem-list li {
  padding: 20px 0 20px 44px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative;
}
.problem-list li::before {
  content: "✕"; position: absolute; left: 0; top: 20px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.problem-answer { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); color: #fff; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--accent); line-height: 1;
}

/* Work cards */
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: rgba(255,255,255,.92);
}
.work-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.work-body .meta { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.work-body p { flex: 1; }
.t1 { background: linear-gradient(135deg, #0f1b2d, #2b4570); }
.t2 { background: linear-gradient(135deg, #7a2e0e, #e8590c); }
.t3 { background: linear-gradient(135deg, #12463f, #2a9d8f); }
.t4 { background: linear-gradient(135deg, #3d2c6b, #7b61c4); }
.t5 { background: linear-gradient(135deg, #1d3557, #457b9d); }
.t6 { background: linear-gradient(135deg, #5c3d12, #c99a3c); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: #fff; line-height: 1.2; margin-bottom: 6px; }

/* Testimonial */
.testimonial { max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink);
  line-height: 1.35; margin: 0 0 24px;
}
.testimonial cite { font-style: normal; color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; border-radius: 24px; padding: 72px 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 620px; margin: 0 auto 32px; color: #e3ecff; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* Services page */
.service { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; padding: 88px 0; border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service-num { font-family: var(--font-display); color: var(--accent); font-size: 1rem; font-weight: 600; margin-bottom: 10px; display: block; }
.service h3.service-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.service h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 10px; color: var(--accent); font-weight: 800;
}
.subhead { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); font-weight: 700; margin: 28px 0 10px; }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-weight: 600; margin: 28px 0 20px; }
.note { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: 0 10px 10px 0; font-size: .97rem; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px; font: inherit; font-size: .93rem; font-weight: 500; cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.case { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.case.hidden { display: none; }
.case .work-thumb { border-radius: var(--radius); position: sticky; top: 110px; font-size: clamp(1.4rem, 3vw, 2rem); padding: 24px; text-align: center; }
.case-meta { display: grid; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .95rem; }
.case-meta strong { color: var(--ink); }
.case h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 24px 0 8px; }
.empty { display: none; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.case--todo { border: 2px dashed #e0c36a; border-radius: var(--radius); padding: 40px; margin-top: 48px; background: #fffcf0; }
.case--todo .work-thumb { background: #e9e4d3; color: #8a7a45; }

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.shot {
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: zoom-in; text-align: left; font: inherit; transition: box-shadow .2s, transform .2s;
}
.shot:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; background: var(--bg-soft); }
.shot span { display: block; padding: 8px 10px; font-size: .8rem; line-height: 1.35; color: var(--ink-2); border-top: 1px solid var(--line); }
.shots-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 28, .9);
  display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 80vh; border-radius: 8px; background: #fff; }
.lightbox p { color: #e6e9ef; margin: 14px 0 0; text-align: center; max-width: 800px; font-size: .95rem; }
/* Tall full page designs: fit the width and scroll down the page */
.lightbox.tall { overflow-y: auto; justify-content: flex-start; padding-top: 72px; }
.lightbox.tall img { max-height: none; width: min(900px, 100%); }
.lightbox.tall p { margin-bottom: 24px; }
.lightbox.tall .lb-close, .lightbox.tall .lb-prev, .lightbox.tall .lb-next { position: fixed; }
/* Portfolio images can't be selected, dragged or long-press saved */
.shots img, .lightbox img, .work-thumb {
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }
.work-thumb.has-img { background-size: cover; background-position: top left; }

/* Platform chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li, .chips span {
  font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.chips .ghl { background: var(--accent-soft); color: var(--accent-dark); border-color: #f6cdb3; }

/* Integrations */
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.int-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.int-group h3 { font-size: 1rem; margin-bottom: 4px; }
.int-group p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.int-group .chips { margin: 0; }
.hub { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.hub-core {
  background: var(--accent); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 999px; font-size: 1rem;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.portrait { position: relative; margin: 0 18px 18px 0; max-width: 100%; }
.portrait::before {
  /* gold frame offset behind the photo */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius);
}
.portrait img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  background: var(--bg-dark); box-shadow: 0 24px 48px rgba(10, 13, 20, .28);
}
.portrait figcaption {
  position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px;
  padding: 10px 16px; border-radius: 10px; background: rgba(10, 13, 20, .78); backdrop-filter: blur(6px);
  color: #c9d1e0; font-size: .85rem;
}
.portrait figcaption strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.details { list-style: none; padding: 0; margin: 0; }
.details li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.details strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form label small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd5df; border-radius: 10px;
  font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.microcopy { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.form-success { display: none; padding: 24px; border-radius: var(--radius); background: #e9f7ef; color: #1e6b3d; font-weight: 500; }
.side-card { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.side-card ul { list-style: none; padding: 0; margin: 0 0 16px; }
.side-card li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.calendar-ph {
  border: 2px dashed #cfd5df; border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted);
}

/* Blog */
.post-card .meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #9aa6ba; padding: 80px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; margin-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Reveal on scroll */
/* Sections stay visible at rest; on scroll they get a gentle lift only */
.reveal { transition: transform .6s ease; }
.reveal:not(.visible) { transform: translateY(10px); }
.reveal.visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal:not(.visible) { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .int-grid { grid-template-columns: 1fr 1fr; }
  .problem, .service, .case, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .case .work-thumb { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .grid-2, .grid-3, .int-grid, .stats, .form { grid-template-columns: 1fr; }
  .case--todo { padding: 24px; }
  .cta-band { padding: 56px 24px; border-radius: 18px; }
  .details li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Brand refresh: dark header matching the logo, gold details ===== */
.site-header { background: rgba(10, 13, 20, .94); border-bottom-color: rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(10, 13, 20, .35); }
.nav-links a { color: #c9d1e0; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle span { background: #fff; }
.eyebrow { color: var(--gold-text); }
.section--dark .eyebrow, .site-footer .eyebrow { color: var(--gold); }
.step::before { color: var(--gold); }
.site-footer { background: var(--bg-dark); }

/* Logo: image with a light sweep that passes over it every few seconds */
.logo { display: inline-flex; position: relative; overflow: hidden; border-radius: 6px; line-height: 0; }
.logo img { height: 54px; width: auto; display: block; }
.site-footer .logo img { height: 96px; }
.logo::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); animation: logo-shine 6s ease-in-out 1.2s infinite;
}
.site-header .logo img { animation: logo-in .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logo-shine { 0%, 70% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes logo-in { from { opacity: 0; transform: translateY(-6px) scale(.92); } to { opacity: 1; transform: none; } }

/* Hero: staggered entrance on page load, drifting brand-colour glows behind */
.hero::before {
  background: radial-gradient(circle, rgba(31, 111, 235, .16) 0%, transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 460px; height: 460px; z-index: -1;
  background: radial-gradient(circle, rgba(201, 151, 59, .16) 0%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions,
.page-hero .eyebrow, .page-hero h1, .page-hero .lead { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1, .page-hero h1 { animation-delay: .1s; }
.hero .lead, .page-hero .lead { animation-delay: .22s; }
.hero-actions { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Buttons: light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg);
}
.btn:hover::after { left: 130%; transition: left .7s ease; }

/* Cards: lift with a gold-to-blue edge glow; screenshots zoom gently */
.card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(10, 13, 20, .12); }
.work-thumb.has-img { transition: background-size .6s ease; background-size: 100%; }
.work-card:hover .work-thumb.has-img { background-size: 108%; }
.shot img { transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }

/* Scroll reveal: staggered lift for groups of cards (content stays visible) */
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .32s; }
.grid > .reveal:nth-child(6) { transition-delay: .4s; }
.reveal:not(.visible) { transform: translateY(24px); }

/* About photo: wipe-in on load, slow float, frame slides into place */
.portrait img { animation: photo-in 1.1s cubic-bezier(.2, .8, .2, 1) both, float 7s ease-in-out 1.2s infinite; }
.portrait::before { animation: frame-in 1.1s cubic-bezier(.2, .8, .2, 1) .35s both; }
.portrait figcaption { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .9s both; }
@keyframes photo-in { from { clip-path: inset(0 0 100% 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes frame-in { from { opacity: 0; transform: translate(-18px, -18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Platform strip: continuous marquee (script duplicates the row) */
.logos.marquee span { padding-right: 36px; }
.logos.marquee { gap: 0; flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 32s linear infinite; }
.trust .container { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust:hover .logos.marquee { animation-play-state: paused; }
.logos span { transition: color .3s; }
.logos span:hover { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .nav-links { background: var(--bg-dark); border-bottom-color: rgba(255, 255, 255, .08); }
  .nav-links li a:not(.btn) { border-bottom-color: rgba(255, 255, 255, .08); }
  .nav-links a:not(.btn)::after { display: none; }
  .logo img { height: 46px; }
  .portrait { margin: 0 14px 14px 0; }
  .portrait::before { inset: 14px -14px -14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.visible) { transform: none; }
  .logos.marquee { width: auto; flex-wrap: wrap; justify-content: center; }
}

/* ===== Reviews ===== */
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 12px; }
.review-feature {
  margin: 0 0 28px; padding: clamp(28px, 5vw, 48px); border-radius: 20px; position: relative; overflow: hidden;
  background: var(--bg-dark); color: #c9d1e0;
}
.review-feature::before {
  content: "“"; position: absolute; right: 24px; top: -30px; font-family: var(--font-display); font-size: 14rem; line-height: 1;
  color: var(--gold); opacity: .18;
}
.review-feature blockquote {
  position: relative; margin: 0 0 24px; max-width: 900px; color: #fff;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5;
}
.review-feature figcaption, .review figcaption { display: grid; gap: 2px; font-size: .88rem; }
.review-feature figcaption strong { color: var(--gold); font-size: 1rem; }
.reviews { columns: 3 300px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px; padding: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.review:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(10, 13, 20, .1); }
.review blockquote { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; }
.review figcaption strong { color: var(--ink); }
.review figcaption span { color: var(--muted); }
.reviews-links { text-align: center; color: var(--muted); margin-top: 12px; }
.reviews-links a { color: var(--accent); font-weight: 600; }
.review-feature .stars { animation: stars-in 1s ease .2s both; }
@keyframes stars-in { from { letter-spacing: 14px; opacity: 0; } to { letter-spacing: 3px; opacity: 1; } }
.reviews > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.reviews > .reveal:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .review-feature .stars { animation: none; } }

/* ===== Home hero with photo ===== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-text { min-width: 0; }
.hero-text h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.hero-photo { max-width: 400px; justify-self: end; width: 100%; }
.hero-photo img { animation-delay: .25s, 1.5s; }
.hero-badge {
  position: absolute; right: -10px; top: 22px; display: grid; gap: 0; padding: 10px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(10, 13, 20, .18);
  font-size: .8rem; font-weight: 600; color: var(--ink); animation: badge-in .7s cubic-bezier(.2, .8, .2, 1) 1.1s both;
}
.hero-badge .stars { margin: 0; font-size: .9rem; }
@keyframes badge-in { from { opacity: 0; transform: translateX(16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 300px; }
  .hero-badge { right: -6px; }
}
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

/* ===== Professional palette: deep navy, royal blue, champagne gold ===== */
:root {
  --ink: #0c1a30;          /* deep navy for headings */
  --ink-2: #3b4a62;        /* body text */
  --muted: #6b7a90;
  --line: #e1e6ee;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;      /* cool grey-blue instead of beige */
  --bg-dark: #0a1120;      /* navy-black, close to the logo background */
  --navy: #0f2140;
  --accent: #1d4ed8;       /* royal blue for buttons and links */
  --accent-dark: #1a3fae;
  --accent-soft: #eaf0fd;
  --sky: #5b8def;
  --gold: #c9a24f;         /* champagne gold for details */
  --gold-text: #8a6a1f;
  --gold-soft: rgba(201, 162, 79, .16);
  --shadow: 0 1px 2px rgba(12, 26, 48, .05), 0 10px 28px rgba(12, 26, 48, .07);
}
.site-header { background: rgba(10, 17, 32, .96); }
.section--dark { background: linear-gradient(160deg, var(--bg-dark), var(--navy)); }
.site-footer { background: var(--bg-dark); }
.logos span { color: #7d8aa0; }

/* Project tiles: one family of navy, blue and gold instead of random colours */
.t1 { background: linear-gradient(135deg, #0a1120, #1a3466); }
.t2 { background: linear-gradient(135deg, #0f2140, #1d4ed8); }
.t3 { background: linear-gradient(135deg, #0c1a30, #2c4f8f); }
.t4 { background: linear-gradient(135deg, #142a4f, #3e64b4); }
.t5 { background: linear-gradient(135deg, #0a1120, #24457f); }
.t6 { background: linear-gradient(135deg, #1b2a44, #9c7a33); }

/* Call to action: navy panel with a gold button */
.cta-band { background: radial-gradient(120% 140% at 85% 0%, #1a3a74 0%, var(--navy) 45%, var(--bg-dark) 100%); border: 1px solid rgba(201, 162, 79, .25); }
.cta-band p { color: #c3cddd; }
.cta-band .btn { background: var(--gold); color: #0a1120; }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

.btn--primary { background: var(--accent); box-shadow: 0 6px 18px rgba(29, 78, 216, .25); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.chips .ghl { background: var(--accent-soft); color: var(--accent-dark); border-color: #c9d8fa; }
.filter-btn.active { background: var(--navy); border-color: var(--navy); }
.card .icon { background: var(--gold-soft); color: var(--gold-text); }
.link-arrow { color: var(--accent); }
.hero::before { background: radial-gradient(circle, rgba(29, 78, 216, .12) 0%, transparent 70%); }
.hero::after { background: radial-gradient(circle, rgba(201, 162, 79, .14) 0%, transparent 70%); }
.review-feature { background: linear-gradient(160deg, var(--bg-dark), var(--navy)); }
.problem-answer { border-left: 3px solid var(--gold); }

.form-error { margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); background: #fdecec; color: #8a1f1f; font-weight: 500; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold-text); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }
@media (max-width: 600px) { .faq details { padding: 0 18px; } .faq summary { font-size: 1rem; } }

/* Blog posts */
.post-card a { color: inherit; text-decoration: none; }
.post-card a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card.is-live { border-color: var(--gold); }
.post-card.is-live:hover h3 { color: var(--accent); }
.post-card .read { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--accent); font-size: .95rem; }
.post-hero .lead { max-width: 720px; }
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: .95rem; }
.post-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.post-byline strong { color: var(--ink); display: block; }
.article { max-width: 720px; margin: 0 auto; font-size: 1.075rem; line-height: 1.75; color: var(--ink-2); }
.article > * + * { margin-top: 1.1em; }
.article h2 { font-size: 1.6rem; margin-top: 2.2em; color: var(--ink); text-wrap: balance; }
.article h3 { font-size: 1.2rem; margin-top: 1.8em; color: var(--ink); }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: .45em; }
.article strong { color: var(--ink); }
.article a { color: var(--accent); }
.answer-box { background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; }
.answer-box .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-text); margin-bottom: 6px; }
.answer-box p { margin: 0; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.article .faq { margin-top: 1.2em; }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 3em; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.author-box p { margin: 6px 0 0; font-size: .98rem; }
.related { margin-top: 2.4em; }
.related h2 { margin-top: 0; font-size: 1.3rem; }
@media (max-width: 600px) { .author-box { flex-direction: column; } .article { font-size: 1rem; } }

/* Cookie banner */
.cookie-banner {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; padding: 20px 22px;
  background: var(--bg-dark); color: #c8d0de; border: 1px solid rgba(201, 162, 79, .45); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(10, 17, 32, .35); display: grid; gap: 14px; font-size: .95rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; }
.cookie-banner .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cookie-banner .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ===== Page preview builder (preview.html) ===== */
.pv-section { padding-top: 56px; }
.pv-grid { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; max-width: 1400px; }
.pv-controls { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pv-field { margin-bottom: 18px; }
.pv-field label, .pv-label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pv-field small { color: var(--muted); font-weight: 400; }
.pv-field input[type="text"], .pv-field select {
  width: 100%; padding: 11px 12px; border: 1px solid #cfd5df; border-radius: 10px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.pv-field input:focus, .pv-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pv-field input[type="file"] { font-size: .85rem; max-width: 100%; }
.pv-color-row { display: flex; gap: 8px; }
.pv-color-row input[type="color"] { width: 48px; height: 44px; padding: 2px; border: 1px solid #cfd5df; border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.pv-color-row input[type="text"] { font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; }
.pv-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pv-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfd5df; cursor: pointer; padding: 0; }
.pv-swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.pv-toggle { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; gap: 4px; width: 100%; }
.pv-toggle button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pv-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 45, .15); }
.pv-device { width: auto; }
.pv-hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.pv-link { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; margin-top: 8px; }
.pv-want { width: 100%; justify-content: center; margin: 4px 0 6px; }
.pv-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pv-bar .pv-hint { margin: 0; }
.pv-stage { background: linear-gradient(135deg, #e9edf3, #f6f5f1); border-radius: 20px; padding: 24px; transition: padding .3s; }
.pv-browser { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(10, 13, 20, .35); margin: 0 auto; max-width: 100%; transition: max-width .35s ease; }
.pv-stage.is-mobile .pv-browser { max-width: 390px; border-radius: 28px; border: 8px solid #0a0d14; }
.pv-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f3f6; border-bottom: 1px solid var(--line); }
.pv-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: #d6dae1; flex: none; }
.pv-chrome > span:nth-child(1) { background: #ff5f57; }
.pv-chrome > span:nth-child(2) { background: #febc2e; }
.pv-chrome > span:nth-child(3) { background: #28c840; }
.pv-address { flex: 1; margin-left: 10px; background: #fff; border-radius: 6px; padding: 4px 12px; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-stage.is-mobile .pv-chrome > span { display: none; }
.pv-stage.is-mobile .pv-address { margin-left: 0; text-align: center; }
#pv-frame { display: block; width: 100%; height: 760px; border: 0; background: #fff; }
.pv-stage.is-mobile #pv-frame { height: 720px; }
.pv-note { margin-top: 14px; }
.pv-summary { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.pv-summary:empty { display: none; }
.pv-chip-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
@media (max-width: 960px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-controls { position: static; }
  .pv-stage { padding: 12px; }
  #pv-frame { height: 640px; }
}
.pv-promo-wrap { padding: 64px 0; margin-bottom: 96px; }
.pv-promo { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pv-promo h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pv-promo p { margin: 0; max-width: 620px; }
.pv-promo .btn { flex: none; }
@media (max-width: 760px) { .pv-promo { flex-direction: column; align-items: flex-start; } .pv-promo-wrap { margin-bottom: 72px; } }
.pv-hero { padding: 64px 0 40px; }
@media (max-width: 960px) { .pv-device { display: none; } }
/* Seven menu items: tighten spacing on mid-size screens */
@media (min-width: 761px) and (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .9rem; }
  .nav-links .btn { padding: 10px 16px; font-size: .88rem; }
  .logo img { height: 46px; }
}

/* ===== Website chat assistant (assets/chat.js) ===== */
.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; }
.nachat { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 150; font-family: var(--font-body); }
.nachat-launch {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(31, 111, 235, .35); transition: transform .2s ease, background .2s ease;
}
.nachat-launch:hover { background: var(--accent-dark); transform: translateY(-2px); }
.nachat-launch:focus-visible, .nachat button:focus-visible, .nachat textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.nachat.is-open .nachat-launch { display: none; }
.nachat-panel {
  position: absolute; right: 0; bottom: 0; width: 380px; height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 17, 32, .28); overflow: hidden; animation: nachat-in .22s ease-out;
}
.nachat-panel[hidden] { display: none; }
@keyframes nachat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nachat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-dark); color: #fff; }
.nachat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.nachat-head div { flex: 1; line-height: 1.25; }
.nachat-head strong { display: block; font-size: 1rem; }
.nachat-head small { color: #aab4c5; font-size: .8rem; }
.nachat-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.nachat-close:hover { background: rgba(255, 255, 255, .12); }
.nachat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.nachat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.nachat-msg p { margin: 0 0 .5em; } .nachat-msg p:last-child { margin: 0; }
.nachat-msg ul { margin: .2em 0 .5em; padding-left: 1.2em; } .nachat-msg li { margin: .15em 0; }
.nachat-msg a { color: var(--accent-dark); font-weight: 600; }
.nachat-msg--assistant { align-self: flex-start; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.nachat-msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.nachat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.nachat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: nachat-dot 1.2s infinite ease-in-out; }
.nachat-typing span:nth-child(2) { animation-delay: .15s; } .nachat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nachat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.nachat-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: var(--bg-soft); }
.nachat-starters:not(:empty) { padding-bottom: 12px; }
.nachat-starters button { border: 1px solid #cfd5df; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem; cursor: pointer; }
.nachat-starters button:hover { border-color: var(--accent); color: var(--accent-dark); }
.nachat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.nachat-form textarea { flex: 1; resize: none; border: 1px solid #cfd5df; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .95rem; color: var(--ink); max-height: 120px; }
.nachat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nachat-form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.nachat-form button:disabled { opacity: .5; cursor: default; }
.nachat-note { margin: 0; padding: 0 12px 10px; font-size: .74rem; color: var(--muted); text-align: center; background: #fff; }
.nachat-note a { color: var(--muted); }
@media (max-width: 520px) {
  .nachat { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .nachat-launch span { display: none; }
  .nachat-launch { padding: 16px; }
  .nachat.is-open { inset: 0; }
  .nachat-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .nachat-form textarea { font-size: 16px; } /* stops iOS zooming in */
}
@media (prefers-reduced-motion: reduce) { .nachat-panel, .nachat-typing span { animation: none; } }
