:root {
  --navy-deep: #0f1a30;
  --navy: #1a2540;
  --navy-mid: #1f2c4a;
  --navy-card: #243859;
  --navy-card-hi: #2b4068;
  --navy-line: rgba(126, 184, 232, 0.18);
  --gold: #c89858;
  --gold-hi: #d4a574;
  --gold-soft: rgba(212, 165, 116, 0.18);
  --blue: #7eb8e8;
  --blue-hi: #9ec9ee;
  --blue-soft: rgba(126, 184, 232, 0.14);
  --text: #e8eef5;
  --text-mute: #a8b5c8;
  --text-dim: #7d8aa0;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--navy);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle grain over body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 2;
}

/* ───── HEADER ───── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 26, 48, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(126, 184, 232, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
.brand .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 10px 2px 0;
  vertical-align: middle;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text-mute);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform .2s ease, filter .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: transparent;
  color: var(--gold-hi);
  border-color: var(--gold);
}
.btn-gold:hover { background: rgba(200,152,88,0.1); border-color: var(--gold-hi); color: var(--gold-hi); transform: translateY(-1px); }
.btn-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-blue:hover { background: rgba(126,184,232,0.1); border-color: var(--blue-hi); color: var(--blue-hi); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(232, 238, 245, 0.22);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.nav-cta { padding: 10px 18px; font-size: 13px; }

/* mobile nav */
.nav-toggle { display: none; }

/* ───── HERO ───── */
.hero {
  position: relative;
  min-height: 60vh;
  padding: 120px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 90% 0%, rgba(126,184,232,0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(200,152,88,0.07), transparent 60%),
    linear-gradient(180deg, #0f1a30 0%, #1a2540 60%, #1a2540 100%);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 78%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.05) 8%, rgba(0,0,0,0.25) 18%, rgba(0,0,0,0.6) 32%, rgba(0,0,0,0.9) 50%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.05) 8%, rgba(0,0,0,0.25) 18%, rgba(0,0,0,0.6) 32%, rgba(0,0,0,0.9) 50%, #000 70%);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.92);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,26,48,0.4) 0%, rgba(15,26,48,0) 30%, rgba(15,26,48,0) 70%, rgba(15,26,48,0.5) 100%);
  pointer-events: none;
}
.hero .container { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--blue);
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--text);
  text-wrap: balance;
}
h1 .accent { color: var(--blue); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta .stat-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta .stat-lbl {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-spacer { /* keeps right column reserve so text wraps cleanly */ }

/* ───── SECTION SHELL ───── */
section { position: relative; z-index: 2; }
.section {
  padding: clamp(80px, 10vw, 130px) 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 52px);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.section-head h2::before,
.section-head h2::after {
  content: "";
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  display: inline-block;
}
.section-head .sub {
  font-size: 16px;
  color: var(--text-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ───── SERVICES ───── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  background: var(--navy-card);
  border: 1px solid rgba(126,184,232,0.08);
  border-radius: 6px;
  padding: 36px 28px 32px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(126,184,232,0.25);
  background: var(--navy-card-hi);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.5), 0 0 32px -16px rgba(126,184,232,0.4);
}
.service:hover::before { opacity: 1; }
.service .num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.service .icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  margin-bottom: 28px;
  transition: background .3s ease;
}
.service:hover .icon { background: rgba(126,184,232,0.22); }
.service .icon svg {
  width: 26px; height: 26px;
  stroke: var(--blue);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text);
}
.service p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0;
}

/* ───── ABOUT / TEAM ───── */
.about-intro {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
  color: var(--text-mute);
  font-size: 16px;
  line-height: 1.75;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member { text-align: left; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-card);
  border: 1px solid rgba(126,184,232,0.1);
  margin-bottom: 18px;
  transition: transform .3s ease, border-color .3s ease;
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(126,184,232,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--navy-card) 0%, var(--navy-card-hi) 100%);
}
.portrait::after {
  content: attr(data-slot);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.member:hover .portrait {
  transform: translateY(-4px);
  border-color: rgba(126,184,232,0.3);
}
.portrait .frame-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
  opacity: 0.7;
}
.portrait .tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.portrait .tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.portrait .bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.portrait .br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.role-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.role-line .role {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}
.role-line .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.member p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-mute);
  margin: 0;
}

.team-tagline {
  margin-top: 64px;
  text-align: center;
  color: var(--text-mute);
  font-size: 15px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-style: italic;
}
.team-tagline em {
  color: var(--blue);
  font-style: normal;
}

/* ───── MISSION ───── */
.mission {
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(126,184,232,0.08), transparent 70%),
    radial-gradient(500px 300px at 85% 75%, rgba(200,152,88,0.08), transparent 70%);
  pointer-events: none;
}
.mission-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.mission .label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.mission h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 54px);
  margin: 0 0 28px;
}
.mission .lede {
  color: var(--text-mute);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 auto 48px;
  max-width: 640px;
}
.quote {
  position: relative;
  padding: 38px 30px;
  border-top: 1px solid rgba(200,152,88,0.3);
  border-bottom: 1px solid rgba(200,152,88,0.3);
}
.quote::before {
  content: "“";
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-top: 20px;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.quote p span { color: var(--blue); font-style: normal; }

/* ───── CONTACT ───── */
.contact-head h2 {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 24px;
}
.contact-head h2::before { display: none; }
.contact-head h2::after {
  flex: 1;
  max-width: 380px;
}
.contact-head .sub { text-align: left; margin-top: 8px; }
.contact-head { text-align: left; margin-bottom: 56px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 56px;
  align-items: start;
}
.form {
  background: transparent;
  border: 1px solid rgba(126,184,232,0.18);
  border-radius: 6px;
  padding: 36px;
}
.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.field { position: relative; }
.input, .textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(126,184,232,0.22);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(126,184,232,0.04);
}
.textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  margin-bottom: 20px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.form-foot .legal {
  font-size: 12px;
  color: var(--text-dim);
}

.form-status {
  margin-top: 16px;
  font-size: 13px;
  min-height: 18px;
}
.form-status.error { color: #ef6b6b; }
.form-status.success { color: var(--blue); }

.info-block {
  padding-top: 8px;
}
.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(126,184,232,0.08);
}
.info-item:first-child { padding-top: 0; }
.info-item:last-child { border-bottom: 0; }
.info-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid; place-items: center;
}
.info-icon svg {
  width: 18px; height: 18px;
  stroke: var(--blue);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.info-value {
  font-size: 15px;
  color: var(--text);
}

/* ───── FOOTER ───── */
footer {
  background: var(--navy-deep);
  padding: 36px 0;
  border-top: 1px solid rgba(126,184,232,0.08);
  position: relative;
  z-index: 2;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}
.foot .links {
  display: flex;
  gap: 28px;
}
.foot .links a:hover { color: var(--blue); }

/* ───── responsive ───── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .hero-bg { width: 100%; opacity: 0.35; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(26,37,64,0.85) 0%, rgba(26,37,64,0.6) 100%);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 14px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .hero-meta { gap: 28px; }
  .section-head h2 { gap: 14px; }
  .section-head h2::before, .section-head h2::after { width: 28px; }
}
