:root {
  --navy: #08111f;
  --navy-2: #0f1d33;
  --ink: #141a24;
  --muted: #6d7481;
  --ivory: #f7f2e8;
  --cream: #efe4d3;
  --white: #ffffff;
  --gold: #c8a86a;
  --gold-2: #ead9b7;
  --line: rgba(20, 26, 36, 0.12);
  --shadow: 0 28px 70px rgba(8, 17, 31, 0.16);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 26, 36, 0.08);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
  color: var(--navy);
}

.nav a:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  box-shadow: 0 18px 38px rgba(8, 17, 31, 0.22);
}

.btn-secondary {
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  color: var(--navy);
}

.btn-nav {
  background: var(--navy);
  color: white !important;
  min-height: 44px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 56px 0 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(247,242,232,0.94));
}

.hero-video-layer,
.hero-video,
.hero-fallback-motion,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video-layer {
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(0.7) blur(1px);
}

.hero-fallback-motion {
  background:
    radial-gradient(circle at 18% 40%, rgba(200,168,106,0.16), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(102,125,160,0.18), transparent 22%),
    radial-gradient(circle at 72% 76%, rgba(200,168,106,0.14), transparent 20%),
    linear-gradient(115deg, rgba(255,255,255,0.5), rgba(247,242,232,0.35));
  animation: slowDrift 16s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247,242,232,0.96) 0%, rgba(247,242,232,0.9) 36%, rgba(247,242,232,0.76) 58%, rgba(247,242,232,0.82) 100%);
}

@keyframes slowDrift {
  from { transform: scale(1) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-24px, 10px, 0); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
}

h1, h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  max-width: 690px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 760px;
}

h3 { font-size: 1.18rem; }

p {
  color: var(--muted);
  margin: 0;
}

.lead {
  margin: 22px 0;
  max-width: 640px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 16px;
}

.quiet-line {
  font-size: 0.92rem;
  color: rgba(20, 26, 36, 0.68);
}

.hero-visual {
  position: relative;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  max-width: 510px;
  margin-left: auto;
  background: #d8d4cd;
  box-shadow: 0 34px 90px rgba(8, 17, 31, 0.18);
}

.portrait-frame img {
  width: 100%;
  display: block;
}

.focus-strip {
  background: var(--navy);
  padding: 18px 0;
}

.focus-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px 18px;
  align-items: stretch;
}

.focus-items span {
  color: rgba(255,255,255,0.84);
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  text-align: center;
  display: grid;
  place-items: center;
}

.section {
  padding: 96px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.section-copy p + p {
  margin-top: 16px;
}

.about-quote {
  min-height: 300px;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(8,17,31,0.97), rgba(15,29,51,0.9)),
    radial-gradient(circle at 80% 20%, rgba(200,168,106,0.3), transparent 30%);
  box-shadow: var(--shadow);
  display: grid;
  align-content: end;
}

.about-quote p {
  color: white;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.about-quote span {
  margin-top: 16px;
  color: var(--gold-2);
  font-weight: 700;
}

.section-dark {
  background: var(--navy);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark .section-heading p:not(.eyebrow),
.section-dark .service-card p {
  color: rgba(255,255,255,0.72);
}

.section-heading {
  margin-bottom: 34px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.process-step,
.client-card,
.contact-form,
.compliance-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 250px;
  padding: 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.service-card span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: 18px 0 10px;
}

.image-story {
  background: linear-gradient(180deg, var(--cream), var(--ivory));
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.story-image {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.story-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.story-copy p {
  margin: 18px 0;
  max-width: 640px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step,
.client-card,
.contact-form,
.compliance-card {
  background: white;
  border: 1px solid var(--line);
}

.process-step {
  padding: 26px;
}

.process-step strong {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold-2);
  color: var(--navy);
}

.clients-section {
  background: var(--cream);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.client-card {
  padding: 26px;
  color: var(--navy);
  font-weight: 800;
  min-height: 120px;
  display: grid;
  align-items: end;
}

.compliance-section {
  padding: 52px 0;
}

.compliance-card {
  padding: 24px 28px;
}

.compliance-card p {
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-list strong {
  display: block;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffcf7;
  font: inherit;
  color: var(--ink);
}

textarea { resize: vertical; }

.form-status {
  font-size: 0.92rem;
}

.site-footer {
  background: #070d18;
  color: white;
  padding: 34px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.site-footer p {
  color: rgba(255,255,255,0.72);
  margin-top: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }

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

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .focus-items {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .portrait-frame {
    margin: 0;
  }

  .expertise-grid,
  .process-grid,
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 740px) {
  .menu-toggle { display: block; }

  .focus-items {
    grid-template-columns: 1fr;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .section { padding: 72px 0; }

  .expertise-grid,
  .process-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .story-image img {
    height: 420px;
  }
}


/* v0.4.12 consolidated updates */
.hidden-field {
  display: none;
}

/* Keep content visible if JavaScript fails */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stable mobile header inspired by v0.4.11: no hamburger, one clear CTA */
@media (max-width: 740px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
    line-height: 1.05;
  }

  .brand-copy small {
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav {
    position: static !important;
    display: block !important;
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .nav a:not(.btn-nav) {
    display: none !important;
  }

  .nav .btn-nav {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--navy) !important;
    color: #fff !important;
    font-size: 0.95rem;
  }

  .hero {
    padding: 24px 0 34px;
  }

  .section {
    padding: 52px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }
}


/* v0.4.15 form success page */
.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(191, 154, 96, 0.18), transparent 32%),
    linear-gradient(135deg, #fbf8f0 0%, #f4efe4 100%);
}

.success-card {
  width: min(720px, 100%);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
}

.success-card h1 {
  margin: 10px 0 18px;
}

.success-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
