/* =========================================================
   FIDRA Group — Global styles
   Palette: dark navy, white, charcoal
   ========================================================= */

:root {
  --navy: #0B1B30;
  --navy-deep: #06111F;
  --navy-2: #14273F;
  --charcoal: #2A2D32;
  --ink: #16181C;
  --white: #FFFFFF;
  --paper: #F5F4F1;
  --stone: #E6E3DD;
  --muted: #676D76;
  --muted-light: #A7AFBA;
  --line: rgba(11, 27, 48, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--muted-light); }

.display { font-size: clamp(44px, 7.2vw, 104px); line-height: 1.0; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); }
.h3 { font-size: clamp(26px, 2.6vw, 34px); }
.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
}
.section--dark .lead { color: rgba(255, 255, 255, 0.66); }
.statement {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  color: var(--navy);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 32px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--charcoal); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 14px; letter-spacing: 0; }
.link-arrow:hover { border-color: var(--navy); gap: 18px; }
.section--dark .link-arrow { color: var(--white); border-color: var(--line-light); }
.section--dark .link-arrow:hover { border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--white);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  /* blurred backdrop lives on a pseudo-element so the fixed mobile menu isn't clipped */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 17, 31, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled { border-bottom-color: var(--line-light); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  transition: height 0.5s var(--ease);
}
.is-scrolled .header-inner { height: 76px; }

