:root {
  --ink: #1d3f55;
  --ink-deep: #152f40;
  --teal: #37bdc8;
  --teal-dark: #238594;
  --card-gray: #c7c4ca;
  --soft-gray: #eeedf0;
  --paper: #fbfbfa;
  --warm: #a88670;
  --line: rgba(29, 63, 85, 0.16);
  --shadow: 0 18px 40px rgba(21, 47, 64, 0.16);
  --pad: clamp(16px, 4vw, 42px);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink-deep);
  background: var(--paper);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  color: var(--ink);
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  line-height: 1.05;
}

.brand small {
  color: var(--teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-gray);
  box-shadow: inset 0 0 0 1px rgba(21, 47, 64, 0.12);
}

.brand-mark span {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 8px;
  border-radius: 999px;
  transform: rotate(14deg);
}

.brand-mark span:nth-child(1) {
  left: 5px;
  background: var(--teal);
}

.brand-mark span:nth-child(2) {
  left: 16px;
  background: var(--ink);
}

.brand-mark span:nth-child(3) {
  left: 27px;
  background: rgba(55, 189, 200, 0.7);
}

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

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--soft-gray);
  color: var(--ink-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(440px, 62vh, 660px);
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 34, 47, 0.68), rgba(15, 34, 47, 0.36));
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(42px, 8vw, 82px) var(--pad);
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 4.6vw, 4.25rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.12rem;
}

.hero-copy p:not(.eyebrow),
.page-hero > p,
.intro-band p,
.section-copy p,
.cta-strip p,
.process-band p {
  max-width: 660px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-copy h1,
.hero-copy p:not(.eyebrow) {
  margin-inline: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.button.primary {
  background: var(--teal);
  color: #082b37;
}

.button.primary:hover {
  background: #4fd0da;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  border-bottom: 2px solid var(--teal);
}

.intro-band,
.split-section,
.service-list,
.carousel-section,
.before-after,
.contact-layout,
.process-band,
.cta-strip {
  width: min(var(--content), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.intro-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(34px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  padding: clamp(38px, 7vw, 76px) 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.image-grid img,
.feature-image,
.comparison-grid img,
.carousel-slide img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft-gray);
}

.image-grid.compact img {
  height: clamp(180px, 24vw, 300px);
}

.image-grid.compact img:nth-child(2) {
  transform: translateY(24px);
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(118deg, rgba(55, 189, 200, 0.18), transparent 42%),
    var(--soft-gray);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: end;
  width: min(var(--content), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) 0 clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.page-hero.narrow {
  display: block;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem);
}

.about-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
}

.feature-image {
  height: clamp(340px, 48vw, 540px);
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.fact-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft-gray);
  color: var(--ink);
  font-weight: 700;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(300px, 1fr);
  gap: 28px;
  padding: 28px 0 52px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li,
.service-list article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-list li {
  padding: 18px;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  color: var(--ink);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 28px 0;
}

.service-list article {
  padding: 22px;
}

.service-list h2 {
  font-size: 1.32rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.carousel-section,
.before-after {
  padding: 16px 0 48px;
}

.carousel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.carousel-track {
  display: flex;
  transition: transform 380ms ease;
  will-change: transform;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel.is-dragging .carousel-track {
  transition: none;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
}

.carousel-slide img {
  height: clamp(310px, 58vw, 650px);
  border-radius: 0;
}

.carousel-slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(251, 251, 250, 0.92);
  color: var(--ink);
  font-weight: 800;
}

.carousel-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
}

.icon-button:hover {
  background: var(--soft-gray);
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 63, 85, 0.28);
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  width: 24px;
  background: var(--teal-dark);
}

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

.comparison-grid figure {
  margin: 0;
}

.comparison-grid img {
  height: clamp(220px, 28vw, 360px);
}

.comparison-grid figcaption {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 34px 0 56px;
}

.contact-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.contact-panel h2 {
  font-size: 1.4rem;
}

.contact-panel a {
  display: block;
  margin: 10px 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(29, 63, 85, 0.24);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink-deep);
  background: var(--paper);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(55, 189, 200, 0.28);
  border-color: var(--teal-dark);
}

.dropzone {
  position: relative;
  margin-top: 18px;
  border: 2px dashed rgba(35, 133, 148, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(55, 189, 200, 0.15), transparent 45%),
    var(--soft-gray);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone label {
  min-height: 128px;
  place-items: center;
  padding: 22px;
  text-align: center;
  cursor: pointer;
}

.dropzone span {
  color: #49606d;
  font-weight: 600;
}

.dropzone.is-dragging {
  border-color: var(--teal-dark);
  background: rgba(55, 189, 200, 0.18);
}

.file-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.file-list button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.submit-button {
  margin-top: 18px;
  width: 100%;
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 34, 47, 0.54);
}

.upload-modal.is-open {
  display: grid;
}

.upload-dialog {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.upload-dialog h2 {
  font-size: 1.45rem;
}

.progress-shell {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-gray);
}

.progress-shell span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.upload-dialog .button {
  margin-top: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  background: var(--soft-gray);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  overflow-wrap: anywhere;
}

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

  .site-nav {
    position: absolute;
    top: 72px;
    left: var(--pad);
    right: var(--pad);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(15, 34, 47, 0.86), rgba(15, 34, 47, 0.24));
  }

  .intro-band,
  .cta-strip,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-section,
  .page-hero,
  .process-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .image-grid,
  .service-list,
  .process-list,
  .comparison-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .image-grid.compact img:nth-child(2) {
    transform: none;
  }

  .image-grid.compact img,
  .comparison-grid img,
  .feature-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .brand small {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 32px;
    height: 39px;
  }

  .hero-copy {
    padding-bottom: 34px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .button-row .button {
    width: 100%;
  }

  .contact-form,
  .contact-panel,
  .service-list article,
  .cta-strip {
    padding: 18px;
  }
}
