/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #FFFFFF;
  --bg-2:        #F7F7F7;
  --bg-3:        #F0F0F0;
  --surface:     #E8E8E8;
  --border:      #E2E2E2;
  --border-dark: #CCCCCC;
  --text:        #0A0A0A;
  --text-muted:  #555555;
  --text-dim:    #999999;
  --accent:      #0F6E56;
  --accent-warm: #0F6E56;
  --accent-light:#D4EDE7;
  --accent-dark: #0A5240;
  --accent-green:#4D7A56;
  --white:       #FFFFFF;
  --font-display: 'Outfit', sans-serif;
  --font-body:   'Outfit', sans-serif;
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.1), 0 32px 64px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.05; letter-spacing: -0.025em; color: var(--text); }
.display-xl { font-size: 3.5rem; font-weight: 800; }
.display-lg { font-size: 3.5rem; font-weight: 800; }
.display-md { font-size: 3.5rem; font-weight: 700; }
.display-sm { font-size: 3.5rem; font-weight: 700; }

p { font-size: 1rem; color: var(--text-muted); line-height: 1.78; }
p.large { font-size: 1.15rem; }
a { text-decoration: none; color: inherit; }

/* ─── Layout ────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* ─── Navigation ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }

/* Pill nav */
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  background: #f0f0ee; border-radius: 100px; padding: 5px;
}
.nav-pill a {
  font-size: 0.86rem; font-weight: 500; color: var(--text-muted);
  padding: 7px 18px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-pill a:hover { color: var(--text); }
.nav-pill a.active { background: var(--accent); color: #fff; }
.nav-pill-ai { display: inline-flex !important; align-items: center; gap: 5px; }
.nav-new-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em;
  background: var(--accent); color: #fff; padding: 2px 6px;
  border-radius: 100px; line-height: 1.4;
}
.nav-pill-ai.active .nav-new-tag { background: #fff; color: var(--accent); }

/* Right actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: #f0f0ee; color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.nav-icon-btn:hover { background: var(--text); color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--accent) !important; color: #fff !important;
  padding: 9px 20px !important; border-radius: 100px !important;
  font-size: 0.86rem !important; font-weight: 600 !important;
  transition: opacity 0.2s !important; white-space: nowrap;
  border-bottom: none !important;
}
.nav-cta:hover { opacity: 0.85 !important; transform: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px; z-index: 999;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); transition: color 0.2s; }
.nav-mobile-menu a:hover { color: var(--text); }
@media (max-width: 768px) {
  .nav-pill { display: none; }
  .hamburger { display: none; }
  .nav-inner { padding: 0 24px; }
  .nav-icon-btn { width: 34px; height: 34px; }
  .nav-cta { padding: 8px 16px !important; font-size: 0.8rem !important; }
  body { padding-bottom: 78px; }
}

/* ─── Mobile Bottom Tab Bar ─────────────────────────────────────────── */
.mobile-tab-bar { display: none; }
@media (max-width: 768px) {
  .mobile-tab-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
    background: var(--white); border-radius: 100px; padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
  }
  .mobile-tab-bar a {
    flex: 1; text-align: center;
    font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
    padding: 11px 6px; border-radius: 100px;
    white-space: nowrap;
  }
  .mobile-tab-bar a.active { background: var(--accent); color: #fff; font-weight: 600; }
  .mobile-tab-bar a.mobile-tab-ai { display: flex; align-items: center; justify-content: center; gap: 4px; }
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-dark); }
.btn-outline:hover { border-color: var(--text); background: var(--accent-light); }

/* ─── Tags ──────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 100px; font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--white);
}
.tag-accent {
  border-color: rgba(15,110,86,0.5); color: var(--text);
  background: var(--accent-light);
}

/* ─── Section Labels ────────────────────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px;
}
.section-label::before { content: ''; width: 26px; height: 2px; background: var(--accent); display: block; border-radius: 1px; }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 200px 0 140px; position: relative;
  background: var(--bg);
}
.hero-content { position: relative; z-index: 2; padding: 16px 0 20px; }

/* Name line */
.hero-name-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  line-height: 1; margin-bottom: 12px; letter-spacing: -0.01em;
}
.hero-photo-wrap {
  display: inline-flex; border-radius: 16px; overflow: hidden;
  height: clamp(52px, 6vw, 76px); aspect-ratio: 3/2;
  vertical-align: middle;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(20%); }

