/* Hivex Financial Consultancy */

:root {
  --navy: #052e53;
  --navy-2: #0a3d6b;
  --gold: #b4944a;
  --gold-light: #d3b76f;
  --gold-deep: #7d6020;
  --paper: #ffffff;
  --line: #e4e8ee;
  --text: #1c2734;
  --muted: #55627a;
  --on-dark: #eef2f7;
  --on-dark-muted: #b3c1d3;
  --radius: 14px;
  --wrap: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hex-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115.5'%3E%3Cpolygon points='50,2 98,29.9 98,85.6 50,113.5 2,85.6 2,29.9' fill='none' stroke='%23b4944a' stroke-width='1.6'/%3E%3C/svg%3E");
  --hex-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115.5'%3E%3Cpolygon points='50,2 98,29.9 98,85.6 50,113.5 2,85.6 2,29.9' fill='none' stroke='%23052e53' stroke-width='1.6'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: 0 50%; }

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(5, 46, 83, 0.55); }
.btn:hover::after { left: 120%; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-small { padding: 11px 22px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.text-link {
  display: inline-block;
  margin-top: auto;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  align-self: flex-start;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
}
.text-link::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform 0.2s ease; }
.text-link:hover::after { transform: translateX(5px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(5, 46, 83, 0.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 20px; }

.brand { display: inline-flex; flex: none; }
.brand img { height: 62px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s ease;
}
.site-nav a:not(.btn):hover, .site-nav a.active { background-size: 100% 2px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; margin: 0 auto; transition: transform 0.2s ease, background 0.2s ease; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); padding: 64px 0 0; }
.hero > .wrap { position: relative; z-index: 1; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.float-hex {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 100 / 115.5;
  background: var(--hex-gold) center / contain no-repeat;
  opacity: 0.32;
  animation: drift var(--d) ease-in-out infinite alternate;
}
.float-hex.navy { background-image: var(--hex-navy); opacity: 0.1; animation-name: drift-b; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(36px, -46px, 0) rotate(60deg); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-42px, 34px, 0) rotate(-60deg); }
}

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hero entrance */
.hero-copy > * { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.3s; }
.hero-copy > :nth-child(4) { animation-delay: 0.45s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Hero honeycomb */
.hero-art svg { width: 100%; height: auto; max-width: 440px; display: block; margin: 0 auto; overflow: visible; animation: bob 7s ease-in-out 1.6s infinite alternate; }
.hero-art use { transform-box: fill-box; transform-origin: center; }
.hex-outline use { fill: #fff; stroke: var(--gold); stroke-width: 1.6; filter: drop-shadow(0 10px 14px rgba(5, 46, 83, 0.1)); animation: hex-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.hex-outline use:nth-child(1) { animation-delay: 0.55s; }
.hex-outline use:nth-child(2) { animation-delay: 0.65s; }
.hex-outline use:nth-child(4) { animation-delay: 0.75s; }
.hex-outline use:nth-child(6) { animation-delay: 0.85s; }
.hex-outline use:nth-child(5) { animation-delay: 0.95s; }
.hex-outline use:nth-child(3) { animation-delay: 1.05s; }
.hex-core { fill: var(--navy); animation: hex-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.35s both; }
.hex-pulse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; animation: hex-pulse 3.2s ease-out 1.6s infinite; }
.hex-label text { fill: var(--navy); font: 600 12.5px var(--sans); text-anchor: middle; }
.hex-core-label text { fill: #fff; font: 600 17px var(--serif); text-anchor: middle; }
.hex-label, .hex-core-label { animation: fade-in 0.6s ease 1.25s both; }
.hex-core-label { animation-delay: 0.7s; }

@keyframes hex-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hex-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
}
.trust-strip li { padding: 26px 20px 30px 0; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
.trust-strip li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.trust-strip strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }

/* Sections */
.section { position: relative; padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 20px; background: var(--gold); transform-origin: 0 50%; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s; }
.section-head.reveal:not(.in) h2::after { transform: scaleX(0); }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px -30px rgba(5, 46, 83, 0.4);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); transform: scaleX(0.18); transform-origin: 0 50%; transition: transform 0.45s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(5, 46, 83, 0.5); border-color: #d5dbe4; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); margin-bottom: 22px; transition: transform 0.3s ease; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.5rem; }
.service-intro { margin-top: 12px; color: var(--muted); }

.check-list { margin: 26px 0 30px; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 32px; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.steps li:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 20px 36px -28px rgba(5, 46, 83, 0.5); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 600 1.6rem/1 var(--serif);
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: 8px; font-size: 0.94rem; color: var(--muted); line-height: 1.5; }
.steps li:last-child { background: var(--navy); border-color: var(--navy); }
.steps li:last-child h3 { color: #fff; }
.steps li:last-child p { color: var(--on-dark-muted); }
.steps li:last-child::before { color: var(--gold-light); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-item { position: relative; padding: 34px 30px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s ease; }
.why-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: 50% 0; transition: transform 0.35s ease; }
.why-item:not(.why-cta):hover { background: #fafbfd; }
.why-item:not(.why-cta):hover::before { transform: scaleY(1); }
.why-num { display: block; font: 600 0.9rem var(--sans); letter-spacing: 0.1em; color: var(--gold-deep); margin-bottom: 14px; }
.why-item p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.why-cta { background: var(--navy); display: flex; flex-direction: column; align-items: flex-start; }
.why-cta h3 { color: #fff; }
.why-cta p { color: var(--on-dark-muted); }
.why-cta .btn { margin-top: 22px; background: var(--gold); border-color: var(--gold); color: var(--navy); }
.why-cta .btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Credentials */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.stat { position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius); background: var(--navy); transition: transform 0.3s ease; }
.stat::after { content: ""; position: absolute; right: -34px; top: -40px; width: 150px; aspect-ratio: 100 / 115.5; background: var(--hex-gold) center / contain no-repeat; opacity: 0.35; animation: spin 40s linear infinite; }
.stat:hover { transform: translateY(-5px); }
.stat-num { display: block; font: 600 3.2rem/1 var(--serif); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.stat-label { position: relative; display: block; margin-top: 12px; color: var(--on-dark); font-size: 0.98rem; line-height: 1.45; }

@keyframes spin { to { transform: rotate(360deg); } }

.cred-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.cred-list li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.cred-list li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0.2); transform-origin: 0 50%; transition: transform 0.5s ease; }
.cred-list li:hover::before { transform: scaleX(1); }
.cred-list p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }

/* Getting started */
.start-steps { counter-reset: start; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.start-steps li { counter-increment: start; position: relative; padding-top: 68px; }
.start-steps li::before {
  content: counter(start);
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font: 600 1.25rem var(--serif);
  box-shadow: 0 0 0 0 rgba(180, 148, 74, 0.5);
  animation: ring 3s ease-out infinite;
}
.start-steps li:nth-child(2)::before { animation-delay: 1s; }
.start-steps li:nth-child(3)::before { animation-delay: 2s; }
.start-steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 64px; right: -24px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line)); }
.start-steps p { margin-top: 10px; color: var(--muted); }

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(180, 148, 74, 0.5); }
  60%, 100% { box-shadow: 0 0 0 14px rgba(180, 148, 74, 0); }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.contact-details { margin: 36px 0 0; display: grid; gap: 22px; }
