/* ─── TOKENS (mirrors the newer site palette) ────────────── */
:root {
  --ink:           #0A1628;
  --ink-dim:       #5B6A82;
  --surface:       #FFFFFF;
  --panel:         #F2F6FB;

  --dark:          #0D1B2E;
  --navy:          #1A3A5C;
  --blue:          #2563AE;
  --sky:           #5BA8D9;

  --accent:        #2563EB;
  --accent-dark:   #1D4ED8;
  --accent-glow:   rgba(37, 99, 235, .28);
  --accent-glow-2: rgba(37, 99, 235, .12);
  --accent-halo:   rgba(37, 99, 235, .40);
  --accent-tint:   rgba(37, 99, 235, .07);
  --accent-border: rgba(37, 99, 235, .18);
  --on-accent:     #FFFFFF;

  --border-l:      #E2E8F0;

  --nav-bg:        rgba(255, 255, 255, .94);
  --nav-cta-bg:    #E8EEF5;
  --nav-cta-bg-h:  #D5DFEC;
  --nav-cta-text:  #0A1628;

  --hero-glow-1:   rgba(37, 99, 174, .25);
  --hero-glow-2:   rgba(26, 58, 92, .40);

  --shadow-soft:   0 6px 28px rgba(13, 27, 46, .12);
  --shadow-hover:  0 12px 40px rgba(13, 27, 46, .18);

  --success-bg:    rgba(34, 197, 94, .08);
  --success-bd:    rgba(34, 197, 94, .22);
  --success-ink:   #15803D;

  --radius:        12px;
  --radius-lg:     18px;
  --nav-h:         56px;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring:   cubic-bezier(.34, 1.56, .64, 1);
  --ease-gentle:   cubic-bezier(.25, .46, .45, .94);
}

[data-theme="dark"] {
  --ink:           #E6EDF7;
  --ink-dim:       #8DA0BD;
  --surface:       #0A1321;
  --panel:         #111E37;

  --dark:          #050B17;
  --navy:          #1E3A6B;
  --blue:          #3B82F6;
  --sky:           #60A5FA;

  --accent:        #2563EB;
  --accent-dark:   #1D4ED8;
  --accent-glow:   rgba(37, 99, 235, .30);
  --accent-glow-2: rgba(37, 99, 235, .14);
  --accent-halo:   rgba(37, 99, 235, .45);
  --accent-tint:   rgba(37, 99, 235, .10);
  --accent-border: rgba(37, 99, 235, .28);

  --border-l:      #1B2742;

  --nav-bg:        rgba(10, 19, 33, .85);
  --nav-cta-bg:    #172340;
  --nav-cta-bg-h:  #223152;
  --nav-cta-text:  #E6EDF7;

  --hero-glow-1:   rgba(37, 99, 235, .30);
  --hero-glow-2:   rgba(59, 130, 246, .22);

  --shadow-soft:   0 6px 28px rgba(0, 0, 0, .55);
  --shadow-hover:  0 12px 40px rgba(37, 99, 235, .15);

  --success-bg:    rgba(34, 197, 94, .10);
  --success-bd:    rgba(34, 197, 94, .24);
  --success-ink:   #4ADE80;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; width: 100%; }
ul { list-style: none; }

/* ─── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-l);
  transition: box-shadow .3s var(--ease-out-expo), background-color .4s ease, border-color .4s ease;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.3px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s, color .4s ease;
}
.nav-logo:hover { opacity: .85; }

.nav-logo-mark {
  flex-shrink: 0;
  overflow: visible;
}
.nav-logo-mark .logo-outer {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  fill: none;
  transition: stroke .4s ease;
}
.nav-logo-mark .logo-inner {
  fill: var(--accent);
  transform-origin: center;
  transform-box: fill-box;
  transition: fill .4s ease, transform .3s var(--ease-spring);
}
.nav-logo:hover .logo-inner { transform: scale(1.25); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-dim);
  transition: color .4s ease;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .2s;
}
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: width .25s var(--ease-out-expo), background-color .4s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-active {
  font-weight: 600;
  color: var(--ink) !important;
}
.nav-active:not(.nav-cta)::after { width: 100% !important; }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--nav-cta-bg);
  color: var(--nav-cta-text) !important;
  border-radius: 8px;
  transition: background .2s, transform .15s, color .4s ease;
}
.nav-cta:hover {
  background: var(--nav-cta-bg-h);
  transform: translateY(-1px);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-l);
  border-radius: 50%;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .3s var(--ease-spring);
}
.theme-toggle:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: var(--accent-glow-2);
  transform: rotate(-12deg);
}
[data-theme="dark"] .theme-toggle:hover {
  color: var(--accent);
  transform: rotate(12deg);
}
.tt-icon { display: none; }
[data-theme="light"] .tt-moon,
:root:not([data-theme="dark"]) .tt-moon { display: block; }
[data-theme="dark"] .tt-sun { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out-expo), opacity .2s, background-color .4s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-l);
  padding: 20px 32px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform .25s var(--ease-out-expo), opacity .2s, background-color .4s ease, border-color .4s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-size: 16px;
  color: var(--ink-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-l);
  transition: color .2s, border-color .4s ease;
}
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a:last-of-type { border-bottom: none; }

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0 2px;
  background: none;
  border: none;
  border-top: 1px solid var(--border-l);
  margin-top: 6px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .2s, border-color .4s ease;
}
.mobile-theme-toggle:hover { color: var(--accent-dark); }
[data-theme="dark"] .mobile-theme-toggle:hover { color: var(--accent); }
.mtt-label-light,
.mtt-label-dark { display: none; }
[data-theme="light"] .mtt-label-light,
:root:not([data-theme="dark"]) .mtt-label-light { display: inline; }
[data-theme="dark"] .mtt-label-dark { display: inline; }
.mtt-icon-wrap {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-l);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: border-color .2s;
}
.mobile-theme-toggle:hover .mtt-icon-wrap { border-color: var(--accent); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

.contact-left {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 46% at 30% 36%, var(--hero-glow-1) 0%, transparent 72%),
    radial-gradient(ellipse 42% 42% at 82% 72%, var(--hero-glow-2) 0%, transparent 76%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    var(--dark);
}
.contact-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(37, 99, 235, .18), transparent 36%);
  pointer-events: none;
}
.contact-left-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 52px 44px;
}
.left-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}

/* ─── TESTIMONIAL CAROUSEL ─────────────────────────────── */
.t-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 72px;
  transition: opacity .5s ease;
}
.t-slide--active { opacity: 1; }

