:root {
  --ink: #071422;
  --navy: #0c2438;
  --navy-deep: #020814;
  --steel: #3f5566;
  --mist: #d7e3ee;
  --paper: #eef3f7;
  --snow: #f7fafc;
  --accent: #1a7f90;
  --accent-deep: #0f5f6c;
  --gold: #c59d3f;
  --gold-deep: #a37d28;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow: 0 24px 60px color-mix(in srgb, var(--ink) 18%, transparent);
  --focus: #0b6e7c;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content-max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d9ebf3 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #e4eef5 0%, transparent 50%),
    var(--snow);
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.service-tabs button:focus-visible {
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 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-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 0.35rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #7fd4e0;
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  width: 100%;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--snow) 92%, transparent);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  color: var(--ink);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--snow) 96%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 6%, transparent);
}

/* Full-bleed sticky bar; inner nav shares site content measure */
.header-inner {
  width: 100%;
  max-width: var(--content-max);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: var(--gutter);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-deep);
}

.site-nav a[aria-current="true"] {
  color: var(--accent-deep);
  font-weight: 700;
}

.nav-cta {
  padding: 0.6rem 1.15rem !important;
  border: 1px solid var(--accent) !important;
  border-radius: 999px;
  background: var(--accent) !important;
  color: white !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  min-height: 2.65rem;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease),
    box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-deep) !important;
  border-color: var(--accent-deep) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-deep) 32%, transparent);
}

.nav-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  place-content: center;
  place-items: center;
  gap: 5px;
  border-radius: 0.45rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 80%, white);
  border: 1px solid var(--line);
  z-index: 70;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-deep);
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: var(--snow);
  background: #06101c;
}

@supports (height: 100dvh) {
  .hero {
    min-height: calc(100dvh - var(--header-h));
  }
}

.hero.section {
  /* Vertically center copy in the hero viewport; keep text left-aligned in .shell */
  padding: clamp(1.5rem, 4vh, 2.75rem) 0;
  display: flex;
  align-items: center;
}

.hero .shell {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-visual {
  position: absolute;
  /* Oversized so scroll-parallax yPercent/scale never reveals the dark hero band */
  inset: -18% 0 -28% 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

#top {
  /* Home target must land at true scroll 0 — ignore html scroll-padding-top */
  scroll-margin-top: 0;
}

.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.02);
  transform-origin: right center;
  will-change: transform;
}

.hero.is-animated .hero-bg {
  animation: hero-cinematic 36s ease-in-out infinite alternate;
}

.hero.is-scrolling.is-animated .hero-bg {
  animation-play-state: paused;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, #020814 72%, transparent) 0%,
      color-mix(in srgb, #020814 48%, transparent) 34%,
      color-mix(in srgb, #020814 18%, transparent) 58%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, #020814 22%, transparent) 0%,
      transparent 28%,
      transparent 78%,
      color-mix(in srgb, #020814 30%, transparent) 100%
    );
}

.hero-content {
  max-width: 41rem;
  margin: 0;
  padding: 0;
  text-align: left;
  text-shadow: 0 2px 28px color-mix(in srgb, #020814 55%, transparent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: #f4fbfd;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 34rem;
  color: color-mix(in srgb, white 92%, #9bb8c6);
  font-size: clamp(0.98rem, 1.5vw, 1.05rem);
}

.hero-lead-secondary {
  margin-top: 0.75rem;
  max-width: 34rem;
  color: color-mix(in srgb, white 84%, #9bb8c6);
  font-size: clamp(0.94rem, 1.4vw, 1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-tagline {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: color-mix(in srgb, white 86%, #8ecad6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border: 1px solid color-mix(in srgb, white 35%, transparent);
  color: white;
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, white 65%, transparent);
  background: color-mix(in srgb, white 8%, transparent);
}

.section {
  padding: clamp(4.5rem, 10vh, 7rem) 0;
}

/* Avoid content-visibility here — it breaks hash scroll targets (#contact)
   and leaves GSAP/ScrollTrigger sections looking empty. */

.section-intro h2,
.contact-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0.45rem;
}

.section-intro > h2:first-child {
  margin-top: 0;
}

.section-intro.centered {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-lead {
  margin-top: 1rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--steel));
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 70%, transparent));
}

.about-copy {
  display: grid;
  gap: 1.1rem;
  color: color-mix(in srgb, var(--ink) 88%, var(--steel));
  font-size: 1.08rem;
}

.section-divider {
  padding: 0;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.section-divider .shell {
  display: flex;
  justify-content: center;
}

.section-divider-line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 45%, var(--line)) 20%,
    color-mix(in srgb, var(--accent) 55%, var(--line)) 50%,
    color-mix(in srgb, var(--accent) 45%, var(--line)) 80%,
    transparent 100%
  );
}

.section-divider-quote {
  padding: clamp(2.5rem, 7vh, 4.5rem) 0;
  background: transparent;
}

.section-divider-quote .shell {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.section-quote-panel {
  width: 100%;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, white 55%, transparent) 10%,
    color-mix(in srgb, white 92%, transparent) 22%,
    white 32%,
    white 68%,
    color-mix(in srgb, white 92%, transparent) 78%,
    color-mix(in srgb, white 55%, transparent) 90%,
    transparent 100%
  );
}

