/* BrightAct site styles
   Colors and type live in the tokens below; change them here to restyle the whole site. */
:root {
  /* Palette: Electric Sunset */
  --navy-blue: #00457f;
  --blue: #2f8ee0;
  --ice: #edf5fa;
  --amber: #ffa723;
  --orange: #ec6206;

  /* Roles */
  --ink: #0a2540;          /* headings on light */
  --text: #4a5b6c;         /* body on light */
  --navy: var(--navy-blue);       /* dark sections */
  --navy-deep: #002b52;    /* footer: darker shade of navy-blue */
  --accent: var(--amber);  /* buttons (with ink text), highlights on dark */
  --accent-ink: #c24e00;   /* orange for small text on light (4.8:1 on white) */
  --blue-ink: #1a6fbf;     /* blue for links and small text on light (5.2:1 on white) */
  --on-dark: #ffffff;
  --muted-dark: #c9ddee;   /* body on dark */
  --line: #d8e4ee;
  --line-dark: rgba(255, 255, 255, 0.14);
  --light: var(--ice);
  --white: #ffffff;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 18px 40px -24px rgba(13, 27, 42, 0.35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible, .is-over-dark :focus-visible, .is-scrolled :focus-visible { outline-color: var(--amber); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--pill); font-weight: 700; }
.skip:focus { top: 12px; }
.center { text-align: center; margin-top: 48px; }

/* ---------- Buttons & labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font: 700 14px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 13px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--orange); color: var(--ink); }
.btn-dark { background: var(--navy-blue); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -12px; border-radius: 50%; background: var(--ink); color: var(--accent); }

.eyebrow {
  display: inline-block; margin: 0 0 20px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: var(--pill);
  font: 700 12px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.eyebrow-dark { border-color: var(--line-dark); color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header.is-over-dark { background: transparent; box-shadow: none; }
.site-header.is-over-dark .logo-a, .site-header.is-over-dark .site-nav a:not(.btn), .site-header.is-over-dark .menu-toggle { color: var(--on-dark); }
.site-header.is-scrolled { background: var(--navy); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-scrolled .logo-a, .site-header.is-scrolled .site-nav a:not(.btn), .site-header.is-scrolled .menu-toggle { color: var(--on-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { font: 300 28px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.logo-a { color: var(--ink); }
.logo-b { color: var(--orange); font-weight: 700; }
.is-over-dark .logo-b, .is-scrolled .logo-b, .menu-open .logo-b, .logo-light .logo-b { color: var(--amber); }
.logo-light .logo-a { color: var(--on-dark); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; place-items: center; }

/* ---------- Dark sections & hero ---------- */
.dark { background: var(--navy); color: var(--muted-dark); position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark a:not(.btn) { color: var(--on-dark); }
.hero-lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--container); margin: 0 auto; pointer-events: none; }
.hero-lines span { border-left: 1px solid var(--line-dark); }
.hero-lines span:last-child { border-right: 1px solid var(--line-dark); }
.hero-lines::after { content: ""; border-left: 1px solid var(--line-dark); }
.hero { min-height: min(92vh, 820px); display: flex; align-items: center; padding: 140px 0 120px; }
.hero-inner { position: relative; z-index: 1; }
.hero-title { max-width: 15ch; font-size: clamp(40px, 7vw, 84px); line-height: 1.05; margin-bottom: 40px; }
.rotator { display: block; position: relative; height: 1.15em; color: var(--accent); }
.rotator-word { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(0.4em); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.rotator-word.is-active { opacity: 1; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.link-light { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 500; text-decoration: none; padding: 12px 0; }
.link-light:hover { color: var(--accent); }
.hero-watermark { position: absolute; right: -0.04em; bottom: -0.22em; margin: 0; font: 700 clamp(90px, 17vw, 240px)/1 var(--font-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); pointer-events: none; user-select: none; }
.page-hero { padding: 170px 0 90px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero-tall { min-height: 70vh; display: flex; align-items: center; }
.lead-light { color: var(--muted-dark); font-size: 19px; max-width: 56ch; }
.lead-light a { color: var(--on-dark); }

/* ---------- Services ---------- */
.services { border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service { padding: 48px 32px 52px; border-left: 1px solid var(--line); transition: background-color 0.25s var(--ease); }
.service:last-child { border-right: 1px solid var(--line); }
.service:hover { background: var(--light); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; color: var(--ink); }
.service-top .icon { color: var(--blue); }
.service-num { font: 300 40px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px #9aa6b2; }
.service h3 { margin-bottom: 10px; }
.service p { margin: 0; }

/* ---------- Generic sections ---------- */
.section { padding: var(--section) 0; }
.bg-light { background: var(--light); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.prose p:last-child { margin-bottom: 0; }
.note { margin-top: 1em; font-size: 15px; font-weight: 500; color: var(--ink); padding-left: 14px; border-left: 2px solid var(--accent); }

/* Case studies */
.cases { display: grid; gap: 28px; }
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.case:nth-child(even) .case-body { order: 2; }
.case-num { display: block; font: 600 14px/1 var(--font-display); color: var(--blue-ink); letter-spacing: 0.08em; margin-bottom: 14px; }
.case-body h3 { font-size: clamp(26px, 3vw, 34px); }
.case-body .btn { margin-top: 8px; }
.case-img { border-radius: var(--radius-sm); margin-bottom: 20px; }
.quote-card { margin: 0; background: var(--navy); color: var(--muted-dark); border-radius: var(--radius-sm); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote-card blockquote { margin: 0; font: 400 19px/1.55 var(--font-display); color: var(--on-dark); letter-spacing: -0.01em; }
.quote-card figcaption strong { display: block; color: var(--on-dark); font-weight: 700; }
.quote-card figcaption span { font-size: 15px; }
.quote-mark { color: var(--orange); flex: none; }
.quote-card .quote-mark { color: var(--amber); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.person-photo { width: 160px; height: 200px; object-fit: cover; border-radius: var(--radius-sm); background: var(--light); }
.avatar-initials { display: grid; place-items: center; font: 600 44px/1 var(--font-display); color: var(--navy-blue); background: var(--light); }
.person h3 { margin-bottom: 4px; }
.person-role { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }

/* Contact */
.contact-band .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-card-light { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.dark .field label { color: var(--on-dark); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid #c9d0d7; border-radius: var(--radius-sm); padding: 13px 16px; min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.contact-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.address-card { background: var(--light); border-radius: var(--radius); padding: 36px; }
.address-card h2 { font-size: 22px; }

/* Clients page */
.client-list { display: grid; }
.client { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.client:first-child { border-top: 0; padding-top: 0; }
.client-side h2 { font-size: clamp(26px, 3vw, 34px); }
.client-logo { max-height: 56px; width: auto; margin-bottom: 16px; }
.name-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.name-wall li { display: grid; place-items: center; min-height: 96px; padding: 16px; text-align: center; background: var(--white); border-radius: var(--radius-sm); font: 600 18px/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }

/* Testimonials page */
.testimonial-grid { columns: 2 380px; column-gap: 28px; }
.testimonial { break-inside: avoid; margin: 0 0 28px; background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.testimonial .quote-mark { margin-bottom: 18px; }
.testimonial blockquote { margin: 0 0 28px; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); line-height: 1.35; }
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); }
.testimonial figcaption span span { font-size: 15px; }
.t-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.t-avatar.avatar-initials { font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--muted-dark); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-blurb { max-width: 36ch; margin-top: 20px; }
.footer-h { font-size: 16px; color: var(--on-dark); margin-bottom: 16px; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a:not(.logo) { color: var(--muted-dark); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:not(.logo):hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-dark); font-size: 15px; }
.footer-bottom p { margin: 0; padding: 6px 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 1px solid var(--line); }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case, .contact-grid, .contact-page, .client { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-body { order: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px var(--gutter) 24px; background: var(--navy); box-shadow: 0 1px 0 var(--line-dark); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; color: var(--on-dark) !important; padding: 12px 0; }
  .site-nav .btn { justify-content: center; }
  .site-header.menu-open { background: var(--navy); }
  .site-header.menu-open .logo-a, .site-header.menu-open .menu-toggle { color: var(--on-dark); }
  .hero-lines { grid-template-columns: repeat(2, 1fr); }
  .hero-lines span:nth-child(n+2) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 1px solid var(--line); }
  .service:nth-child(n+2) { border-top: 1px solid var(--line); }
  .person { grid-template-columns: 1fr; }
  .person-photo { width: 120px; height: 150px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 28px; }
  .hero { min-height: 0; padding: 130px 0 110px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.08em; border-radius: 14px; }
  .page-hero { padding: 140px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   Dynamic layer: animated hero, overlapping service cards, client slider,
   testimonial carousel, bold color blocks
   ===================================================================== */
[hidden] { display: none !important; }

/* Hero: angled bottom edge, travelling light on the grid lines, slow orbiting arcs */
.hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 90px), 0 100%); padding-bottom: 220px; }
.hero-lines span { position: relative; overflow: hidden; }
.hero-lines span::after {
  content: ""; position: absolute; left: -1px; top: -160px; width: 2px; height: 160px;
  background: linear-gradient(to bottom, rgba(255, 167, 35, 0), var(--pulse, var(--amber)));
  animation: pulse-down 7s linear infinite; animation-delay: var(--delay, 0s);
}
.hero-lines span:nth-child(1) { --pulse: var(--amber); --delay: 0s; }
.hero-lines span:nth-child(2) { --pulse: var(--blue); --delay: 2.3s; }
.hero-lines span:nth-child(3) { --pulse: var(--orange); --delay: 4.6s; }
@keyframes pulse-down { from { transform: translateY(0); } to { transform: translateY(calc(100vh + 400px)); } }
.hero-arcs { position: absolute; right: -140px; top: 50%; width: min(680px, 62vw); height: auto; transform: translateY(-55%); pointer-events: none; }
.arc-spin { transform-box: fill-box; transform-origin: center; }
.arc-spin-slow { animation: spin 60s linear infinite; }
.arc-spin-rev { animation: spin 80s linear infinite reverse; }
.arc-spin-mid { animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { animation: rise 0.9s var(--ease) both; }
.hero .eyebrow { animation: rise 0.9s var(--ease) both; }
.hero-actions { animation: rise 0.9s 0.15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.page-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); padding-bottom: 130px; }

/* Services: cards that overlap the hero edge */
.services { border-bottom: 0; position: relative; z-index: 2; margin-top: -150px; }
.services-grid { gap: 20px; }
.services .service, .services .service:nth-child(n) {
  border: 0; background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(0, 43, 82, 0.45);
  padding: 36px 30px 40px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.services .service:hover { background: var(--navy); color: var(--muted-dark); transform: translateY(-8px); }
.services .service:hover h3 { color: var(--on-dark); }
.services .service:hover .icon { color: var(--amber); }
.service-num { font-size: 64px; font-weight: 700; transition: -webkit-text-stroke-color 0.3s var(--ease); }
.services .service:hover .service-num { -webkit-text-stroke-color: var(--amber); }

/* Section header with controls on the right */
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.slider-nav { display: flex; align-items: center; gap: 12px; }
.slider-count { font: 600 15px/1 var(--font-display); color: var(--muted-dark); min-width: 4.5em; text-align: right; }
.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.round-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.round-btn-light { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.round-btn-light:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.round-btn:disabled { opacity: 0.4; cursor: default; }

/* Client slider (tabs) */
.case-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 32px; }
.case-tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px;
  border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  font: 600 15px/1 var(--font-display); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.case-tab:hover { border-color: var(--navy); }
.case-tab-num { font-size: 12px; color: var(--blue-ink); }
.case-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.case-tab[aria-selected="true"] .case-tab-num { color: var(--amber); }
.js-cases .case { display: none; }
.js-cases .case.is-active { display: grid; animation: case-in 0.5s var(--ease) both; }
@keyframes case-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
.case-body { position: relative; }
.case-big-num { display: block; font: 700 clamp(72px, 9vw, 120px)/0.9 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--blue); letter-spacing: -0.04em; margin-bottom: 8px; }
.slider-progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 28px; overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 25%; background: var(--orange); transition: width 0.4s var(--ease); }

/* Team: bold initials blocks */
.avatar-initials { background: var(--navy); color: var(--amber); }
.person { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Testimonial carousel on Home (angled top edge) */
.quotes-sec { clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--section) + 50px); }
.quote-track {
  list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(520px, 86%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.quote-track:focus-visible { outline-offset: 6px; }
.quote-slide { scroll-snap-align: start; }
.quote-slide figure {
  height: 100%; margin: 0; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.quote-slide figure:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 167, 35, 0.5); }
.quote-slide .quote-mark { color: var(--amber); }
.quote-slide blockquote { margin: 0; font: 400 19px/1.55 var(--font-display); color: var(--on-dark); letter-spacing: -0.01em; }
.quote-slide figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; align-items: center; gap: 14px; line-height: 1.35; font-size: 15px; }
.quote-slide figcaption strong { display: block; color: var(--on-dark); font-family: var(--font-display); font-size: 16px; }
.quotes-more { margin: 28px 0 0; }

/* Contact: big orange block */
.contact-band { background: var(--orange); color: var(--ink); }
.eyebrow-ink { border-color: rgba(10, 37, 64, 0.35); color: var(--ink); }
.contact-title { font-size: clamp(44px, 6.5vw, 84px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.contact-lead { font-size: 19px; color: var(--ink); max-width: 30ch; }
.contact-band .form-card { box-shadow: 0 30px 60px -30px rgba(0, 43, 82, 0.6); border: 0; }
.contact-band .btn-accent { background: var(--navy); color: var(--white); }
.contact-band .btn-accent:hover { background: var(--ink); color: var(--white); }
.contact-band :focus-visible { outline-color: var(--navy); }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); padding-bottom: 170px; }
  .hero-arcs { width: 420px; right: -180px; top: auto; bottom: 60px; transform: none; opacity: 0.6; }
  .services { margin-top: -110px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .quotes-sec { clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%); }
  .case-tabs { margin-top: -16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .case-tab { flex: none; }
  .section-head-row .slider-nav { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-lines span::after, .arc-spin, .hero-title, .hero .eyebrow, .hero-actions, .js-cases .case.is-active { animation: none !important; }
  .hero-lines span::after { display: none; }
}

/* Team: one person shown wide, with a large photo and a lead line (matches the canvas) */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.team-grid .person:only-child { grid-template-columns: 260px minmax(0, 680px); gap: 48px; padding: 40px; }
.team-grid .person:only-child .person-photo { width: 260px; height: 260px; border-radius: 16px; }
.team-grid .person:only-child h3 { font-size: 26px; }
.team-grid .person:only-child .prose p:first-child { font: 400 20px/1.5 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 760px) {
  .team-grid .person:only-child { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .team-grid .person:only-child .person-photo { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; }
}

/* ---------- Mobile polish pass ---------- */
/* Tap targets: logo, footer links, nav links at least 44px tall */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.site-footer a:not(.logo) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.footer-links { gap: 0; }
/* Menu button shows a close icon while the menu is open */
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .eyebrow { font-size: 12px; letter-spacing: 0.08em; }
  /* Hero label reads as plain text instead of a two-line pill */
  .hero .eyebrow { border: 0; padding: 0; border-radius: 0; color: var(--amber); }
  .hero-actions { gap: 8px 24px; }
  /* Services: compact rows instead of four tall cards */
  .services .service, .services .service:nth-child(n) { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 20px; border-radius: var(--radius-sm); }
  .services .service .service-top { grid-row: 1 / span 2; margin: 0; flex-direction: column; align-items: center; gap: 6px; }
  .services .service .service-top .icon { width: 32px; height: 32px; }
  .services .service .service-num { font-size: 16px; -webkit-text-stroke: 0; color: #8494a5; font-weight: 600; }
  .services .service h3 { font-size: 19px; margin-bottom: 4px; }
  .services .service p { font-size: 16px; line-height: 1.5; }
  .services-grid { gap: 10px; }
  /* Client slider: tabs are enough on phones; arrows hidden */
  .cases-sec .slider-nav { display: none !important; }
  .case { padding: 22px; }
  .quote-card { padding: 24px; }
  /* Testimonial slides keep their own height (no empty space) */
  .quote-track { align-items: start; }
  .quote-slide figure { height: auto; padding: 24px; }
  .quote-slide blockquote { font-size: 18px; }
  .team-grid .person:only-child .prose p:first-child { font-size: 18px; }
}

/* Testimonial track grows and shrinks with the slides in view (height set by site.js) */
.quote-track { align-items: start; overflow-y: hidden; transition: height 0.35s var(--ease); }
.quote-slide figure { height: auto; }