.t-card {
  width: 100%;
  max-width: 620px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s ease, border-color .3s ease;
}
.t-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 76px rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.16);
}
.t-card-inner {
  display: flex;
  align-items: stretch;
  min-height: 320px;
}
.t-card-inner--reverse { flex-direction: row-reverse; }

.t-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 38px 30px;
}
.t-stars {
  color: #FBBF24;
  font-size: 15px;
  letter-spacing: 2px;
}
.t-quote {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
}
.t-byline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}
.t-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}
.t-org {
  font-size: 14px;
  color: rgba(255,255,255,.56);
}

.t-photo {
  position: relative;
  flex-shrink: 0;
  width: 38%;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,.08);
}
.t-card-inner--reverse .t-photo {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,.08);
}
.t-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* The .t-arrow-row wrapper exists in the markup so the mobile
   layout can group the two arrows into a single sibling row
   below the carousel. On desktop we want it to be invisible to
   the layout — `display: contents` makes the wrapper disappear
   from the box tree, so the two `.t-arrow` buttons inside still
   behave as direct children of `.t-carousel-wrapper` (which is
   what the existing absolute-overlay positioning expects). */
.t-arrow-row { display: contents; }

.t-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: .8;
  transition: background .2s ease, transform .25s var(--ease-spring), opacity .2s ease, border-color .2s ease;
}
.t-arrow:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}
.t-arrow--prev { left: 8px; }
.t-arrow--next { right: 8px; }

.t-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.t-dot {
  width: 8px;
  height: 8px;
  border: none;
  padding: 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  transition: width .4s var(--ease-out-expo), background .35s ease, border-radius .4s var(--ease-out-expo);
}
.t-dot:hover:not(.t-dot--active) { background: rgba(255,255,255,.46); }
.t-dot--active {
  width: 28px;
  border-radius: 5px;
  background: var(--accent);
}

/* ─── RIGHT PANEL ───────────────────────────────────────── */
.contact-right {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  background: var(--surface);
  border-left: 1px solid var(--border-l);
}
.form-section {
  flex: 1;
  padding: 56px 60px;
  background:
    radial-gradient(circle at top right, var(--accent-glow-2), transparent 34%),
    var(--surface);
  transition: background-color .4s ease;
}
.contact-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
[data-theme="dark"] .contact-kicker { color: var(--sky); }
.contact-heading {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -1.4px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-sub {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.contact-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark"] .contact-tags span {
  color: var(--sky);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group--select { position: relative; }
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .4s ease;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-dim);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-glow-2);
}
.form-input.input-error {
  border-color: #EF4444;
  animation: shake .35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.form-select {
  padding-right: 42px;
  cursor: pointer;
}
.select-chevron {
  position: absolute;
  right: 14px;
  bottom: 15px;
  color: var(--ink-dim);
  pointer-events: none;
}
.form-textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.7;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 15px 24px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .18);
  transition: background .2s ease, transform .2s var(--ease-spring), box-shadow .2s ease;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .22);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--success-bg);
  border: 1px solid var(--success-bd);
  color: var(--success-ink);
  font-size: 15px;
  line-height: 1.65;
}
.form-success svg { flex-shrink: 0; }
.form-success.visible { display: flex; }