.section-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--accent-deep);
}

.quote-text {
  max-width: 18ch;
}

.quote-mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 0.72em;
  height: 0.72em;
  color: inherit;
  user-select: none;
}

.quote-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.quote-mark-open {
  align-self: flex-start;
  margin-top: 0.05em;
}

.quote-mark-close {
  align-self: flex-end;
  margin-bottom: 0.02em;
}

.services {
  background:
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--mist) 35%, var(--paper)));
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: 28rem;
}

.service-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1rem;
}

.service-tabs button {
  position: relative;
  text-align: left;
  padding: 0.8rem 0.9rem;
  min-height: 2.75rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-weight: 550;
  color: color-mix(in srgb, var(--ink) 82%, var(--steel));
  transition:
    background 0.25s var(--ease),
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

/* Let GSAP own transform during scroll reveals; keep color/surface transitions */
.motion-enhanced .service-tabs button {
  transition:
    background 0.25s var(--ease),
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s var(--ease);
}

.service-tabs button:hover {
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--ink);
  transform: translateX(2px);
}

.service-tabs button[aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  transform: translateX(2px);
}

.service-tabs button[aria-selected="false"] {
  background: transparent;
  border: 1px solid transparent;
}

.service-panels {
  display: grid;
  align-content: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  min-height: 22rem;
  height: 100%;
}

.service-panel.is-active:not([hidden]) {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  animation: panel-settle 0.45s var(--ease) both;
}

@keyframes panel-settle {
  from {
    transform: translateY(0.55rem);
  }
  to {
    transform: none;
  }
}

.service-panel[hidden] {
  display: none;
}

.service-panel h3 {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.25;
  /* Two text lines + rule space; keeps title/rule anchored across tabs */
  min-height: calc(1.85rem * 1.25 * 2 + 0.75rem);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
}

.service-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2px;
  background: var(--accent);
}

/* Title fixed at top; body block vertically centered in remaining height */
.service-panel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.service-panel-body > p:first-of-type {
  color: color-mix(in srgb, var(--ink) 82%, var(--steel));
}

.panel-label {
  margin-top: 1.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.service-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}

.service-panel li {
  position: relative;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--ink) 85%, var(--steel));
}

.service-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.clients {
  background: var(--navy);
  color: var(--snow);
}

.clients .eyebrow {
  color: #7ec9d6;
}

.clients .section-lead,
.clients h2 {
  color: white;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
}