/* Tagline */
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 0;
  text-align: center;
}
.hero-tagline .hero-title-animated-row { color: var(--accent); }
.hero-tagline .hero-title-animated-row .word { color: var(--accent); }

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 78px);
    justify-content: center;
    padding: 70px 0 78px;
  }
  .hero-content { padding: 0; }
  .hero-name-line { font-size: 2.4rem; gap: 12px; }
  .hero-photo-wrap { height: 64px; border-radius: 14px; }
  .hero-tagline { font-size: 1.9rem; margin-bottom: 0; }
}

/* ─── Hero Floating Illustrations ──────────────────────────────────── */
.hero-floats {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}

/* Base float element — positioned absolutely, transitions on scroll */
.hf {
  position: absolute;
  will-change: transform;
  animation: hfFloat 6s ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Stagger entrance per element */
.hf-1 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 7s; animation-delay: 0.3s, 1.1s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-2 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 9s; animation-delay: 0.5s, 1.3s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-3 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 8s; animation-delay: 0.7s, 1.5s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-4 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 6s; animation-delay: 0.4s, 1.2s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-5 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 10s; animation-delay: 0.6s, 1.4s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-6 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 7.5s; animation-delay: 0.8s, 1.6s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-7 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 8.5s; animation-delay: 1s, 1.8s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.hf-8 { animation-name: hfEntrance, hfFloat; animation-duration: 0.8s, 6.5s; animation-delay: 0.9s, 1.7s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }

@keyframes hfEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hfFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%  { transform: translateY(-10px) rotate(0.8deg); }
  66%  { transform: translateY(6px) rotate(-0.5deg); }
}

/* ── Positions ── */
.hf-1 { top: 10%; left: 3%; transform: rotate(-5deg); }
.hf-2 { top: 52%; left: 2%; transform: rotate(3deg); }
.hf-3 { top: 74%; left: 6%; transform: rotate(-2deg); }
.hf-4 { top: 8%;  right: 3%; transform: rotate(4deg); }
.hf-5 { top: 38%; right: 2%; transform: rotate(-6deg); }
.hf-6 { top: 62%; right: 4%; transform: rotate(3.5deg); }
.hf-7 { bottom: 10%; left: 4%; transform: rotate(-3deg); }
.hf-8 { bottom: 12%; right: 5%; transform: rotate(2deg); }

/* Hide floats on small screens */
@media (max-width: 1024px) {
  .hf-2, .hf-3, .hf-5, .hf-7, .hf-8 { display: none; }
}
@media (max-width: 768px) { .hero-floats { display: none; } }

