/* ==========================================================================
   Merit Grove Tax & Advisory
   Palette taken from the brand mark: midnight navy + antique gold + ivory
   ========================================================================== */

:root {
  --ink: #050f1d;
  --navy-900: #071528;
  --navy-800: #0a1d36;
  --navy-700: #0f2a4c;
  --navy-600: #173a63;
  --gold: #c9a45c;
  --gold-light: #e6c98a;
  --gold-deep: #9c7a3c;
  --ivory: #f4eee2;
  --ivory-70: rgba(244, 238, 226, 0.72);
  --ivory-50: rgba(244, 238, 226, 0.52);
  --line: rgba(244, 238, 226, 0.12);
  --line-gold: rgba(201, 164, 92, 0.35);

  --gold-grad: linear-gradient(135deg, #e6c98a 0%, #c9a45c 45%, #a8843f 100%);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(6rem, 12vw, 11rem);
  --radius: 22px;
  --nav-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--navy-900); }

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

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  padding-bottom: 0.06em;
}

em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.h2 em, .hero__title em, .band__title em, .promise__quote em, .intro__statement em {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: var(--ivory-70);
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.eyebrow .rule {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

/* Masked line reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line__inner { display: inline-block; will-change: transform; }

/* ---------- Buttons (pill with nested icon) ---------- */

.btn {
  --pad: 0.45rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: var(--pad) var(--pad) var(--pad) 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.6s var(--ease-spring), background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.05rem;
  transition: transform 0.6s var(--ease-spring), background-color 0.5s var(--ease-out);
}

.btn:hover .btn__icon { transform: translate(3px, -2px) scale(1.06); }

.btn--gold {
  background: var(--gold-grad);
  color: var(--navy-900);
  box-shadow: 0 10px 30px -12px rgba(201, 164, 92, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--gold .btn__icon { background: rgba(7, 21, 40, 0.92); color: var(--gold-light); }
.btn--gold:hover { box-shadow: 0 18px 44px -14px rgba(201, 164, 92, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.btn--ghost {
  padding: 0 1.7rem;
  height: calc(2.5rem + 0.9rem);
  color: var(--ivory);
  background: rgba(7, 21, 40, 0.35);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.28);
}
.btn--ghost:hover { background: rgba(244, 238, 226, 0.08); box-shadow: inset 0 0 0 1px var(--gold); }

.btn--sm { font-size: 0.85rem; padding-left: 1.25rem; --pad: 0.32rem; }
.btn--sm .btn__icon { width: 2.1rem; height: 2.1rem; font-size: 0.95rem; }

.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Preloader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.loader__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--ink);
  z-index: 0;
}
.loader__panel--top { top: 0; }
.loader__panel--bottom { bottom: 0; }

.loader__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2rem;
}

.loader__mark { width: clamp(84px, 9vw, 120px); opacity: 0; }

.loader__bar {
  width: 140px;
  height: 1px;
  background: rgba(244, 238, 226, 0.12);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}

.loader { display: none; }
.js .loader { display: grid; }
.js.reduced .loader { display: none; }

/* ---------- Grain + cursor ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold-light);
  pointer-events: none;
  mix-blend-mode: normal;
  display: none;
  place-items: center;
  transition: width 0.5s var(--ease-spring), height 0.5s var(--ease-spring), margin 0.5s var(--ease-spring), background-color 0.4s var(--ease-out);
}

.cursor__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-900);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(230, 201, 138, 0.18); }

@media (pointer: fine) {
  .has-cursor .cursor { display: grid; }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 60;
  padding-inline: var(--gutter);
  transition: transform 0.8s var(--ease-spring);
}

.nav.is-hidden { transform: translateY(-140%); }

.nav__inner {
  max-width: 1360px;
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 0.6rem 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out), backdrop-filter 0.6s var(--ease-out);
}

.nav.is-scrolled .nav__inner {
  background: rgba(7, 21, 40, 0.72);
  border-color: rgba(244, 238, 226, 0.09);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav__brand { display: flex; align-items: center; gap: 0.85rem; }
.nav__mark { width: 42px; height: auto; }
.nav__wordmark { display: grid; line-height: 1; }
.nav__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__tag {
  margin-top: 0.3rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav__links { display: flex; gap: 1.7rem; }
.nav__links a {
  position: relative;
  font-size: 0.9rem;
  color: var(--ivory-70);
  transition: color 0.4s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-spring);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: rgba(244, 238, 226, 0.08);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: var(--ivory);
  transition: transform 0.6s var(--ease-spring);
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 2.5rem;
  background: rgba(5, 15, 29, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease-out); }

.menu__links { display: grid; gap: 0.4rem; }
.menu__links a { display: block; overflow: hidden; font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1.15; }
.menu__links a span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-spring);
}
.menu-open .menu__links a span { transform: translateY(0); }
.menu-open .menu__links a:nth-child(2) span { transition-delay: 0.06s; }
.menu-open .menu__links a:nth-child(3) span { transition-delay: 0.12s; }
.menu-open .menu__links a:nth-child(4) span { transition-delay: 0.18s; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 60% 40%;
  transform-origin: 60% 45%;
  will-change: transform;
}

/* Drifting mist: element is 200% wide and the texture tiles at 50%,
   so translating by -50% loops seamlessly. */
.hero__mist {
  position: absolute;
  left: 0;
  bottom: -6%;
  width: 200%;
  height: 62%;
  pointer-events: none;
  background: url("../assets/img/mist.webp") repeat-x left bottom / 50% 100%;
  mix-blend-mode: screen;
  will-change: transform;
}

.hero__mist--back {
  opacity: 0.16;
  animation: mistDrift 120s linear infinite;
}

.hero__mist--front {
  bottom: -18%;
  height: 48%;
  opacity: 0.12;
  transform: scaleY(-1);
  animation: mistDriftReverse 75s linear infinite;
}

@keyframes mistDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes mistDriftReverse {
  from { transform: translate3d(-50%, 0, 0) scaleY(0.9); }
  to { transform: translate3d(0, 0, 0) scaleY(0.9); }
}

.hero__dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Slide indicators */
.hero__nav {
  position: absolute;
  left: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter)));
  bottom: 2.2rem;
  z-index: 2;
  display: flex;
  gap: 1.6rem;
}

