:root {
  --paper: #f3f7fd;
  --paper-2: #e2ebf8;
  --ink: #0d1b2e;
  --ink-soft: #3d4f66;
  --pine: #0b2a5b;
  --pine-2: #123a7a;
  --copper: #1877f2;
  --line: rgba(13, 27, 46, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
  --header: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 1.25rem;
  background: rgba(243, 247, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: contain;
}
.brand strong { display: block; font-weight: 560; letter-spacing: 0.01em; }
.brand em { display: block; font-style: normal; color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  padding: 0.4rem 0.7rem;
}
.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a { text-decoration: none; font-size: 0.95rem; }
.site-nav a[aria-current="page"] { color: var(--copper); }
.portal {
  border: 1px solid var(--pine);
  padding: 0.35rem 0.7rem;
  color: var(--pine);
}

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.kicker {
  margin: 0 0 0.6rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--copper);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.4rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - var(--header));
  background: var(--pine);
  color: #f4f8ff;
}
.hero-copy { padding: clamp(2rem, 6vw, 5rem) clamp(1.4rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: flex-end; }
.hero .kicker { color: #9cc7ff; }
.hero .lede { color: #c9d9ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.button, .button-ghost {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.button { background: var(--copper); color: #ffffff; }
.button-ghost { border: 1px solid rgba(244, 248, 255, 0.45); color: #f4f8ff; }
.hero-photo { position: relative; min-height: 28rem; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(6, 20, 45, 0.75));
  color: #f4f8ff;
  font-size: 0.85rem;
}
.hero-carousel .carousel-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-carousel .carousel-slide.is-active { opacity: 1; z-index: 1; }
.carousel-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 2.6rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.carousel-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.carousel-dots button.is-active { background: #fff; }

.practice {
  display: grid;
  grid-template-columns: 5rem 1fr 16rem;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.practice:last-child { border-bottom: 1px solid var(--line); }
.practice-no { font-family: var(--serif); font-size: 1.4rem; color: var(--copper); }
.practice p { margin: 0.3rem 0 0; color: var(--ink-soft); }
.practice img { width: 100%; height: 7.5rem; object-fit: cover; }
.practice:hover h3 { color: var(--copper); }

.section { padding: 4.5rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { max-width: 28rem; margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split img { width: 100%; height: 26rem; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps strong { display: block; }
.steps span { color: var(--copper); font-family: var(--serif); }

.band {
  background: var(--ink);
  color: var(--paper);
}
.band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.band img { width: 100%; height: 18rem; object-fit: cover; }
.fiber { width: 100%; height: 5.5rem; object-fit: cover; }

.page-hero { padding: 3.5rem 0 1rem; }
.page-hero h1 { max-width: 16ch; }
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.gallery img { width: 100%; height: 22rem; object-fit: cover; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 0.45rem; color: var(--ink-soft); font-size: 0.9rem; }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 0; padding: 0; list-style: none; }
.service-list li { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.service-list h3 { font-size: 1.2rem; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; }
form { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
input, textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; }
.form-note { color: var(--ink-soft); }

.topbar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding: 0.45rem 1.25rem;
  background: var(--ink);
  color: #d5e4f7;
  font-size: 0.82rem;
}
.topbar a { color: #fff; text-decoration: none; }
.trades {
  margin: 0 0 1rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #9cc7ff;
}
.trades span { color: #fff; padding: 0 0.35rem; }
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.solution {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 100%;
}
.solution img { width: 100%; height: 12rem; object-fit: cover; }
.solution div { padding: 1.1rem 1.15rem 1.35rem; }
.solution p { margin: 0; color: var(--ink-soft); }
.solution .kicker { margin-bottom: 0.45rem; }
.solution:hover h3 { color: var(--copper); }
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.reasons li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.4rem;
}
.reasons span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--copper);
  font-family: var(--serif);
}
.reasons p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.client-band { padding: 3.2rem 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.client-row li { padding-top: 0.9rem; border-top: 2px solid var(--copper); }
.client-row strong { display: block; font-size: 1.05rem; }
.client-row span { display: block; margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.95rem; }
.prose { padding-bottom: 4rem; max-width: 42rem; }
.prose .button { margin-top: 0.6rem; }

.site-footer {
  display: block;
  background: var(--ink);
  color: #d7e3f2;
  padding: 0;
  border-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 2.5rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 2.2rem;
}
.footer-title {
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9cc7ff;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #9cc7ff; }
.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: #fff; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .hero, .split, .band .wrap, .gallery, .contact-grid, .practice, .section-head, .solutions, .reasons, .client-row, .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .practice { gap: 0.6rem; }
  .hero-photo { min-height: 18rem; }
  .split img, .gallery img, .band img { height: 16rem; }
  .footer-base { width: calc(100% - 2.5rem); }
}

.footer-logo { width: 3rem; height: 3rem; border-radius: 50%; margin-bottom: 0.6rem; }