/* ── Card base ── */
.hf-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  min-width: 200px;
  font-family: var(--font-body);
}
.hf-card-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.hf-card-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.hf-card-sub   { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

/* Payment card */
.hf-payment .hf-card-icon { background: #E8F5E9; }

/* Stat card */
.hf-stat { flex-direction: column; align-items: flex-start; gap: 4px; min-width: 160px; }
.hf-stat-num { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.hf-stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.hf-stat-tag {
  margin-top: 8px; font-size: 0.68rem; color: var(--text);
  background: var(--accent-light); border: 1px solid rgba(15,110,86,0.30);
  padding: 3px 8px; border-radius: 100px; font-weight: 600;
}

/* Steps card */
.hf-steps { flex-direction: column; align-items: flex-start; gap: 0; min-width: 180px; }
.hf-steps-row { display: flex; align-items: center; gap: 8px; }
.hf-steps-before { font-size: 1.6rem; font-weight: 800; color: var(--text-dim); text-decoration: line-through; }
.hf-steps-arrow  { font-size: 1rem; color: var(--text); }
.hf-steps-after  { font-size: 1.6rem; font-weight: 800; color: var(--text); }

/* Award card */
.hf-award {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  min-width: 210px;
}
.hf-award-icon { font-size: 1.5rem; }

/* Sticky note */
.hf-sticky {
  background: var(--accent);
  border-radius: 4px 14px 14px 4px;
  padding: 16px 20px;
  font-size: 0.82rem; font-weight: 500; line-height: 1.5; color: #fff;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.12), 2px 2px 6px rgba(0,0,0,0.06);
  max-width: 160px;
  transform: rotate(-3deg);
  font-family: var(--font-body);
  border-left: 4px solid var(--accent-dark);
}

/* Pill badge */
.hf-badge-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  white-space: nowrap;
}
.hf-badge-dark {
  background: var(--text); color: var(--white); border-color: var(--text);
}

/* Round rotating badge */
.hf-badge-round {
  width: 90px; height: 90px; border-radius: 50%;
  background: conic-gradient(from 0deg, #0F6E56, #0A0A0A, #0F6E56, #0A0A0A, #0F6E56);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: hfSpin 12s linear infinite !important;
}
.hf-badge-round-inner {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  text-align: center;
}
@keyframes hfSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px; margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot { width: 7px; height: 7px; background: #34A853; border-radius: 50%; animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,168,83,0.4); } 50% { box-shadow: 0 0 0 6px rgba(52,168,83,0); } }
.hero-badge-text { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.hero-title { margin-bottom: 28px; }
.hero-title .italic { font-style: italic; color: var(--text); }

/* ─── Animated Cycling Title ────────────────────────────────────────── */
.hero-title-static { display: block; font-weight: 400; }
.hero-title-animated-row {
  display: block;
  position: relative;
  height: 1.3em;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-title-animated-row .word {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, opacity;
}
.hero-title-animated-row .word.active {
  opacity: 1;
  transform: translateY(0);
}
.hero-title-animated-row .word.exit {
  opacity: 0;
  transform: translateY(-100%);
}
.hero-desc { font-size: 1.12rem; color: var(--text-muted); max-width: 1100px; width: 100%; margin-bottom: 44px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding-top: 0; }
.hero-stats .stat-divider { width: 1px; height: 48px; background: var(--border-dark); }
@media (max-width: 768px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; align-items: start; }
  .hero-stats .stat-divider { display: none; }
  .hero-stats > div:last-child { grid-column: 1 / -1; text-align: center; }
  .hero-stats > div:not(.stat-divider) { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-stats .stat-label { font-size: 0.72rem; max-width: 120px; text-align: center; }
}
.stat-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-num span { color: var(--text); font-size: 0.5em; vertical-align: super; }
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.04em; }

/* ─── Marquee ───────────────────────────────────────────────────────── */
.marquee-section {
  padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--white);
}
.marquee-track {
  display: flex; gap: 56px; align-items: center;
  animation: marquee 30s linear infinite; width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center;
}
.logo-img {
  height: 30px; width: auto;
  filter: opacity(0.45);
  transition: filter 0.3s;
  display: block;
}
.marquee-item:hover .logo-img { filter: opacity(0.75); }
/* Per-logo sizing — tuned to visual weight */
.logo-adib        { height: 24px; }
.logo-transamerica{ height: 20px; }
.logo-tamm        { height: 30px; }
.logo-ikea        { height: 30px; }
.logo-philips     { height: 19px; }
.logo-kiabi       { height: 30px; }
.logo-reebok      { height: 26px; }
.marquee-dot { width: 4px; height: 4px; background: var(--border-dark); border-radius: 50%; flex-shrink: 0; }

/* ─── Work ──────────────────────────────────────────────────────────── */
.work-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px; gap: 32px;
}
@media (max-width: 768px) { .work-header { flex-direction: column; align-items: flex-start; } }

.cases-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ── Case study thumbnail cards ── */
.cs-list { display: flex; flex-direction: column; gap: 60px; }
.cs-thumb {
  display: flex;
  align-items: stretch;
  border-radius: 24px;
  background: #E8EEF5;
  min-height: 440px;
  text-decoration: none; color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cs-thumb:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.cs-thumb-alt { background: #EDF0F8; }
.cs-thumb-left {
  flex: 0 0 44%;
  max-width: 44%;
  padding: 44px 44px;
  display: flex; flex-direction: column;
}
.cs-thumb-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px;
}
.cs-thumb-title {
  font-size: clamp(1.3rem, 1.8vw, 1.85rem); font-weight: 400;
  line-height: 1.22; margin-bottom: 12px; color: var(--text);
}
.cs-thumb-desc {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.72;
  margin-bottom: 24px;
}
.cs-thumb-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--text); color: #fff;
  padding: 11px 22px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  width: fit-content;
  transition: background 0.2s;
}
.cs-thumb:hover .cs-thumb-cta { background: var(--accent); }
.cs-thumb-metrics {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
}
.cs-metric-num {
  font-size: clamp(1.4rem, 1.8vw, 1.9rem); font-weight: 700;
  color: var(--text); line-height: 1; letter-spacing: -0.03em;
}
.cs-metric-label {
  font-size: 0.65rem; color: var(--text-dim); margin-top: 4px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.cs-thumb-right {
  flex: 1;
  position: relative;
}
.cs-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.cs-thumb:hover .cs-thumb-img { transform: scale(1.03); }
.cs-thumb-img-contain { object-fit: contain; object-position: center; background: rgba(255,255,255,0.2); }
@media (max-width: 860px) {
  .cs-thumb-left { flex: 0 0 100%; max-width: 100%; padding: 36px 28px; }
  .cs-thumb-right { display: none; }
}


.case-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  display: block; color: inherit; box-shadow: var(--shadow-sm);
}
.case-card:hover { border-color: var(--border-dark); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card-image {
  width: 100%; aspect-ratio: 16/10; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.case-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.case-card:hover .case-card-image img { transform: scale(1.05); }
.case-placeholder-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem); color: var(--border-dark); user-select: none;
  transition: transform 0.6s ease;
}
.case-card:hover .case-placeholder-text { transform: scale(1.05); }
.case-card-body { padding: 32px; }
.case-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.case-card-title { font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; color: var(--text); line-height: 1.2; }
.case-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.case-card-footer { display: flex; align-items: center; justify-content: space-between; }
.case-card-year { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.05em; }
.case-card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text); transition: gap 0.25s, color 0.2s; }
.case-card-link:hover, .case-card:hover .case-card-link { gap: 14px; color: var(--text); }

