:root {
  --ink: #0e1f2e;
  --ink-soft: #2a3a48;
  --muted: #5b6877;
  --line: #e6e2d8;
  --paper: #ffffff;
  --mist: #f6f4ee;
  --teal: #0f6b66;
  --teal-dark: #0a4f4d;
  --navy: #0c2236;
  --shadow: 0 18px 50px rgba(12, 34, 54, .10);
  --radius: 6px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--sans);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 225, 216, .85);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -.003em;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: contain;
  background: transparent;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.nav-links a {
  position: relative;
  border-radius: 4px;
  padding: 9px 14px;
  color: #3b4a59;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--teal-dark); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--teal);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 4px;
  padding: 10px 18px;
  margin-left: 12px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease;
}

.nav-links .nav-action { color: #fff; }
.nav-links .nav-action::after { display: none; }
.nav-links .nav-action:hover { color: #fff; background: var(--teal-dark); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
}

/* ───── Layout containers ───── */
.section,
.hero,
.page-hero {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ───── Hero ───── */
.hero {
  min-height: calc(100vh - 80px);
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 64px;
}

/* ───── Eyebrow ───── */
.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ───── Typography ───── */
h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.008em;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.004em;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

/* ───── Hero actions ───── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 22px;
  color: #fff;
  background: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover { background: var(--teal-dark); }

.btn.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.btn.secondary:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

/* ───── Hero visual ───── */
.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(12, 34, 54, .78), rgba(10, 79, 77, .55)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1400&q=85") center/cover;
  background-blend-mode: multiply, normal;
  filter: grayscale(.6) contrast(1.05);
}

.hero-metric {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(340px, calc(100% - 44px));
  border-radius: 6px;
  padding: 22px 24px;
  color: #fff;
  background: rgba(12, 34, 54, .88);
  backdrop-filter: blur(14px);
}

.hero-metric strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.004em;
}

.hero-metric span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}

/* ───── Stat row ───── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat {
  padding-left: 0;
  border-left: none;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

/* ───── Sections ───── */
.band { background: var(--mist); }

.section { padding: 104px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}

.section-head p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ───── Grid ───── */
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

/* ───── Card ───── */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--paper);
  transition: border-color .2s ease, transform .2s ease;
}

.service-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.service-card > a {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.service-card > a::after {
  content: " →";
  transition: margin .15s ease;
}

.service-card > a:hover::after { margin-left: 4px; }

.card p,
.feature-copy p,
.page-copy p,
.job p,
.contact-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ───── Section marker (replaces the old gradient icon block) ───── */
.icon {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ───── Card image ───── */
.card-image {
  position: relative;
  min-height: 180px;
  margin: -32px -32px 24px;
  border-radius: 6px 6px 0 0;
  background-position: center;
  background-size: cover;
  filter: grayscale(.6) contrast(1.04);
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(135deg, rgba(12, 34, 54, .35), rgba(10, 79, 77, .22));
  mix-blend-mode: multiply;
}

.image-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}

.image-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  filter: grayscale(.6) contrast(1.04);
}

.image-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 34, 54, .42), rgba(10, 79, 77, .28));
  mix-blend-mode: multiply;
}

.image-tile.tall { min-height: 400px; }

/* ───── Tags ───── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ───── Feature split ───── */
.feature-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  filter: grayscale(.55) contrast(1.04);
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 34, 54, .35), rgba(10, 79, 77, .22));
  mix-blend-mode: multiply;
}

.feature-copy ul,
.job ul {
  margin: 22px 0 28px;
  padding-left: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  list-style: none;
}

.feature-copy ul li,
.job ul li {
  position: relative;
  padding-left: 22px;
}

.feature-copy ul li::before,
.job ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-weight: 500;
}

/* ───── Process ───── */
.process { counter-reset: step; }

.process .card {
  position: relative;
  padding-top: 88px;
}

.process .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 32px;
  left: 32px;
  color: var(--teal-dark);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .04em;
}

/* ───── Testimonial ───── */
.testimonial {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: stretch;
}

.quote {
  padding: 48px;
  color: #fff;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote p {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.004em;
}

.quote cite {
  color: rgba(255, 255, 255, .72);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ───── Client quote cards ───── */
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.quote-card .quote-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -.004em;
}

