@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/sora-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --surface: #f5f7f4;
  --surface-strong: #ffffff;
  --ink: #17211d;
  --muted: #65726d;
  --line: #d9dfda;
  --roof: #315c4d;
  --zinc: #6d7773;
  --clay: #b95736;
  --night: #101715;
  --night-soft: #1b2723;
  --shadow: 0 24px 80px rgba(22, 31, 28, 0.16);
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  --content: 1180px;
  --header-height: 76px;
  --font-body: "Manrope", "Aptos", "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", "Aptos", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-shift: 0;
  --scroll-progress: 0;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

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

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: calc(var(--scroll-progress) * 100%);
  height: 3px;
  background: var(--clay);
  transform-origin: left center;
  pointer-events: none;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.page-ready) .hero__content {
  opacity: 0;
  transform: translateY(18px);
}

body.page-ready .hero__content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms var(--ease-soft), transform 720ms var(--ease-soft);
}

body:not(.page-ready) .hero__image {
  transform: scale(1.1);
  filter: saturate(0.82) contrast(1.04);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  background: rgba(245, 247, 244, 0.92);
  border-bottom: 1px solid rgba(217, 223, 218, 0.9);
  backdrop-filter: blur(16px);
  transition: height 260ms var(--ease-out), background 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(22, 31, 28, 0.09);
}

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

.brand img {
  width: 230px;
  height: auto;
  transition: width 260ms var(--ease-out);
}

.site-header.is-scrolled .brand img {
  width: 208px;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--clay);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  contain: paint;
  display: grid;
  align-items: end;
  padding: var(--space-xxl) var(--space-lg);
  background: var(--night);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.05);
  transform: translate3d(0, calc(var(--hero-shift) * 1px), 0) scale(1.06);
  transform-origin: center center;
  transition: transform 900ms var(--ease-soft), filter 900ms var(--ease-soft);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 15, 12, 0.88) 0%, rgba(8, 15, 12, 0.58) 38%, rgba(8, 15, 12, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 15, 12, 0.7) 0%, rgba(8, 15, 12, 0) 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin-bottom: var(--space-md);
  font-size: 4.25rem;
  max-width: 12ch;
}

h1 span {
  display: block;
}

.h1__line--long {
  white-space: nowrap;
}

h2 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  max-width: 15ch;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

h3 {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero__lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  font-weight: 500;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(22, 31, 28, 0.16);
}

.button--primary {
  border-color: var(--clay);
  background: var(--clay);
  color: #ffffff;
}

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

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

.intro-band div {
  min-height: 150px;
  padding: var(--space-lg);
  background: var(--surface-strong);
}

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

.intro-band strong {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.intro-band span {
  color: var(--muted);
}

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, clamp(17rem, 24vw, 21rem)) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.section__intro {
  max-width: 640px;
  min-width: 0;
}

.section--split .section__intro {
  position: relative;
  width: 100%;
  max-width: none;
  padding-top: var(--space-md);
  border-top: 2px solid var(--clay);
  contain: layout paint;
}

.section--split > :not(.section__intro) {
  min-width: 0;
}

.section--split .section__intro h2 {
  font-size: clamp(1.75rem, 2.35vw, 2.35rem);
  line-height: 1.08;
  max-width: min(100%, 11.5ch);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.section--split .section__intro p:not(.eyebrow) {
  max-width: 28rem;
}

.section__intro p:not(.eyebrow) {
  color: var(--muted);
}

.news-grid {
  display: grid;
  gap: var(--space-lg);
}

.news-item {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.news-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.text-link {
  color: var(--roof);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: var(--space-md);
  min-height: 220px;
  padding: var(--space-lg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.service img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.service ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section--dark {
  max-width: none;
  background: var(--night);
  color: #ffffff;
}

.section--dark > * {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

.section--dark .section__intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-xl);
  background: rgba(255, 255, 255, 0.16);
}

.gallery-item {
  position: relative;
  display: block;
  min-height: 290px;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: var(--night-soft);
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  transition: transform 520ms var(--ease-out), filter 520ms var(--ease-out);
}

.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-lg);
  background: linear-gradient(0deg, rgba(9, 15, 13, 0.86), rgba(9, 15, 13, 0));
  font-weight: 800;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--clay);
  font-weight: 900;
}

.timeline span {
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline a {
  color: var(--roof);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1px;
  max-width: none;
  padding: 0;
  background: var(--line);
}

.contact__panel,
.hours {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--surface-strong);
}

.contact__panel {
  display: grid;
  justify-content: end;
}

.contact__panel > * {
  width: min(100%, 760px);
}

address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.contact .button--ghost {
  color: var(--roof);
  background: transparent;
}

.emergency {
  margin-top: var(--space-lg);
  color: var(--clay);
  font-weight: 800;
}

.hours {
  display: grid;
  align-content: center;
}

.hours dl {
  margin: 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.hours dt {
  font-weight: 800;
}

.hours dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.legal {
  max-width: none;
  background: #e8ece8;
}

.legal__main {
  max-width: var(--content);
  margin: 0 auto;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.legal-grid p {
  color: var(--muted);
}

.credit {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.credit__image img {
  width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.credit__text p:not(.eyebrow) {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--night);
  color: #ffffff;
}

.site-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.footer-links img {
  width: 30px;
  height: 30px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  background: rgba(9, 15, 13, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1080px, 100%);
  margin: 0;
  color: #ffffff;
}

.lightbox img {
  width: 100%;
  max-height: 76svh;
  object-fit: contain;
  background: var(--night);
}

.lightbox figcaption {
  padding-top: var(--space-sm);
  font-weight: 800;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service,
.news-item,
.gallery-item,
.timeline li {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html::before {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .section--split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .section--split .section__intro {
    max-width: 720px;
    contain: none;
  }

  .section--split .section__intro h2 {
    max-width: min(100%, 18ch);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 0.35rem;
    align-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-strong);
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    justify-self: stretch;
    display: grid;
    gap: 0;
    width: 100%;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 280ms var(--ease-soft);
  }

  .site-header.is-scrolled .site-nav {
    inset: 66px 0 auto 0;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem 0;
  }

  .intro-band,
  .contact,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

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

  .contact__panel {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 var(--space-md);
  }

  .brand img {
    width: 190px;
  }

  .site-header.is-scrolled .brand img {
    width: 176px;
  }

  .hero {
    min-height: 680px;
    padding: var(--space-xl) var(--space-md);
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(8, 15, 12, 0.86) 0%, rgba(8, 15, 12, 0.32) 100%),
      linear-gradient(90deg, rgba(8, 15, 12, 0.72), rgba(8, 15, 12, 0.28));
  }

  h1 {
    font-size: 2.35rem;
    max-width: 100%;
  }

  .h1__line--long {
    font-size: clamp(1.55rem, 7.4vw, 2rem);
  }

  h2 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .section,
  .contact__panel,
  .hours {
    padding: var(--space-xl) var(--space-md);
  }

  .intro-band div {
    min-height: auto;
    padding: var(--space-md);
  }

  .service {
    grid-template-columns: 60px 1fr;
    min-height: auto;
    padding: var(--space-md);
  }

  .service img {
    width: 52px;
    height: 52px;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 250px;
  }

  .timeline li {
    grid-template-columns: 64px 1fr;
    gap: var(--space-md);
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
