:root {
  color-scheme: dark;
  --bg: #080807;
  --bg-muted: #11100e;
  --text: #f4f0e8;
  --text-muted: #a89f94;
  --line: rgba(244, 240, 232, 0.14);
  --accent: #b79a67;
  --accent-soft: rgba(183, 154, 103, 0.14);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --paper: #e7e0d5;
  --ink: #11100e;
  --max: 1180px;
  --header: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(183, 154, 103, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 40px 0;
}

.error-page-content {
  max-width: 720px;
}

.error-page-content p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: 30px;
  color: var(--text-muted);
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.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;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(8, 8, 7, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 3px;
  background: #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.brand small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  padding: 108px 0;
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-muted {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header) + 80px) 0 64px;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.55) contrast(1.08) brightness(0.74);
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.96) 0%, rgba(8, 8, 7, 0.82) 44%, rgba(8, 8, 7, 0.42) 100%),
    linear-gradient(0deg, rgba(8, 8, 7, 0.97) 0%, rgba(8, 8, 7, 0.18) 55%, rgba(8, 8, 7, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.eyebrow,
.intro-kicker,
.project-meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.052em;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.15;
}

.hero-lead {
  max-width: 680px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.button-primary {
  background: var(--accent);
  color: #080807;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  gap: 1px;
  margin: 60px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--line);
}

.hero-stats div {
  padding: 18px;
  background: rgba(8, 8, 7, 0.72);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.hero-stats .hero-skills {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
}

.hero-stats .hero-skills strong {
  font-size: clamp(1.05rem, 1.65vw, 1.4rem);
  white-space: nowrap;
}

.hero-stats .hero-skills strong:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.intro {
  padding: 44px 0;
  border-block: 1px solid var(--line);
  background: #0d0c0a;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) 1fr;
  gap: 36px;
  align-items: start;
}

.intro h2 {
  max-width: 920px;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.intro p:last-child {
  max-width: 690px;
  color: var(--text-muted);
}

.sectors {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: #0b0a09;
}

.sectors-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) 1fr;
  gap: 36px;
  align-items: center;
}

.sectors p {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sectors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.sectors li {
  position: relative;
}

.sectors li:not(:last-child)::after {
  content: "/";
  margin-left: 22px;
  color: rgba(183, 154, 103, 0.62);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-muted .section-heading p:not(.eyebrow),
.section-muted .project-content p {
  color: #4b4d48;
}

.split {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  max-width: none;
  gap: 40px;
  align-items: end;
}

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

.service-card {
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}

.service-card.featured {
  background: #1a1712;
  color: var(--text);
  border-color: rgba(183, 154, 103, 0.45);
}

.service-number {
  display: inline-flex;
  margin-bottom: 68px;
  color: var(--accent);
  font-weight: 900;
}

.featured .service-number {
  color: var(--accent);
}

.service-card p {
  color: var(--text-muted);
}

.featured p {
  color: var(--text-muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.featured ul {
  color: var(--text);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(17, 16, 14, 0.22);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: var(--paper);
}

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

.project-card {
  display: grid;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.08);
  border-radius: 3px;
  background: #0f0e0c;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:focus-visible {
  transform: scale(1.018);
  border-color: rgba(183, 154, 103, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.project-card:focus-visible {
  outline: 0;
}

.project-card.is-hidden {
  display: none;
}

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

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
  transition: transform 260ms ease;
}

.project-card.large img {
  height: 360px;
}

.project-card:focus-visible img {
  transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: scale(1.018);
    border-color: rgba(183, 154, 103, 0.42);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  }

  .project-card:hover img {
    transform: scale(1.04);
  }
}

.project-content {
  align-self: end;
  padding: 22px;
}

.project-content p {
  color: #c4bdb3;
}

.project-role {
  margin-bottom: 12px;
  color: rgba(245, 240, 230, 0.72) !important;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.timeline article {
  padding: 26px;
  background: #0d0c0a;
}

.timeline span {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--accent);
  font-weight: 900;
}

.timeline p {
  color: var(--text-muted);
}

.equipment {
  padding: 96px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(183, 154, 103, 0.1), transparent 34%),
    #0d0c0a;
}

.equipment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

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

.equipment-copy {
  position: sticky;
  top: 112px;
}

.equipment-note {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  color: var(--text);
}

.equipment-inventory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--line);
}

.equipment-category {
  min-height: 230px;
  padding: 24px;
  background: var(--panel);
}

.equipment-category span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.equipment-category h3 {
  margin-bottom: 18px;
}

.equipment-category ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.equipment-category li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.equipment-category li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.72em;
  border-radius: 50%;
  background: var(--accent);
}

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

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.78) contrast(1.02);
}

.about p {
  max-width: 700px;
  color: var(--text-muted);
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-points span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  padding: 104px 0;
  background: #070706;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 42px;
  align-items: start;
}

.contact p {
  max-width: 680px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}

.contact-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card a {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  text-decoration: none;
}

.contact-points {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-points span {
  color: var(--text-muted);
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.legal-page {
  padding: 54px 0 96px;
}

.legal-content {
  max-width: 800px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 88px;
  text-decoration: none;
}

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

.legal-brand small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.legal-section {
  max-width: 720px;
  margin: 42px 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

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

.legal-section a {
  color: var(--text);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

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

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.video-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 15, 16, 0.96);
  }

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

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

  .nav-toggle {
    display: block;
  }

  .intro-grid,
  .sectors-grid,
  .split,
  .equipment-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .equipment-copy {
    position: static;
  }

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

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

  .service-card {
    min-height: 0;
  }

  .service-number,
  .timeline span {
    margin-bottom: 36px;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-inline: 14px;
  }

  .hero {
    min-height: 92svh;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.2rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.04;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(13, 15, 16, 0.98) 0%, rgba(13, 15, 16, 0.64) 62%, rgba(13, 15, 16, 0.76) 100%);
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

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

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

  .project-card img,
  .project-card.large img {
    height: 220px;
  }

  .equipment-category {
    min-height: 0;
    padding: 20px;
  }

  .contact-card a {
    overflow-wrap: anywhere;
  }

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

  .legal-page {
    padding: 32px 0 72px;
  }

  .legal-brand {
    margin-bottom: 64px;
  }
}

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

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