.hero__dot {
  display: grid;
  gap: 0.7rem;
  width: clamp(110px, 10vw, 150px);
  padding: 0.6rem 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.hero__dot-label {
  display: flex;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ivory-50);
  white-space: nowrap;
  transition: color 0.6s var(--ease-out);
}

.hero__dot-num { color: var(--gold); font-weight: 600; }

.hero__dot-bar {
  position: relative;
  display: block;
  height: 1px;
  background: rgba(244, 238, 226, 0.22);
  overflow: hidden;
}

.hero__dot-bar span {
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}

.reduced .hero__nav { display: none; }

.hero__dot:hover .hero__dot-label,
.hero__dot.is-active .hero__dot-label { color: var(--ivory); }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 15, 29, 0.94) 0%, rgba(5, 15, 29, 0.76) 38%, rgba(5, 15, 29, 0.14) 74%),
    linear-gradient(180deg, rgba(5, 15, 29, 0.55) 0%, rgba(5, 15, 29, 0) 26%, rgba(5, 15, 29, 0) 62%, var(--navy-900) 100%);
}

.hero__content {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 8rem;
}

.hero__eyebrow { margin-bottom: 2rem; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 8.2vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.hero__sub {
  margin-top: 2rem;
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--ivory-70);
}

.hero__cta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-50);
}
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(244, 238, 226, 0.18);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollHint 2.4s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ---------- Intro ---------- */

.intro {
  position: relative;
  padding-block: var(--section);
  background: var(--navy-900);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.intro__mark { width: 100%; max-width: 110px; margin-top: 0.8rem; opacity: 0.9; }

.intro__statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.1vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.intro__statement .word { opacity: 0.16; transition: none; }

.pillars {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 2.4rem 2rem 0 0;
}
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }

.pillar__icon { font-size: 1.8rem; color: var(--gold); }
.pillar h3 {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
}
.pillar p { margin-top: 0.6rem; color: var(--ivory-70); max-width: 34ch; }

/* ---------- Services (horizontal pan) ---------- */

.services {
  position: relative;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.services__pin {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services__track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding-inline: var(--gutter) 12vw;
  will-change: transform;
}

.services__intro {
  flex: 0 0 auto;
  width: min(520px, 80vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding-right: 3vw;
}

.services__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.svc {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, 27vw, 400px);
  min-height: min(500px, 64dvh);
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2.2rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 58, 99, 0.55) 0%, rgba(10, 29, 54, 0.6) 100%);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.8s var(--ease-spring), box-shadow 0.6s var(--ease-out);
}

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 60% at 100% 0%, rgba(201, 164, 92, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.svc:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px var(--line-gold), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.svc:hover::before { opacity: 1; }

.svc__num {
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 164, 92, 0.6);
}