.logo { display: inline-flex; align-items: baseline; gap: 12px; position: relative; z-index: 2; }
.logo-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--white);
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-left: 12px;
  border-left: 1px solid var(--line-light);
}

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-cta {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover,
.nav a.nav-cta[aria-current="page"] { background: var(--white); color: var(--navy); border-color: var(--white); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 0 var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav a {
    font-family: var(--serif);
    font-size: clamp(36px, 9vw, 52px);
    letter-spacing: 0;
    text-transform: none;
    padding: 4px 0;
  }
  .nav a::after { display: none; }
  .nav a.nav-cta { border: 0; padding: 4px 0; }
  .nav a.nav-cta:hover,
  .nav a.nav-cta[aria-current="page"] { background: none; color: var(--white); }
  .nav a[aria-current="page"] { font-style: italic; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
.hero::before {
  /* column lines — a quiet nod to classical colonnades */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 90vw;
  height: 90vw;
  right: -30vw;
  top: -40vw;
  background: radial-gradient(circle, rgba(58, 92, 140, 0.35), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: 150px;
  padding-bottom: 80px;
}
.hero h1 { color: var(--white); margin-bottom: 36px; }
.hero h1 em { color: var(--muted-light); }
.hero .lead { color: rgba(255, 255, 255, 0.68); margin-bottom: 48px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { position: relative; }
.hero-visual .media { aspect-ratio: 3 / 4; }

.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-light);
}
.hero-strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-strip li {
  padding: 26px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero-strip li span { color: var(--muted-light); margin-right: 12px; font-family: var(--serif); font-size: 15px; letter-spacing: 0; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { display: none; }
  .hero-strip ul { grid-template-columns: 1fr 1fr; }
  .hero-strip li { padding: 18px 0; }
}

/* Hero with full-screen photo */
.hero--image::before,
.hero--image::after { display: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, #4E6585 0%, #1E3352 50%, #06111F 100%);
}
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-bg::after {
  /* darkens the photo so the text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 31, 0.5) 0%, rgba(6, 17, 31, 0) 25%),
    linear-gradient(90deg, rgba(6, 17, 31, 0.8) 0%, rgba(6, 17, 31, 0.4) 55%, rgba(6, 17, 31, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 17, 31, 0.6) 0%, rgba(6, 17, 31, 0) 50%);
}
.hero--image .hero-inner { grid-template-columns: 1fr; align-items: end; padding-bottom: clamp(64px, 10vw, 120px); }
.hero--image .lead { margin-bottom: 40px; }
.photo-note {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Compact sections */
.divisions--compact .division { min-height: 0; padding: 36px 28px; }
.divisions--compact .division-num { margin-bottom: 48px; }
.divisions--compact .division h3 { font-size: 28px; margin-bottom: 12px; }
.divisions--compact .division p { margin: 0; }
.cta--compact { padding: clamp(72px, 9vw, 112px) 0; }
.cta--compact h2 { margin-bottom: 40px; font-size: clamp(32px, 4.4vw, 56px); }

/* Coming-soon project cards */
.media--soon::before {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(165deg, #2F3338 0%, #1F2226 100%);
}
.soon-name {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3vw, 40px);
  color: rgba(255, 255, 255, 0.85);
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: clamp(32px, 4vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-card .division-num { display: block; font-family: var(--serif); color: var(--muted); margin-bottom: 40px; }
.service-card h2 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 28px; }
.service-card .service-list { margin: 0; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

.contact-item.contact-item--small p { font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--charcoal); }

/* Inner-page banner with photo */
.page-hero--image {
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
}
.page-hero.page-hero--image::before {
  background: linear-gradient(180deg, rgba(6, 17, 31, 0.55) 0%, rgba(6, 17, 31, 0.1) 35%, rgba(6, 17, 31, 0.7) 100%);
  background-size: auto;
  z-index: 1;
}
.page-hero.page-hero--image::after { display: none; }
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.page-hero.page-hero--image .container { z-index: 2; }

/* Golden Visa band */
.gv-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(40px, 5vw, 64px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  scroll-margin-top: 100px;
}
.gv-band .eyebrow { color: var(--muted-light); }
.gv-band h2 { color: var(--white); font-size: clamp(32px, 3.6vw, 48px); }
.gv-band h2 em { color: var(--muted-light); }
.gv-band .lead { color: rgba(255, 255, 255, 0.72); margin-bottom: 28px; }
.gv-band .link-arrow { color: var(--white); border-color: var(--line-light); }
.gv-band .link-arrow:hover { border-color: var(--white); }
@media (max-width: 760px) { .gv-band { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(160px, 22vw, 240px) 0 clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  right: -25vw;
  top: -35vw;
  background: radial-gradient(circle, rgba(58, 92, 140, 0.32), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(44px, 6.4vw, 88px); max-width: 900px; margin-bottom: 28px; }
.page-hero h1 em { color: var(--muted-light); }
.page-hero .lead { color: rgba(255, 255, 255, 0.66); max-width: 620px; margin: 0; }

/* ---------- Media placeholders (swap for photography) ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--navy-2);
  aspect-ratio: 4 / 5;
}
.media::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 74px),
    linear-gradient(165deg, #2A4268 0%, #12233B 55%, #0A1626 100%);
  transition: transform 1.4s var(--ease);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 17, 31, 0.65) 100%);
  z-index: 2;
  pointer-events: none;
}
.media--b::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 32px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    linear-gradient(200deg, #33476A 0%, #172A44 50%, #0B1726 100%);
}
.media--c::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px),
    radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(150deg, #3A3F48 0%, #23272D 55%, #15171B 100%);
}
.media--d::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 40px),
    linear-gradient(180deg, #5A6E8C 0%, #24395A 45%, #0B1B30 100%);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 1.4s var(--ease);
}
.media-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Layout helpers ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.split--center { align-items: center; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head .lead { margin: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Values / pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 8vw, 96px);
}
.pillar { padding: 40px 40px 0 0; }
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 26px; margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Divisions ---------- */
.divisions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.division {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 32px 40px;
  min-height: 440px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
.division-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  margin-bottom: auto;
}
.division-tag {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 72px 0 12px;
}
.division h3 { font-size: 32px; margin-bottom: 18px; transition: color 0.6s var(--ease); }
.division p { font-size: 15px; color: var(--muted); margin-bottom: 28px; transition: color 0.6s var(--ease); }
.division .more {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.6s var(--ease);
}
.division .more::after { content: " →"; }
.division:hover { background: var(--navy); }
.division:hover h3,
.division:hover .more { color: var(--white); }
.division:hover p,
.division:hover .division-num,
.division:hover .division-tag { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 1080px) { .divisions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .divisions { grid-template-columns: 1fr; }
  .division { min-height: 0; }
  .division-tag { margin-top: 40px; }
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.step { padding: 44px 36px 0 0; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line-light); }
.step-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 32px;
}
.step h3 { font-size: 28px; margin-bottom: 14px; }
.step p { font-size: 15px; margin: 0; }
.section--paper .steps,
.steps--light { border-top-color: var(--line); }
.steps--light .step + .step { border-left-color: var(--line); }
.steps--light .step-num { color: var(--stone); }
.steps--light .step p { color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 40px 28px 40px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-light); }
  .steps--light .step:nth-child(even) { border-left-color: var(--line); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step, .step:nth-child(even) { padding: 36px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .steps--light .step { border-bottom-color: var(--line); }
}

/* ---------- Project cards ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.projects--two { grid-template-columns: repeat(2, 1fr); }
.project { display: block; }
.project .media { aspect-ratio: 4 / 5; margin-bottom: 24px; }
.project:hover .media::before,
.project:hover .media img { transform: scale(1.05); }
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.project h3 { font-size: 28px; margin-bottom: 8px; }
.project p { font-size: 15px; color: var(--muted); margin: 0; }
.project.is-hidden { display: none; }
.status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 7px 12px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(6, 17, 31, 0.35);
  backdrop-filter: blur(4px);
}
@media (max-width: 960px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects, .projects--two { grid-template-columns: 1fr; } }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -25px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.filter:hover { color: var(--navy); }
.filter.is-active { color: var(--navy); }
.filter.is-active::after { transform: scaleX(1); }

/* ---------- Service detail blocks ---------- */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.service:first-child { border-top: 0; padding-top: 0; }
.service:nth-child(even) .service-media { order: 2; }
.service-media .media { aspect-ratio: 5 / 6; }
.service h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.service .lead { margin-bottom: 36px; }
.service-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service-list li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--charcoal);
}
.service-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border: 1px solid var(--navy);
  transform: rotate(45deg);
}
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
}

/* ---------- Mission / values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.value { padding: 48px 48px 48px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.value-num { font-family: var(--serif); font-size: 15px; color: var(--muted); display: block; margin-bottom: 24px; }
.value h3 { font-size: 30px; margin-bottom: 14px; }
.value p { color: var(--muted); margin: 0; font-size: 15px; max-width: 440px; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(even) { padding: 36px 0; border-left: 0; }
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.mv > div { padding: 48px 48px 0 0; }
.mv > div + div { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line-light); }
.mv .statement { color: var(--white); font-size: clamp(24px, 2.6vw, 34px); margin: 0; }
@media (max-width: 760px) {
  .mv { grid-template-columns: 1fr; }
  .mv > div, .mv > div + div { padding: 40px 0; border-left: 0; }
  .mv > div + div { border-top: 1px solid var(--line-light); }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(96px, 13vw, 168px) 0;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.cta .container { position: relative; }
.cta .eyebrow { color: var(--muted-light); justify-content: center; }
.cta .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.6; }
.cta h2 { color: var(--white); font-size: clamp(38px, 5.6vw, 76px); max-width: 880px; margin: 0 auto 28px; }
.cta h2 em { color: var(--muted-light); }
.cta p { max-width: 520px; margin: 0 auto 48px; }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 8vw, 120px);
}
.contact-details { display: grid; gap: 40px; align-content: start; }
.contact-item h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-item p,
.contact-item a {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}
.contact-item a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.contact-item a:hover { border-color: var(--navy); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 32px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(11, 27, 48, 0.25);
  border-radius: 0;
  padding: 10px 0 14px;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--navy); }
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.form-consent input { margin-top: 4px; accent-color: var(--navy); }
.form-actions { grid-column: 1 / -1; }
.form-success {
  display: none;
  padding: 48px;
  background: var(--paper);
  border-left: 2px solid var(--navy);
}
.form-success h3 { font-size: 32px; margin-bottom: 12px; }
.form-success p { margin: 0; color: var(--muted); }
.form-sent .form { display: none; }
.form-sent .form-success { display: block; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: clamp(72px, 9vw, 112px) 0 40px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand p { max-width: 320px; margin-top: 24px; line-height: 1.7; }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

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

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.form-error { margin: 16px 0 0; font-size: 14px; color: #9B2C2C; }
.btn:disabled { opacity: 0.6; cursor: default; }
