:root {
  --ink: #071b22;
  --ink-soft: #10323d;
  --paper: #f4f6f4;
  --white: #ffffff;
  --muted: #6d7d81;
  --line: rgba(7, 27, 34, 0.14);
  --brand: #87bfcc;
  --brand-strong: #5aa7b9;
  --accent: #d6a34a;
  --shadow: 0 24px 80px rgba(7, 27, 34, 0.18);
  --radius: 1.4rem;
  --shell: min(1180px, calc(100vw - 2.5rem));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { 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;
}

.skip-link {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: .5rem;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  width: 100%;
  min-height: 92px;
  padding: .75rem max(1.25rem, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateX(-50%);
  border: 0;
  background: linear-gradient(180deg, rgba(4,18,23,.72), rgba(4,18,23,0));
  box-shadow: none;
  transition: min-height .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  top: 0;
  min-height: 76px;
  background: rgba(4,18,23,.9);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.brand-mark {
  width: 310px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .96;
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: .93rem; }
.brand-copy small { direction: ltr; color: var(--muted); font-size: .75rem; letter-spacing: .03em; }

.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  position: relative;
  padding: .65rem .85rem;
  color: rgba(255,255,255,.84);
  border-radius: .65rem;
  font-size: .92rem;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); background: rgba(255,255,255,.12); outline: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 26%; z-index: -3; transform: scale(1.38); }
.hero-scrim {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgba(135,191,204,.12), transparent 38%),
    linear-gradient(90deg, rgba(4,18,23,.98) 0%, rgba(4,18,23,.84) 42%, rgba(4,18,23,.22) 78%, rgba(4,18,23,.4) 100%),
    linear-gradient(0deg, rgba(4,18,23,.82) 0%, transparent 38%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  z-index: -1;
  background: linear-gradient(transparent, rgba(4,18,23,.7));
}

.hero-grid {
  min-height: 100svh;
  padding-block: 9.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-content { width: min(680px, 100%); justify-self: end; }
.eyebrow {
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  direction: ltr;
  justify-content: flex-end;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow span { width: 38px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--brand-strong); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { margin-bottom: 1.35rem; font-size: clamp(2.8rem, 5vw, 4.8rem); letter-spacing: -.035em; font-weight: 650; }
h1 em, h2 em { color: var(--brand); font-style: normal; font-weight: 500; }
.hero-lead { max-width: 690px; margin-bottom: 2rem; color: rgba(255,255,255,.77); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.button {
  min-height: 50px;
  padding: .8rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .8rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .filter-button:focus-visible, .gallery-card:focus-visible, .sample-tile:focus-visible { outline: 3px solid rgba(135,191,204,.55); outline-offset: 3px; }
.button-primary { color: var(--ink); background: var(--brand); }
.button-primary:hover { background: #a4d2dc; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.12); }
.button-dark { color: var(--white); background: var(--ink); }

.workflow-card {
  align-self: end;
  padding: 1.3rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(4,18,23,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.card-kicker { margin-bottom: .85rem; color: var(--brand); direction: ltr; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.workflow-card ol { list-style: none; padding: 0; margin: 0; }
.workflow-card li { padding: .7rem 0; display: flex; align-items: center; gap: .9rem; border-top: 1px solid rgba(255,255,255,.12); }
.workflow-card li > span { color: var(--brand); direction: ltr; font-size: .73rem; font-weight: 700; }
.workflow-card li div { display: grid; }
.workflow-card li strong { font-size: .96rem; }
.workflow-card li small { color: rgba(255,255,255,.48); direction: ltr; font-size: .72rem; }

.scroll-cue {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1180px) / 2));
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.62);
  font-size: .8rem;
}
.scroll-cue span { width: 30px; height: 1px; background: var(--brand); }

.intro-section { background: var(--paper); overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(400px, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.section-copy h2, .section-heading h2, .feature-content h2, .sample-copy h2, .closing-inner h2 { margin-bottom: 1.25rem; font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: -.035em; }
.section-copy h2 { max-width: 520px; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.25; }
.section-copy > p:not(.eyebrow) { max-width: 560px; color: #4e6268; font-size: 1.08rem; }
.capability-list { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.capability-list span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.55); font-size: .88rem; }

.image-stack { position: relative; min-height: 660px; }
.image-stack figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-stack img { width: 100%; height: 100%; object-fit: cover; }
.stack-main { position: absolute; inset: 0 0 0 18%; }
.stack-main img { object-position: center; }
.stack-float { position: absolute; left: 0; bottom: -2rem; width: 48%; height: 47%; border: 8px solid var(--paper); }
.stack-float figcaption { position: absolute; inset: auto 1rem 1rem; padding: .55rem .75rem; border-radius: .55rem; color: var(--white); background: rgba(4,18,23,.76); direction: ltr; font-size: .74rem; }

.equipment-section { color: var(--white); background: var(--ink); }
.section-heading { margin-bottom: 3rem; display: grid; grid-template-columns: 1fr minmax(300px, 480px); gap: 2rem; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: .45rem; color: rgba(255,255,255,.58); }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.equipment-card {
  position: relative;
  min-height: 360px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.equipment-card:hover { transform: translateY(-8px); border-color: rgba(135,191,204,.55); background: linear-gradient(145deg, rgba(135,191,204,.12), rgba(255,255,255,.03)); }
.equipment-card::after { content: ""; position: absolute; width: 190px; height: 190px; left: -70px; bottom: -95px; border: 1px solid rgba(135,191,204,.14); border-radius: 50%; }
.equipment-index { color: rgba(255,255,255,.35); direction: ltr; text-align: left; font-size: .78rem; }
.equipment-icon { width: 74px; height: 74px; margin-block: 3.3rem 1.5rem; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: rgba(135,191,204,.1); font-size: 2.3rem; }
.equipment-card h3 { margin-bottom: .65rem; font-size: 1.45rem; }
.equipment-card p { color: rgba(255,255,255,.58); }
.equipment-card small { margin-top: auto; color: var(--brand); direction: ltr; text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }

.feature-story { position: relative; min-height: 720px; display: grid; align-items: center; isolation: isolate; overflow: hidden; color: var(--white); background: #020a0d; }
.feature-story > img, .feature-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-story > img { z-index: -2; object-fit: cover; object-position: center 20%; }
.feature-overlay { z-index: -1; background: linear-gradient(90deg, rgba(4,18,23,.96) 0%, rgba(4,18,23,.74) 43%, rgba(4,18,23,.12) 80%); }
.feature-content { max-width: 1180px; }
.feature-content > * { max-width: 560px; }
.feature-content p:not(.eyebrow) { color: rgba(255,255,255,.67); font-size: 1.08rem; }
.text-link { display: inline-block; padding-block: .6rem; border-bottom: 1px solid var(--brand); color: var(--brand); font-weight: 700; }

.gallery-section { background: #eef1ef; }
.gallery-heading { color: var(--ink); }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .45rem; }
.filter-button { padding: .62rem .9rem; border: 1px solid var(--line); border-radius: 99px; color: #4a5f66; background: transparent; cursor: pointer; font-size: .88rem; transition: .2s ease; }
.filter-button:hover, .filter-button.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 1rem; }
.gallery-card { position: relative; grid-column: span 4; min-height: 390px; padding: 0; border: 0; border-radius: 1.15rem; overflow: hidden; background: var(--ink); cursor: zoom-in; text-align: right; box-shadow: 0 12px 34px rgba(7,27,34,.08); }
.gallery-card.is-wide { grid-column: span 8; }
.gallery-card.is-tall { min-height: 520px; }
.gallery-card[hidden] { display: none; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.gallery-card:hover img { transform: scale(1.045); filter: brightness(.82); }
.gallery-card::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(3,15,19,.88)); pointer-events: none; }
.gallery-card-copy { position: absolute; z-index: 2; inset: auto 1.25rem 1.15rem; color: var(--white); }
.gallery-card-copy span { color: var(--brand); direction: ltr; font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.gallery-card-copy h3 { margin: .25rem 0 0; font-size: 1.2rem; }

.sample-section { color: var(--white); background: var(--ink-soft); }
.sample-grid { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: clamp(2.5rem,6vw,6rem); align-items: center; }
.sample-copy p:not(.eyebrow) { color: rgba(255,255,255,.62); }
.sample-mosaic { min-height: 660px; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: .8rem; }
.sample-tile { padding: 0; border: 0; border-radius: 1rem; overflow: hidden; background: #051319; cursor: zoom-in; }
.sample-tile.tile-large { grid-row: 1 / 3; }
.sample-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.sample-tile:hover img { transform: scale(1.045); filter: brightness(.84); }

.closing-section { padding-block: 5rem; color: var(--ink); background: var(--brand); }
.closing-inner { display: grid; grid-template-columns: 280px 1fr auto; gap: 2rem; align-items: center; }
.closing-inner > img { width: 285px; aspect-ratio: 2 / 1; object-fit: contain; filter: brightness(0) invert(1); }
.closing-inner p { margin-bottom: .65rem; direction: ltr; text-align: right; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.closing-inner h2 { margin-bottom: 0; font-size: clamp(2.2rem,4vw,4.2rem); }
.closing-inner h2 em { color: var(--ink); font-weight: 400; }

.site-footer { padding-block: 1.5rem; color: rgba(255,255,255,.5); background: #041217; font-size: .78rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }

.lightbox {
  width: min(1100px, calc(100vw - 2rem));
  height: min(820px, calc(100vh - 2rem));
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.2rem;
  overflow: hidden;
  color: var(--white);
  background: #030d11;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}
.lightbox::backdrop { background: rgba(1,8,10,.84); backdrop-filter: blur(8px); }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.lightbox figure > img { width: 100%; height: 100%; object-fit: contain; background: #02090c; }
.lightbox figcaption { padding: 1rem 1.25rem 1.2rem; background: #071b22; }
.lightbox figcaption p { margin: 0 0 .2rem; color: var(--brand); direction: ltr; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.lightbox figcaption h3 { margin: 0; font-size: 1.15rem; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 4; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--white); background: rgba(4,18,23,.72); cursor: pointer; backdrop-filter: blur(8px); }
.lightbox-close { top: .8rem; left: .8rem; width: 42px; height: 42px; font-size: 1.6rem; }
.lightbox-nav { top: 50%; width: 48px; height: 48px; transform: translateY(-50%); font-size: 2rem; }
.lightbox-prev { right: .8rem; }
.lightbox-next { left: .8rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { min-height: 74px; padding-inline: 1rem; }
  .brand-copy { display: none; }
  .menu-toggle { width: 44px; height: 44px; padding: 0; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.22); border-radius: .65rem; background: rgba(4,18,23,.42); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; display: block; background: var(--white); transition: .2s ease; }
  .site-nav { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; padding: .75rem; display: none; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 1rem; background: rgba(246,249,248,.98); box-shadow: var(--shadow); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .workflow-card { max-width: 440px; }
  .intro-grid { grid-template-columns: 1fr; }
  .image-stack { min-height: 580px; }
  .section-heading { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-card { min-height: 300px; }
  .gallery-card { grid-column: span 6; }
  .gallery-card.is-wide { grid-column: span 6; }
  .sample-grid { grid-template-columns: 1fr; }
  .closing-inner { grid-template-columns: 240px 1fr; }
  .closing-inner .button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 1.25rem, 1180px); }
  .site-header { top: 0; padding: .45rem .75rem; }
  .brand-mark { width: 210px; height: 54px; }
  .hero-grid { padding-top: 7.5rem; }
  .hero-image { object-position: center 20%; transform: scale(1.28); }
  .hero-scrim { background: linear-gradient(90deg, rgba(4,18,23,.94), rgba(4,18,23,.68)), linear-gradient(0deg, rgba(4,18,23,.99) 0%, rgba(4,18,23,.9) 34%, transparent 68%); }
  h1 { font-size: clamp(2.35rem, 10.5vw, 3.45rem); line-height: 1.2; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .workflow-card { display: none; }
  .scroll-cue { display: none; }
  .section { padding-block: 4.5rem; }
  .image-stack { min-height: 460px; }
  .stack-main { inset-right: 10%; }
  .stack-float { width: 56%; height: 42%; }
  .feature-story { min-height: 640px; }
  .gallery-controls { justify-content: flex-end; }
  .gallery-card, .gallery-card.is-wide { grid-column: 1 / -1; min-height: 420px; }
  .sample-mosaic { min-height: 520px; grid-template-columns: 1fr 1fr; }
  .sample-tile.tile-large { grid-column: 1 / -1; grid-row: auto; }
  .closing-inner { grid-template-columns: 1fr; text-align: center; }
  .closing-inner > img { margin-inline: auto; }
  .closing-inner p { text-align: center; }
  .site-footer .shell { flex-direction: column; text-align: center; }
  .lightbox { height: calc(100vh - 1rem); width: calc(100vw - 1rem); }
  .lightbox-nav { top: auto; bottom: 5.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
