:root {
  --navy: #07172d;
  --navy-2: #10233f;
  --charcoal: #202327;
  --muted: #6c727c;
  --warm: #f7f2ea;
  --paper: #fffaf3;
  --gold: #c7a66b;
  --line: rgba(16, 35, 63, 0.14);
  --shadow: 0 24px 70px rgba(7, 23, 45, 0.16);
  --deep-shadow: 0 34px 90px rgba(7, 23, 45, 0.28);
  --font-title: "Libre Baskerville", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  padding: 13px 14px 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 23, 45, 0.36);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.site-header.is-scrolled, .site-header.solid {
  color: var(--navy);
  background: rgba(255, 250, 243, 0.92);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(7, 23, 45, 0.13);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { margin-top: 3px; color: currentColor; font-size: 0.72rem; opacity: 0.7; }
.main-nav { display: flex; gap: 24px; align-items: center; font-size: 0.92rem; font-weight: 600; }
.main-nav a { opacity: 0.82; transition: color 0.2s ease, opacity 0.2s ease; }
.main-nav a:hover { color: var(--gold); opacity: 1; }
.header-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled .header-cta, .site-header.solid .header-cta { background: var(--navy); color: #fff; }
.header-cta:hover, .btn:hover { transform: translateY(-2px); }
.nav-toggle { display: none; border: 0; background: transparent; color: currentColor; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 170px max(24px, calc((100vw - 1180px) / 2)) 52px;
  isolation: isolate;
}
.hero-media, .hero-media img, .hero-scrim { position: absolute; inset: 0; }
.hero-media { scale: 1.05; transform: translate3d(0, var(--parallax-y, 0px), 0); will-change: transform; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-scrim {
  z-index: 1;
  background:
    radial-gradient(circle at 74% 40%, rgba(199, 166, 107, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(5, 11, 20, 0.92), rgba(7, 23, 45, 0.64) 42%, rgba(7, 23, 45, 0.18) 72%),
    linear-gradient(0deg, rgba(5, 11, 20, 0.88), transparent 52%);
}
.hero-content { position: relative; z-index: 2; max-width: 790px; padding-bottom: 78px; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(3.05rem, 6.15vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  color: rgba(255, 255, 255, 0.84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 18px 44px rgba(199, 166, 107, 0.28); }
.btn-primary:hover { background: #d8bb82; box-shadow: 0 22px 54px rgba(199, 166, 107, 0.34); }
.btn-secondary { border-color: rgba(255, 255, 255, 0.44); color: #fff; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-insight {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 50px;
  width: min(360px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(7, 23, 45, 0.42);
  backdrop-filter: blur(18px);
}
.hero-insight span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-insight strong { display: block; color: #fff; font-size: 1.06rem; line-height: 1.35; }

.section { padding: 108px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 46px;
}
.section-heading h2, .profile h2, .cta-inner h2, .contact-hero h1, .story-copy h2 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--navy);
  font-size: clamp(2.25rem, 4.25vw, 4.45rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
.section-heading p, .story-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.trust-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card, .service-card, .contact-form, .contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 52px rgba(7, 23, 45, 0.06);
}
.trust-card {
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}
.trust-card:hover, .service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.icon-wrap { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--navy); background: rgba(199, 166, 107, 0.18); }
.trust-card h3, .service-card h3, .step h3 { margin: 22px 0 10px; color: var(--navy); font-size: 1.32rem; line-height: 1.2; }
.trust-card p, .service-card p, .step p { margin: 0; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.metric { padding: 24px 28px; border-top: 1px solid var(--line); }
.metric strong { display: block; color: var(--navy); font-family: var(--font-title); font-size: 3rem; line-height: 1; }
.metric span { color: var(--muted); font-weight: 700; }

.image-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 58px;
  align-items: center;
  background: #f2ece2;
}
.story-copy { max-width: 470px; }
.story-copy p:last-child { margin-top: 22px; }
.story-gallery {
  position: relative;
  min-height: 610px;
}
.story-image {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  box-shadow: var(--deep-shadow);
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.7s ease;
}
.story-image:hover img { scale: 1.045; }
.story-image:first-child {
  inset: 0 12% 12% 0;
}
.story-image.small {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 42%;
  border: 8px solid var(--paper);
}

.dark-band { background: var(--navy); color: #fff; }
.dark-band .section-heading h2 { color: #fff; }
.dark-band .section-heading p { color: rgba(255, 255, 255, 0.68); }
.service-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card.image-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: scale 0.7s ease, filter 0.7s ease;
}
.service-card.image-card:hover img { scale: 1.055; filter: saturate(1.06) contrast(1.03); }
.service-card.image-card div { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.service-card span, .step span { color: var(--gold); font-family: var(--font-title); font-size: 1.72rem; }
.service-card h3 { color: #fff; font-size: 1.44rem; }
.service-card p { color: rgba(255, 255, 255, 0.7); }
.service-card a { margin-top: auto; color: var(--gold); font-weight: 800; }
.service-card:hover { border-color: rgba(199, 166, 107, 0.6); }

.process-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 58px; }
.process .section-heading { display: block; margin: 0; }
.steps { position: relative; display: grid; gap: 16px; }
.steps::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(199, 166, 107, 0));
}
.step {
  position: relative;
  padding: 26px 28px 26px 92px;
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s ease, background 0.25s ease;
}
.step:hover { transform: translateX(8px); background: rgba(199, 166, 107, 0.07); }
.step span { position: absolute; left: 0; top: 22px; width: 64px; text-align: center; background: var(--paper); }
.step h3 { margin-top: 0; }

.profile { background: #f2ece2; }
.profile-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 62px;
  align-items: center;
  padding: 52px;
  border-left: 6px solid var(--gold);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.profile-portrait {
  overflow: hidden;
  align-self: stretch;
  min-height: 560px;
  margin: 0;
  border-radius: 8px;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.profile-copy p { margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.text-link {
  display: inline-flex;
  width: max-content;
  margin-top: 28px;
  color: var(--navy);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 108px 24px;
  background: var(--navy-2);
  color: #fff;
  text-align: center;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(199, 166, 107, 0.16), transparent);
  transform: translateX(-100%);
  animation: sheen 7s ease-in-out infinite;
}
.cta-inner { position: relative; max-width: 840px; margin: auto; }
.cta-inner p { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; }
.cta-inner h2 { color: #fff; margin-bottom: 28px; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 54px max(24px, calc((100vw - 1180px) / 2));
  background: #050b14;
  color: #fff;
}
.site-footer p, .site-footer a, .site-footer .legal { color: rgba(255, 255, 255, 0.68); }
.site-footer a { display: block; margin-top: 8px; }
.site-footer h3 { margin: 0 0 12px; font-size: 0.9rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; }
.legal { grid-column: 1 / -1; margin: 10px 0 0; font-size: 0.86rem; }

.contact-main { padding: 150px max(24px, calc((100vw - 1180px) / 2)) 90px; }
.contact-hero { max-width: 850px; margin-bottom: 46px; }
.contact-hero p:last-child { max-width: 700px; color: var(--muted); font-size: 1.12rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.72fr; gap: 28px; align-items: start; }
.contact-form, .contact-card { padding: 34px; border-radius: 8px; }
.contact-form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--navy); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px 14px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
}
textarea { resize: vertical; }
.contact-card h2 { margin-top: 0; color: var(--navy); font-family: var(--font-title); font-size: 2rem; }
.contact-card a { display: block; margin: 13px 0; color: var(--navy); font-weight: 800; }
.contact-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-card-image {
  width: calc(100% + 68px);
  height: 230px;
  margin: -34px -34px 28px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 80; }
.chat-launcher {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 18px 50px rgba(7, 23, 45, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.02); }
.chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.chat-window header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: var(--navy);
  color: #fff;
}
.chat-window header span { display: block; color: rgba(255, 255, 255, 0.66); font-size: 0.82rem; }
.chat-window header button { border: 0; background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; }
.chat-log { display: grid; gap: 10px; max-height: 280px; overflow: auto; padding: 18px; }
.message { width: fit-content; max-width: 88%; padding: 11px 13px; border-radius: 8px; font-size: 0.92rem; }
.message.bot { background: #fff; color: var(--charcoal); }
.message.user { justify-self: end; background: var(--navy); color: #fff; }
.chat-options { display: grid; gap: 8px; padding: 0 18px 18px; }
.chat-options button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 13px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.chat-options button:hover { border-color: var(--gold); }

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.78s ease, transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes heroDrift {
  from { transform: scale(1) translate3d(-0.5%, -0.5%, 0); }
  to { transform: scale(1.035) translate3d(0.6%, 0.4%, 0); }
}

@keyframes sheen {
  0%, 48% { transform: translateX(-100%); }
  72%, 100% { transform: translateX(100%); }
}

@media (max-width: 1020px) {
  .hero-insight { position: relative; right: auto; bottom: auto; margin-top: -36px; }
  .hero { align-items: end; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; border-radius: 24px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; gap: 5px; padding: 12px; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; }
  .main-nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    color: var(--navy);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 16px; }
  .hero { padding-top: 140px; }
  .hero-media img { object-position: 56% 50%; }
  .hero-content { padding-bottom: 42px; }
  .section-heading, .process-layout, .profile-panel, .site-footer, .contact-grid, .image-story { grid-template-columns: 1fr; }
  .trust-grid, .service-grid, .metrics { grid-template-columns: 1fr; }
  .section { padding-top: 82px; padding-bottom: 82px; }
  .story-gallery { min-height: auto; display: grid; gap: 18px; }
  .story-image, .story-image:first-child, .story-image.small { position: relative; inset: auto; width: 100%; height: auto; min-height: 300px; border: 0; }
  .story-image img { height: 100%; min-height: 300px; }
  .profile-panel { padding: 34px; }
  .profile-portrait { min-height: 440px; }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .hero-title { font-size: clamp(2.68rem, 13vw, 4.1rem); }
  .hero-actions .btn { width: 100%; }
  .hero-insight { width: 100%; }
  .step { padding-left: 0; padding-top: 70px; }
  .steps::before { display: none; }
  .step span { text-align: left; }
  .service-card { min-height: auto; }
  .service-card.image-card img { height: 230px; }
  .chatbot { right: 16px; bottom: 16px; }
  .contact-main { padding-top: 130px; }
}

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