/* CUE Accounting — hand-written stylesheet (no build step). */

:root {
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --text: #162033;
  --text-soft: #3a465a;
  --muted: #627089;
  --line: #e1e7ef;
  --line-strong: #cfd8e3;

  --blue: #3c7cc9;
  --blue-strong: #2f69b0;
  --blue-tint: rgba(60, 124, 201, 0.1);
  --teal: #20ba97;
  --teal-strong: #11916f;
  --teal-tint: rgba(32, 186, 151, 0.12);

  --shadow-sm: 0 1px 2px rgba(22, 32, 51, 0.05), 0 1px 3px rgba(22, 32, 51, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(22, 32, 51, 0.08), 0 12px 32px -8px rgba(22, 32, 51, 0.1);
  --shadow-lg: 0 24px 60px -18px rgba(22, 32, 51, 0.28);

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  color-scheme: light;
}

html.dark {
  --bg: #0a1120;
  --bg-alt: #0d1526;
  --surface: #111a2c;
  --surface-2: #162136;
  --text: #eef2f8;
  --text-soft: #c9d2df;
  --muted: #93a0b5;
  --line: #1f2a40;
  --line-strong: #2b3852;

  --blue: #6da3e8;
  --blue-strong: #8ab6ef;
  --blue-tint: rgba(109, 163, 232, 0.12);
  --teal: #3dd3ae;
  --teal-strong: #5fe0bf;
  --teal-tint: rgba(61, 211, 174, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--teal-tint);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 112px;
}

.section-alt {
  background: var(--bg-alt);
}

/* ---------- Typography helpers ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-strong);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.section-head {
  max-width: 660px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .kicker {
  justify-content: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.075rem;
  color: var(--muted);
}

.accent {
  color: var(--teal);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(60, 124, 201, 0.55);
}

html.dark .btn-primary {
  background: #3c7cc9;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #2f69b0;
  box-shadow: 0 12px 28px -8px rgba(60, 124, 201, 0.6);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand img {
  height: 46px;
  width: auto;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}

.icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.theme-toggle svg {
  transition: transform 0.6s var(--ease);
}

.theme-toggle:hover svg {
  transform: rotate(40deg);
}

.menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 104px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-tint), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-tint), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

.badge .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.badge .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 2.4s ease-out infinite;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin-top: 24px;
  max-width: 540px;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.hero-sub {
  margin-top: 12px;
  max-width: 540px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.hero-trust svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--teal);
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  color: #162033;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 32, 51, 0.06);
}

.float-card strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
}

.float-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #11916f;
}

.float-card.tpb {
  left: -28px;
  bottom: 36px;
  animation: floatY 7s ease-in-out infinite;
}

.float-card.tpb img {
  height: 46px;
  width: auto;
}

.float-card.ca {
  right: -20px;
  top: 28px;
  padding: 10px 14px;
  animation: floatY 8s ease-in-out 1.2s infinite;
}

.float-card.ca img {
  height: 44px;
  width: auto;
}

.float-card.years {
  right: 32px;
  bottom: -26px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 14px 20px;
  animation: floatY 9s ease-in-out 0.6s infinite;
}

.float-card.years b {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: #3c7cc9;
  letter-spacing: -0.03em;
}

.float-card.years span {
  margin-top: 4px;
  color: #627089;
}

/* ---------- Accreditations ---------- */

.accred {
  padding-block: 72px;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

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

.accred-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.accred-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.accred-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 168px;
  height: 168px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 32, 51, 0.06);
}

.accred-badge img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.accred-copy h3 {
  margin-top: 8px;
  font-size: 1.4rem;
}

.accred-copy p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.accred-copy .accred-meta {
  margin-top: 12px;
  color: var(--text-soft);
}

.accred-meta strong {
  color: var(--teal-strong);
  letter-spacing: 0.02em;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin-top: 32px;
}

.partners > span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.partners .logo-tile {
  width: 170px;
  height: 64px;
  padding: 10px 16px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

html.dark .logo-tile {
  border-color: transparent;
}

.logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.logo-tile img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.5s var(--ease);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}

html.dark .service-card:hover .service-icon {
  background: #3c7cc9;
}

.service-card h3 {
  margin-top: 22px;
  font-size: 1.2rem;
}