.svc__icon { margin-top: auto; font-size: 2rem; color: var(--gold); }

.svc__title {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.svc__body { margin-top: 0.9rem; color: var(--ivory-70); font-size: 0.97rem; }

.svc__tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.svc__tags li {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ivory-70);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.14);
}

.svc--feature { width: clamp(340px, 34vw, 500px); }

.svc--tech {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(201, 164, 92, 0.2), transparent 65%),
    linear-gradient(160deg, rgba(23, 58, 99, 0.7) 0%, rgba(10, 29, 54, 0.75) 100%);
  box-shadow: inset 0 0 0 1px var(--line-gold), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.svc__bg { position: absolute; inset: 0; z-index: -2; }
.svc__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.svc--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 15, 29, 0.35) 0%, rgba(5, 15, 29, 0.55) 40%, rgba(5, 15, 29, 0.95) 100%);
}
.svc--image:hover .svc__bg img { transform: scale(1.06); }
.svc--image .svc__body, .svc--image .svc__tags li { color: rgba(244, 238, 226, 0.86); }
.svc--image .svc__tags li { background: rgba(7, 21, 40, 0.35); }
.svc--image .svc__num { -webkit-text-stroke-color: rgba(230, 201, 138, 0.85); }

.services__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.5rem;
  height: 1px;
  background: var(--line);
}
.services__progress span {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Band (clip-path expand) ---------- */

.band {
  position: relative;
  background: var(--navy-800);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.band__frame {
  position: relative;
  height: 110dvh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  clip-path: inset(9% 7% 9% 7% round 28px);
  will-change: clip-path;
}

.band__img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}

.band__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 30% 55%, rgba(5, 15, 29, 0.72) 0%, rgba(5, 15, 29, 0.2) 70%),
    linear-gradient(180deg, rgba(5, 15, 29, 0.35), rgba(5, 15, 29, 0.1) 40%, rgba(5, 15, 29, 0.5));
}

.band__content { position: relative; }

.band__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.band__sub {
  margin-top: 1.8rem;
  max-width: 42ch;
  color: rgba(244, 238, 226, 0.84);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

/* ---------- Approach ---------- */

.approach {
  position: relative;
  padding-block: var(--section);
  background: var(--navy-800);
  overflow: hidden;
}

.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.approach__media {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
}

/* Double-bezel frame */
.frame {
  position: relative;
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 8px);
  background: rgba(244, 238, 226, 0.04);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.08);
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  transform: scale(1.18);
  will-change: transform;
}
.frame { overflow: hidden; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.approach__body .h2 { margin-top: 1.4rem; }

.steps {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
}

.steps__rail {
  position: absolute;
  left: 1.35rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: var(--line);
}
.steps__rail span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleY(0);
  transform-origin: top;
}

.step {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 1.8rem;
  padding-block: 2rem;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ivory-50);
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.6s var(--ease-out);
}

.step h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ivory-50);
  transition: color 0.6s var(--ease-out);
}
.step p { margin-top: 0.6rem; color: var(--ivory-50); max-width: 44ch; transition: color 0.6s var(--ease-out); }

.step.is-active .step__num { color: var(--navy-900); background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 164, 92, 0.14); }
.step.is-active h3 { color: var(--ivory); }
.step.is-active p { color: var(--ivory-70); }

/* ---------- Team ---------- */

.team {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: var(--section);
  background: var(--navy-800);
}

.team__head { display: grid; gap: 1.4rem; max-width: 760px; }
.team__head .lead { max-width: 60ch; }

.team__grid {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.member--offset { margin-top: clamp(3rem, 8vw, 7rem); }

.member__frame {
  position: relative;
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 8px);
  background: rgba(244, 238, 226, 0.04);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.08);
  overflow: hidden;
}

.member__frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
  transition: scale 1.4s var(--ease-out);
}

.member__frame::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 29, 54, 0) 60%, rgba(10, 29, 54, 0.45) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.member:hover .member__frame img { scale: 1.03; }