.client-list li {
  padding-block: 0.85rem;
  border-top: 1px solid color-mix(in srgb, white 16%, transparent);
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.25s ease, border-color 0.25s ease, padding-left 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .client-list li:hover {
    color: #b8e8f0;
    border-top-color: color-mix(in srgb, var(--accent) 55%, white);
    padding-left: 0.35rem;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.why-item {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.why-item h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.45rem;
  transition: color 0.25s ease;
}

.why-item p {
  color: color-mix(in srgb, var(--ink) 78%, var(--steel));
}

@media (hover: hover) and (pointer: fine) {
  .why-item:hover {
    border-top-color: color-mix(in srgb, var(--accent) 65%, var(--line));
    transform: translateY(-3px);
  }

  .why-item:hover h3 {
    color: var(--accent-deep);
  }
}

.process {
  background:
    linear-gradient(180deg, transparent, var(--paper) 40%, transparent);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: none;
}

.process-steps li {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 2px solid color-mix(in srgb, var(--accent) 55%, var(--mist));
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent-deep);
  transition: transform 0.3s var(--ease), color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .process-steps li:hover {
    border-top-color: var(--accent);
    transform: translateY(-2px);
  }

  .process-steps li:hover .step-num {
    color: var(--accent);
    transform: translateX(2px);
  }
}

.process-steps h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.process-steps p {
  color: var(--steel);
}

.contact {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  overflow: clip;
  background:
    radial-gradient(
      920px 520px at 8% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 58%
    ),
    radial-gradient(
      780px 460px at 100% 100%,
      color-mix(in srgb, var(--mist) 75%, transparent),
      transparent 55%
    ),
    linear-gradient(180deg, var(--snow) 0%, var(--paper) 100%);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 45%, var(--line)) 20%,
    color-mix(in srgb, var(--accent) 55%, var(--line)) 50%,
    color-mix(in srgb, var(--accent) 45%, var(--line)) 80%,
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

.faq {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 40%, transparent), transparent);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: white;
  padding: 0.15rem 1rem 0.15rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 700;
  transition: transform 0.25s var(--ease), color 0.2s ease;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 6%, transparent);
}

.faq-item[open] summary {
  color: var(--accent-deep);
}

.faq-item[open] summary::after {
  content: "–";
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    transform: translateY(-1px);
  }

  .faq-item summary:hover::after {
    color: var(--accent);
  }
}

.faq-item p {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--ink) 82%, var(--steel));
  line-height: 1.65;
}

.faq-item a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact .eyebrow {
  color: var(--accent-deep);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.35rem);
}

/* Form | details row — siblings in the same grid so details sit beside the form */
.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15.5rem, 0.85fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
  min-width: 0;
}

.contact-body > .contact-form {
  min-width: 0;
}

.contact-body > .contact-details {
  min-width: 0;
}

.contact-copy h2 {
  max-width: 18ch;
}

.contact-lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--steel));
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.7;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  height: 100%;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--mist));
  padding-left: clamp(1.5rem, 3.5vw, 2.25rem);
}

.contact-details-head {
  display: grid;
  gap: 0.55rem;
}

.contact-details-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.contact-details-lead {
  margin: 0;
  max-width: 22rem;
  color: color-mix(in srgb, var(--ink) 68%, var(--steel));
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-details-list {
  display: grid;
  gap: 0;
}

.contact-line {
  display: grid;
  gap: 0.3rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.contact-line:first-child {
  padding-top: 0;
}

.contact-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-line-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.contact-line-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  transition: color 0.2s ease;
}

.contact-line:is(a):hover,
.contact-line:is(a):focus-visible {
  border-bottom-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateX(3px);
}

.contact-line:is(a):last-child:hover,
.contact-line:is(a):last-child:focus-visible {
  border-bottom-color: transparent;
}

.contact-line:is(a):hover .contact-line-value,
.contact-line:is(a):focus-visible .contact-line-value {
  color: var(--accent-deep);
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  max-width: none;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 0.85rem;
  background: color-mix(in srgb, white 88%, var(--snow));
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 5%, transparent);
}

.contact-form-head {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.contact-form-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.contact-form-hint {
  margin: 0;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 62%, var(--steel));
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

@media (max-width: 1100px) and (min-width: 961px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field-message {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--snow);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: color-mix(in srgb, var(--steel) 70%, white);
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 1px;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 0.15rem;
}

.contact-form .btn {
  width: auto;
  min-width: 11.5rem;
  justify-self: start;
  margin-top: 0;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}

.contact-form .btn:hover {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-deep) 28%, transparent);
}