.case-card-featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
}
.case-card-featured .case-card-image { aspect-ratio: auto; min-height: 380px; }
.case-card-featured .case-card-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.case-card-featured .case-card-title { font-size: 1.9rem; }
@media (max-width: 900px) {
  .case-card-featured { grid-template-columns: 1fr; }
  .case-card-featured .case-card-image { min-height: 260px; }
}

/* ─── Services ──────────────────────────────────────────────────────── */
.services-section { background: var(--text); }
.services-section .section-label { color: rgba(255,255,255,0.4); }
.services-section .section-label::before { background: var(--accent); }
.services-section h2 { color: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 64px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 44px 36px; border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: rgba(255,255,255,0.04); }
@media (max-width: 1024px) {
  .service-card:nth-child(2) { border-right: none; }
  .service-card { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
.service-num { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.25); letter-spacing: 0.12em; margin-bottom: 28px; }
.service-icon { font-size: 1.8rem; margin-bottom: 18px; display: block; }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--white); }
.service-desc { font-size: 0.87rem; color: rgba(255,255,255,0.5); line-height: 1.75; }

/* ─── About Preview ─────────────────────────────────────────────────── */
.about-preview {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center;
}
@media (max-width: 1024px) { .about-preview { grid-template-columns: 1fr; gap: 56px; } }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 7rem; color: var(--border-dark);
}
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--accent); color: #fff;
  padding: 22px 28px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 800; box-shadow: var(--shadow-md);
}
@media (max-width: 768px) { .about-badge { right: 16px; } }
.about-badge-num { font-size: 2.8rem; line-height: 1; display: block; }
.about-badge-text { font-size: 0.7rem; letter-spacing: 0.06em; font-weight: 600; opacity: 0.85; }
.about-text .display-md { margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; }
.about-skills { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 36px; }