.member__body { padding: 2rem 0.5rem 0; }

.member__role {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.member__name {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.member__creds {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ivory-70);
}
.member__creds i { font-size: 1.15rem; color: var(--gold); }

.member__lead {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: rgba(244, 238, 226, 0.88);
}

.member__body p:not([class]) { margin-top: 1rem; color: var(--ivory-70); }


/* ---------- Clients bento ---------- */

.clients {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: var(--section);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.clients__title { max-width: 16ch; }

.bento {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 1.1rem;
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.08);
}

.tile--a { grid-column: 1 / span 8; grid-row: span 2; min-height: 560px; }
.tile--b { grid-column: 9 / span 4; grid-row: span 2; }
.tile--c { grid-column: 1 / span 5; min-height: 380px; }
.tile--d { grid-column: 6 / span 7; min-height: 380px; }

.tile__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tile__media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: scale(1.02);
  transition: scale 1.4s var(--ease-out);
}
.tile:hover .tile__media img { scale: 1.06; }
.tile--a::after, .tile--b::after, .tile--c::after, .tile--d::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 15, 29, 0) 35%, rgba(5, 15, 29, 0.88) 100%);
}
.tile--c::after, .tile--d::after {
  background: linear-gradient(180deg, rgba(5, 15, 29, 0.15) 0%, rgba(5, 15, 29, 0.55) 45%, rgba(5, 15, 29, 0.92) 100%);
}

.tile__body { max-width: 34ch; }
.tile__icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 1.2rem; display: block; }
.tile h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  font-weight: 500;
  line-height: 1.05;
}
.tile p { margin-top: 0.7rem; color: rgba(244, 238, 226, 0.8); }

.tile__arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.15rem;
  background: rgba(7, 21, 40, 0.5);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.7s var(--ease-spring), background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.tile:hover .tile__arrow { transform: rotate(45deg); background: var(--gold); color: var(--navy-900); }


/* ---------- Sub-page hero ---------- */

.page-hero {
  position: relative;
  min-height: min(78dvh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__img { width: 100%; height: 115%; object-fit: cover; object-position: 60% 40%; will-change: transform; }

.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 15, 29, 0.94) 0%, rgba(5, 15, 29, 0.72) 40%, rgba(5, 15, 29, 0.2) 80%),
    linear-gradient(180deg, rgba(5, 15, 29, 0.55) 0%, rgba(5, 15, 29, 0) 30%, rgba(5, 15, 29, 0.2) 65%, var(--navy-900) 100%);
}

.page-hero__content { padding-top: calc(var(--nav-h) + 5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.page-hero__eyebrow { margin-bottom: 1.6rem; }
.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-hero__sub { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ivory-70); }

.nav__links a[aria-current="page"] { color: var(--ivory); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  padding: 4rem var(--gutter);
  text-align: center;
  background: radial-gradient(60% 50% at 50% 40%, rgba(23, 58, 99, 0.55), transparent 70%), var(--navy-900);
}
.notfound__mark { width: 84px; margin-bottom: 1rem; }
.notfound__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; }
.notfound__title em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound .lead { max-width: 42ch; }
.notfound__actions { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ---------- Calculators ---------- */

.calc {
  position: relative;
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}

.calc__head { display: grid; gap: 1.4rem; max-width: 760px; }

.calc__tabs {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}
.calc__tabs::-webkit-scrollbar { display: none; }

.calc__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ivory-70);
  background: rgba(244, 238, 226, 0.04);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.14);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.calc__tab i { font-size: 1.1rem; color: var(--gold); transition: color 0.4s var(--ease-out); }
.calc__tab:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-gold); }
.calc__tab.is-active { color: var(--navy-900); background: var(--gold-grad); box-shadow: none; }
.calc__tab.is-active i { color: var(--navy-900); }

.calc__panel {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.calc__inputs {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(244, 238, 226, 0.03);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.09);
}

.calc__intro { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.calc__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.calc__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.1; }
.calc__desc { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ivory-70); }

.calc__fields { margin-top: 1.6rem; display: grid; gap: 1.2rem; }

.calc__field > label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; font-weight: 500; color: rgba(244, 238, 226, 0.86); margin-bottom: 0.5rem; }
.calc__field output { color: var(--gold-light); font-weight: 600; }

.calc__input {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(244, 238, 226, 0.18);
  background: rgba(244, 238, 226, 0.04);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.calc__input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.14); }