.contact-form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.contact-form-status.is-error {
  color: #9b2c2c;
}

.site-footer {
  background:
    linear-gradient(180deg, #071522 0%, #050d16 100%);
  color: color-mix(in srgb, white 84%, #8aa0ad);
  padding: clamp(2.75rem, 6vh, 3.75rem) 0;
  border-top: 1px solid color-mix(in srgb, white 10%, transparent);
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  text-decoration: none;
}

.footer-brand .logo-mark {
  color: white;
}

.footer-brand .logo-sub {
  color: color-mix(in srgb, white 62%, #8aa0ad);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background: var(--accent-deep);
  color: white;
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid color-mix(in srgb, white 10%, transparent);
}

.footer-tag {
  max-width: 36rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: color-mix(in srgb, white 72%, #8aa0ad);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-style: normal;
}

.footer-meta a {
  color: #9fd4df;
  font-weight: 600;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (hover: hover) and (pointer: fine) {
  .footer-meta a:hover {
    transform: translateY(-1px);
  }
}

.footer-copy {
  margin: 0;
  color: color-mix(in srgb, white 68%, #8aa0ad);
}

@media (max-width: 760px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta {
    width: 100%;
  }
}

/* Keep content visible; animate only motion when enhanced.
   When GSAP owns motion (.motion-enhanced), skip CSS offset to avoid fighting transforms. */
.js .reveal {
  transform: translateY(0.75rem);
  transition: transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  transform: none;
}

.motion-enhanced .reveal {
  transform: none;
  transition: none;
}

@media (max-width: 960px) {
  .section-split,
  .service-layout,
  .contact-body,
  .process-steps,
  .why-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .contact-details {
    border-left: 0;
    border-top: 2px solid color-mix(in srgb, var(--accent) 55%, var(--mist));
    padding-left: 0;
    padding-top: clamp(1.5rem, 4vw, 2rem);
    min-height: 0;
  }

  .contact-copy h2 {
    max-width: none;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 0.75rem;
    gap: 0.4rem;
    scrollbar-width: thin;
    background: color-mix(in srgb, var(--mist) 35%, var(--paper));
  }

  .service-panels {
    min-height: 18rem;
  }

  .service-tabs button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .service-tabs button:hover,
  .service-tabs button[aria-selected="true"] {
    transform: none;
  }

  .service-panel ul {
    grid-template-columns: 1fr;
  }

  .process-steps {
    gap: 1.75rem;
  }
}

/* Collapse earlier so FAQ / Contact Us never clip off the sticky bar */
@media (max-width: 1180px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem var(--gutter) 1.5rem;
    background: color-mix(in srgb, var(--snow) 98%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 14%, transparent);
    backdrop-filter: blur(14px);
    color: var(--ink);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 1rem 0.35rem;
    min-height: 3rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
    border-bottom: 0 !important;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero-bg {
    object-position: 72% center;
    transform: scale(1.04);
  }

  .hero.is-animated .hero-bg {
    animation-duration: 40s;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, #020814 68%, transparent) 0%,
        color-mix(in srgb, #020814 48%, transparent) 42%,
        color-mix(in srgb, #020814 70%, transparent) 100%
      );
  }

  .hero-content {
    max-width: none;
  }

  .why-grid {
    gap: 1.75rem;
  }

  .btn {
    min-height: 2.75rem;
  }
}

.back-to-top {
  position: fixed;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, white 88%, var(--paper));
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 8%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.55rem);
  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s var(--ease),
    transform 0.28s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent-deep);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 10%, transparent);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.back-to-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-0.05em);
}

.back-to-top-label {
  line-height: 1;
}

.chatbot {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: var(--sans);
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--accent);
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent),
    0 2px 0 color-mix(in srgb, white 18%, transparent) inset;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--accent-deep) 48%, transparent),
    0 2px 0 color-mix(in srgb, white 18%, transparent) inset;
}