/* ─── Testimonials ──────────────────────────────────────────────────── */
/* ─── Testimonials Slider ───────────────────────────────────────────── */
.testi-section { padding: 80px 0; }
.testi-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.testi-nav { display: flex; gap: 10px; }
.testi-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 1.1rem; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.testi-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.testi-slider-wrap { overflow: hidden; }
.testi-slider {
  display: flex; gap: 20px;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.testi-slide {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--accent-light);
  border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column;
}
.testi-slide:nth-child(2) { background: rgba(15,110,86,0.12); }
.testi-slide:nth-child(3) { background: rgba(15,110,86,0.18); }
.testi-slide-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(15,110,86,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: var(--accent);
  margin-bottom: 8px;
}
.testi-slide-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.testi-slide-role { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 28px; }
.testi-slide-text {
  font-size: 1.05rem; font-weight: 600; color: var(--accent);
  line-height: 1.6; letter-spacing: -0.01em; margin: 0;
}
@media (max-width: 768px) {
  .testi-slide { flex: 0 0 80%; }
  .testi-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ─── Process ───────────────────────────────────────────────────────── */
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--border); gap: 1px; box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) { .process-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-row { grid-template-columns: 1fr; } }
.process-step { background: var(--white); padding: 44px 36px; }
.process-step-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--bg-3); line-height: 1; margin-bottom: 20px; display: block;
}
.process-step-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.process-step-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

