:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --ink: #15171b;
  --muted: #62666f;
  --line: rgba(21, 23, 27, 0.12);
  --charcoal: #10141c;
  --navy: #182337;
  --orange: #f26a21;
  --orange-dark: #c94f15;
  --steel: #2d6f8d;
  --green: #66845a;
  --shadow: 0 24px 70px rgba(16, 20, 28, 0.16);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  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;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--steel), var(--green));
  transform-origin: left center;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 20, 28, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(20, 20, 20, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 112px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: #060606;
  padding: 4px;
}

.brand span {
  letter-spacing: 0;
}

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

.site-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--orange);
  background: rgba(242, 106, 33, 0.16);
}

.nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 12px;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

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

.hero-media {
  background-image: url("images/hero.png");
  background-position: center;
  background-size: cover;
  transform: translateY(calc(var(--hero-shift, 0) * 0.08px)) scale(1.04);
  filter: saturate(0.94) contrast(1.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.88) 0%, rgba(16, 20, 28, 0.62) 44%, rgba(16, 20, 28, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 46px;
  width: var(--container);
  margin: 0 auto;
  padding: 150px 0 74px;
}

.hero-content {
  max-width: 820px;
}

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

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
}

.hero-actions,
.hero-facts,
.about-highlights,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 18px 38px rgba(242, 106, 33, 0.34);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-facts {
  align-content: end;
}

.hero-facts div {
  width: calc(50% - 6px);
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-facts div:first-child {
  width: 100%;
}

.hero-facts strong {
  display: block;
  font-size: 2.48rem;
  line-height: 1;
}

.hero-facts span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

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

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

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

.section-heading p:not(.eyebrow),
.about-content p,
.contact-copy p,
.material-content p,
.standards-grid p,
.timeline p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(20, 20, 20, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 106, 33, 0.35);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 7px;
  color: #fff;
  background: var(--charcoal);
}

.service-card:nth-child(2n) .service-icon {
  background: var(--orange);
}

.service-card:nth-child(3n) .service-icon {
  background: var(--steel);
}

.service-card:nth-child(5n) .service-icon {
  background: var(--green);
}

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quality-strip {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.2);
}

.quality-strip span {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-highlights {
  margin-top: 28px;
}

.about-highlights div {
  flex: 1 1 160px;
  padding: 18px;
  border-top: 3px solid var(--orange);
  border-radius: 8px;
  background: #fff;
}

.about-highlights strong {
  display: block;
  color: var(--steel);
  font-size: 0.9rem;
}

.about-highlights span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

.standards {
  padding-top: 36px;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.standards-grid article {
  min-height: 248px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.standards-grid span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.standards-grid h3 {
  margin-top: 58px;
}

.project-section {
  padding-top: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
}

.project-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-card.wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 20%, rgba(0, 0, 0, 0.78) 100%);
}

.project-card div {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  color: #fff;
}

.project-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffb083;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-card:hover img {
  transform: scale(1.1);
  filter: saturate(1.08);
}

.project-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.material-band {
  color: #fff;
  background: var(--charcoal);
}

.material-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 42px;
  width: var(--container);
  margin: 0 auto;
  padding: 76px 0;
}

.material-content h2 {
  max-width: 760px;
}

.material-content p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
}

.partner-grid {
  display: grid;
  gap: 14px;
}

.partner-card {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.partner-card img {
  width: 100%;
  max-height: 74px;
  object-fit: contain;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(242, 106, 33, 0.14);
}

.timeline span {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline h3 {
  margin-top: 54px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  align-items: start;
}

.contact-list {
  flex-direction: column;
  margin-top: 30px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-list a:hover {
  transform: translateX(5px);
  border-color: rgba(242, 106, 33, 0.38);
}

.contact-list svg {
  flex: 0 0 auto;
  color: var(--orange);
}

.map-section {
  height: 420px;
  background: #ddd;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.04);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: #0d1016;
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
  color: #fff;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 850;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

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

.gallery-page {
  min-height: 100vh;
  background: #0d1016;
  color: #fff;
}

.gallery-header {
  display: grid;
  gap: 24px;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 16px;
}

.gallery-header h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.96;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

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

.legal-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-back {
  margin-bottom: 34px;
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.legal-content h1 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 1.4rem;
  line-height: 1.2;
}

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

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.source-list a {
  color: var(--orange-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
    right: 14px;
    left: 14px;
    width: auto;
    padding-right: 64px;
    transform: none;
  }

  .nav-toggle {
    display: grid;
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 1001;
    color: #fff;
    background: var(--orange);
    transform: translateY(-50%);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .hero {
    min-height: 86svh;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 132px 0 56px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div,
  .hero-facts div:first-child {
    width: auto;
    min-height: 112px;
  }

  .service-grid,
  .about,
  .standards-grid,
  .material-content {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 96px;
    height: 38px;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
  }

  .project-actions .btn {
    width: auto;
  }

  .hero-facts {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .service-grid,
  .timeline,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-auto-rows: 260px;
  }

  .project-card.large,
  .project-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .quality-strip {
    right: 12px;
    bottom: 12px;
  }

  .material-content {
    padding: 58px 0;
  }

  .partner-card {
    min-height: 96px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 680px);
    gap: 12px;
    padding: 12px 0 32px;
  }

  .gallery-grid img {
    min-height: 220px;
  }

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

  .map-section {
    height: 340px;
  }
}

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

  .hero-media {
    transform: none;
  }
}