.contact-details dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.contact-details dd { margin: 4px 0 0; font-size: 1.08rem; color: var(--navy); font-weight: 500; }
.contact-details a { text-decoration: none; border-bottom: 2px solid var(--gold); transition: color 0.2s ease; }
.contact-details a:hover { color: var(--gold-deep); }

.contact-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 36px; box-shadow: 0 24px 60px -36px rgba(5, 46, 83, 0.5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field label span { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd3de;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(180, 148, 74, 0.35); }
.field .invalid { border-color: #b3261e; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { width: 100%; margin-top: 4px; }
.form-status { margin-top: 16px; font-weight: 500; font-size: 0.98rem; animation: fade-up 0.4s ease both; }
.form-status:empty { display: none; }
.form-status.ok { color: #1a6b3c; background: #e9f5ee; border-radius: 10px; padding: 12px 14px; }
.form-status.err { color: #8f1d17; background: #fbeceb; border-radius: 10px; padding: 12px 14px; }
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--paper); color: var(--muted); padding: 52px 0 32px; font-size: 0.95rem; border-top: 3px solid var(--gold); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 56px; width: auto; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.site-footer nav a { color: var(--navy); font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.site-footer nav a:hover { color: var(--gold-deep); }
.footer-legal { padding-top: 24px; display: grid; gap: 6px; font-size: 0.85rem; }

/* Reveal on scroll (classes added by JS only) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

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

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .cred-list { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-nav { gap: 22px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 40px; }
  .hero-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art svg { max-width: 340px; }
  .contact-grid { gap: 40px; }
  .stat-row, .start-steps { grid-template-columns: 1fr; }
  .start-steps { gap: 32px; }
  .start-steps li::after { display: none; }
  .header-inner { min-height: 70px; }
  .brand img { height: 44px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(5, 46, 83, 0.4);
    display: none;
  }
  .site-nav.open { display: flex; animation: fade-up 0.25s ease both; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; background: none; }
  .site-nav .btn { margin-top: 18px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .brand img { height: 40px; }
  .service-card { padding: 28px 22px; }
  .contact-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .steps, .why-grid, .cred-list, .trust-strip { grid-template-columns: 1fr; }
  .trust-strip li, .trust-strip li + li { padding: 18px 0; border-left: 0; }
  .trust-strip li + li { border-top: 1px solid var(--line); }
  .hero-actions .btn { width: 100%; }
  .float-hex { opacity: 0.28; }
  .footer-logo { height: 46px; }
}

/* ---------- Phones, tablets and touch screens ---------- */
.nowrap { white-space: nowrap; }
a, button { -webkit-tap-highlight-color: rgba(180, 148, 74, 0.25); }

/* Keep content clear of notches and rounded corners (phones held sideways) */
.wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.site-footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }

/* Touch screens: a tap should not leave cards stuck in their "hover" pose */
@media (hover: none) {
  .btn:hover, .service-card:hover, .steps li:hover, .stat:hover { transform: none; }
  .service-card:hover .service-icon { transform: none; }
}

@media (max-width: 860px) {
  /* Comfortable finger-sized targets (at least 44px tall) */
  .brand { min-height: 44px; align-items: center; }
  .text-link, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-details a { display: inline-block; padding: 10px 0; }
  .site-footer nav { gap: 4px 26px; }
  .btn { min-height: 48px; }

  /* The open menu scrolls by itself if it is taller than the screen */
  .site-nav { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}

@media (max-width: 600px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .section { padding: 60px 0; }
  h1 { font-size: clamp(1.75rem, 8.6vw, 2.2rem); }
  .lead { font-size: 1.06rem; }
  .section-head p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { font-size: 1.02rem; }

  /* Process steps: number beside the text, so seven steps take less scrolling */
  .steps { gap: 12px; }
  .steps li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 12px; align-items: start; padding: 18px 18px 20px; }
  .steps li::before { grid-row: 1 / span 2; margin-bottom: 0; padding-top: 2px; }
  .steps li > * { grid-column: 2; }

  /* Honeycomb: use the full screen width so its labels stay readable */
  .hero-art svg { width: min(100% + 56px, 420px); max-width: none; margin-left: calc((100% - min(100% + 56px, 420px)) / 2); }
  .hex-label text { font-size: 13.5px; }
  .hex-core-label text { font-size: 18px; }
}

/* Large touch screens (tablets held sideways): finger-sized links there too */
@media (pointer: coarse) {
  .site-nav a:not(.btn), .text-link, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-details a { display: inline-block; padding: 10px 0; }
  .site-footer nav { gap: 4px 26px; }
}

/* Tablets held upright: a larger honeycomb with readable labels */
@media (min-width: 601px) and (max-width: 860px) {
  .hero-art svg { max-width: 460px; }
}

/* Small phones */
@media (max-width: 380px) {
  .text-link { font-size: 0.95rem; }
}

/* Very narrow phones and folded screens */
@media (max-width: 300px) {
  .nowrap { white-space: normal; }
  h1 { font-size: 1.6rem; }
}
@media (max-width: 340px) {
  .brand img { height: 36px; }
  .contact-form { padding: 22px 16px; }
  .service-card { padding: 24px 18px; }
}

/* Phones held sideways: a shorter header leaves more room for the page */
@media (max-height: 480px) and (orientation: landscape) {
  html { scroll-padding-top: 64px; }
  .header-inner { min-height: 56px; }
  .brand img { height: 36px; }
  .site-nav { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); }
}
