:root {
  --ink: #0a0e14;
  --ink-2: #151b24;
  --slate: #d7e0ea;
  --slate-2: #eef3f7;
  --paper: #f4f7fa;
  --line: rgba(10, 14, 20, 0.12);
  --muted: #5c6b7a;
  --teal: #16b5a8;
  --teal-deep: #0d8f85;
  --chalk: #f7fbff;
  --warn: #e8a54b;
  --font-d: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-b: "Red Hat Text", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(22, 181, 168, 0.12), transparent 55%),
    linear-gradient(180deg, var(--slate-2), var(--paper) 28%, var(--slate) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.wrap-wide { width: min(1320px, calc(100% - 32px)); margin-inline: auto; }

/* ——— Header ——— */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 250, 0.78);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(244, 247, 250, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(10, 14, 20, 0.06);
}
.header-inner {
  height: 100%;
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.brand img {
  height: 52px; width: auto;
  transition: transform .4s var(--ease);
}
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.brand-copy {
  display: flex; flex-direction: column; line-height: 1.05;
}
.brand-copy strong {
  font-family: var(--font-d);
  font-size: 1.55rem; font-weight: 700; letter-spacing: 0.08em;
}
.brand-copy small {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.01em;
}
.nav a:not(.btn) {
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.active:not(.btn)::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { content: ""; top: -8px; }
.nav-toggle span::after { content: ""; top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: linear-gradient(120deg, var(--ink) 0%, #1a2a33 55%, var(--teal-deep) 160%);
  color: #fff !important; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  transition: transform .3s var(--ease), filter .3s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--chalk) !important;
  border: 1.5px solid rgba(255,255,255,.45);
  clip-path: none; border-radius: 0;
  box-shadow: inset 0 0 0 0 var(--teal);
}
.btn-ghost:hover { background: #fff; color: var(--ink) !important; border-color: #fff; filter: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.82rem; }
.nav a.btn,
.nav a.btn:visited,
.nav a.btn:hover { color: #fff !important; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--chalk);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10,14,20,.88) 0%, rgba(10,14,20,.55) 42%, rgba(10,14,20,.28) 68%, rgba(10,14,20,.45) 100%),
    linear-gradient(0deg, rgba(10,14,20,.72) 0%, transparent 42%);
}
.hero-copy {
  position: relative; z-index: 2;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-brand {
  display: flex; align-items: flex-end; gap: 18px;
  margin-bottom: 22px;
  opacity: 0; animation: rise .9s var(--ease) .1s forwards;
}
.hero-brand img {
  width: auto;
  height: clamp(140px, 28vh, 260px);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(247,251,255,.72);
  margin: 0 0 18px;
  opacity: 0; animation: rise .9s var(--ease) .2s forwards;
}
.hero-kicker::before {
  content: ""; width: 36px; height: 2px; background: var(--teal);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  max-width: 12ch;
  opacity: 0; animation: rise .9s var(--ease) .3s forwards;
}
.hero h1 em {
  font-style: normal; color: var(--teal);
}
.hero .lead {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(247,251,255,.78);
  opacity: 0; animation: rise .9s var(--ease) .4s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
  opacity: 0; animation: rise .9s var(--ease) .5s forwards;
}
.hero-index {
  position: absolute; right: max(20px, calc((100% - 1320px) / 2));
  bottom: 72px; z-index: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-d);
  font-size: 0.95rem; letter-spacing: 0.28em;
  color: rgba(247,251,255,.55);
  opacity: 0; animation: rise .9s var(--ease) .6s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ——— Sections ——— */
.section { padding: 96px 0; position: relative; }
.band {
  position: relative;
  padding: 88px 0;
  background: var(--ink);
  color: var(--chalk);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  margin: 40px 0;
}
.band.light {
  background: var(--slate-2);
  color: var(--ink);
}
.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}
.kicker {
  margin: 0 0 10px;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-deep); font-weight: 700;
}
.band .kicker { color: var(--teal); }
h2, .display {
  font-family: var(--font-d);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.display { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 38rem; margin: 0; }
.band .lead { color: rgba(247,251,255,.7); }

/* Hex strip */
.hex-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hex-item {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  background: var(--ink-2);
}
.hex-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.hex-item:hover img { transform: scale(1.08); }
.hex-item span {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  font-family: var(--font-d); font-size: 1.5rem; letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

/* Services rail */
.service-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .3s;
}
.service-row:hover { background: rgba(22, 181, 168, 0.06); }
.service-row .num {
  font-family: var(--font-d);
  font-size: 2.4rem; color: var(--teal-deep); line-height: 1;
}
.service-row h3 {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: 1.8rem; letter-spacing: 0.03em;
}
.service-row p { margin: 0; color: var(--muted); }
.service-row ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 8px;
}
.service-row li {
  position: relative; padding-left: 16px; color: var(--ink-2); font-weight: 500;
}
.service-row li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 2px; background: var(--teal);
}

/* Horizontal gallery */
.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 32vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-thumb { background: rgba(10,14,20,.25); }
.h-card {
  position: relative;
  scroll-snap-align: start;
  min-height: 360px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}
.h-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.h-card:hover img { transform: scale(1.07); }
.h-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 48px 18px 18px;
  background: linear-gradient(transparent, rgba(10,14,20,.85));
  color: #fff;
}
.h-card small {
  display: block; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--teal); margin-bottom: 6px;
}
.h-card strong {
  font-family: var(--font-d); font-size: 1.55rem; letter-spacing: 0.03em;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  padding: 22px 0;
  border-top: 2px solid var(--teal);
}
.stat b {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { color: var(--muted); font-size: 0.92rem; }
.band .stat span { color: rgba(247,251,255,.65); }

/* Refs */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 40px; padding: 0 14px;
  font-weight: 600; cursor: pointer;
  transition: .25s;
}
.filters button.is-on,
.filters button:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.ref-stack {
  display: grid; gap: 16px;
}
.ref-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.ref-row:hover {
  transform: translateX(6px);
  border-color: rgba(22, 181, 168, 0.45);
}
.ref-row.is-hidden { display: none; }
.ref-row img {
  width: 100%; height: 100%; min-height: 180px; object-fit: cover;
}
.ref-body { padding: 22px 24px; }
.ref-body small {
  display: block; color: var(--teal-deep); letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.72rem; font-weight: 700; margin-bottom: 8px;
}
.ref-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: 1.6rem; letter-spacing: 0.02em;
}
.ref-body p { margin: 0; color: var(--muted); }
.ref-meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.ref-meta span {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); padding: 4px 8px;
}

