:root {
  --navy-900: #14213D;
  --navy-800: #1A2C4E;
  --navy-700: #22385F;
  --cream-50: #FBF7F0;
  --cream-100: #F3EAD9;
  --accent-600: #BD5B38;
  --accent-700: #9E4A2C;
  --ink: #1E1B16;
  --muted: #6E6659;
  --white: #FFFFFF;
  --border: #E6DCC8;
  --shadow: 0 12px 30px -12px rgba(20, 33, 61, 0.18);
  --radius: 14px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-700); box-shadow: 0 10px 24px -10px rgba(189, 91, 56, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 16px -8px rgba(20,33,61,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
}
.logo-mark { transition: transform 0.3s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy-900);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--navy-900);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 130px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-bg path:nth-of-type(1) { animation: heroDrift 16s ease-in-out infinite; }
.hero-bg path:nth-of-type(2) { animation: heroDrift 20s ease-in-out infinite reverse; }
@keyframes heroDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-24px); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-inner > * {
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.27s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.38s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-trust svg { flex-shrink: 0; color: var(--accent-600); }

/* Sections */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--cream-100); }
.section h2 { max-width: 640px; }
.section h2 em, .hero h1 em {
  font-style: italic;
  font-weight: 500;
}
.section h2 em { color: var(--accent-600); }
.hero h1 em { color: #E8B79A; }
.section-heading {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  color: var(--navy-900);
  line-height: 1.2;
  padding-bottom: 14px;
  margin: 0 0 44px;
  border-bottom: 2px solid var(--accent-600);
  max-width: 640px;
}

/* Wave dividers between sections */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.wave-divider svg { width: 100%; height: 64px; display: block; }

/* Services — asymmetric bento grid */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(190px, auto));
  gap: 20px;
  margin-top: 52px;
}
.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-600); }
.bento-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.bento-tile:hover .bento-icon { background: var(--accent-600); color: var(--white); transform: scale(1.08) rotate(-6deg); }
.bento-tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.bento-tile p { margin: 0; font-size: 0.9rem; }
.bento-tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-tile:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento-tile:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.bento-tile:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-tile:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 3; }
.bento-featured {
  background: var(--navy-900);
  border-color: var(--navy-900);
  justify-content: center;
  padding: 36px;
}
.bento-featured:hover { border-color: var(--accent-600); }
.bento-featured .bento-icon { background: rgba(255, 255, 255, 0.12); color: var(--accent-600); width: 56px; height: 56px; }
.bento-featured:hover .bento-icon { background: var(--accent-600); color: var(--white); }
.bento-featured h3 { color: var(--white); font-size: clamp(1.3rem, 2.2vw, 1.6rem); max-width: 20ch; }
.bento-featured p { color: rgba(255, 255, 255, 0.78); font-size: 1rem; max-width: 30ch; }
.services-bento .bento-tile:nth-child(1) { transition-delay: 0s; }
.services-bento .bento-tile:nth-child(2) { transition-delay: 0.06s; }
.services-bento .bento-tile:nth-child(3) { transition-delay: 0.12s; }
.services-bento .bento-tile:nth-child(4) { transition-delay: 0.18s; }
.services-bento .bento-tile:nth-child(5) { transition-delay: 0.24s; }

