:root {
  --ink: #112d31;
  --teal: #0d5960;
  --aqua: #43b8b3;
  --cream: #f4f2eb;
  --white: #fff;
  --muted: #5b6d70;
  --line: #dce5e3;
  --shadow: 0 18px 50px rgba(17, 45, 49, .13);
  --shadow-sm: 0 8px 24px rgba(17, 45, 49, .08);
  --radius: 18px;
  --radius-sm: 10px;
  --shell: min(1160px, calc(100% - 40px));
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 89, 96, .1);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17, 45, 49, .08); }
.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); font-size: .72rem; margin-top: 5px; letter-spacing: .04em; }

.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding-block: 6px;
  transition: color .2s var(--ease);
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--aqua);
  transition: right .25s var(--ease);
}
.site-header nav a:hover { color: var(--teal); }
.site-header nav a:hover::after { right: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.menu-toggle:hover { border-color: var(--aqua); }
.menu-toggle-box {
  position: relative;
  width: 18px;
  height: 12px;
}
.menu-toggle-box span,
.menu-toggle-box::before,
.menu-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.menu-toggle-box::before { top: 0; }
.menu-toggle-box span { top: 5px; }
.menu-toggle-box::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-box::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-box::after { top: 5px; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 650px;
  position: relative;
  display: grid;
  align-items: center;
  background: url('../images/docusign-7RWBSYA9Rro-unsplash-1-scaled-1.jpg') center/cover no-repeat;
  color: #fff;
}
.hero-overlay, .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 31, 34, .9), rgba(9, 38, 42, .56), rgba(9, 38, 42, .22));
}
.hero-content, .cta-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 10vw, 90px);
  max-width: 900px;
}

.eyebrow { font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: #8be0da; }
.eyebrow.dark { color: var(--teal); }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 6.7rem); max-width: 900px; margin-bottom: 24px; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.03em; margin-bottom: 24px; }
h3 { font-size: 1.35rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.4rem); max-width: 760px; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-block;
  background: var(--aqua);
  color: #082d30;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(67, 184, 179, .35); }
.button-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.button-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }

/* Client logos */
.clients { padding: 38px 0; border-bottom: 1px solid var(--line); }
.section-kicker { text-align: center; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-size: .78rem; font-weight: 800; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  gap: clamp(18px, 3vw, 25px);
  margin-top: 22px;
}
.logo-grid img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.logo-grid img:hover { filter: grayscale(0); opacity: 1; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.split-grid { display: grid; grid-template-columns: 1.05fr .8fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split p, .intro { color: var(--muted); font-size: 1.08rem; }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-height: 600px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.text-link { font-weight: 800; color: var(--teal); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.soft { background: var(--cream); }
.intro { max-width: 760px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 89, 96, .08);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .number { color: var(--aqua); font-weight: 900; letter-spacing: .15em; }
.card p { color: var(--muted); }
.card a { color: var(--teal); font-weight: 800; text-decoration: none; }
.card a:hover { text-decoration: underline; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 48px;
}
.feature-grid article {
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.feature-grid article:hover { background: var(--cream); }
.feature-grid p { color: var(--muted); }

/* CTA */
.cta { position: relative; background: url('../images/corporate.jpg') center/cover no-repeat; color: #fff; }
.cta-content { max-width: 760px; }
.cta-content p { font-size: 1.15rem; }

/* Footer */
.site-footer { background: #082f33; color: #d5e5e5; padding: clamp(40px, 6vw, 55px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 30px; align-items: start; }
.footer-grid a { display: block; text-decoration: none; margin-bottom: 8px; transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--aqua); }
.copyright { text-align: right; color: #9db4b5; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Responsive breakpoints */
@media (max-width: 850px) {
  .menu-toggle { display: inline-flex; }
  .site-header nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-header nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-header nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .site-header nav a:last-child { border-bottom: 0; }
  .hero { min-height: 580px; }
  .split-grid, .card-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-grid { gap: 42px; }
  .footer-grid { gap: 24px; }
  .copyright { text-align: left; }
  .feature-grid { border-left: 0; }
  .feature-grid article { border-left: 1px solid var(--line); }
}

@media (max-width: 520px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .brand small { display: none; }
  .menu-toggle-label { display: none; }
  .menu-toggle { padding: 10px; }
  .hero-content { padding-block: 56px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button { text-align: center; }
  .card { padding: 26px; }
}
