/* ==========================================================================
   Melmar — Website Rebuild (static HTML)
   Design system + components. Hand-written, no build step.

   Palette: warm linen neutrals ground the site; Melmar navy anchors
   headings, buttons and dark bands; brass provides the accent; the
   legacy brand blue appears only in small supporting details.
   ========================================================================== */

:root {
  /* dark band color — a rich, deep navy */
  --ink-950: #070b2d;
  --ink-900: #101647;

  /* brand navy — buttons, headings, key accents */
  --navy-900: #000a72;
  --navy-800: #0a1a8f;
  --navy-700: #26359e;

  /* legacy brand blue — small supporting details only */
  --brand-500: #619ece;
  --brand-300: #a7cbe8;

  /* brass — warm accent (eyebrows, numerals, hovers) */
  --brass-600: #96723a;
  --brass-500: #b28a4c;
  --brass-300: #d9bf94;
  --brass-100: #f3e9d7;

  /* soft blues — section washes */
  --mist-50: #f4f8fc;
  --mist-100: #e7f0f9;

  /* teal — supporting accent pulled from their fabric palettes */
  --teal-600: #17696f;

  /* warm neutrals */
  --linen-50: #fcfbf8;
  --linen-100: #f8f5ef;
  --linen-200: #f1ece1;
  --ink: #1d1f27;
  --slate: #50525b;
  --mute: #83858e;
  --line: #e3e6ee;
  --white: #ffffff;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --shadow-soft: 0 1px 2px rgba(29, 26, 18, 0.04),
    0 12px 32px -12px rgba(29, 26, 18, 0.16);
  --shadow-lift: 0 24px 60px -24px rgba(20, 18, 12, 0.38);
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input,
textarea,
select {
  font: inherit;
}
::selection {
  background: var(--navy-900);
  color: #fff;
}

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section {
  padding-block: 6rem;
}
.section--tight {
  padding-block: 5rem;
}
.bg-paper {
  background: var(--mist-100);
}
.bg-navy {
  background: var(--ink-950);
  color: #fff;
}

/* signature brand stripe — navy → blue → brass, like a run of drapery fabrics */
.brand-stripe {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--navy-900) 0%,
    var(--brand-500) 45%,
    var(--teal-600) 70%,
    var(--brass-500) 100%
  );
}

/* --- Photography ----------------------------------------------------------
   .ph fills its positioned parent; overlay classes provide text contrast. */
.ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Typography ----------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 600;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-500);
}
.eyebrow--light {
  color: var(--brass-300);
}

.section-head {
  max-width: 42rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 2.6rem);
  color: var(--navy-900);
  margin-top: 0.75rem;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--navy-900),
    var(--brand-500),
    var(--brass-500)
  );
}
.section-head--center h2::after {
  margin-inline: auto;
}
.section-head--light h2::after {
  background: linear-gradient(
    90deg,
    var(--brand-500),
    var(--brass-300)
  );
}
.section-head--light h2 {
  color: #fff;
}
.section-head p {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 1.02rem;
}
.section-head--light p {
  color: rgba(240, 238, 230, 0.75);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn svg {
  transition: transform 0.25s ease;
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn--primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: var(--navy-700);
}
.btn--light {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-soft);
}
.btn--light:hover {
  background: var(--brass-100);
}
.btn--ghost {
  border: 1px solid rgba(0, 10, 114, 0.2);
  color: var(--navy-900);
}
.btn--ghost:hover {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--navy-900);
}

/* --- Decorative drape texture (dark bands) -------------------------------- */
.drape {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0) 2px,
    rgba(255, 255, 255, 0) 22px
  );
}
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--navy-900) 0%,
    var(--brand-500) 45%,
    var(--teal-600) 70%,
    var(--brass-500) 100%
  );
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header > .container {
  height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand__logo {
  height: 4.4rem;
  width: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.brand__tag {
  margin-top: 0.15rem;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-500);
}
.brand--light .brand__name {
  color: #fff;
}
.brand--light .brand__tag {
  color: var(--brass-300);
}
.nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--navy-900);
}
.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}
.header-phone svg {
  color: var(--brass-500);
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.menu-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle span + span {
  margin-top: 0.35rem;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}
.mobile-nav a {
  padding: 0.75rem;
  border-radius: 0.6rem;
  font-weight: 500;
  color: var(--slate);
}
.mobile-nav a:hover {
  background: var(--mist-100);
}
.mobile-nav .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

/* --- Hero (photo) ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(5, 9, 52, 0.94) 0%,
      rgba(5, 9, 52, 0.82) 42%,
      rgba(5, 9, 52, 0.35) 100%
    ),
    linear-gradient(to top, rgba(5, 9, 52, 0.55), rgba(5, 9, 52, 0) 40%);
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 6rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 9, 52, 0.35);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brass-300);
}
.badge .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--brass-500);
}
.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.03;
  font-size: clamp(2.5rem, 1rem + 6vw, 3.75rem);
}
.hero h1 .accent {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--brass-300);
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.1rem;
  color: rgba(240, 238, 230, 0.85);
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__badges {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9rem;
  color: rgba(240, 238, 230, 0.75);
}
.hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__badges svg {
  color: var(--brass-300);
}
.hero__card {
  display: none;
}
.photo-card {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 9, 52, 0.85),
    rgba(5, 9, 52, 0.05) 55%
  );
}
.photo-card__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem;
}
.photo-card__foot strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  display: block;
  color: #fff;
}
.photo-card__foot span {
  font-size: 0.9rem;
  color: rgba(240, 238, 230, 0.8);
}

/* --- Stats bar (brand navy band) ------------------------------------------ */
.stats {
  background: var(--navy-900);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-block: 2.5rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1rem + 2vw, 2.25rem);
  color: #fff;
}
.stat span {
  font-size: 0.9rem;
  color: var(--brand-300);
}

