:root {
  --navy: #0b2545;
  --navy-deep: #07182d;
  --navy-soft: #163a5f;
  --gold: #a9812f;
  --gold-soft: rgba(169, 129, 47, 0.55);
  --paper: #ffffff;
  --ink: #0b2545;
  --ink-muted: rgba(11, 37, 69, 0.72);
  --ink-faint: rgba(11, 37, 69, 0.45);
  --rule: rgba(11, 37, 69, 0.14);
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: Arial, Helvetica, sans-serif;
  --shell: min(1120px, calc(100% - 3rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(169, 129, 47, 0.07), transparent 55%),
    radial-gradient(900px 500px at -5% 30%, rgba(11, 37, 69, 0.05), transparent 50%),
    linear-gradient(180deg, #f7f8fa 0%, var(--paper) 18%, var(--paper) 100%);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 30px rgba(11, 37, 69, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1.5rem;
}

.brand-mark {
  width: 132px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav a {
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-login {
  margin-left: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(11, 37, 69, 0.22);
  color: var(--navy);
  letter-spacing: 0.14em;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.nav-login::after {
  display: none;
}

.nav-login:hover,
.nav-login:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  padding: 5.5rem 0 6.5rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 42%, rgba(255, 255, 255, 0.35) 100%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 42%, var(--navy-soft) 100%);
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(169, 129, 47, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 255, 255, 0.08), transparent 55%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
}

@keyframes atmosphere-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1.5%, 1%, 0) scale(1.04);
  }
}

.hero-inner {
  max-width: 42rem;
}

.hero-logo {
  width: min(520px, 92vw);
  margin-bottom: 2.35rem;
  filter: drop-shadow(0 10px 30px rgba(7, 24, 45, 0.12));
}

.hero-heading {
  margin: 0 0 1.15rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.hero-lede {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.hero-rule {
  margin-top: 2.5rem;
  width: 7.5rem;
  height: 1px;
  background: var(--gold);
  transform-origin: left center;
}

/* Sections */
.section {
  padding: 6.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-lede {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--ink-muted);
}

.section-intro.centered {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: start;
}

.section-copy p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

/* Services */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.service-list li {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.service-list li:nth-child(odd) {
  padding-right: 2.5rem;
  border-right: 1px solid var(--rule);
}

.service-list li:nth-child(even) {
  padding-left: 2.5rem;
}

.service-list h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.service-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Approach */
.approach {
  padding-bottom: 7rem;
}

.approach-panel {
  position: relative;
  padding: 4rem 0 0;
  max-width: 40rem;
}

.approach-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5rem;
  height: 1px;
  background: var(--gold);
}

.approach-panel h2 {
  margin-bottom: 1.25rem;
}

.approach-panel p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3.25rem 0 3.75rem;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.02), transparent 60%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-logo {
  width: 110px;
  margin-bottom: 0.25rem;
}

.footer-meta {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-rule {
  width: 4.5rem;
  height: 1px;
  margin: 0.55rem 0 0.35rem;
  background: rgba(11, 37, 69, 0.2);
}

.footer-copy {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.18s;
}
.reveal-delay-3 {
  transition-delay: 0.26s;
}
.reveal-delay-4 {
  transition-delay: 0.34s;
}
.reveal-delay-5 {
  transition-delay: 0.42s;
}

.hero-rule.reveal.is-visible {
  animation: draw-rule 1.1s var(--ease) 0.35s both;
}

@keyframes draw-rule {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

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

  .reveal,
  .hero-rule.reveal.is-visible,
  .hero-atmosphere::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 860px) {
  :root {
    --shell: min(1120px, calc(100% - 2rem));
  }

  .nav {
    gap: 1.1rem;
    font-size: 0.7rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list li,
  .service-list li:nth-child(odd),
  .service-list li:nth-child(even) {
    padding: 1.75rem 0;
    border-right: none;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0 5rem;
  }

  .hero-logo {
    width: min(300px, 78vw);
    margin-bottom: 2rem;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 3.75rem;
  }

  .brand-mark {
    width: 108px;
  }

  .nav a:not(.nav-login) {
    display: none;
  }

  .nav {
    gap: 0;
  }

  .nav-login {
    margin-left: 0;
  }

  .section {
    padding: 4.75rem 0;
  }
}
