:root {
  --ink: #17242b;
  --slate: #556670;
  --teal: #3f7c94;
  --teal-dark: #285a6e;
  --mist: #edf3f5;
  --paper: #ffffff;
  --line: #d9e1e4;
  --muted: #617078;
  --max: 1320px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  height: var(--header-height);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(23,36,43,0.05);
}
.page-home .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(12,27,35,0.62), rgba(12,27,35,0));
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-height);
  padding: 0 max(1.25rem, calc((100vw - var(--max)) / 2));
}
.brand { display: inline-flex; flex-shrink: 0; width: min(100%, 190px); }
.brand img {
  width: 100%;
  height: auto;
  transition: filter 180ms ease;
}
.page-home .site-header:not(.is-scrolled) .brand img {
  filter: brightness(0) invert(1);
}
.main-nav {
  flex: 1;
  min-width: 0;
  margin-left: auto;
}
.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav__list a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav__list a:hover { opacity: 0.65; }
.page-home .site-header:not(.is-scrolled) .main-nav__list a {
  color: var(--paper);
}
.main-nav__cta-item { display: none; }
.header-cta { flex-shrink: 0; }
.page-home .site-header:not(.is-scrolled) .header-cta {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.page-home .site-header:not(.is-scrolled) .nav-toggle__bar {
  background: var(--paper);
}
.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;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.5rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button--compact { min-height: 42px; font-size: 0.83rem; }
.button--accent { background: var(--teal); border-color: var(--teal); }
.button--glass { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }
.button--glass:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--light { color: var(--ink); background: var(--paper); border-color: var(--paper); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: min(820px, calc(100vh - 76px));
  padding: clamp(6rem, 12vw, 10rem) max(1.5rem, calc((100vw - var(--max)) / 2)) clamp(4rem, 8vw, 7rem);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(12, 27, 35, 0.91) 0%, rgba(12, 27, 35, 0.7) 44%, rgba(12, 27, 35, 0.16) 76%),
    url("media/hero.webp") center / cover no-repeat;
}
.hero__content { max-width: 850px; }
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--light { color: #a7d6e5; }
h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.hero__lead {
  max-width: 680px;
  margin: 1.75rem 0 2rem;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__video-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  background: rgba(12,27,35,0.28);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.play {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding-left: 2px;
  color: var(--teal-dark);
  background: var(--paper);
  border-radius: 50%;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: -1.6rem auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(23,36,43,0.08);
}
.stats div { padding: 1.8rem 2rem; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(1.5rem, 3vw, 2.45rem); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.86rem; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) 2rem;
}
.section--tint {
  max-width: none;
  padding-inline: max(2rem, calc((100vw - var(--max)) / 2));
  background: var(--mist);
}
.section__heading { max-width: 730px; margin-bottom: 3rem; }
.section__heading > p:last-child { color: var(--muted); }
.section__heading--wide {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 4rem;
  max-width: none;
}
h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
h3 { margin: 0.5rem 0; font-size: 1.2rem; line-height: 1.25; }
.prose { color: var(--muted); font-size: 1.08rem; }

.about {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}
.about__media { position: relative; }
.about__media::before {
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  width: 38%;
  height: 34%;
  content: "";
  border-top: 8px solid var(--teal);
  border-left: 8px solid var(--teal);
}
.about__media img {
  position: relative;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}
.about__points { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.about__points div {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.about__points span { color: var(--teal); font-size: 0.75rem; font-weight: 900; }
.about__points p { margin: 0; font-weight: 700; }

.production-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.media-card { position: relative; min-height: 430px; overflow: hidden; background: var(--ink); }
.media-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(11,25,32,0.92), rgba(11,25,32,0.02) 70%);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.media-card:hover img { transform: scale(1.025); }
.media-card > div { position: absolute; z-index: 1; right: 2rem; bottom: 1.8rem; left: 2rem; color: var(--paper); }
.media-card span { color: #a7d6e5; font-size: 0.75rem; font-weight: 900; }
.media-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.media-card p { max-width: 540px; margin: 0; color: rgba(255,255,255,0.72); }

.video-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 8vw, 7rem) max(2rem, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: var(--slate);
}
.video-section__copy p:last-child { color: rgba(255,255,255,0.72); }
.video-section video { width: 100%; aspect-ratio: 16 / 9; background: #0c171d; box-shadow: 0 28px 70px rgba(0,0,0,0.25); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  min-height: 250px;
  padding: 2rem;
  background: var(--paper);
}
.service span { color: var(--teal); font-size: 0.76rem; font-weight: 900; }
.service h3 { margin: 1.4rem 0 0.8rem; font-size: 1.35rem; }
.service p { margin: 0; color: var(--muted); }

.products {
  padding: clamp(5rem, 8vw, 8rem) max(2rem, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: var(--ink);
}
.products__heading { max-width: 800px; }
.products__heading > p:last-child { color: rgba(255,255,255,0.65); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 0.9rem;
}
.gallery figure { position: relative; margin: 0; overflow: hidden; background: #283840; }
.gallery__wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(18,34,42,0.82);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
}
.values article { padding-top: 2rem; border-top: 4px solid var(--teal); }
.values h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.values article > p:last-child { color: var(--muted); }

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.6fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 8vw, 8rem) max(2rem, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: var(--teal);
}
.contact__copy > p:last-child { max-width: 650px; color: rgba(255,255,255,0.76); }
.contact__links { display: grid; gap: 1rem; }
.contact__links > a:not(.button) {
  display: grid;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.32);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}
.contact__links span {
  color: rgba(255,255,255,0.66);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero {
  padding: calc(var(--header-height) + 5rem) max(2rem, calc((100vw - var(--max)) / 2)) 5rem;
  color: var(--paper);
  background: var(--ink);
}
.page-hero > div { max-width: var(--max); }
.page-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 6vw, 5.5rem);
}
.page-hero p:last-child {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 1.1rem;
}
.flash-messages {
  max-width: var(--max);
  padding: 1.25rem max(2rem, calc((100vw - var(--max)) / 2)) 0;
}
.flash {
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
}
.flash--success { color: #1e4620; background: #edf7ed; border-color: #b8d9ba; }
.flash--error { color: #611a15; background: #fdecea; border-color: #efc4bf; }
.contact-page__section {
  padding: clamp(4rem, 7vw, 7rem) max(2rem, calc((100vw - var(--max)) / 2));
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.contact-info h2,
.contact-form h2 { margin-top: 0; }
.contact-info address { font-style: normal; }
.contact-info address p {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-note { color: var(--muted); }
.contact-form {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--mist);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(63,124,148,0.25);
  border-color: var(--teal);
}
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.map-section {
  padding: clamp(4rem, 7vw, 6rem) max(2rem, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}
.map-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.map-section__heading h2 { margin-bottom: 0; }
.map-section__heading > a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.map-section__frame {
  min-height: 420px;
  overflow: hidden;
  background: var(--mist);
}
.map-section iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem max(2rem, calc((100vw - var(--max)) / 2));
  color: #aeb9be;
  background: #101b20;
}
footer img { width: 180px; height: auto; filter: brightness(0) invert(1); opacity: 0.86; }
footer a { text-decoration: none; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  .main-nav.is-open {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 0.5rem 1.5rem 2rem;
    overflow-y: auto;
    background: var(--paper);
  }
  .main-nav.is-open .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open .main-nav__list li { border-bottom: 1px solid var(--line); }
  .main-nav.is-open .main-nav__list a {
    display: block;
    padding: 1rem 0;
    color: var(--ink) !important;
    font-size: 1rem;
  }
  .main-nav.is-open .main-nav__cta-item {
    display: block;
    padding-top: 1.5rem;
    border-bottom: 0;
  }
  .main-nav.is-open .main-nav__cta-item .button { width: 100%; color: var(--paper) !important; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__video-link { width: fit-content; }
  .stats { margin-inline: 1rem; grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about, .video-section { grid-template-columns: 1fr; }
  .about__media { max-width: 700px; }
  .section__heading--wide { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 66px; }
  :root { --header-height: 66px; }
  .header-inner { padding-inline: 1rem; }
  .brand { max-width: 150px; }
  .hero {
    min-height: 100svh;
    padding: 6rem 1.25rem 3rem;
    background-position: 62% center;
  }
  h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .stats { grid-template-columns: 1fr; margin-top: 0; margin-inline: 0; border-width: 0 0 1px; }
  .stats div, .stats div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .section, .section--tint, .products, .video-section, .contact, .map-section,
  .page-hero, .contact-page__section, .flash-messages { padding-inline: 1.25rem; }
  .about { gap: 3rem; }
  .about__media::before { top: -0.7rem; left: -0.7rem; }
  .production-grid, .services-grid, .values, .contact, .contact-layout { grid-template-columns: 1fr; }
  .map-section__heading { align-items: start; flex-direction: column; gap: 1rem; }
  .map-section iframe { height: 420px; }
  .media-card { min-height: 380px; }
  .media-card > div { right: 1.25rem; bottom: 1.25rem; left: 1.25rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery__wide { grid-column: auto; }
  footer { grid-template-columns: 1fr; gap: 0.8rem; padding-inline: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