/* --- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: #fff;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(5, 9, 52, 0.93) 0%,
      rgba(5, 9, 52, 0.75) 50%,
      rgba(5, 9, 52, 0.45) 100%
    ),
    linear-gradient(to top, rgba(5, 9, 52, 0.5), rgba(5, 9, 52, 0) 45%);
}
.page-hero .container {
  position: relative;
  padding-block: 5.5rem;
}
.page-hero h1 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(2.2rem, 1rem + 4vw, 3rem);
  max-width: 48rem;
}
.page-hero p {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: 1.1rem;
  color: rgba(240, 238, 230, 0.85);
}

/* --- Cards / grids ------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.services-grid {
  margin-top: 3.5rem;
  grid-template-columns: 1fr;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--navy-900),
    var(--brand-500),
    var(--brass-500)
  );
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lift);
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: var(--navy-900);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease;
}
.service-card:hover .icon-badge {
  background: var(--brass-500);
  color: #fff;
}
.service-card h3 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-900);
}
.service-card p {
  margin-top: 0.5rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--slate);
}
.learn {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass-600);
  transition: gap 0.2s ease;
}
.service-card:hover .learn {
  gap: 0.7rem;
}

.head-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}
.link-arrow:hover {
  color: var(--brass-600);
}

/* --- Fabric vendors ------------------------------------------------------- */
.vendor-grid {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.vendor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.vendor-logo:hover {
  transform: translateY(-3px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lift);
}
.vendor-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Healthcare feature -------------------------------------------------- */
.feature {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.feature__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.feature__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 9, 52, 0.45),
    rgba(5, 9, 52, 0) 45%
  );
}
.feature__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  border-radius: 1rem;
  background: rgba(0, 10, 90, 0.88);
  backdrop-filter: blur(6px);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-soft);
}
.feature__badge .eyebrow {
  font-size: 0.68rem;
  color: var(--brass-300);
}
.feature__badge p {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #fff;
}
.check-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate);
}
.check {
  margin-top: 0.15rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--brass-100);
  color: var(--brass-600);
}

/* --- Process ------------------------------------------------------------- */
.process {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: #fff;
  padding: 2rem;
  transition: background 0.25s ease;
}
.step:hover {
  background: var(--mist-50);
}
.step__n {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--brand-500);
  transition: color 0.25s ease;
}
.step:nth-child(2) .step__n { color: var(--teal-600); }
.step:nth-child(3) .step__n { color: var(--brass-500); }
.step:nth-child(4) .step__n { color: var(--navy-700); }
.step:hover .step__n {
  color: var(--navy-900);
}
.step h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy-900);
}
.step p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}

/* --- Industries ---------------------------------------------------------- */
.industry-grid {
  margin-top: 3.5rem;
  grid-template-columns: 1fr;
}
.industry {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}
.industry:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(217, 191, 148, 0.45);
  transform: translateY(-4px);
}
.industry__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.industry__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 52, 0.5), transparent 55%);
}
.industry:hover .industry__img .ph {
  transform: scale(1.05);
}
.industry__body {
  padding: 1.75rem;
}
.industry h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
}
.industry p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(240, 238, 230, 0.72);
}

/* --- Gallery ------------------------------------------------------------- */
.gallery-preview {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink-900);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 52, 0.72), transparent 55%);
}
.tile:hover {
  box-shadow: var(--shadow-lift);
}
.tile:hover .ph {
  transform: scale(1.05);
}
.tile span {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.tile.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-full {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--ink-900);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease;
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 52, 0.78), transparent 50%);
}
.gallery-card:hover {
  box-shadow: var(--shadow-lift);
}
.gallery-card:hover .ph {
  transform: scale(1.05);
}
.gallery-card .cat {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}
.gallery-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* --- Services detail (services page) ------------------------------------- */
.svc-detail {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  scroll-margin-top: 7rem;
}
.svc-detail + .svc-detail {
  margin-top: 5rem;
}
.svc-detail h2 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy-900);
}
.svc-detail p.lead {
  margin-top: 1rem;
  color: var(--slate);
}
.svc-features {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.svc-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.svc-features .check {
  width: 1.25rem;
  height: 1.25rem;
}
.svc-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: var(--ink-900);
}
.svc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 52, 0.78), transparent 45%);
}
.svc-visual > div {
  position: relative;
  z-index: 1;
}
.svc-visual strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.svc-visual small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(240, 238, 230, 0.75);
}

