: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,
p {
  margin: 0;
}

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

/* ── Header / brand ───────────────────────────────────── */

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

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

.brand-mark svg {
  display: block;
  height: 46px;
  width: 46px;
}

.brand-mark rect {
  fill: var(--ink);
}

.brand-mark text {
  fill: var(--gold);
  font-family: var(--font-head);
  font-size: 33px;
  font-weight: 700;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(22px, 4vw, 46px);
}

.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;
}

.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;
}

.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);
}

/* ── Shared ───────────────────────────────────────────── */

.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;
}

.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%);
}

.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-primary img {
  width: 16px;
}

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

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  min-height: 700px;
  overflow: hidden;
  padding: 168px 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: 470px;
  position: relative;
  z-index: 2;
}

.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: 392px;
}

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

/* ── About lead ───────────────────────────────────────── */

.about-lead {
  background: var(--paper);
  padding: 78px 0 26px;
}

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

.lead-body {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  max-width: 770px;
}

.lead-body p {
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.8;
}

/* ── Focus / services ─────────────────────────────────── */

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

.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 {
  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;
}

/* ── Projects ─────────────────────────────────────────── */

.projects {
  background: var(--paper);
  padding: 60px 0 74px;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 28px 30px 26px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card::before {
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.18s ease;
  width: 100%;
}

.project-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-tag {
  color: var(--gold-dark);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.project-card h3 {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
}

.project-card p {
  color: var(--text);
  flex: 1;
  font-size: 15px;
  line-height: 1.65;
}

.project-link {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-link img {
  width: 15px;
  transition: transform 0.18s ease;
}

.project-card:hover .project-link img {
  transform: translateX(5px);
}

.project-card:hover .project-link {
  color: var(--gold-dark);
}

/* ── About / Class ────────────────────────────────────── */

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

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

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

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

.about-copy a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.metric:first-child {
  padding-left: 0;
}

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

.metric svg,
.metric img {
  height: 34px;
  margin-bottom: 18px;
  width: 34px;
}

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

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

/* ── Connect ──────────────────────────────────────────── */

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

.connect-inner {
  align-items: center;
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr 0.92fr;
}

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

.contact-copy h2 {
  color: var(--ink);
  font-size: clamp(24px, 2.9vw, 32px);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 16px;
}

.contact-copy p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 430px;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(35, 64, 104, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 26px;
}

.contact-detail {
  align-items: center;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  transition: transform 0.15s ease;
}

.contact-detail + .contact-detail {
  border-top: 1px solid var(--line);
}

a.contact-detail:hover {
  transform: translateX(3px);
}

a.contact-detail:hover strong {
  color: var(--gold-dark);
}

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

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

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

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

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

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

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

.footer-brand .brand-mark svg {
  display: block;
  height: 44px;
  width: 44px;
}

.footer-brand .brand-mark rect {
  fill: var(--ink);
}

.footer-brand .brand-mark text {
  fill: var(--gold);
  font-family: var(--font-head);
  font-size: 33px;
  font-weight: 700;
}

.footer-brand-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  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;
}

/* ── Responsive ───────────────────────────────────────── */

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

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

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

  .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,
  .connect-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    background: linear-gradient(135deg, #e9f4ff 0%, #d8e9f8 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 22px;
    position: relative;
  }

  .brand {
    flex: 0 1 auto;
    max-width: calc(100% - 60px);
  }

  .brand-name {
    font-size: 17px;
  }

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

  .nav-links {
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 8px;
    width: 100%;
  }

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

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

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

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

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

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

  .button {
    width: 100%;
  }

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

  .about-lead {
    padding-top: 52px;
  }

  .service-grid,
  .project-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;
  }

  .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;
  }

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

  .contact {
    padding: 52px 0 56px;
  }

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

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