/* Trust — horizontal card row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 26px;
  border-left: 1px solid var(--border);
  transition: background 0.25s ease;
}
.trust-card:first-child { border-left: none; }
.trust-card:hover { background: var(--cream-100); }
.why-badge {
  display: inline-flex;
  transition: transform 0.3s ease;
}
.why-icon-ring {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  transition: stroke-dashoffset 0.7s ease, stroke 0.25s ease;
  transform-origin: center;
  transform: rotate(-90deg);
}
.why-icon-check {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.35s ease 0.5s, stroke 0.25s ease;
}
.trust-card.is-visible .why-icon-ring { stroke-dashoffset: 0; }
.trust-card.is-visible .why-icon-check { stroke-dashoffset: 0; }
.trust-card:hover .why-badge { transform: scale(1.12); }
.trust-card:hover .why-icon-ring,
.trust-card:hover .why-icon-check { stroke: var(--accent-700); }
.why-term {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-900);
  margin: 0;
  transition: color 0.2s ease;
}
.trust-card:hover .why-term { color: var(--accent-700); }
.why-def { margin: 0; font-size: 0.92rem; }
.trust-card:nth-child(1) { transition-delay: 0s; }
.trust-card:nth-child(2) { transition-delay: 0.1s; }
.trust-card:nth-child(3) { transition-delay: 0.2s; }
.trust-card:nth-child(4) { transition-delay: 0.3s; }

/* Process — horizontal left-to-right flow */
.flow-steps {
  position: relative;
  display: flex;
  gap: 32px;
  margin-top: 64px;
}
.flow-line {
  position: absolute;
  left: 23px;
  right: 23px;
  top: 23px;
  height: 2px;
  background: var(--border);
  transform-origin: left;
}
.flow-line.reveal-item {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 0.9s ease;
}
.flow-line.reveal-item.is-visible { transform: scaleX(1); }
.flow-step { position: relative; z-index: 1; flex: 1; min-width: 0; }
.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-600);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--cream-50);
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}
.flow-step:hover .flow-num { transform: scale(1.1); }
.flow-step h3 { margin-bottom: 6px; font-size: 1.05rem; transition: color 0.2s ease; }
.flow-step p { margin: 0; font-size: 0.92rem; max-width: 30ch; }
.flow-step:hover h3 { color: var(--accent-700); }
.flow-step:nth-child(3) { transition-delay: 0.1s; }
.flow-step:nth-child(4) { transition-delay: 0.2s; }

/* About */
.about-inner { max-width: 720px; }
.about-text { font-size: 1.05rem; }
.has-dropcap::first-letter {
  font-family: var(--font-head);
  font-size: 3.6em;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.08em 0 0;
  color: var(--accent-600);
}
.about-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.about-address strong { color: var(--navy-900); font-family: var(--font-head); font-size: 1.05rem; }
.about-address span { color: var(--muted); font-size: 0.95rem; }

/* Careers */
.careers-inner { max-width: 640px; }
.careers-text { font-size: 1.05rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  margin-top: 40px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row-2 .form-row { margin-bottom: 0; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream-50);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-600);
}
input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  border: none;
  background: var(--navy-900);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 12px;
  cursor: pointer;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--navy-700);
}

.contact-info {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info h3 { color: var(--white); font-family: var(--font-head); }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-info li { display: flex; flex-direction: column; gap: 2px; }
.contact-info a { color: var(--white); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.ci-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .logo-word { color: var(--white); font-size: 1.1rem; }
.site-footer p { margin: 0; color: rgba(255,255,255,0.6); }

/* Reveal animation */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }
  .contact-grid { grid-template-columns: 1fr; }

  .services-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .bento-tile:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .bento-tile:nth-child(2),
  .bento-tile:nth-child(3),
  .bento-tile:nth-child(4),
  .bento-tile:nth-child(5) { grid-column: auto; grid-row: auto; }
  .bento-tile { min-height: 170px; }

  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-card:nth-child(2) { border-left: 1px solid var(--border); }
  .trust-card:nth-child(3) { border-left: none; border-top: 1px solid var(--border); }
  .trust-card:nth-child(4) { border-top: 1px solid var(--border); }

  .flow-steps { flex-direction: column; gap: 28px; }
  .flow-line { display: none; }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    gap: 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.4s ease;
  }
  .site-header.nav-open .main-nav {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 20px 24px 28px;
  }
  .main-nav a {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .site-header.nav-open .main-nav a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }
}

@media (max-width: 640px) {
  .hero { padding: 90px 0 90px; }
  .section { padding: 64px 0; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .wave-divider svg { height: 34px; }

  .services-bento { grid-template-columns: 1fr; }
  .bento-tile:nth-child(1) { grid-column: 1; }

  .trust-row { grid-template-columns: 1fr; }
  .trust-card { border-left: none !important; border-top: 1px solid var(--border); }
  .trust-card:first-child { border-top: none; }

  .why-term { font-size: 1.15rem; }

  .has-dropcap::first-letter { font-size: 2.8em; }
}