.quote-card .quote-attrib {
  margin: 0;
}

.quote-card .quote-role {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ───── Work case-study cards ───── */
.case-card .case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.case-card .case-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.case-card .case-outcome {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--teal);
  background: var(--mist);
  border-radius: 0 4px 4px 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.003em;
}

/* ───── Insights post metadata ───── */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.post-meta .post-author {
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 500;
  font-size: 13px;
}

/* ───── Page hero ───── */
.page-hero { padding: 96px 0 72px; }
.page-hero.compact { padding-bottom: 32px; }
.page-hero h1 { max-width: 920px; }

.page-hero.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr);
  gap: 64px;
  align-items: center;
}

.page-hero.has-media h1 { max-width: 720px; }

.page-hero-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  filter: grayscale(.65) contrast(1.04);
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 34, 54, .58), rgba(10, 79, 77, .42));
  mix-blend-mode: multiply;
}

.media-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  border-radius: 6px;
  padding: 22px 24px;
  color: #fff;
  background: rgba(12, 34, 54, .88);
  backdrop-filter: blur(14px);
}

.media-caption strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.media-caption span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}

/* ───── Page intro ───── */
.page-intro {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.page-copy { display: grid; gap: 22px; }
.page-copy p { margin: 0; }

/* ───── Leader ───── */
.leader {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
}

.avatar {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  background: var(--mist);
  filter: contrast(1.02);
}

.avatar.placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: .02em;
}

.role {
  margin: 6px 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ───── Job ───── */
.job {
  border-left: 2px solid var(--teal);
  padding-left: 32px;
}

.job-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.status {
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ───── Contact ───── */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 32px;
}

.contact-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--teal-dark); }
.contact-list { display: grid; gap: 16px; }

/* ───── Form ───── */
.form { display: grid; gap: 18px; }

.form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form input,
.form textarea,
.form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form textarea { min-height: 140px; resize: vertical; }

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 107, 102, .12);
}

[data-form-status] {
  margin: 0;
  color: var(--teal-dark);
  font-size: 14px;
}

/* ───── Product ───── */
.product-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.product-image {
  min-height: 460px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.price {
  margin: 16px 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
}

.qty-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 24px 0;
}

.qty-row button,
.qty-row input {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
}

/* ───── Footer ───── */
.footer {
  color: #c8d2dc;
  background: var(--navy);
}

.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 36px;
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr;
  gap: 48px;
}

.footer p,
.footer a {
  color: #a8b6c4;
  font-size: 14px;
  line-height: 1.7;
}

.footer p { margin: 0 0 8px; }
.footer a:hover { color: #fff; }

.footer h3 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.footer-links { display: grid; gap: 10px; }

.copyright {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0 36px;
  color: #7d8b99;
  font-size: 13px;
  letter-spacing: .01em;
}

/* ───── Responsive ───── */
@media (max-width: 1120px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 80px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 24px 24px 32px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    gap: 4px;
  }

  body.nav-open .nav-links { display: grid; }

  .nav-links a,
  .nav-action {
    width: 100%;
    padding: 12px 14px;
  }

  .nav-links a.active::after { display: none; }
  .nav-action { margin: 8px 0 0; }

  .hero,
  .feature-split,
  .testimonial,
  .page-hero.has-media,
  .page-intro,
  .contact-grid,
  .product-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    gap: 56px;
  }

  .hero-visual { min-height: 440px; }
  .page-hero-media { min-height: 360px; }

  .grid.three,
  .grid.four,
  .grid.two,
  .image-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    margin-bottom: 40px;
  }

  .section { padding: 80px 0; }
}

@media (max-width: 620px) {
  .nav-wrap,
  .section,
  .hero,
  .page-hero,
  .footer-inner,
  .copyright {
    width: min(100% - 32px, 1200px);
  }

  .brand small { display: none; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .lead { font-size: 16px; }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
    padding-top: 24px;
  }

  .section { padding: 64px 0; }
  .leader { grid-template-columns: 1fr; }
  .avatar { width: 110px; }
  .avatar.placeholder { font-size: 28px; }
  .card { padding: 24px; }
  .card-image { margin: -24px -24px 20px; }
  .quote { padding: 32px; }
  .quote p { font-size: 20px; }
  .feature-split,
  .product-layout { gap: 32px; }
}
