:root {
  --ink: #0d1b24;
  --ink-soft: #263b46;
  --paper: #f7f5ef;
  --white: #ffffff;
  --mist: #e9eef0;
  --teal: #006f73;
  --red: #b23a2f;
  --line: rgba(13, 27, 36, 0.14);
  --shadow: 0 24px 70px rgba(13, 27, 36, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--white);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 7vw, 92px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 10px 34px rgba(13, 27, 36, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.brand-text {
  font-size: 1rem;
}

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

.site-nav a {
  padding: 12px 13px;
  font-size: 1rem;
  font-weight: 650;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(6, 17, 24, 0.91) 0%, rgba(6, 17, 24, 0.72) 43%, rgba(6, 17, 24, 0.22) 100%),
    linear-gradient(180deg, rgba(6, 17, 24, 0.18), rgba(6, 17, 24, 0.48));
}

.hero-content {
  position: relative;
  width: min(780px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 92px);
  padding-top: 60px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #86d2d0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.band {
  background: var(--white);
}

.section,
.intro,
.proof,
.contact {
  padding: clamp(72px, 9vw, 128px) 0;
}

.intro-grid,
.proof-grid,
.work-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.intro-grid > *,
.proof-grid > *,
.work-grid > *,
.contact-grid > *,
.legal-grid > *,
.team-grid > *,
.team-card > * {
  min-width: 0;
}

.intro p,
.work-copy p,
.contact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.intro h2,
.proof h2,
.work h2,
.contact h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  line-height: 1.08;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 240px;
  padding: 28px;
  background: var(--paper);
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.proof-item span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--red);
}

.proof-item p {
  margin: 0;
  font-weight: 700;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.18rem;
  font-weight: 750;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.muted {
  background: #eef3f2;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.audience-pill {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border-left: 4px solid var(--teal);
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(13, 27, 36, 0.06);
}

.contact {
  color: var(--white);
  background: var(--ink);
}

.contact h2 {
  max-width: 680px;
}

.contact p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.contact-panel a,
.contact-panel p {
  display: block;
  margin: 14px 0 0;
  color: var(--white);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.contact-panel .contact-name {
  margin-top: 0;
  color: #86d2d0;
  font-size: 1.18rem;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #081219;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid div {
  display: flex;
  gap: 18px;
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    width: min(320px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 14px;
  }

  .hero {
    min-height: 86vh;
  }

  .intro-grid,
  .proof-grid,
  .work-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: min(100% - 28px, 780px);
    margin-left: 14px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .steps li {
    grid-template-columns: 52px 1fr;
  }

  .footer-grid {
  align-items: flex-start;
  flex-direction: column;
}
}

/* New EMA content additions and brand integration */
:root {
  --teal: #2e5292;
  --red: #534741;
}

.site-header {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.9);
  box-shadow: 0 10px 34px rgba(13, 27, 36, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  width: min(330px, 52vw);
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  line-height: 0;
}

.site-header.is-scrolled .brand {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  font-size: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-subclaim {
  max-width: 620px;
  margin: 16px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.section,
.intro,
.proof,
.contact,
.legal {
  padding: clamp(72px, 9vw, 128px) 0;
}

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

.team-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 300px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.team-card img {
  width: 220px;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 22%;
  image-rendering: auto;
}

.team-card div {
  padding: 26px;
}

.team-card p {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card span {
  display: block;
  color: var(--ink-soft);
}

.legal {
  background: var(--paper);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 92px);
}

.legal h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.1;
}

.legal p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.cookie-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(360px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(13, 27, 36, 0.16);
}

.cookie-note[hidden] {
  display: none;
}

.cookie-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-note button {
  flex: 0 0 auto;
  border: 0;
  background: var(--teal);
  color: var(--white);
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card img {
    width: 100%;
    height: 320px;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .brand {
    width: min(245px, calc(100vw - 88px));
    min-height: 0;
    padding: 0;
  }

  .brand-logo {
    height: 58px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