.calc__input span { padding-left: 1rem; color: var(--gold-light); font-weight: 500; }
.calc__input input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  outline: none;
  background: none;
  color: var(--ivory);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.calc__input--money input { padding-left: 0.4rem; }

.calc__field .select select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 238, 226, 0.18);
  background: rgba(244, 238, 226, 0.04);
  color: var(--ivory);
  outline: none;
}
.calc__field .select select:focus { border-color: var(--gold); }

.calc__field > label.calc__toggle { justify-content: flex-start; margin-bottom: 0; }
.calc__toggle { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; color: rgba(244, 238, 226, 0.86); cursor: pointer; }
.calc__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.calc__switch {
  position: relative;
  flex: none;
  width: 2.8rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(244, 238, 226, 0.14);
  transition: background-color 0.4s var(--ease-out);
}
.calc__switch::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--ivory);
  transition: transform 0.5s var(--ease-spring);
}
.calc__toggle input:checked + .calc__switch { background: var(--gold); }
.calc__toggle input:checked + .calc__switch::after { transform: translateX(1.2rem); background: var(--navy-900); }
.calc__toggle input:focus-visible + .calc__switch { outline: 1px solid var(--gold-light); outline-offset: 3px; }

.calc__field input[type="range"] { width: 100%; accent-color: var(--gold); }

.calc__shell { position: sticky; top: calc(var(--nav-h) + 2rem); }

.calc__result {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(201, 164, 92, 0.14), transparent 60%),
    rgba(7, 21, 40, 0.92);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.calc__label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.calc__headline {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.calc__summary { margin-top: 0.9rem; color: var(--ivory-70); max-width: 48ch; }

.calc__detail { position: relative; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.calc__breakdown { margin: 0; display: grid; }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(244, 238, 226, 0.06); font-size: 0.9rem; }
.calc__row dt { color: var(--ivory-70); }
.calc__row dd { margin: 0; color: var(--ivory); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.calc__notes { margin-top: 1rem; font-size: 0.78rem; line-height: 1.55; color: var(--ivory-50); }

/* Locked state: breakdown is blurred behind the email gate */
.calc__detail.is-locked { min-height: 430px; }
.calc__detail.is-locked .calc__breakdown {
  filter: blur(7px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  max-height: 430px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.calc__gate {
  position: absolute;
  inset: 1.4rem 0 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  padding: 1rem clamp(0rem, 2vw, 1.5rem);
  text-align: center;
}
.calc__gate[hidden] { display: none; }
.calc__gate-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--navy-900);
  background: var(--gold-grad);
  box-shadow: 0 10px 30px -10px rgba(201, 164, 92, 0.6);
}
.calc__gate-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.calc__gate-text { font-size: 0.88rem; color: var(--ivory-70); max-width: 38ch; }
.calc__gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; margin-top: 0.4rem; }
.calc__gate input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 238, 226, 0.22);
  background: rgba(7, 21, 40, 0.85);
  color: var(--ivory);
  outline: none;
}
.calc__gate input::placeholder { color: rgba(244, 238, 226, 0.55); }
.calc__gate input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.14); }
.calc__gate .btn { margin-top: 0.3rem; }
.calc__gate-error { font-size: 0.8rem; color: #f6c3b4; }
.calc__gate-note { font-size: 0.74rem; color: var(--ivory-50); }

.calc__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.calc__actions[hidden] { display: none; }
.calc__send {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: none;
  font-size: 0.85rem;
  color: var(--gold-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.calc__send:disabled { color: var(--ivory-50); text-decoration: none; cursor: default; }

.calc__disclaimer {
  margin-top: 2rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--ivory-50);
  max-width: 80ch;
}
.calc__disclaimer i { color: var(--gold); font-size: 1rem; margin-top: 0.15rem; }

@media (max-width: 899px) {
  .calc__panel { grid-template-columns: 1fr; }
  .calc__shell { position: static; }
}

@media (max-width: 520px) {
  .calc__gate-row { grid-template-columns: 1fr; }
  .calc__detail.is-locked { min-height: 500px; }
}

.calc--page { padding-top: clamp(2rem, 4vw, 3rem); }
.calc--page .calc__tabs { margin-top: 0; }

/* Homepage teaser */
.calc-teaser { padding-block: clamp(4rem, 8vw, 7rem); background: var(--navy-900); }
.calc-teaser__head { display: grid; gap: 1rem; max-width: 720px; }
.calc-teaser__grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.calc-link {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 190px;
  padding: 1.5rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(244, 238, 226, 0.03);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.1);
  transition: transform 0.7s var(--ease-spring), box-shadow 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}
.calc-link > i:first-child { font-size: 1.8rem; color: var(--gold); margin-bottom: auto; padding-bottom: 1.6rem; }
.calc-link strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.1; }
.calc-link span { font-size: 0.84rem; color: var(--ivory-70); }
.calc-link__arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1rem;
  color: var(--ivory-50);
  transition: transform 0.6s var(--ease-spring), color 0.4s var(--ease-out);
}
.calc-link:hover { transform: translateY(-6px); background: rgba(244, 238, 226, 0.05); box-shadow: inset 0 0 0 1px var(--line-gold), 0 30px 60px -35px rgba(0, 0, 0, 0.7); }
.calc-link:hover .calc-link__arrow { transform: translate(3px, -3px); color: var(--gold-light); }

