:root {
  --navy: #0f2744;
  --navy-deep: #081828;
  --navy-soft: #1a3a5c;
  --ink: #152033;
  --muted: #5a6a7e;
  --line: rgba(15, 39, 68, 0.12);
  --paper: #f7f5f1;
  --paper-2: #eef2f6;
  --white: #ffffff;
  --accent: #c45c2a;
  --accent-hover: #a84b20;
  --accent-soft: rgba(196, 92, 42, 0.12);
  --radius: 4px;
  --shadow: 0 18px 50px rgba(8, 24, 40, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 245, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 241, 0.95);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: stretch;
  gap: 0.7rem;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}

.logo-bar {
  flex-shrink: 0;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo--footer .logo-name {
  font-size: 0.82rem;
}

.logo--footer .logo-sub {
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: start;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 24, 40, 0.55) 0%, rgba(15, 39, 68, 0.35) 45%, rgba(196, 92, 42, 0.22) 100%),
    linear-gradient(180deg, #0a1a2e 0%, #143252 55%, #1c4160 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px);
  background-size: 28px 28px, 36px 36px;
  opacity: 0.45;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 12s ease-in-out infinite;
}

.hero-orb--one {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -8%;
  right: -5%;
  background: radial-gradient(circle, rgba(196, 92, 42, 0.45), transparent 70%);
}

.hero-orb--two {
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  bottom: 10%;
  left: -8%;
  background: radial-gradient(circle, rgba(90, 140, 190, 0.35), transparent 70%);
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vh, 4rem) var(--space) clamp(3rem, 7vh, 4.5rem);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  animation: rise 0.9s ease both;
}

.hero-lead {
  max-width: 36ch;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  animation: rise 0.9s 0.22s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.32s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro h2,
.approach-inner h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

/* ——— Services ——— */
.services {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  counter-reset: none;
}

.service {
  position: relative;
  padding-top: 0.25rem;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.service.is-visible::before,
.reveal.is-visible .service::before {
  transform: scaleX(1);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.15rem;
  color: var(--navy);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-num {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ——— Approach ——— */
.approach {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.approach .eyebrow {
  color: #e8a07a;
}

.approach h2 {
  color: var(--white);
  max-width: 18ch;
}

.approach-text {
  max-width: 48ch;
  margin-bottom: 1.75rem;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
}

.approach-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.approach-points li {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 400;
}

.approach-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ——— Contact ——— */
.contact {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 92, 42, 0.08), transparent 55%),
    var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact .section-intro {
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(15, 39, 68, 0.28);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.contact-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-soft);
}

.form-status.is-success {
  color: #1f6b45;
}

.form-status.is-error {
  color: #9b2c2c;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1.75rem 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.footer-copy,
.footer-credit {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-credit {
  font-size: 0.78rem;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--navy);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service.reveal.is-visible::before {
  transform: scaleX(1);
}

.service-grid .service:nth-child(2) { transition-delay: 0.08s; }
.service-grid .service:nth-child(3) { transition-delay: 0.16s; }
.service-grid .service:nth-child(4) { transition-delay: 0.24s; }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--space) 1.25rem;
    background: rgba(247, 245, 241, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: 0;
    align-items: start;
  }

  .hero-content {
    padding: clamp(2.25rem, 5vh, 3rem) var(--space) clamp(2.75rem, 6vh, 3.5rem);
  }

  .hero h1 {
    max-width: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-orb,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
