:root {
  --ink: #162751;
  --text: #3d4a61;
  --muted: #7d8797;
  --line: rgba(22, 39, 81, 0.16);
  --blue-1: #eaf4ff;
  --blue-2: #d7e8f8;
  --paper: #f8fbff;
  --gold: #c88a36;
  --gold-dark: #9f6726;
  --terracotta: #bd6b50;
  --terracotta-dark: #8b4635;
  --cream: #f2f0e9;
  --stone: #ddd8ce;
  --shadow: 0 32px 70px rgba(35, 64, 104, 0.16);
  --font-head: "Poppins", "Segoe UI", system-ui, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  margin: 0 auto;
  max-width: 1440px;
  padding: 38px 34px 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: flex;
  gap: 16px;
}

.brand-name {
  display: none;
  visibility: hidden;
}

.brand-mark {
  display: block;
  height: 80px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(26px, 5vw, 58px);
}

.nav-links a {
  color: #14264a;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 12px 0;
  position: relative;
  text-transform: uppercase;
}

.nav-links a::after {
  background: var(--gold);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-dark);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  opacity: 1;
}

.section-blue {
  background:
    radial-gradient(
      circle at 67% 26%,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0) 42%
    ),
    linear-gradient(135deg, #e9f4ff 0%, #d8e9f8 54%, #eff7ff 100%);
}

.hero {
  min-height: 720px;
  overflow: hidden;
  padding: 170px max(34px, calc((100vw - 1440px) / 2 + 34px)) 74px;
  position: relative;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: 446px;
  position: relative;
  z-index: 2;
}

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

.hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 4.7vw, 54px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.14;
}

.hero h1 span {
  color: var(--gold);
}

.hero-copy p {
  font-size: 17px;
  line-height: 1.65;
  margin-top: 28px;
  max-width: 330px;
}

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

.button {
  align-items: center;
  border-radius: 2px;
  display: inline-flex;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 1.2px;
  min-height: 46px;
  min-width: 168px;
  padding: 0 26px;
  text-transform: uppercase;
}

