:root {
  --bg: #f7f4ee;
  --navy: #10233f;
  --navy-deep: #0a1830;
  --surface: rgba(255, 255, 255, 0.65);
  --line: rgba(16, 35, 63, 0.14);
  --text: #16213a;
  --muted: #5c6478;
  --gold: #b8934a;
  --gold-deep: #9c7936;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Work Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-family: var(--font-body);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 244, 238, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(247, 244, 238, 0.95);
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.logo span {
  color: var(--gold-deep);
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 1.3rem;
  border-radius: 0.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn-lg {
  min-height: 3.1rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.96rem;
}

.btn-primary {
  background: var(--navy);
  color: #f6f3eb;
  box-shadow: 0 10px 26px rgba(16, 35, 63, 0.22);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(184, 147, 74, 0.5);
}

.topbar .btn {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(10, 24, 48, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(20rem, 82vw);
  padding: 6rem 2rem 2.5rem;
  background: var(--bg);
  box-shadow: -18px 0 40px rgba(16, 35, 63, 0.18);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 48, 0.35) 0%, rgba(10, 24, 48, 0.86) 75%, var(--navy-deep) 100%),
    url("https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 9s var(--ease) both;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(4rem, 12vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 4.5rem);
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  color: #f6f3eb;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  color: rgba(246, 243, 235, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero .btn-ghost {
  border-color: rgba(246, 243, 235, 0.3);
  background: rgba(246, 243, 235, 0.06);
  color: #f6f3eb;
}

.hero .btn-ghost:hover {
  border-color: rgba(184, 147, 74, 0.6);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.areas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 1080px;
}

.areas-grid li {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.areas-grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 147, 74, 0.5);
}

.area-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.areas-grid h3 {
  margin-bottom: 0.45rem;
}

.areas-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.office {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(184, 147, 74, 0.1), transparent 60%),
    #eee9dd;
}

.office-copy {
  max-width: 34rem;
}

.office-copy > p:last-child {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.office-media {
  min-height: 18rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(247, 244, 238, 0.08), rgba(10, 24, 48, 0.35)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.14);
}

.diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  max-width: 1080px;
  counter-reset: diff;
}

.diff-list li {
  position: relative;
  padding-left: 2.75rem;
}

.diff-list li::before {
  counter-increment: diff;
  content: counter(diff, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-deep);
}

.diff-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.diff-list p {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 42ch;
}

.cta {
  text-align: center;
  border-radius: 0.5rem;
  margin: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 4.5rem);
  padding: clamp(2.6rem, 6vw, 3.6rem) 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(184, 147, 74, 0.16), transparent 65%),
    var(--navy);
  color: #f6f3eb;
}

.cta .eyebrow {
  color: var(--gold);
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 38ch;
  margin: 0 auto 1.6rem;
  color: rgba(246, 243, 235, 0.72);
}

.cta .btn-primary {
  background: var(--gold);
  color: #241b09;
}

.cta .btn-primary:hover {
  background: var(--gold-deep);
  color: #f6f3eb;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
}

.footer .logo {
  font-size: 1.2rem;
}

.disclaimer {
  width: 100%;
  font-size: 0.76rem;
  opacity: 0.7;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .nav,
  .topbar .btn {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none;
  }

  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .office {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.75rem;
  }

  .office-media {
    min-height: 26rem;
  }

  .diff-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    flex-wrap: nowrap;
  }

  .disclaimer {
    width: auto;
  }
}