.service-card p {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--muted);
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

.service-card[aria-busy="true"] .service-link svg {
  animation: nudge 0.8s ease-in-out infinite;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease both;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: rise 0.45s var(--ease) both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
}

.modal-head .service-icon {
  background: var(--blue);
  color: #fff;
}

html.dark .modal-head .service-icon {
  background: #3c7cc9;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-title small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-strong);
}

.modal-title h3 {
  font-size: 1.5rem;
}

.modal-body {
  padding: 22px 28px 8px;
}

.modal-body > p {
  color: var(--muted);
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}

.check-list li > svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-strong);
}

.check-list ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.check-list ul li {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.modal-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.modal-partners .logo-tile {
  height: 72px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 28px 28px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 80px;
}

.portrait {
  position: relative;
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease);
}

.portrait:hover .portrait-frame img {
  transform: scale(1.04);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  z-index: -1;
  border-radius: 24px;
  border: 2px solid var(--teal);
  opacity: 0.45;
}

.portrait-name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}

.portrait-name strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.portrait-name span {
  font-size: 0.85rem;
  color: var(--teal-strong);
  font-weight: 600;
}

.about-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.about-copy .prose {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  font-size: 1.05rem;
}

.about-copy .prose strong {
  color: var(--text);
}

.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.creds li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.creds li:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.creds svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--teal);
}

/* ---------- Testimonials ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-quote-mark {
  width: 34px;
  height: 34px;
  color: var(--teal);
  opacity: 0.85;
}

.stars {
  display: flex;
  gap: 3px;
  margin-top: 18px;
  color: #f5b301;
}

.stars svg {
  width: 16px;
  height: 16px;
}

.review blockquote {
  flex: 1;
  margin: 16px 0 0;
  font-size: 0.97rem;
  color: var(--text-soft);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3c7cc9, #20ba97);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.review cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.review figcaption div span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.contact-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.channels {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.channel:hover {
  transform: translateX(4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.channel:hover .channel-icon {
  background: var(--blue);
  color: #fff;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel strong {
  display: block;
  color: var(--text);
  word-break: break-word;
}

.contact-card {
  padding: 36px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 28px;
  font-size: 1.05rem;
}

.btn-lg svg {
  width: 20px;
  height: 20px;
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 10px 10px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.email-address {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--text);
}

.copy-btn {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.copy-btn span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.copy-btn.is-copied {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-strong);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.contact-card .channels {
  margin-top: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 64px 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 50px;
  width: auto;
  background: transparent;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.93rem;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--teal-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom .liability {
  font-weight: 700;
  color: var(--text-soft);
}

.disclosure {
  position: relative;
  display: inline-block;
}

.disclosure a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.disclosure a svg {
  width: 16px;
  height: 16px;
}

.tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 8px;
  background: #162033;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.2s ease both;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #162033;
}

/* ---------- Motion ---------- */

.motion .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.motion .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.enter {
  animation: enter 0.9s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes enter {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .motion .reveal {
    opacity: 1;
    translate: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accred-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .section {
    padding-block: 84px;
  }

  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 12px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    animation: rise 0.35s var(--ease) both;
  }

  .mobile-menu a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    color: var(--text);
  }

  .mobile-menu .btn {
    margin-top: 18px;
  }

  .hero {
    padding-block: 48px 88px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .portrait {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }

  .brand img {
    height: 38px;
  }

  .services-grid,
  .creds {
    grid-template-columns: 1fr;
  }

  .accred-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 22px;
  }

  .accred-badge {
    width: 140px;
    height: 140px;
  }

  .float-card.tpb {
    left: -8px;
    bottom: 20px;
  }

  .float-card.ca {
    right: -8px;
  }

  .float-card.years {
    display: none;
  }

  .portrait::before {
    inset: 16px -12px -16px 16px;
  }

  .contact-card {
    padding: 22px;
  }

  .email-row {
    padding-left: 14px;
  }

  .email-address {
    font-size: 0.9rem;
  }

  .copy-btn {
    padding: 9px;
  }

  .copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .modal {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-foot {
    flex-direction: column-reverse;
  }

  .modal-foot .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Card-wide click target for service cards */
.service-link.stretched {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.service-link.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
