:root {
  --ink: #10243f;
  --ink-soft: #233956;
  --blue: #2f5f73;
  --green: #6f856d;
  --sage: #d9e1d4;
  --sand: #d6c6ab;
  --paper: #f8f6f0;
  --white: #fffdf8;
  --line: rgba(16, 36, 63, 0.14);
  --shadow: 0 28px 80px rgba(16, 36, 63, 0.16);
  --radius: 8px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(248, 246, 240, 0.94);
  box-shadow: 0 8px 32px rgba(16, 36, 63, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 86px) 72px;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 36, 63, 0.88) 0%, rgba(16, 36, 63, 0.58) 44%, rgba(16, 36, 63, 0.18) 100%),
    linear-gradient(0deg, rgba(16, 36, 63, 0.36), rgba(16, 36, 63, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--sage);
}

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

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.consultation {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
}

.button-primary {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(68px, 10vw, 132px) clamp(20px, 6vw, 86px);
}

.intro {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 260px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-label {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro p,
.section-heading p,
.contact p,
.consultation p,
.credibility p {
  max-width: 720px;
  color: var(--ink-soft);
}

.qualities {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualities li {
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: var(--white);
  box-shadow: 0 14px 42px rgba(16, 36, 63, 0.08);
}

.qualities strong,
.qualities span {
  display: block;
}

.qualities strong {
  margin-bottom: 6px;
}

.qualities span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.compact-heading {
  margin-bottom: 0;
}

.compact-heading .button {
  margin-top: 10px;
}

.soft-band {
  background: #f0eee5;
}

.card-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid article {
  min-height: 210px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
}

.card-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 245px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
}

.service-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 700;
}

.service-grid p,
.steps p,
.consult-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.consult-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: consult;
}

.consult-list li {
  position: relative;
  min-height: 86px;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-soft);
}

.consult-list li::before {
  position: absolute;
  left: 22px;
  top: 22px;
  counter-increment: consult;
  content: counter(consult);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}

.checklist-section {
  background: var(--white);
}

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

.checklist li {
  position: relative;
  min-height: 82px;
  padding: 18px 18px 18px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 600;
}

.checklist li::before {
  position: absolute;
  left: 18px;
  top: 19px;
  content: "";
  width: 10px;
  height: 16px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(38deg);
}

.dark-band {
  color: var(--white);
  background: var(--ink);
}

.dark-band .eyebrow,
.dark-band .steps span {
  color: var(--sage);
}

.dark-band .section-heading p,
.dark-band .steps p {
  color: rgba(255, 253, 248, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 253, 248, 0.2);
}

.steps li {
  min-height: 270px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--ink);
}

.steps span {
  display: block;
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: 2.4rem;
}

.scope-table {
  border: 1px solid rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.12);
}

.scope-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.8fr);
  gap: 1px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
}

.scope-row:last-child {
  border-bottom: 0;
}

.scope-row > div {
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--ink);
}

.scope-row > div:first-child {
  color: var(--white);
  font-weight: 700;
}

.scope-row > div:last-child {
  color: rgba(255, 253, 248, 0.76);
}