.button-primary {
  background: linear-gradient(135deg, #d29c4e, #bd7e2d);
  box-shadow: 0 12px 30px rgba(188, 123, 40, 0.2);
  color: #fff;
  gap: 12px;
}

.button-secondary {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.topography {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 4px, transparent 5px)
      12px 35px / 128px 98px,
    repeating-radial-gradient(
      ellipse at 0% 100%,
      transparent 0 12px,
      rgba(255, 255, 255, 0.42) 13px 14px
    );
  bottom: -45px;
  height: 260px;
  left: -95px;
  opacity: 0.82;
  position: absolute;
  width: 575px;
}

.hero-art {
  height: auto;
  mask-image: radial-gradient(
    ellipse 66% 58% at 53% 56%,
    #000 52%,
    rgba(0, 0, 0, 0.8) 67%,
    transparent 84%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 66% 58% at 53% 56%,
    #000 52%,
    rgba(0, 0, 0, 0.8) 67%,
    transparent 84%
  );
  position: absolute;
  right: max(26px, calc((100vw - 1120px) / 2 + 34px));
  top: 172px;
  width: min(52vw, 560px);
  z-index: 1;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav-toggle-label span {
  background: var(--ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  width: 24px;
}

/* Animate to X when checked */
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.services {
  background: linear-gradient(180deg, #fbfdff 0%, #f6fbff 100%);
  padding: 46px 0 70px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 34px;
}

.eyebrow {
  color: var(--gold-dark);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.services h2,
.about h2 {
  color: var(--ink);
  font-size: clamp(28px, 3.7vw, 36px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.22;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
}

.service-card {
  min-height: 318px;
  padding: 0 26px 0 10px;
  position: relative;
}

.service-card img {
  margin: 0 auto;
}

.service-card + .service-card {
  /* border-left: 1px solid var(--line); */
  padding-left: 28px;
}

.service-art {
  display: block;
  height: 172px;
  mask-image: radial-gradient(
    ellipse 70% 66% at 49% 50%,
    #000 60%,
    rgba(0, 0, 0, 0.82) 73%,
    transparent 91%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 66% at 49% 50%,
    #000 60%,
    rgba(0, 0, 0, 0.82) 73%,
    transparent 91%
  );
  margin: 0 0 17px;
  object-fit: contain;
  object-position: left bottom;
  width: 178px;
}

.service-icon svg,
.metric svg {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-icon {
  height: 31px;
  margin-bottom: 16px;
  width: 31px;
}

.service-card h3 {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 13px;
}

.service-card p,
.about-copy p {
  font-size: 15px;
  line-height: 1.7;
}

.about {
  min-height: 320px;
  padding: 74px 0 52px;
  position: relative;
}

.about-inner {
  align-items: center;
  display: grid;
  gap: 68px;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.22fr);
}

.short-line {
  background: var(--gold);
  display: block;
  height: 2px;
  margin-bottom: 24px;
  width: 49px;
}

.about-copy p {
  margin-top: 18px;
  max-width: 520px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  min-height: 130px;
  padding: 0 34px;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric svg {
  height: 36px;
  margin-bottom: 20px;
  width: 36px;
}

.metric strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.metric span {
  display: block;
  font-size: 15px;
}

.scroll-cue {
  align-items: center;
  bottom: 18px;
  color: #445169;
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  gap: 10px;
  left: 50%;
  letter-spacing: 2px;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  border-bottom: 2px solid #445169;
  border-right: 2px solid #445169;
  display: block;
  height: 14px;
  transform: rotate(45deg);
  width: 14px;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    gap: 24px;
    padding-top: 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 26px;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
  }

  .hero-art {
    margin: 38px auto 0;
    max-width: 86vw;
    position: relative;
    right: auto;
    top: auto;
    width: min(620px, 92vw);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 42px;
  }

  .service-card:nth-child(3) {
    border-left: 0;
    padding-left: 10px;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    background: linear-gradient(135deg, #e9f4ff 0%, #d8e9f8 100%);
    flex-direction: column;
    padding: 22px 22px 8px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 58px 22px 42px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    width: 112vw;
  }

  .site-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #e9f4ff 0%, #d8e9f8 100%);
    padding: 12px 22px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-mark {
    height: 58px;
    width: 102px;
  }

  .nav-toggle-label {
    display: flex;
    flex: 0 0 auto;
  }

  /* Menu occupies a new row */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    gap: 0;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }


.site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 22px;
    gap: 10px
  }

  .brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;   /* important */
    max-width: calc(100% - 60px);
  }

  .nav-toggle-label {
    justify-self: end;
  }

   .nav-links {
    grid-column: 1 / -1;
    width: 100%;
  }

  .section-inner {
    padding: 0 22px;
  }

  .services {
    padding-top: 38px;
  }

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

  .service-card,
  .service-card + .service-card,
  .service-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
    padding: 28px 0 0;
  }

  .service-card:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .about {
    padding-bottom: 74px;
  }

  .about-inner {
    gap: 40px;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .metric,
  .metric + .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
    padding: 26px 0 0;
  }
}

/* ── Contact ──────────────────────────────────────────── */

.contact {
  background: var(--paper);
  padding: 80px 0 72px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 30% 1fr 20%;
  gap: 56px;
  align-items: start;
}

.contact-copy .eyebrow {
  margin-bottom: 14px;
}

.contact-copy h2 {
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  padding: 13px 16px;
  transition: border-color 0.18s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form textarea {
  resize: vertical;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 4px;
  border: none;
  cursor: pointer;
}

/* Info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 4px;
}

.contact-detail {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.contact-detail svg {
  fill: none;
  flex-shrink: 0;
  height: 20px;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  margin-top: 2px;
  width: 20px;
}

.contact-detail strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail span {
  color: var(--muted);
  font-size: 14px;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 240px repeat(3, 1fr) 160px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.55;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-head {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--gold-dark);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  align-items: center;
  background: var(--ink);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: background 0.15s;
  width: 36px;
}

.social-icons a:hover {
  background: var(--gold-dark);
}

.social-icons svg {
  fill: none;
  height: 16px;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 34px;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.sign-digital {
  text-decoration: underline;
}

/* ── Responsive: contact + footer ────────────────────── */

@media (max-width: 980px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .contact {
    padding: 52px 0 56px;
  }

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

  .contact-submit {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    padding: 18px 22px;
  }
}