/* --- About --------------------------------------------------------------- */
.prose p + p {
  margin-top: 1rem;
}
.prose p {
  color: var(--slate);
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  border: 1px solid var(--line);
  background: var(--mist-50);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--navy-900);
}
.stat-card span {
  font-size: 0.85rem;
  color: var(--mute);
}
.value-grid,
.team-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.value-grid .value {
  height: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.value-grid .value .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--brand-500);
}
.value-grid .value:nth-child(2) .num { color: var(--teal-600); }
.value-grid .value:nth-child(3) .num { color: var(--brass-500); }
.value-grid .value h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-900);
}
.value-grid .value p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.member {
  text-align: center;
}
.member .avatar {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.member:nth-child(2n) .avatar {
  background: linear-gradient(160deg, var(--brand-500), var(--navy-800));
}
.member:nth-child(3n) .avatar {
  background: linear-gradient(160deg, var(--teal-600), var(--navy-900));
}
.member .avatar svg {
  width: 38%;
  height: auto;
  opacity: 0.95;
}
.member:hover .avatar {
  box-shadow: var(--shadow-lift);
  border-color: var(--brass-300);
}
.member strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--navy-900);
}
.member span {
  font-size: 0.78rem;
  color: var(--mute);
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.info-card {
  height: 100%;
  border: 1px solid var(--line);
  background: var(--mist-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.info-card:hover {
  background: #fff;
  border-color: var(--brand-300);
  box-shadow: var(--shadow-soft);
}
.info-card .icon-badge {
  width: 2.75rem;
  height: 2.75rem;
}
.info-card .label {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-500);
}
.info-card .value {
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}
.map {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.form-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--navy-900);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.form-row {
  display: grid;
  gap: 1rem;
}
.field {
  margin-top: 1rem;
}
.field:first-child {
  margin-top: 0;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-900);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--mute);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brass-500);
  box-shadow: 0 0 0 4px rgba(178, 138, 76, 0.14);
}
.form-card .btn {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}
.form-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--mute);
}
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 24rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist-50);
  padding: 2.5rem;
}
.form-success.show {
  display: flex;
}
.form-card.hide {
  display: none;
}
.form-success .check {
  width: 3.5rem;
  height: 3.5rem;
}
.form-success h3 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy-900);
}
.form-success p {
  margin-top: 0.5rem;
  max-width: 24rem;
  color: var(--slate);
}
.form-success button {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass-600);
}

/* --- CTA band ------------------------------------------------------------ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
}
.cta__bg {
  position: absolute;
  inset: 0;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 52, 0.85);
}
.cta .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: 5rem;
}
.cta h2 {
  max-width: 46rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 1rem + 3.5vw, 3rem);
  color: #fff;
}
.cta p {
  max-width: 34rem;
  color: rgba(240, 238, 230, 0.78);
}
.cta__actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: #fff;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--navy-900) 0%,
    var(--brand-500) 45%,
    var(--teal-600) 70%,
    var(--brass-500) 100%
  );
}
.site-footer .container {
  position: relative;
  padding-block: 4rem;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
.footer-brand .brand__name {
  color: #fff;
}
.footer-brand .brand__tag {
  color: var(--brass-300);
}
.footer-brand p {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.9rem;
  color: rgba(240, 238, 230, 0.7);
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-300);
}
.footer-col ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a,
.footer-col li {
  font-size: 0.9rem;
  color: rgba(240, 238, 230, 0.78);
}
.footer-col a:hover {
  color: #fff;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-contact svg {
  color: var(--brass-300);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(240, 238, 230, 0.5);
  text-align: center;
}

/* --- Reveal animation ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ph,
  .industry:hover .industry__img .ph,
  .tile:hover .ph,
  .gallery-card:hover .ph {
    transition: none;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- Responsive ---------------------------------------------------------- */
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery-full { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; text-align: left; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .head-row { flex-direction: row; align-items: flex-end; }
  .feature { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-detail { grid-template-columns: 1fr 1fr; }
  .svc-detail.flip .svc-visual { order: -1; }
}
@media (min-width: 960px) {
  .header-cta { display: flex; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; padding-block: 8rem; }
  .hero__card { display: block; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-full { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(6, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}