.scope-head > div {
  color: var(--sage);
  background: rgba(255, 253, 248, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.credibility {
  background: var(--white);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.credibility-grid p {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-feature {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  object-fit: cover;
}

.gallery-feature img {
  height: 100%;
  min-height: 520px;
}

.gallery-card img {
  aspect-ratio: 16 / 10;
}

.gallery figcaption {
  padding: 18px 20px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
}

.portfolio-section {
  background: linear-gradient(180deg, var(--paper) 0%, #f1eee6 100%);
}

.project-gallery {
  display: grid;
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card-feature {
  background: linear-gradient(135deg, var(--white), #f2f0e8);
}

.project-copy {
  align-self: start;
  position: sticky;
  top: 98px;
}

.project-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-copy h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.project-copy p:not(.project-kicker) {
  color: var(--ink-soft);
}

.project-carousel {
  position: relative;
  min-width: 0;
}

.project-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--green) rgba(16, 36, 63, 0.12);
  padding: 2px 2px 16px;
}

.project-track::-webkit-scrollbar {
  height: 8px;
}

.project-track::-webkit-scrollbar-track {
  background: rgba(16, 36, 63, 0.1);
  border-radius: 999px;
}

.project-track::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 999px;
}

.project-slide {
  flex: 0 0 clamp(260px, 31vw, 430px);
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(16, 36, 63, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-slide:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 133, 109, 0.45);
  box-shadow: 0 18px 42px rgba(16, 36, 63, 0.12);
}

.image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.image-open img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.project-slide:hover .image-open img,
.image-open:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.project-slide figcaption {
  padding: 14px 15px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: 40%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 253, 248, 0.88);
  border-radius: 50%;
  color: var(--white);
  background: rgba(16, 36, 63, 0.62);
  box-shadow: 0 12px 32px rgba(16, 36, 63, 0.2);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  background: rgba(16, 36, 63, 0.82);
}

.carousel-button-prev {
  left: 10px;
}

.carousel-button-next {
  right: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(9, 20, 35, 0.86);
  backdrop-filter: blur(14px);
  animation: lightboxFade 180ms ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  width: min(1180px, 100%);
  margin: 0;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  animation: lightboxZoom 220ms ease both;
}

.lightbox-frame img {
  width: 100%;
  max-height: min(76vh, 820px);
  object-fit: contain;
  background: #101827;
}

.lightbox-frame figcaption {
  padding: 14px 18px;
  color: var(--ink-soft);
  font-weight: 600;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 253, 248, 0.62);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(16, 36, 63, 0.72);
  font-weight: 700;
  cursor: pointer;
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.965) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.consultation {
  justify-content: space-between;
  color: var(--white);
  background: var(--blue);
}

.consultation .eyebrow {
  color: var(--sage);
}

.consultation h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.consultation p {
  max-width: 420px;
  color: rgba(255, 253, 248, 0.8);
}

.consultation .button-primary {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 40px;
  align-items: start;
}

address {
  display: grid;
  gap: 12px;
  font-style: normal;
}

address a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 700;
}

address .button-primary {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--ink);
  font-weight: 700;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: rgba(255, 253, 248, 0.72);
  background: var(--ink);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .contact,
  .gallery,
  .credibility-grid,
  .split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .steps,
  .four-grid,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-feature img {
    min-height: 380px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    min-height: 80vh;
    padding: 118px 20px 48px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9.2vw, 2.45rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.72rem, 7.2vw, 2rem);
    overflow-wrap: anywhere;
  }

  .section h2 {
    max-width: 12ch;
  }

  .section-heading h2,
  .consultation h2 {
    max-width: 13ch;
  }

  .hero-content p:not(.eyebrow) {
    max-width: 32ch;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(16, 36, 63, 0.9) 0%, rgba(16, 36, 63, 0.64) 56%, rgba(16, 36, 63, 0.24) 100%);
  }

  .hero-actions,
  .consultation {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 20px;
  }

  .intro,
  .split-section,
  .credibility-grid {
    display: block;
  }

  .section-label {
    margin-bottom: 22px;
  }

  .qualities {
    margin-top: 28px;
  }

  .service-grid,
  .steps,
  .four-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .steps li,
  .card-grid article {
    min-height: auto;
  }

  .consult-list {
    margin-top: 30px;
  }

  .gallery-feature img {
    min-height: 320px;
  }

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

  .project-slide {
    flex-basis: min(82vw, 360px);
  }

  .carousel-button {
    width: 38px;
    height: 38px;
    top: 36%;
    font-size: 1.55rem;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .scope-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .scope-row > div:first-child {
    padding-bottom: 8px;
  }

  .scope-row > div:last-child {
    padding-top: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