/* Page hero */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 48px;
}
.page-hero .lead { margin-top: 14px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-panel {
  background: var(--ink);
  color: var(--chalk);
  padding: 28px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%);
}
.contact-panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-d);
  font-size: 1.7rem;
}
.contact-panel a { color: var(--teal); }
.contact-panel address { font-style: normal; line-height: 1.6; }
.form {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  padding: 28px;
}
.form h3 {
  margin: 0 0 18px;
  font-family: var(--font-d);
  font-size: 1.8rem;
}
.form label {
  display: grid; gap: 6px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 46px; padding: 10px 12px;
  text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid rgba(22, 181, 168, 0.35); border-color: var(--teal);
}
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; }
.map {
  margin-top: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 320px;
}
.map iframe { width: 100%; height: 360px; border: 0; }

/* CTA */
.cta-block {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
}
.cta-block h2 { color: #fff; }
.cta-block .lead { color: rgba(247,251,255,.7); margin-top: 12px; }

/* Footer */
.site-footer {
  background: #070a0f;
  color: rgba(247,251,255,.7);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 {
  margin: 0 0 12px;
  font-family: var(--font-d);
  color: #fff; font-size: 1.3rem; letter-spacing: 0.06em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--teal); }
.footer-brand img {
  height: 64px; width: auto; margin-bottom: 12px;
}
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; fill: currentColor; }

.equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.equip {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}
.equip img { width: 100%; height: 160px; object-fit: contain; background: var(--slate-2); }
.equip strong {
  display: block; margin-top: 12px;
  font-family: var(--font-d); font-size: 1.2rem;
}
.equip span { color: var(--muted); font-size: 0.88rem; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.about-split img {
  width: 100%; min-height: 420px; object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 10%);
}

/* 404 */
.err {
  min-height: 80svh;
  display: grid; place-content: center;
  text-align: center; padding: 120px 20px 80px;
}
.err h1 {
  font-family: var(--font-d);
  font-size: clamp(4rem, 14vw, 9rem);
  margin: 0; line-height: .9; color: var(--teal-deep);
}

@media (max-width: 980px) {
  .section-head,
  .service-row,
  .contact-grid,
  .about-split,
  .cta-block,
  .footer-grid,
  .ref-row,
  .stats,
  .hex-row,
  .equip-grid { grid-template-columns: 1fr; }
  .service-row { gap: 10px; }
  .hero-index { display: none; }
  .hex-item { min-height: 220px; }
  .h-card { min-height: 300px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(244,247,250,.98);
    flex-direction: column; align-items: stretch;
    padding: 18px 20px 28px; gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0; pointer-events: none;
    transition: .35s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .brand-copy { display: none; }
}