/* Calculators page closing CTA */
.calc-cta { padding-block: clamp(4rem, 8vw, 7rem); background: var(--navy-900); border-top: 1px solid var(--line); }
.calc-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.calc-cta .h2 { max-width: 18ch; }
.calc-cta .lead { margin-top: 1rem; }

@media (max-width: 1080px) {
  .calc-teaser__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .calc-teaser__grid { grid-template-columns: 1fr 1fr; }
  .calc-link { min-height: 170px; }
}

/* ---------- Promise + marquee ---------- */

.promise {
  position: relative;
  padding-bottom: clamp(5rem, 9vw, 8rem);
  background: var(--navy-900);
  overflow: hidden;
}

.marquee {
  padding-block: 2.2rem;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 226, 0.4);
}
.marquee__track i { font-size: 1.5rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

.promise__inner {
  padding-top: var(--section);
  display: grid;
  justify-items: center;
  text-align: center;
}

.promise__quote-icon { font-size: 3rem; color: var(--gold); }

.promise__quote {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.promise__quote .word { opacity: 0.16; }

.promise__cite {
  margin-top: 2.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.contact__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.contact__media img { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; object-position: 50% 30%; }

.contact__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--navy-900) 0%, rgba(7, 21, 40, 0.25) 24%, rgba(5, 15, 29, 0.15) 62%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5, 15, 29, 0.8) 0%, rgba(5, 15, 29, 0.2) 55%, rgba(5, 15, 29, 0.35) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.contact__copy .lead { margin-top: 1.6rem; }

.contact__details { margin-top: 2.6rem; display: grid; gap: 1rem; }
.contact__details li { display: flex; align-items: center; gap: 1rem; color: var(--ivory-70); }
.contact__details i {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.contact__details a:hover { color: var(--gold-light); }

/* Double-bezel shell for the form */
.shell {
  padding: 0.55rem;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(244, 238, 226, 0.05);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.1);
}

.form, .form__success {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--radius);
  background: rgba(7, 21, 40, 0.9);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }

.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.82rem; font-weight: 500; color: rgba(244, 238, 226, 0.86); }
.field .opt { color: var(--ivory-50); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 238, 226, 0.18);
  background: rgba(244, 238, 226, 0.04);
  color: var(--ivory);
  outline: none;
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(244, 238, 226, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(244, 238, 226, 0.06);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.16);
}

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.select select option { background: var(--navy-800); color: var(--ivory); }
.select i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }

