/*
  TeamAdroit Modern Site V6
  Plain HTML/CSS/JS. Keep this file as the main design system.
*/

:root {
  --navy-950: #071c2c;
  --navy-900: #0b263c;
  --navy-850: #10334d;
  --navy-800: #143c59;
  --navy-700: #1d4d6f;
  --ink: #102033;
  --muted: #5b6f86;
  --soft: #f3f7fb;
  --soft-2: #eaf1f7;
  --line: #d8e2eb;
  --white: #ffffff;
  --orange: #f05a3d;
  --orange-2: #ff7a45;
  --teal: #13a8c8;
  --shadow-sm: 0 10px 28px rgba(10, 32, 51, .08);
  --shadow-md: 0 18px 48px rgba(10, 32, 51, .12);
  --shadow-lg: 0 30px 75px rgba(10, 32, 51, .18);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.58;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216,226,235,.85);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand img { width: 176px; height: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  color: #26384d;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.nav-links a:hover,
.nav-links a.active { background: #eaf3f8; color: var(--navy-900); transform: translateY(-1px); }
.nav-links .nav-cta { background: var(--orange); color: #fff; box-shadow: 0 10px 22px rgba(240,90,61,.22); }
.nav-links .nav-cta:hover { background: #e44d31; color: #fff; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  content: "";
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-toggle span::before { transform: translateY(-7px); }
.mobile-toggle span::after { transform: translateY(5px); }
.mobile-toggle.is-open span { background: transparent; }
.mobile-toggle.is-open span::before { transform: translateY(1px) rotate(45deg); }
.mobile-toggle.is-open span::after { transform: translateY(-1px) rotate(-45deg); }

/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .75rem;
  font-weight: 850;
  margin-bottom: 14px;
}
.kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(240,90,61,.12);
  content: "";
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.018em; line-height: 1.06; }
h1 {
  font-size: clamp(2.9rem, 6vw, 5.65rem);
  font-weight: 780;
  word-spacing: .03em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 760;
  word-spacing: .02em;
  margin-bottom: 18px;
}
h3 { font-size: 1.22rem; font-weight: 760; margin-bottom: 10px; }
p { color: var(--muted); font-size: 1.03rem; }
.lead { font-size: clamp(1.08rem, 1.65vw, 1.28rem); line-height: 1.62; color: #314963; max-width: 760px; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255,255,255,.82); }
.dark .lead { color: rgba(255,255,255,.9); }

/* Buttons */
.btn-row { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 780;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 28px rgba(240,90,61,.24); }
.btn-primary:hover { background: #e84f33; }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-secondary:hover { background: rgba(255,255,255,.16); }
.btn-light { background: #fff; color: var(--navy-900); border-color: var(--line); }
.link-arrow { color: var(--orange); font-weight: 820; display: inline-flex; align-items: center; gap: 6px; }

/* Page shells */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-soft { background: linear-gradient(180deg, #f7fafe 0%, #eef5fa 100%); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 32px;
}
.section-heading > div:first-child { max-width: 760px; }
.section-heading p { max-width: 500px; margin-bottom: 0; }
.center-heading { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.center-heading .kicker { justify-content: center; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(240,90,61,.13), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(19,168,200,.16), transparent 30%),
    linear-gradient(135deg, #081d2e 0%, #0d2c43 48%, #154461 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.28));
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
  padding: 70px 0;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { max-width: 700px; margin-bottom: 28px; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 650px;
}
.proof-pill {
  padding: 14px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
}
.proof-pill strong { display: block; color: #fff; font-size: 1.3rem; line-height: 1; margin-bottom: 5px; }
.proof-pill span { color: rgba(255,255,255,.74); font-size: .88rem; }
.hero-visual {
  position: relative;
  min-height: 460px;
}
.hero-card {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
}
.hero-card img { width: 100%; height: 360px; object-fit: cover; }
.hero-card-content { padding: 22px; }
.hero-card-content p { margin: 0; color: rgba(255,255,255,.86); font-size: .98rem; }
.float-card {
  position: absolute;
  left: -26px;
  bottom: 38px;
  width: 260px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.float-card strong { display: block; font-size: 2.1rem; line-height: 1; color: var(--navy-900); margin-bottom: 6px; }
.float-card span { color: var(--muted); font-weight: 700; }

.page-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(240,90,61,.13), transparent 27%),
    linear-gradient(135deg, #081d2e, #123a56);
  color: #fff;
  overflow: hidden;
}
.page-hero-inner {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 48px;
  align-items: center;
  padding: 62px 0;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  max-width: 760px;
}
.page-hero .lead { max-width: 640px; margin-bottom: 0; }
.page-hero-image {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
}
.page-hero-image img { width: 100%; height: 300px; object-fit: cover; }

/* Cards and image blocks */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(240,90,61,.32); }
.card-body { padding: 26px; }
.card p { margin-bottom: 0; }
.card .accent-line {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  margin-bottom: 18px;
}
.image-card img { width: 100%; height: 230px; object-fit: cover; }
.image-card .card-body { min-height: 225px; }
.icon-card { padding: 24px; min-height: 232px; }
.icon-card p { font-size: .98rem; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef7fb;
  color: var(--navy-900);
  font-weight: 850;
  margin-bottom: 18px;
}

/* Home */
.services-row { margin-top: -42px; position: relative; z-index: 5; }
.service-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quick-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.quick-card h3 { margin-bottom: 8px; }
.quick-card p { margin-bottom: 14px; font-size: .98rem; }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.12fr .88fr; }
.split-media {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
}
.split-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.capability-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.capability-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.capability-item h3 { font-size: 1.05rem; }
.capability-item p { font-size: .96rem; margin: 0; }
.client-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.client-logo {
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(10,32,51,.05);
}
.client-logo img { max-height: 48px; max-width: 160px; width: auto; object-fit: contain; filter: saturate(.95); }
.result-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 26px;
  align-items: stretch;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-850));
  color: #fff;
  border-radius: 30px;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.result-panel img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; border-radius: 22px; }
.result-panel h2 { color: #fff; font-size: clamp(2rem, 3vw, 3rem); }
.result-metrics { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.metric { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); border-radius: 18px; padding: 17px 18px; min-width: 150px; }
.metric strong { display: block; color: #fff; font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.metric span { color: rgba(255,255,255,.76); font-size: .92rem; }

/* About */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: stretch;
}
.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.story-photo { border-radius: 28px; overflow: hidden; min-height: 410px; box-shadow: var(--shadow-lg); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.leadership-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.leader-card { padding: 24px; text-align: left; }
.leader-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 4px solid #eef5fa; }
.leader-card .role { color: var(--orange); font-weight: 850; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.value-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.value-item strong { display: block; color: var(--navy-900); margin-bottom: 6px; }
.value-item p { font-size: .93rem; margin: 0; }

/* Practice areas */
.practice-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.practice-overview .card-body { min-height: auto; }
.service-deep {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 38px;
}
.service-deep:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.service-deep:nth-child(even) .service-image { order: 2; }
.service-image { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 390px; }
.service-image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.service-content { padding: 10px 0; }
.service-content h2 { margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.detail-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 18px; }
.detail-card h3 { font-size: 1rem; margin-bottom: 8px; }
.detail-card p { font-size: .94rem; margin: 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #eef7fb; color: var(--navy-850); font-size: .84rem; font-weight: 750; }

/* Industries */
.industries-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.industry-card { min-height: 430px; }
.industry-card img { height: 190px; object-fit: cover; width: 100%; }
.industry-card .card-body { padding: 22px; }
.industry-card p { font-size: .96rem; }
.market-note {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.market-note p { margin: 0; max-width: 820px; }

/* Insights */
.insights-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: start;
}
.case-study-card {
  position: sticky;
  top: 96px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.case-study-card img { width: 100%; height: 240px; object-fit: cover; }
.case-study-body { padding: 28px; }
.case-study-card h2 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.7rem); }
.case-study-card p { color: rgba(255,255,255,.84); }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.insight-card {
  min-height: 300px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.insight-card.feature { background: var(--navy-850); color: #fff; border-color: var(--navy-850); }
.insight-card.feature h3 { color: #fff; }
.insight-card.feature p, .insight-card.feature li { color: rgba(255,255,255,.84); }
.insight-card h3 { margin-bottom: 12px; }
.insight-card p { font-size: .96rem; margin-bottom: 16px; }
ul.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.clean-list li { color: var(--muted); font-size: .92rem; padding-left: 18px; position: relative; }
ul.clean-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); position: absolute; left: 0; top: .72em; }

/* Careers */
.careers-band {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 34px;
  align-items: center;
}
.careers-band img { width: 100%; min-height: 420px; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow-lg); }
.positions-list { display: grid; gap: 12px; }
.position-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(10,32,51,.04);
}
.position-row span { color: var(--muted); font-size: .95rem; }
.position-row strong { color: var(--ink); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 28px;
  align-items: stretch;
}
.contact-panel {
  background: var(--navy-900);
  color: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.contact-panel h2 { color: #fff; font-size: clamp(2rem, 3vw, 3rem); }
.contact-panel p { color: rgba(255,255,255,.74); }
.contact-line { padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-line strong { display: block; color: #fff; margin-bottom: 6px; }
.contact-line a, .contact-line span { color: rgba(255,255,255,.9); }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 780; color: var(--ink); font-size: .92rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: #f9fbfd;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,90,61,.11); background: #fff; }
.form-note { font-size: .9rem; margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 750; color: var(--navy-850); }

/* CTA and footer */
.cta-panel {
  background:
    radial-gradient(circle at 15% 20%, rgba(240,90,61,.18), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { color: #fff; margin-bottom: 12px; }
.cta-panel p { color: rgba(255,255,255,.82); margin: 0; max-width: 760px; }
.site-footer { background: var(--navy-950); color: #fff; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 36px; }
.footer-logo { width: 190px; margin-bottom: 18px; background: #fff; border-radius: 14px; padding: 8px 10px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; color: rgba(255,255,255,.62); font-size: .9rem; }

/* Chatbot */
.ta-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  border: 0;
  border-radius: 999px;
  min-height: 62px;
  padding: 14px 22px;
  font-size: .98rem;
  letter-spacing: .01em;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  font-weight: 850;
  box-shadow: 0 18px 34px rgba(240,90,61,.28);
  cursor: pointer;
}
.ta-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 1200;
  width: min(500px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 116px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(5,22,36,.28);
  border: 1px solid rgba(216,226,235,.8);
}
.ta-chat-panel.is-open { display: flex; animation: chatIn .28s ease both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ta-chat-head { padding: 22px; background: var(--navy-900); color: #fff; display: flex; gap: 14px; align-items: center; }
.ta-chat-head img { width: 148px; height: auto; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px 9px; }
.ta-chat-head strong { display: block; line-height: 1.2; font-size: 1.08rem; }
.ta-chat-head span { color: rgba(255,255,255,.78); font-size: .96rem; line-height: 1.45; }
.ta-chat-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 1.25rem; }
.ta-chat-messages { flex: 1; overflow-y: auto; padding: 22px; background: #f5f8fb; display: flex; flex-direction: column; gap: 14px; }
.ta-msg { max-width: 88%; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(10,32,51,.05); font-size: .98rem; line-height: 1.55; }
.ta-msg.user { margin-left: auto; background: var(--navy-850); color: #fff; }
.ta-quick { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px 2px; background: #f5f8fb; }
.ta-quick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; font-size: .92rem; font-weight: 760; cursor: pointer; }
.ta-chat-form { display: flex; gap: 11px; padding: 18px; border-top: 1px solid var(--line); background: #fff; }
.ta-chat-form input { border-radius: 999px; background: #fff; min-height: 50px; font-size: .98rem; }
.ta-chat-form button { border: 0; border-radius: 999px; background: var(--orange); color: #fff; padding: 0 22px; font-weight: 850; cursor: pointer; font-size: .96rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.float-soft { animation: floatSoft 6.5s ease-in-out infinite; }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 9px 10px; font-size: .86rem; }
  .industries-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .industry-card { min-height: auto; }
}
@media (max-width: 920px) {
  .container { width: min(100% - 34px, var(--max)); }
  .mobile-toggle { display: flex; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero-inner, .page-hero-inner, .split, .split.reverse, .story-grid, .service-deep, .service-deep:nth-child(even), .insights-layout, .contact-layout, .careers-band, .result-panel, .cta-panel, .footer-grid { grid-template-columns: 1fr; }
  .service-deep:nth-child(even) .service-image { order: 0; }
  .hero-inner { min-height: auto; padding: 54px 0 76px; }
  .page-hero-inner { min-height: auto; padding: 50px 0; }
  h1 { font-size: clamp(2.4rem, 11vw, 4.1rem); }
  .page-hero h1 { font-size: clamp(2.25rem, 10vw, 3.8rem); }
  .card-grid, .card-grid-2, .card-grid-4, .practice-overview, .leadership-grid, .values-grid, .client-strip, .insight-grid, .capability-list { grid-template-columns: 1fr; }
  .hero-proof, .service-quick { grid-template-columns: 1fr; }
  .services-row { margin-top: 0; padding-top: 24px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .float-card { position: static; width: auto; margin-top: 16px; }
  .case-study-card { position: static; }
  .market-note { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner { height: 68px; }
  .brand img { width: 152px; }
  .section { padding: 62px 0; }
  .section-tight { padding: 46px 0; }
  .hero-card img, .page-hero-image img { height: 240px; }
  .split-media, .split-media img, .service-image, .service-image img, .careers-band img { min-height: 260px; }
  .card-body, .story-card, .form-card, .contact-panel, .cta-panel { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .position-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .ta-chat-toggle { right: 14px; bottom: 14px; }
  .ta-chat-panel { right: 10px; bottom: 84px; width: calc(100vw - 20px); height: min(680px, calc(100vh - 104px)); }
  .ta-chat-head img { width: 126px; }
  .ta-chat-toggle { min-height: 56px; padding: 12px 18px; }
}

/* V6.2 homepage title readability fix: restores the shorter V5-style title and prevents vertical crowding. */
.hero h1 {
  max-width: 660px;
  font-size: clamp(3.15rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  word-spacing: 0.04em;
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
    line-height: 1.03;
    max-width: 11ch;
  }
}
