:root {
  --brand-black: #141515;
  --brand-gold: #c1a984;
  --brand-white: #ffffff;
  --brand-mist: #f4f4f3;
  --ink: #141515;
  --muted: #6f716e;
  --paper: #ffffff;
  --panel: #ffffff;
  --soft: #f4f4f3;
  --warm: #eee8dd;
  --line: #e3ded5;
  --green: #141515;
  --teal: #7b6b52;
  --brick: #9a825f;
  --gold: #c1a984;
  --shadow: 0 18px 48px rgba(20, 21, 21, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

mark {
  padding: 0.1rem 0.25rem;
  background: #fff0b8;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  background: var(--green);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(222, 215, 202, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(20, 21, 21, 0.08);
}

.site-header.compact {
  position: relative;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-logo-full {
  width: clamp(132px, 16vw, 190px);
  height: auto;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-word {
  color: var(--brand-black);
}

.brand-number {
  color: var(--brand-gold);
}

.site-footer .brand-word {
  color: var(--brand-white);
}

.brand small {
  display: block;
  color: var(--brand-black);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-footer .brand small {
  color: var(--brand-gold);
}

.brand-mark,
.logo-placeholder {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-mark {
  object-fit: contain;
  border-radius: var(--radius);
}

.logo-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(193, 169, 132, 0.75);
  border-radius: var(--radius);
  background: var(--brand-black);
  box-shadow: inset 0 0 0 4px var(--brand-white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.6rem 0.8rem;
  color: #2c3635;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--brand-mist);
  outline: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  width: min(1420px, calc(100% - 32px));
  min-height: calc(82vh - 76px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 5rem) 0 3rem;
}

.hero-copy {
  max-width: 760px;
}

.hero-logo {
  width: min(360px, 82vw);
  margin: 0 0 1.2rem;
  border-radius: var(--radius);
}

.hero-brand {
  display: grid;
  grid-template-columns: clamp(178px, 19vw, 246px) clamp(330px, 37vw, 520px);
  align-items: center;
  gap: clamp(0.2rem, 1vw, 0.75rem);
  width: fit-content;
  max-width: 100%;
  margin: 0 0 2.25rem;
}

.hero-brand-mark {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transform: translateX(clamp(-46px, -3.6vw, -30px));
}

.hero-brand-text {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateX(clamp(-96px, -6.5vw, -58px));
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  color: #3b4644;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.78rem 1rem;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(20, 21, 21, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--brand-black);
  background: var(--brand-gold);
}

.button-ghost {
  color: var(--green);
  border-color: var(--line);
  background: rgba(244, 244, 243, 0.82);
}

.full-width {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.trust-row div {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-mist);
}

.trust-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.trust-row dd {
  margin: 0.2rem 0 0;
  font-weight: 850;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-mist);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-band {
  padding: 1rem 0;
  color: white;
  background: var(--brand-black);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 1rem;
  align-items: center;
}

.intro-grid p {
  max-width: 78ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.intro-card {
  padding: 1rem;
  border: 1px solid rgba(193, 169, 132, 0.36);
  border-radius: var(--radius);
  background: rgba(193, 169, 132, 0.12);
}

.intro-card strong,
.intro-card span {
  display: block;
}

.intro-card span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 21, 21, 0.07);
}

.service-card.featured {
  grid-column: span 2;
  grid-template-columns: 0.72fr 1fr;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 210px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--brand-mist);
}

.service-card.featured img {
  height: 100%;
}

.service-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.service-card li::marker {
  color: var(--gold);
}

.surface-section {
  background: var(--brand-mist);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tech-list span {
  min-height: 74px;
  padding: 1rem;
  border: 1px solid rgba(24, 32, 31, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(45deg, rgba(193, 169, 132, 0.22) 0 3px, transparent 3px 9px);
  font-weight: 850;
}

.process-section {
  background: var(--panel);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-grid article {
  padding: 1.25rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--brand-mist);
}

.process-grid span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  place-items: center;
  color: white;
  font-weight: 900;
  border-radius: 50%;
  background: var(--brand-black);
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-section {
  background: #fafafa;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  font-weight: 850;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-mist);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(20, 21, 21, 0.1);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-item span {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 1.6rem);
  padding: 0.45rem 0.65rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 850;
  border-radius: 6px;
  background: rgba(20, 21, 21, 0.9);
}

.gallery-item.is-hidden {
  display: none;
}

.contact-section {
  color: white;
  background: var(--brand-black);
}

.contact-section .eyebrow {
  color: var(--brand-gold);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-tile {
  display: block;
  min-height: 94px;
  padding: 1rem;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(193, 169, 132, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-tile:hover,
.contact-tile:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.contact-tile.accent {
  color: var(--brand-black);
  background: var(--brand-gold);
}

.contact-tile.accent span {
  color: rgba(20, 21, 21, 0.72);
}

.contact-tile strong,
.contact-tile span {
  display: block;
}

.contact-tile span {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  color: #394341;
  font-size: 0.9rem;
  font-weight: 850;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #cfc7bb;
  border-radius: 6px;
  padding: 0.78rem 0.8rem;
  background: #fffdf8;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  border-color: var(--brand-gold);
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: #4a5452;
  font-size: 0.88rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--green);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 2.4rem 0;
  background: var(--brand-black);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.4fr 0.4fr;
  gap: 1.5rem;
}

.footer-grid p,
.footer-grid a,
.footer-grid small {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a {
  display: block;
  margin-top: 0.45rem;
  text-decoration: none;
}

.footer-brand {
  margin-bottom: 0.9rem;
}

.footer-logo {
  filter: none;
  background: white;
  border-radius: var(--radius);
}

.lightbox {
  width: min(920px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  color: white;
  font-weight: 850;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-size: 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.legal-page {
  background: var(--brand-mist);
}

.legal-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.legal-wrap h1 {
  max-width: none;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.legal-note,
.back-link {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 850;
}

.legal-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.legal-card h2 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

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

  .service-card.featured {
    grid-column: span 2;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.visible {
    position: static;
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    box-shadow: none;
  }

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

  .main-nav a {
    padding: 0.8rem;
  }

  .brand-mark,
  .logo-placeholder {
    width: 46px;
    height: 46px;
  }

  .brand-logo-full {
    width: clamp(118px, 40vw, 156px);
  }

  .hero-brand {
    grid-template-columns: clamp(104px, 30vw, 145px) minmax(210px, 1fr);
    gap: 0.15rem;
  }

  .hero-brand-mark {
    width: 100%;
    height: auto;
  }

  .hero-brand-text {
    transform: translateX(clamp(-38px, -8vw, -20px));
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .trust-row,
  .service-grid,
  .service-card.featured,
  .process-grid,
  .contact-options,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: auto;
  }

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

  .service-card img,
  .service-card.featured img {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .service-card > div {
    min-width: 0;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p,
  .service-card li {
    font-size: 0.96rem;
    line-height: 1.45;
  }

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

  .gallery-item,
  .gallery-item.large,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 250px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