.field__error { display: none; font-size: 0.8rem; color: #f2a58e; }
.field.is-invalid input { border-color: #e2866c; }
.field.is-invalid .field__error { display: block; }

.form__note { font-size: 0.8rem; color: var(--ivory-50); text-align: center; }

.form__honeypot { display: none !important; }

.form__error {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #f6c3b4;
  background: rgba(226, 134, 108, 0.12);
  box-shadow: inset 0 0 0 1px rgba(226, 134, 108, 0.35);
}
.form__error a { color: var(--gold-light); text-decoration: underline; }

.form.is-sending button[type="submit"] { opacity: 0.7; pointer-events: none; }
.form.is-sending .btn__icon i { animation: sendPulse 0.9s ease-in-out infinite alternate; }
@keyframes sendPulse { from { transform: translate(0, 0); } to { transform: translate(3px, -3px); } }

.form__success { display: grid; justify-items: start; gap: 1rem; min-height: 420px; align-content: center; }
.form__success[hidden] { display: none; }
.form__success-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  font-size: 1.5rem;
  background: var(--gold-grad);
  color: var(--navy-900);
}
.form__success h3 { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; }
.form__success p { color: var(--ivory-70); max-width: 36ch; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: 2.5rem;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.footer__logo { width: min(300px, 70%); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer__cols h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer__cols ul { margin-top: 1.3rem; display: grid; gap: 0.75rem; }
.footer__cols a { color: var(--ivory-70); transition: color 0.4s var(--ease-out); display: inline-flex; align-items: center; gap: 0.4rem; overflow-wrap: anywhere; }
.footer__cols a:hover { color: var(--ivory); }

.footer__ack {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 70ch;
  font-size: 0.88rem;
  color: var(--ivory-50);
}

.footer__bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.8rem;
  color: var(--ivory-50);
}
.footer__top-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ivory-70); }
.footer__top-link:hover { color: var(--gold-light); }

/* ---------- Chat assistant ---------- */

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

.chat {
  position: fixed;
  right: var(--gutter);
  bottom: 1.4rem;
  z-index: 85;
  display: grid;
  justify-items: end;
  gap: 0.9rem;
}

.menu-open .chat, .is-loading .chat { opacity: 0; pointer-events: none; }

.chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.25rem 0.4rem 0.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 21, 40, 0.82);
  color: var(--ivory);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-gold), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.5s var(--ease-out), opacity 0.4s var(--ease-out), background-color 0.5s var(--ease-out);
}

.chat__launcher:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 24px 60px -20px rgba(201, 164, 92, 0.35); }

.chat__launcher-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--navy-900);
  background: var(--gold-grad);
}

/* Gentle pulse ring so the launcher is noticed without being noisy */
.chat__launcher-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(230, 201, 138, 0.6);
  animation: chatPulse 2.8s var(--ease-out) infinite;
}

@keyframes chatPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.chat.is-open .chat__launcher { opacity: 0; pointer-events: none; }

.chat__panel {
  position: fixed;
  right: var(--gutter);
  bottom: 1.4rem;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  height: min(640px, calc(100dvh - 7rem));
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(7, 21, 40, 0.94);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.12), 0 40px 100px -30px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
  transform-origin: 100% 100%;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 58, 99, 0.45), rgba(7, 21, 40, 0));
}

.chat__avatar { width: 34px; height: auto; }

.chat__title { display: grid; line-height: 1.25; flex: 1; }
.chat__title strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }

.chat__status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; color: var(--ivory-50); }
.chat__dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd4a0; box-shadow: 0 0 0 3px rgba(127, 212, 160, 0.18); }
.chat.is-offline .chat__dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.2); }

.chat__close {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 238, 226, 0.06);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-out);
}
.chat__close:hover { background: rgba(244, 238, 226, 0.14); }

.chat__log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.2rem 1.1rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 238, 226, 0.2) transparent;
}

.chat__msg {
  max-width: 86%;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat__msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: rgba(244, 238, 226, 0.06);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.08);
  color: rgba(244, 238, 226, 0.92);
}

.chat__msg--user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--gold-grad);
  color: var(--navy-900);
}

.chat__msg strong { font-weight: 600; color: var(--ivory); }
.chat__msg a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }

.chat__msg--note {
  align-self: center;
  max-width: 100%;
  padding: 0.3rem 0.8rem;
  font-size: 0.74rem;
  color: var(--ivory-50);
  background: none;
  box-shadow: none;
  text-align: center;
}

.chat__typing { display: inline-flex; gap: 4px; padding: 0.3rem 0; }
.chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: chatTyping 1.2s ease-in-out infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.3rem 1.1rem 0.8rem;
}

.chat__chip {
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.76rem;
  color: rgba(244, 238, 226, 0.86);
  background: rgba(244, 238, 226, 0.05);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.16);
  cursor: pointer;
  transition: box-shadow 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.chat__chip:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--gold); }
.chat__chip[data-chat-lead] { color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--line-gold); }

.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0 0.9rem;
  padding: 0.45rem 0.45rem 0.45rem 0.95rem;
  border-radius: 18px;
  background: rgba(244, 238, 226, 0.05);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 226, 0.16);
  transition: box-shadow 0.4s var(--ease-out);
}
.chat__form:focus-within { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(201, 164, 92, 0.12); }