.chatbot-panel {
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100dvh - 6.5rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none !important;
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background:
    linear-gradient(160deg, #0c2438 0%, #14364d 55%, #0f5f6c 140%);
  color: white;
}

.chatbot-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd4df;
  margin-bottom: 0.2rem;
}

.chatbot-header h2,
.chatbot-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

.chatbot-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.4rem;
  font-size: 1.45rem;
  line-height: 1;
  color: white;
  flex-shrink: 0;
}

.chatbot-close:hover,
.chatbot-close:focus-visible {
  background: color-mix(in srgb, white 14%, transparent);
}

.chatbot-messages {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1rem;
  overflow-y: auto;
  background: color-mix(in srgb, var(--paper) 70%, white);
}

.chatbot-msg {
  display: flex;
}

.chatbot-msg-user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 5%, transparent);
}

.chatbot-msg-user .chatbot-bubble {
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.chatbot-bubble p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.chatbot-bubble a {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
  background: color-mix(in srgb, var(--paper) 70%, white);
}

.chatbot-suggestions button {
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 85%, var(--steel));
}

.chatbot-suggestions button:hover,
.chatbot-suggestions button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-deep);
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: white;
}

.chatbot-form input {
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
  color: var(--ink);
  background: var(--snow);
}

.chatbot-form input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.chatbot-send {
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.65rem;
  background: var(--accent);
  color: white;
  font-weight: 650;
}

.chatbot-send:hover,
.chatbot-send:focus-visible {
  background: var(--accent-deep);
}

.chatbot-note {
  padding: 0 1rem 0.85rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--steel);
  background: white;
}

.chatbot-note a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 760px) {
  .back-to-top {
    left: 0.85rem;
    bottom: 0.85rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.8rem 0.45rem 0.7rem;
    font-size: 0.84rem;
  }

  .chatbot {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .chatbot-panel {
    width: min(22.5rem, calc(100vw - 1.7rem));
  }
}

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

  .js .reveal,
  .btn,
  .chatbot-toggle,
  .hero-bg,
  .site-cursor,
  .site-cursor-ring,
  .service-panel.is-active,
  .why-item,
  .faq-item,
  .process-steps li,
  .client-list li,
  .contact-line,
  .service-tabs button {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .back-to-top {
    transition: none !important;
  }

  .hero.is-animated .hero-bg {
    animation: none !important;
    transform: none !important;
  }

  .has-custom-cursor,
  .has-custom-cursor * {
    cursor: auto !important;
  }

  .site-cursor {
    display: none !important;
  }
}

@keyframes hero-cinematic {
  0% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.04) translate3d(-0.6%, 0.4%, 0);
  }
  100% {
    transform: scale(1.02) translate3d(0.5%, -0.3%, 0);
  }
}

/* Custom IP cursor — fine pointers only */
.site-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button,
  .has-custom-cursor input,
  .has-custom-cursor textarea,
  .has-custom-cursor summary,
  .has-custom-cursor label,
  .has-custom-cursor [role="tab"],
  .has-custom-cursor [role="button"] {
    cursor: none;
  }

  .site-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .has-custom-cursor .site-cursor.is-ready {
    opacity: 1;
  }

  .site-cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
  }

  .site-cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 75%, white);
    border-radius: 50%;
    transition:
      width 0.2s var(--ease),
      height 0.2s var(--ease),
      margin 0.2s var(--ease),
      border-color 0.2s ease,
      background 0.2s ease;
  }

  .site-cursor-ring::after {
    content: "®";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0;
    color: color-mix(in srgb, var(--accent-deep) 80%, white);
    opacity: 0.85;
  }

  .site-cursor.is-hover .site-cursor-ring {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }

  .site-cursor.is-hover .site-cursor-ring::after {
    opacity: 1;
    color: var(--accent-deep);
  }

  .site-cursor.is-down .site-cursor-ring {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
  }
}