.contact-footer {
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-l);
  background: var(--surface);
}
.footer-copy {
  font-size: 12px;
  color: var(--ink-dim);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--ink); }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .form-section { padding: 48px 40px; }
  .contact-footer { padding: 24px 40px; }
  .contact-left-inner { padding: 36px 40px 44px; }
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-left {
    position: relative;
    top: auto;
    height: 60vw;
    min-height: 340px;
  }

  .contact-right {
    min-height: auto;
    border-left: none;
    border-top: 1px solid var(--border-l);
  }

  .t-card { max-width: 520px; }
  .t-card-inner { min-height: 260px; }
  .t-card-text { padding: 32px 24px; gap: 12px; }
  .t-quote { font-size: 15px; line-height: 1.9; }
  .t-name { font-size: 14px; }
  .t-org { font-size: 12px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links,
  .nav-status,
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .mobile-menu { padding: 20px 20px 24px; }

  .contact-left {
    height: 56vw;
    min-height: 300px;
  }
  .contact-left-inner {
    padding: 24px 24px 40px;
  }
  .left-badge {
    display: none;
  }

  .t-slide { padding: 28px 0 62px; }
  .t-arrow--prev { left: 0; }
  .t-arrow--next { right: 0; }

  .form-section { padding: 36px 24px; }
  .contact-footer {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .t-card-inner--reverse { flex-direction: row; }
  .t-card-inner--reverse .t-photo {
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: none;
  }
}

@media (max-width: 625px) {
  /* ─── Mobile testimonial-carousel navigation ───────────────────
     On wide screens the prev/next arrows are absolute-positioned
     overlays floating beside the testimonial card. On narrow
     screens that overlap looks broken — the arrows sit on top of
     the card's left/right edges.

     Fix: switch the carousel-wrapper from a centred overlay layout
     to a vertical column. Items now stack in DOM order:
        1) .t-carousel-track       (the card)
        2) .t-arrow-row            (← prev / next →)
        3) .t-dots                 (• • • •)

     The arrow row uses `display: flex` (overriding the desktop
     `display: contents`), and the two `.t-arrow` buttons inside
     it switch from `position: absolute` to `position: static`
     so they sit naturally inside the row instead of overlaying
     the carousel.
     ─────────────────────────────────────────────────────────── */

  /* Stack track / arrow-row / dots vertically inside the wrapper. */
  .t-carousel-wrapper {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
  }

  /* The track was sized as `height: 100%` on desktop, which assumed
     a centred overlay layout. In a column flex it needs to flex-grow
     to absorb available space while the arrow row + dots take their
     natural heights below. */
  .t-carousel-track {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  /* Reveal the arrow-row wrapper and lay it out as a flex row,
     pushing the two arrow buttons to the outer edges. */
  .t-arrow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 auto;
    padding: 0 4px;
  }

  /* Take the arrows OUT of the desktop absolute-overlay positioning
     so they sit naturally inside .t-arrow-row as inline siblings. */
  .t-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 38px;
    height: 38px;
    opacity: .9;
  }
  /* Override the desktop hover transform — we no longer need
     `translateY(-50%)` since the buttons aren't centring anymore. */
  .t-arrow:hover {
    transform: scale(1.08);
    opacity: 1;
  }

  /* Dots also leave the absolute overlay and join the column. They
     come AFTER the arrow row in DOM order, so they end up below the
     arrows in the visual stack. */
  .t-dots {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    justify-content: center;
    flex: 0 0 auto;
  }

  /* The slide had aggressive bottom-padding on desktop to keep
     content above the absolute-positioned dots. With dots in the
     flow now, that padding is no longer needed. */
  .t-slide { padding: 18px 0; }
}

@media (max-width: 580px) {
  .contact-left {
    height: 62vw;
    min-height: 250px;
  }
  /* No extra bottom padding needed — the arrows and dots are now
     real flex-row siblings below the slide, not absolute overlays. */
  .t-slide { padding: 18px 0; }
  .t-card { max-width: 100%; }
  .t-card-inner { min-height: 190px; }
  .t-card-text {
    gap: 8px;
    padding: 20px 14px;
  }
  .t-stars {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .t-quote {
    font-size: 12px;
    line-height: 1.65;
  }
  .t-name { font-size: 12px; }
  .t-org { font-size: 11px; }
  .t-photo { width: 34%; }

  .contact-tags { gap: 8px; }
  .contact-tags span {
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .contact-heading {
    font-size: 30px;
    letter-spacing: -.6px;
  }
  .contact-left {
    height: 64vw;
    min-height: 230px;
  }
  .t-photo {
    width: 34%;
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .form-section { padding: 28px 20px; }
  .contact-footer { padding: 20px; }
}

@media (max-width: 465px) {
  .t-card {
    margin-top: 50px;
  }
}

@media (max-width: 490px) {
  .contact-left,
  section.contact-left {
    height: 350px;
    min-height: 350px;
  }

  .contact-left-inner {
    padding: 18px 16px 24px;
  }

  /* The 625px block already switches the wrapper to column-flex.
     Override align-items here so the testimonial card aligns to
     the top of the panel instead of being centred — leaves more
     headroom on this fixed 350px panel. */
  .t-carousel-wrapper {
    align-items: stretch;
  }

  .t-slide {
    align-items: flex-start;
    padding: 16px 0 0;
  }

  .t-card {
    max-width: 100%;
    margin-top: 0;
  }

  .t-card-inner {
    min-height: 200px;
  }
}