.chat__form textarea {
  flex: 1;
  max-height: 120px;
  padding: 0.5rem 0;
  border: 0;
  outline: none;
  resize: none;
  background: none;
  color: var(--ivory);
  font-size: 0.9rem;
  line-height: 1.45;
}
.chat__form textarea::placeholder { color: rgba(244, 238, 226, 0.5); }

.chat__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--navy-900);
  background: var(--gold-grad);
  cursor: pointer;
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-spring);
}
.chat__send:active { transform: scale(0.94); }
.chat__send:disabled { opacity: 0.45; cursor: default; }

.chat__disclaimer {
  padding: 0.6rem 1.1rem 0.85rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(244, 238, 226, 0.55);
  text-align: center;
}

.chat__lead {
  display: grid;
  gap: 0.8rem;
  margin: 0 0.9rem 0.6rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(244, 238, 226, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.chat__lead-intro { font-size: 0.8rem; color: var(--ivory-70); }
.chat__field { display: grid; gap: 0.35rem; font-size: 0.76rem; color: rgba(244, 238, 226, 0.86); }
.chat__field input {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(244, 238, 226, 0.18);
  background: rgba(244, 238, 226, 0.04);
  color: var(--ivory);
  outline: none;
}
.chat__field input:focus { border-color: var(--gold); }
.chat__lead-error { font-size: 0.76rem; color: #f6c3b4; }
.chat__lead-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.chat__lead-cancel { border: 0; background: none; font-size: 0.78rem; color: var(--ivory-70); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chat__lead .btn { white-space: nowrap; }

@media (max-width: 520px) {
  .chat { right: 1rem; bottom: 1rem; }
  .chat__launcher-label { display: none; }
  .chat__launcher { padding: 0.35rem; }
  .chat__panel {
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 100dvh);
    border-radius: 22px 22px 0 0;
  }
}

/* ---------- Reveal defaults (JS sets initial state) ---------- */

.js [data-reveal] { opacity: 0; }
.reduced [data-reveal] { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav__inner { padding: 0 0.5rem 0 1.1rem; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }

  .nav { top: 0.7rem; }
  .nav__mark { width: 34px; }
  .nav__name { font-size: 1.1rem; }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 15, 29, 0.6) 0%, rgba(5, 15, 29, 0.55) 40%, rgba(5, 15, 29, 0.85) 75%, var(--navy-900) 100%);
  }
  .hero__img { object-position: 70% 50%; }
  .hero__scroll { display: none; }
  .hero__nav { left: var(--gutter); right: var(--gutter); bottom: 1.4rem; gap: 0.8rem; }
  .hero__dot { flex: 1; width: auto; }
  .hero__dot-label { font-size: 0.62rem; }
  .hero__dot-name { display: none; }
  .hero__mist { height: 45%; }

  .intro__grid { grid-template-columns: 1fr; }
  .intro__mark { max-width: 72px; }

  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar, .pillar + .pillar { padding: 2rem 0; border-left: 0; border-top: 1px solid var(--line); }

  /* Services stack vertically on small screens */
  .services { padding-block: var(--section); }
  .services__pin { height: auto; display: block; overflow: visible; }
  .services__track { flex-direction: column; padding-inline: var(--gutter); gap: 1rem; }
  .services__intro { width: 100%; padding: 0 0 2rem; }
  .svc, .svc--feature { width: 100%; min-height: 0; }
  .svc__icon { margin-top: 1.6rem; }
  .svc__num { font-size: 3.4rem; }
  .services__progress, .services__hint { display: none; }

  .band__frame { height: 80dvh; min-height: 520px; clip-path: inset(0 0 0 0 round 0); }

  .approach__grid { grid-template-columns: 1fr; }
  .approach__media { position: relative; top: 0; max-width: 520px; }

  .team__grid { grid-template-columns: 1fr; }
  .member--offset { margin-top: 1rem; }
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .tile--c, .tile--d { min-height: 340px; }

  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .btn { font-size: 0.88rem; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .hero__cta .btn--ghost { justify-content: center; }
  .nav__tag { letter-spacing: 0.28em; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .intro__statement .word, .promise__quote .word { opacity: 1; }
  .band__frame { clip-path: none; }
  .frame img { transform: none; }
}