/* ─── How I Work ────────────────────────────────────────────────────── */
.hiw-section { padding: 80px 0; }
.hiw-list { margin-top: 48px; border-top: 1px solid var(--border); }
.hiw-item {
  display: grid; grid-template-columns: 100px 1fr 1fr;
  gap: 40px; align-items: center;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.2s ease;
  cursor: default;
}
.hiw-item:hover { background: rgba(15,110,86,0.07); }
.hiw-num {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--text-dim);
}
.hiw-title {
  font-size: 1.15rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.hiw-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
@media (max-width: 768px) {
  .hiw-item { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 12px; }
  .hiw-num { font-size: 1.2rem; }
  .hiw-desc { grid-column: 2; margin-top: -8px; }
  .hiw-title { font-size: 1rem; }
}

/* ─── CTA Banner ────────────────────────────────────────────────────── */
.cta-section { padding: 80px 0 120px; }
.cta-banner {
  background: var(--text); border-radius: 24px;
  padding: 80px 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 20px; }
.cta-banner p { color: rgba(255,255,255,0.55); margin-bottom: 40px; font-size: 1.08rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(15,110,86,0.30) 0%, transparent 70%);
  pointer-events: none;
}
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--accent); color: #fff; }
.cta-banner .btn-primary:hover { background: var(--accent-dark); color: #fff; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.25); color: var(--white); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
@media (max-width: 768px) { .cta-banner { padding: 56px 28px; } }

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand p { font-size: 0.88rem; max-width: 240px; margin-top: 14px; }
.footer-col h4 { font-size: 0.73rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* ─── Page Hero ─────────────────────────────────────────────────────── */
.page-hero {
  padding: 180px 0 96px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { .page-hero { padding: 72px 0 24px; } }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.5; }

/* ─── About Centered Layout ─────────────────────────────────────────── */
.about-centered { max-width: 900px; margin: 0 auto; }
.about-bio-grid { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; margin-bottom: 0; }
@media (max-width: 768px) { .about-bio-grid { grid-template-columns: 1fr; gap: 0; text-align: center; } .about-bio-grid > div:first-child { margin-bottom: 48px; max-width: 220px; margin-left: auto; margin-right: auto; } }

/* Photo + Bio side by side */
.about-intro {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 56px; align-items: start; margin-bottom: 0;
}
.about-photo-col { display: flex; flex-direction: column; gap: 16px; }
.about-photo {
  width: 100%; aspect-ratio: 4/5; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-quick-col { display: flex; flex-direction: column; gap: 10px; }
.about-bio h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 300; line-height: 1.25; margin-bottom: 20px; }
.about-bio p { margin-bottom: 14px; font-size: 0.92rem; }
.about-divider { width: 100%; height: 1px; background: var(--border); margin: 40px 0; }

@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { aspect-ratio: 1/1; }
}

/* ─── About Full Page (legacy, kept for safety) ─────────────────────── */
.about-full { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
@media (max-width: 1024px) { .about-full { grid-template-columns: 1fr; gap: 56px; } }
.about-left-sticky { position: sticky; top: 120px; }
.big-img {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.big-img img { width: 100%; height: 100%; object-fit: cover; }
.big-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 8rem; color: var(--border-dark); }
.about-quick-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-fact {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm);
}
.quick-fact-label { font-size: 0.7rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.quick-fact-value { font-size: 0.9rem; color: var(--text); font-weight: 600; }
.about-right h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 28px; }
.about-right p { margin-bottom: 18px; }
.about-divider { width: 100%; height: 1px; background: var(--border); margin: 48px 0; }

.timeline { padding-left: 28px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -35px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--white); box-shadow: 0 0 0 3px rgba(15,110,86,0.25);
}
.timeline-year { font-size: 0.75rem; color: var(--text); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 5px; }
.timeline-role { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.timeline-company { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.timeline-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.75; }

.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-chip {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 12px; text-align: center;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.tool-chip:hover { border-color: var(--text); color: var(--text); background: var(--accent-light); }

/* ─── Contact ───────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
@media (max-width: 1024px) { .contact-layout { grid-template-columns: 1fr; gap: 56px; } }
.contact-info-block { margin-bottom: 36px; }
.contact-info-icon-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.contact-label { font-size: 0.72rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.contact-value { font-size: 0.97rem; color: var(--text); font-weight: 500; }
.contact-value a { transition: color 0.2s; }
.contact-value a:hover { color: var(--text); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.79rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.03em; }
.form-input, .form-textarea, .form-select {
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  padding: 13px 16px; border-radius: 10px; transition: border-color 0.25s, box-shadow 0.25s; outline: none; width: 100%;
  box-shadow: var(--shadow-sm);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(15,110,86,0.15); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select option { background: var(--white); color: var(--text); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }

/* ─── Case Study ────────────────────────────────────────────────────── */
.case-study-hero { padding: 160px 0 64px; }
.case-study-meta {
  display: flex; flex-wrap: wrap; gap: 40px; margin: 48px 0;
  padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.meta-label { font-size: 0.7rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.meta-value { font-size: 0.97rem; color: var(--text); font-weight: 600; }
.case-cover {
  width: 100%; aspect-ratio: 16/7; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; margin-bottom: 80px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover-placeholder { font-family: var(--font-display); font-size: 6rem; font-weight: 800; color: var(--border-dark); }
.case-body { max-width: 760px; margin: 0 auto; }
.case-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 56px 0 20px; }
.case-body h3 { font-size: 1.2rem; margin: 36px 0 14px; }
.case-body p { font-size: 1.02rem; line-height: 1.85; margin-bottom: 20px; color: var(--text-muted); }
.case-body ul { margin: 16px 0 24px 20px; }
.case-body li { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 8px; }
.case-full-img {
  width: 100%; max-width: 1100px; margin: 56px auto; aspect-ratio: 16/9;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.case-full-img img { width: 100%; height: 100%; object-fit: cover; }
.case-full-img-placeholder { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--border-dark); }
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
@media (max-width: 640px) { .outcomes-grid { grid-template-columns: 1fr; } }
.outcome-card {
  background: var(--accent-light); border: 1px solid rgba(15,110,86,0.30);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.outcome-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 8px; }
.outcome-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.nav-next {
  display: flex; align-items: center; justify-content: space-between;
  margin: 80px 0 40px; padding: 36px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s; box-shadow: var(--shadow-sm);
}
.nav-next:hover { border-color: var(--text); box-shadow: var(--shadow-md); }
.nav-next-label { font-size: 0.73px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 7px; }
.nav-next-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }

/* ─── Scroll Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-1 { transition-delay: 0.1s; } .reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; } .reveal-4 { transition-delay: 0.45s; }

/* ─── Utilities ─────────────────────────────────────────────────────── */
.text-accent { color: var(--text); }
.mt-24 { margin-top: 24px; } .mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-16 { gap: 16px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }

/* ─── AI Chat Section ───────────────────────────────────────────────── */
.chat-section { padding: 100px 0; background: var(--bg-2); }
.chat-section-page { padding-top: 160px; }
.chat-section-inner {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start;
}
.chat-section-header { text-align: left; }
.chat-right-col { display: flex; flex-direction: column; gap: 14px; }
.chat-widget {
  width: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.chat-messages {
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  min-height: 280px; max-height: 380px; overflow-y: auto;
}
.chat-bubble { display: flex; gap: 12px; align-items: flex-start; }
.chat-bubble-user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
}
.chat-bubble-user .chat-avatar { background: var(--text); }
.chat-text {
  background: var(--bg-2); border-radius: 14px 14px 14px 4px;
  padding: 12px 16px; font-size: 0.9rem; line-height: 1.55;
  color: var(--text); max-width: 80%;
}
.chat-bubble-user .chat-text {
  background: var(--accent); color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.chat-typing { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-dim); animation: chatDot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-starters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 20px 20px; border-bottom: 1px solid var(--border);
}
.chat-starter {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  color: var(--accent); border: 1px solid rgba(15,110,86,0.3);
  background: rgba(15,110,86,0.06); border-radius: 100px;
  padding: 7px 14px; cursor: pointer; transition: all 0.2s;
}
.chat-starter:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.chat-input-row {
  display: flex; gap: 10px; padding: 16px 20px; align-items: center;
}
.chat-input {
  flex: 1; font-family: var(--font-body); font-size: 0.9rem;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 11px 18px; background: var(--bg-2); color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.15s;
}
.chat-send:hover { background: var(--accent-dark); transform: scale(1.05); }
.chat-send:disabled { background: var(--border-dark); cursor: not-allowed; transform: none; }
.chat-api-notice {
  padding: 12px 20px; background: #fffbf0; border-top: 1px solid #f0e8c8;
  font-size: 0.75rem; color: #a0784a; text-align: center; line-height: 1.5;
}
.chat-api-notice a { color: var(--accent); text-decoration: underline; }

@media (max-width: 900px) {
  .chat-section-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .chat-starters { gap: 6px; }
  .chat-starter { font-size: 0.75rem; padding: 6px 11px; }
}

/* ─── Chat Tabs (segmented control) ────────────────────────────────── */
.chat-tabs-outer {
  display: inline-flex; align-self: flex-start;
  background: #ebebeb; border-radius: 12px; padding: 4px; gap: 2px;
}
.chat-tab-outer {
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 500;
  color: var(--text-muted); background: transparent; border: none;
  padding: 8px 22px; border-radius: 9px; cursor: pointer;
  transition: all 0.18s; white-space: nowrap;
}
.chat-tab-outer:hover { color: var(--text); }
.chat-tab-outer.active {
  background: var(--white); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ─── Speak Panel ───────────────────────────────────────────────────── */
.speak-panel { padding: 0; }
.speak-area {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px;
  padding: 40px 28px; min-height: 320px;
  text-align: center;
}
.speak-status {
  font-size: 0.88rem; color: var(--text-muted); font-weight: 500;
}
.speak-transcript {
  font-size: 0.95rem; color: var(--text); font-style: italic;
  min-height: 24px; max-width: 320px; line-height: 1.5;
}
.speak-mic-btn {
  width: 72px; height: 72px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(15,110,86,0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}
.speak-mic-btn:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(15,110,86,0.45); }
.speak-mic-btn.listening {
  background: #e53e3e; box-shadow: 0 4px 20px rgba(229,62,62,0.4);
  animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(229,62,62,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(229,62,62,0); }
}
.speak-response {
  font-size: 0.92rem; color: var(--text); line-height: 1.6;
  max-width: 340px; background: var(--accent-light);
  border-radius: 14px; padding: 14px 18px;
  display: none;
}
.speak-response.visible { display: block; }

/* ─── Chat Widget Header ────────────────────────────────────────────── */
.chat-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--white);
}
.chat-widget-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.chat-widget-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,110,86,0.15);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(15,110,86,0.15); }
  50% { box-shadow: 0 0 0 5px rgba(15,110,86,0.08); }
}
.chat-widget-actions { display: flex; gap: 4px; }
.chat-action-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.chat-action-btn:hover { background: var(--bg-2); color: var(--text); }
.chat-action-btn.danger:hover { background: #fff0f0; color: #e53e3e; }

/* ─── Chat Input Wrap + Char Count ─────────────────────────────────── */
.chat-input-wrap { flex: 1; position: relative; }
.chat-input-wrap .chat-input { width: 100%; padding-right: 44px; }
.chat-char-count {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.7rem; color: var(--text-dim); pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.chat-char-count.visible { opacity: 1; }
.chat-char-count.warn { color: #e53e3e; }

/* ─── Copy button on AI messages ────────────────────────────────────── */
.chat-bubble { position: relative; }
.chat-copy-btn {
  position: absolute; top: 6px; right: -32px;
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--white); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s, color 0.15s;
}
.chat-bubble-ai:hover .chat-copy-btn { opacity: 1; }
.chat-copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.chat-copy-btn.copied { color: var(--accent); border-color: var(--accent); }
