:root {
  --navy: #101c2f;
  --navy-deep: #0d1c2d;
  --navy-soft: #14283b;
  --ink: #16202b;
  --ink-alt: #14283b;
  --sand: #d0b073;
  --gold: #b67f16;
  --cream: #eee9df;
  --muted: #61676e;
  --muted-light: #aebac6;
  --white: #f8f6f0;
  --line: rgba(192, 150, 70, 0.2);
  --line-soft: #c9c4ba;
  --line-dark: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: "Cormorant Infant", "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.75rem, 6.7vw, 6rem); max-width: 8.5em; line-height: 1.29; }
h2 { font-size: clamp(2.25rem, 4.45vw, 4rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; }
p { margin: 0 0 1rem; }

.shell {
  width: min(1248px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(8, 16, 29, 0.94), rgba(8, 16, 29, 0.55), transparent);
  backdrop-filter: blur(4px);
  color: var(--white);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 16, 29, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Keep hash / nav scroll targets clear of the fixed header */
main [id] {
  scroll-margin-top: 5.5rem;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lang-switch {
  flex-shrink: 0;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom-color: transparent !important;
}

.lang-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 1px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lang-menu {
  width: max-content;
  min-width: 9.5rem;
  padding: 0.35rem;
}

.main-nav .lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 0;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-menu a[aria-current="page"] {
  color: var(--sand);
}

.lang-menu .lang-name {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.main-nav a,
.main-nav .nav-trigger {
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
}

.brand strong {
  display: block;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sand);
  font: 600 2rem/1 "Cormorant Garamond", serif;
  color: var(--sand);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 1.2rem;
  font-size: 0.78rem;
  min-width: 0;
}

.main-nav > a,
.main-nav > .nav-group,
.main-nav > .nav-cta {
  flex-shrink: 0;
}

.main-nav > a,
.nav-trigger {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0.7rem 0.2rem;
}

.main-nav a:not(.nav-cta) {
  border-bottom: 2px solid transparent;
}

.main-nav a.is-active:not(.nav-cta),
.main-nav .nav-trigger.is-active {
  color: var(--white);
  border-bottom-color: var(--sand);
  font-weight: 700;
}

.main-nav .nav-trigger {
  border-bottom: 2px solid transparent;
}

.nav-cta {
  border: 1px solid var(--sand) !important;
  padding: 0.7rem 1rem !important;
}

.nav-cta.is-active {
  background: rgba(208, 176, 115, 0.22);
  color: var(--white);
  border-color: var(--sand) !important;
}

.nav-group { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(340px, 88vw);
  padding: 0.7rem;
  background: #13233b;
  border: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s;
}

.dropdown a {
  display: block;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}

.dropdown a:hover {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.dropdown a:last-child { border: 0; }
.dropdown span { display: block; color: var(--muted-light); font-size: 0.7rem; }
.dropdown.mega { display: grid; grid-template-columns: 1fr 1fr; width: 520px; }
.nav-group.open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.menu-toggle { display: none; }

.menu-toggle:focus-visible,
.nav-trigger:focus-visible,
.button:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

/* Shared */
.eyebrow {
  font-size: 0.875rem;
  line-height: 19px;
  color: var(--gold);
  font-weight: 800;
  margin: 0;
}

.section .eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.section .eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow.light { color: #fff; font-weight: 700; }

.label-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.label-row.center {
  justify-content: center;
  margin-bottom: 1rem;
}

.accent-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.accent-rule.short { width: 48px; background: var(--sand); }
.accent-rule.light { background: #fff; }

.num {
  color: var(--sand);
  font-size: 0.875rem;
  font-weight: 800;
}

.section { padding: 4rem 0; }

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-head h2,
.section-head p { margin: 0; }

.section-head > p:last-child {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--sand);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    transform 0.22s ease,
    box-shadow 0.28s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--sand);
  color: var(--ink);
}

.button.primary:hover {
  background: #dbc08a;
  box-shadow: 0 10px 28px rgba(176, 140, 60, 0.22);
}

.button.ghost {
  background: rgba(12, 24, 41, 0.42);
  color: var(--white);
}

.button.ghost:hover {
  background: rgba(12, 24, 41, 0.62);
  border-color: #e6ce93;
}

.button.submit {
  width: 100%;
  border-color: #e6ce93;
}

.text-link {
  color: var(--sand);
  font-weight: 700;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  margin-top: auto;
  width: 100%;
  transition: color 0.25s ease, gap 0.28s ease;
}

.link-arrow:hover {
  color: var(--sand);
  gap: 1.45rem;
}

.circle-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  flex-shrink: 0;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease;
}

.link-arrow:hover .circle-arrow {
  transform: translateX(3px);
  background: rgba(182, 127, 22, 0.12);
  border-color: var(--sand);
}

.circle-arrow img {
  width: 18.5px;
  height: 18.5px;
}

/* Hero */
.hero {
  min-height: clamp(640px, 100vh, 920px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 10rem 0 7.5rem;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: -3%;
  background: url("images/hero.jpg") center/cover;
  animation: media-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.922) 0%, rgba(8, 17, 31, 0.62) 55%, rgba(8, 17, 31, 0.25)),
    linear-gradient(0deg, rgba(8, 17, 31, 0.8), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.hero-in {
  animation: hero-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-in:nth-child(1) { animation-delay: 0.12s; }
.hero-in:nth-child(2) { animation-delay: 0.26s; }
.hero-in:nth-child(3) { animation-delay: 0.4s; }
.hero-in:nth-child(4) { animation-delay: 0.54s; }

.hero-content .eyebrow { color: var(--sand); font-weight: 700; }

.hero-content h1 { margin: 0; }

.hero-content > p:not(.eyebrow) {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  max-width: 830px;
  color: #dfecfb;
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

/* Audiences */
.audiences { background: var(--cream); }

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--sand);
}

.audience-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 456px);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(1.5rem, 4.5vw, 3.5rem);
  align-content: start;
  min-width: 0;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.audience-card > * { grid-column: 1; }

.audience-card h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  line-height: 1.3;
}

.audience-card > p:not(.offer-label) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.audience-models {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
}

.models-label {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Infant", "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.02;
  color: var(--navy);
}

.audience-card .model-item h4 {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
  color: #000;
}

.audience-card .model-item span {
  font-size: 1rem;
  color: #000;
}

.audience-card .link-arrow {
  grid-column: 2;
  grid-row: 4;
  margin-top: 0.5rem;
}

/* Numbered label with accent rule, e.g. "01 ——" */
.direction::before,
.plan > div::before,
.team-cell::before {
  display: block;
  width: max-content;
  padding-right: calc(48px + 1.5rem);
  background: linear-gradient(var(--sand), var(--sand)) right center / 48px 1px no-repeat;
  color: var(--sand);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 19px;
}

.direction-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(208, 176, 115, 0.22);
  border-left: 1px solid rgba(208, 176, 115, 0.22);
  counter-reset: direction;
}

.direction {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 2rem 2rem 1rem;
  overflow: hidden;
  border-right: 1px solid rgba(208, 176, 115, 0.22);
  border-bottom: 1px solid rgba(208, 176, 115, 0.22);
  counter-increment: direction;
  transition: background 0.3s;
}

.direction:hover { background: rgba(208, 176, 115, 0.04); }

.direction::before {
  content: counter(direction, decimal-leading-zero);
  margin-bottom: 1rem;
}

.direction::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -36px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: url("icons/svc-01.png") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.direction:nth-child(2)::after { background-image: url("icons/svc-02.png"); }
.direction:nth-child(3)::after { background-image: url("icons/svc-03.png"); }
.direction:nth-child(4)::after { background-image: url("icons/svc-06.png"); }
.direction:nth-child(5)::after { background-image: url("icons/svc-04.png"); }
.direction:nth-child(6)::after { background-image: url("icons/svc-05.png"); }

.direction h3 {
  max-width: 13em;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.direction ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.direction li {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #c9d0da;
  font-size: 0.95rem;
  line-height: 1.45;
}

.direction li strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.direction li span { color: var(--muted-light); }

.direction li a {
  display: block;
  color: inherit;
}

.direction li a:hover strong { color: var(--sand); }

.has-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-photo {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  transform: scale(1.04);
  animation: media-drift 40s ease-in-out infinite alternate;
  will-change: transform;
}

.section-photo-chess {
  background-image: url("images/chess.jpg");
  background-size: cover;
  background-position: center center;
}

.section-photo-signing {
  background-image: url("images/signing.png");
  background-position: center 30%;
}

.has-photo > .shell {
  position: relative;
  z-index: 2;
}

.services {
  padding: 7.5rem 0 4rem;
  background: #0e1d2d;
  color: var(--white);
}

.services .section-photo {
  bottom: auto;
  height: min(732px, 100%);
}

.services.has-photo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: calc(min(732px, 100%) + 2px);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(14, 29, 45) 0%, rgba(8, 17, 31, 0.62) 55%, rgba(8, 17, 31, 0.25) 100%),
    linear-gradient(0deg, rgb(14, 29, 45) 17.5%, rgba(8, 17, 31, 0) 60%);
}

.services .section-head {
  gap: 2rem;
  max-width: 835px;
  margin-bottom: 4rem;
  padding: 2rem;
  border-left: 1px solid var(--sand);
}

.services .section-head .eyebrow { color: #fff; font-weight: 700; }

.services .section-head h2 {
  margin-top: -1rem;
  color: var(--white);
  line-height: 1.16;
}

.services .section-head > p:last-child {
  max-width: 620px;
  color: #c9d0da;
}

.offer-panel + .offer-panel {
  margin-top: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
}

.offer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
  align-items: end;
}

.offer-panel[hidden] { display: none; }

.offer-panel > div > p:not(.offer-label) { color: var(--muted); font-weight: 300; }

.offer-label {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.check-list li {
  display: flex;
  gap: 1.25rem;
  padding: 0.8rem 0 0.8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  color: #8f6c2b;
  flex-shrink: 0;
}

.offer-summary {
  padding: 0 2rem 1rem 0;
  background: transparent;
  color: var(--ink);
  align-self: end;
}

/* Standalone offer pages keep a filled summary panel */
main > .offer-summary,
section.offer-summary {
  display: block;
  padding: 2rem;
  margin-top: 2rem;
  background: var(--navy-deep);
  color: var(--white);
}

main > .offer-summary h3,
section.offer-summary h3,
main > .offer-summary h4,
section.offer-summary h4 {
  color: var(--white);
}

main > .offer-summary p,
section.offer-summary p {
  color: var(--muted-light);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 1rem;
}

.offer-summary h4 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 2rem;
}

.model-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.model-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.model-item img {
  width: 58px;
  height: 54px;
  object-fit: contain;
  opacity: 0.8;
  flex-shrink: 0;
}

.model-item b {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.model-item span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
}

/* Business board */
.business-board {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7.5rem 6vw;
  color: var(--white);
}

.board-media {
  position: absolute;
  inset: 0;
  background: url("images/chess.jpg") center/cover;
}

.board-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(13, 28, 44) 0%, rgba(8, 17, 31, 0.62) 55%, rgba(8, 17, 31, 0.25)),
    linear-gradient(0deg, rgb(14, 29, 45) 17.5%, rgba(8, 17, 31, 0) 60%);
}

.board-content {
  position: relative;
  z-index: 1;
  max-width: 835px;
  padding: 2rem;
  border-left: 1px solid var(--sand);
  background: transparent;
}

.board-content h2 { color: var(--white); }
.board-content p { color: #c9d0da; max-width: 620px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  min-height: 284px;
  padding: 2rem;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.3s;
  background: transparent;
}

.service-card:hover {
  background: rgba(208, 176, 115, 0.06);
}

.service-icon {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 55%;
  height: auto;
  opacity: 0.3;
  pointer-events: none;
  object-fit: cover;
}

.service-card h3 {
  position: relative;
  color: #000;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.service-card p {
  position: relative;
  color: var(--muted);
  max-width: 302px;
  margin: 0;
}

/* Subscriptions */
.subscriptions { background: var(--cream); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: plan;
}

.plan {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 442px;
  border: 1px solid rgba(169, 169, 169, 0.3);
  padding: 2rem;
  background: transparent;
  counter-increment: plan;
}

.plan > div::before {
  content: counter(plan, decimal-leading-zero);
  margin-bottom: 1rem;
}

.plan.featured {
  border: 2px solid var(--sand);
  background: var(--cream);
  box-shadow: 0 4px 10px rgba(13, 28, 45, 0.1);
  transform: none;
  color: var(--ink);
}

.plan .offer-label {
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.plan h3 {
  margin-bottom: 1rem;
  color: #000;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.08;
}

.plan.featured h3 { color: var(--ink); }

.plan-desc {
  min-height: 3.4em;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 18px;
  margin-bottom: 1rem;
}

.plan-divider {
  height: 1.5px;
  background: var(--sand);
  margin: 1rem 0;
  width: 100%;
}

.plan-divider.dark { height: 1px; background: var(--navy-deep); }

.plan ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  border-top: 1.5px solid var(--sand);
}

.plan ul li {
  display: flex;
  gap: 18px;
  color: #000;
  font-size: 0.94rem;
  line-height: 21px;
}

.plan ul li::before {
  content: "—";
  color: var(--sand);
  font-size: 1.125rem;
  line-height: 21px;
}

.plan.featured ul { border-top: 1px solid var(--navy-deep); }
.plan.featured ul li { color: var(--navy-deep); }
.plan.featured ul li::before { color: var(--navy-deep); }

#solutions,
#business,
#agencies,
#investors,
#subscriptions,
#private,
#services,
#network,
#contact {
  scroll-margin-top: 8rem;
}

/* Individuals */
.individuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--navy-deep);
  color: var(--white);
}

.individual-image {
  min-height: 720px;
  background: url("images/signing.png") center/cover;
}

.business-image {
  background-image: url("images/chess.jpg");
}

a.consult-item {
  color: inherit;
  text-decoration: none;
}

a.consult-item:hover h3 {
  color: var(--sand);
}

.individual-copy {
  padding: 4rem 6vw 4rem 4rem;
}

.individual-copy .eyebrow { color: var(--sand); }

.individual-copy h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.05;
}

.individual-copy > p { color: #9d9d9d; }

.consult-menu { margin-top: 0.5rem; }

.consult-item {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  padding: 1.9rem 0;
  border-bottom: 1px solid #d1cbbf;
}

.consult-item:last-child { border-bottom-color: transparent; }

.consult-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--sand);
  border-radius: 100px;
  flex-shrink: 0;
}

.consult-item h3 {
  color: #bec9d5;
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}

.consult-item p {
  color: #9d9d9d;
  font-size: 0.94rem;
  margin: 0;
}

/* Team and network */
.network { background: var(--navy-deep); color: var(--white); }

.network.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 28, 45, 0.92) 0%, rgba(8, 17, 31, 0.72) 55%, rgba(8, 17, 31, 0.85) 100%),
    linear-gradient(180deg, rgba(13, 28, 45, 0.55) 0%, rgba(8, 17, 31, 0.35) 45%, rgba(13, 28, 45, 0.7) 100%);
}

.network .network-label {
  max-width: none;
  margin-bottom: 2.5rem;
  justify-items: center;
  text-align: center;
}

.network .network-label .eyebrow {
  justify-content: center;
  color: var(--sand);
}

.network-block { margin-top: 0; }

.network-block-head {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.network-block-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.network-block-head p {
  color: var(--muted-light);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 0;
}

.network-partners {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line-dark);
}

.team-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: team;
}

.team-cell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 150px;
  padding: 1.5rem 1rem 1rem 1.75rem;
  border-right: 1px solid var(--line-dark);
  overflow: hidden;
  counter-increment: team;
}

.team-cell:last-child { border-right-color: transparent; }

.team-cell::before {
  content: counter(team, decimal-leading-zero);
  font-size: 0.72rem;
}

.role-title {
  margin: 0;
  font-family: "Cormorant Infant", "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.team-icon {
  position: absolute;
  z-index: -1;
  top: 11px;
  right: -12px;
  display: block;
  width: 136px;
  height: 136px;
  object-fit: contain;
  opacity: 0.6;
  pointer-events: none;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
  padding: 2rem 0;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 1rem;
  border-right: 1px solid var(--sand);
  text-align: center;
}

.partner-item:last-child { border-right-color: transparent; }

.partner-item img {
  width: 42px;
  height: 42px;
}

.partner-item span {
  font-family: "Cormorant Infant", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 26px;
  color: var(--white);
}

/* Loan calculator */
.loan-calculator {
  padding-top: 4.25rem;
  padding-bottom: 4.25rem;
  background: var(--cream);
}

.loan-calc-results {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(182, 127, 22, 0.28);
  color: var(--ink);
}

.loan-calculator .section-head {
  max-width: 820px;
  margin-bottom: 1.35rem;
}

.loan-calculator .section-head > .eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 19px;
  max-width: none;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border-bottom: 1px solid rgba(182, 127, 22, 0.28);
}

.calc-tab {
  appearance: none;
  position: relative;
  margin: 0 0 -1px;
  padding: 0.7rem 0.15rem 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.calc-tab:hover {
  color: var(--ink);
}

.calc-tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.calc-tab:focus-visible {
  outline: 2px solid rgba(182, 127, 22, 0.45);
  outline-offset: 2px;
}

.loan-calc[hidden],
[data-calc-panel][hidden] {
  display: none !important;
}

.loan-calc {
  --loan-num: "IBM Plex Sans", Manrope, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  padding: 1.6rem 1.6rem 1.45rem;
  border: 1px solid rgba(182, 127, 22, 0.28);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.loan-calc input,
.loan-calc select,
.loan-calc-input > span,
.loan-calc-currency,
.loan-calc-monthly,
.loan-calc-stats dd {
  font-family: var(--loan-num);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.loan-calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  margin: 0;
}

.loan-calc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.75rem;
  align-items: end;
  width: 100%;
  max-width: 100%;
}

.loan-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  color: var(--gold);
}

.loan-calc-field[hidden] {
  display: none !important;
}

.loan-calc-credit {
  display: contents;
}

.loan-calc-choice {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: end;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(208, 176, 115, 0.45);
  background: var(--white);
}

.loan-calc-choice--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.loan-calc-choice[hidden] {
  display: none !important;
}

@media (min-width: 1001px) {
  .loan-calc-fields[data-mode="property"] [data-relation-field] {
    grid-row: 2;
    grid-column: 1;
  }

  .loan-calc-fields[data-mode="property"] .loan-calc-choice {
    grid-row: 2;
    grid-column: 1;
  }

  .loan-calc-fields[data-mode="vehicle"] .loan-calc-choice {
    grid-column: 1 / -1;
  }
}

.loan-calc-label:has(input[type="checkbox"]) {
  cursor: pointer;
}

.loan-calc-label input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.loan-calc-choice label {
  position: relative;
  display: flex;
  margin: 0;
  cursor: pointer;
}

.loan-calc-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.loan-calc-choice > label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.loan-calc-choice > label + label > span {
  border-left: 1px solid rgba(208, 176, 115, 0.45);
}

.loan-calc-choice > label > input:checked + span {
  background: rgba(182, 127, 22, 0.12);
  color: var(--ink);
}

.loan-calc-choice > label > input:focus-visible + span {
  outline: 2px solid rgba(182, 127, 22, 0.45);
  outline-offset: -2px;
}

.loan-calc-finance {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.25rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border: 1px solid rgba(182, 127, 22, 0.38);
  background: rgba(182, 127, 22, 0.07);
}

.loan-calc-finance[hidden] {
  display: none !important;
}

.loan-calc-finance-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.75rem;
  align-items: end;
}

.loan-calc-finance-inputs:has([data-residual-field]:not([hidden])) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loan-calc-finance-results {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(182, 127, 22, 0.28);
}

.loan-calc-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loan-calc-label img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}

.loan-calc-tip {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.loan-calc-tip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(182, 127, 22, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  cursor: help;
}

.loan-calc-tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  width: max-content;
  max-width: min(18rem, 70vw);
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(182, 127, 22, 0.35);
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 24px rgba(22, 32, 43, 0.12);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 20;
}

.loan-calc-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: rgba(182, 127, 22, 0.35);
}

.loan-calc-tip:hover .loan-calc-tip-bubble,
.loan-calc-tip:focus-within .loan-calc-tip-bubble,
.loan-calc-tip:focus .loan-calc-tip-bubble {
  opacity: 1;
  visibility: visible;
}

.loan-calc-tip--on-choice {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 3;
}

.loan-calc-tip--on-choice .loan-calc-tip-bubble {
  left: auto;
  right: 0;
  transform: none;
}

.loan-calc-tip--on-choice .loan-calc-tip-bubble::after {
  left: auto;
  right: 0.35rem;
  margin-left: 0;
}

.loan-calc-choice:has(.loan-calc-tip--on-choice) > label:last-of-type span {
  padding-right: 1.5rem;
}

.loan-calc-stats dt .loan-calc-tip {
  margin-left: 0.15rem;
}

.loan-calc-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  border: 1px solid rgba(208, 176, 115, 0.35);
  background: var(--white);
}

.loan-calc-input[hidden] {
  display: none !important;
}

.loan-calc-input > span:not(.loan-calc-steppers) {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  border-left: 1px solid rgba(22, 32, 43, 0.08);
  align-self: stretch;
}

.loan-calc-steppers {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-self: stretch;
  width: 1.35rem;
  border-left: 1px solid rgba(22, 32, 43, 0.08);
}

.loan-calc-step {
  appearance: none;
  flex: 1 1 50%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  position: relative;
}

.loan-calc-step + .loan-calc-step {
  border-top: 1px solid rgba(22, 32, 43, 0.08);
}

.loan-calc-step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  transform: translate(-50%, -50%);
}

.loan-calc-step[data-step="1"]::before {
  border-bottom: 5px solid currentColor;
}

.loan-calc-step[data-step="-1"]::before {
  border-top: 5px solid currentColor;
}

.loan-calc-step:hover {
  background: rgba(208, 176, 115, 0.12);
  color: var(--ink);
}

.loan-calc-step:focus-visible {
  outline: 2px solid rgba(182, 127, 22, 0.45);
  outline-offset: -2px;
}

.loan-calc-form input[type="number"],
.loan-calc-form input[type="text"] {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  margin: 0;
  padding: 0 0.5rem 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  height: 46px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.loan-calc-form input[type="number"]::-webkit-outer-spin-button,
.loan-calc-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.loan-calc-form input[type="number"]:focus,
.loan-calc-form input[type="text"]:focus,
.loan-calc-field select:focus {
  outline: 2px solid rgba(182, 127, 22, 0.55);
  outline-offset: -2px;
}

.loan-calc-field select {
  width: 66.666%;
  max-width: 66.666%;
  height: 46px;
  margin: 0;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid rgba(208, 176, 115, 0.35);
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 16px) 19px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 10px) 19px / 6px 6px no-repeat,
    var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.loan-calc-monthly-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loan-calc-monthly-label img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}

.loan-calc-monthly {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.loan-calc-currency {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.loan-calc-monthly .loan-calc-currency {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.loan-calc-payment-range {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.loan-calc-payment-range b {
  color: var(--ink);
  font-weight: 600;
}

.loan-calc-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.loan-calc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0.15rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(182, 127, 22, 0.22);
}

.loan-calc-finance-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loan-calc-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  padding: 0;
}

.loan-calc-stats dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loan-calc-stats dt img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}

.loan-calc-stats dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.1;
  text-align: left;
}

.loan-calc-costs {
  margin: 0 0 1.15rem;
}

.loan-calc-section-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.loan-calc-broker-row {
  margin: 0 0 1rem;
}

.loan-calc-broker-row[hidden] {
  display: none !important;
}

/* Match % rate input width (half of one finance-inputs column). */
.loan-calc-broker-row .loan-calc-input {
  width: 50%;
  max-width: 50%;
}

@media (min-width: 651px) and (max-width: 1000px) {
  .loan-calc-broker-row .loan-calc-input {
    width: calc((100% - 4.15rem) / 4);
    max-width: calc((100% - 4.15rem) / 4);
  }
}

@media (min-width: 1001px) {
  .loan-calc-broker-row .loan-calc-input {
    width: calc((100% - 5.9rem) / 6);
    max-width: calc((100% - 5.9rem) / 6);
  }
}

.loan-calc-finance-stats,
.loan-calc-fees-breakdown {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.loan-calc-fees-breakdown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loan-calc-fees-breakdown[data-broker] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.loan-calc-fees-breakdown[data-donation] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loan-calc-fees-breakdown[data-donation][data-broker] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loan-calc-fees-breakdown > [hidden] {
  display: none !important;
}

.loan-calc-costs .loan-calc-disclaimer {
  margin-top: 1rem;
}

.loan-calc-fees-breakdown[hidden],
.loan-calc-fees-note[hidden] {
  display: none !important;
}

.loan-calc-disclaimer {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.loan-calc-disclaimer .loan-calc-fees-note {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.loan-calc-disclaimer a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.loan-calc-disclaimer a:hover {
  color: var(--ink);
}

.loan-calc-results .link-arrow {
  color: var(--gold);
  margin-top: 1.15rem;
}

.loan-calc-results .circle-arrow {
  border-color: var(--gold);
}

/* Contact */
.contact {
  padding: 4rem 0 6rem;
  background: linear-gradient(190deg, rgb(13, 27, 43) 22.6%, rgb(18, 40, 60) 61.9%, rgb(16, 34, 55) 110.9%);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 628px);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: start;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

.contact-copy .eyebrow { color: var(--sand); }
.contact-copy h2 { margin: 0; color: var(--white); line-height: 1; }

.contact-copy > p {
  margin: 0;
  color: var(--muted-light);
  font-size: 1.06rem;
  line-height: 27px;
}

.contact-details {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details::before {
  content: "";
  width: 52px;
  height: 1px;
  margin-bottom: 10px;
  background: var(--sand);
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 1.06rem;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 35px;
  border: 1px solid rgba(212, 188, 142, 0.5);
  background: transparent;
  margin-top: 42px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 19px;
  color: var(--white);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 0.75rem 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: var(--navy-soft);
  color: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  min-height: 46px;
}

.contact-form select {
  appearance: none;
  padding-right: 2.75rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--white) 50%) calc(100% - 23px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--white) 50%, transparent 50%) calc(100% - 18px) 50% / 5px 5px no-repeat,
    var(--navy-soft);
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
}

.contact-form textarea { min-height: 110px; resize: vertical; }

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

.contact-form .consent {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted-light);
  font-size: 0.75rem;
  line-height: 17px;
}

.contact-form .consent input {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: var(--sand);
}

.contact-form .submit {
  min-height: 49px;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.form-status { min-height: 1.2em; color: var(--sand); margin: 0; }
.contact-form .form-status:empty { min-height: 0; margin-top: -18px; }

/* Footer */
footer {
  padding: 6rem 0 2rem;
  background: linear-gradient(205.9deg, rgb(13, 27, 43) 0%, rgb(18, 40, 60) 18.5%, rgb(16, 34, 55) 35.2%);
  border-top: 1px solid rgba(179, 169, 151, 0.5);
  color: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem 2.5rem;
  margin-bottom: 0;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 360px;
  max-width: 100%;
}

.footer-brand-col .brand strong { font-size: 1.125rem; }

.footer-brand-col p {
  color: var(--muted-light);
  font-size: 0.94rem;
  line-height: 24px;
  margin: 0;
}

.footer-brand-col small {
  color: #7f8795;
  font-size: 0.8125rem;
  line-height: 20px;
}

.footer-label {
  color: var(--sand);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 19px;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 220px;
  font-size: 0.94rem;
  line-height: 24px;
}

.footer-col a,
.footer-col span { color: var(--white); }

.footer-col a:hover { color: var(--sand); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.reveal-stagger > .reveal:nth-child(1) { --reveal-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { --reveal-delay: 90ms; }
.reveal-stagger > .reveal:nth-child(3) { --reveal-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(4) { --reveal-delay: 270ms; }
.reveal-stagger > .reveal:nth-child(5) { --reveal-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(6) { --reveal-delay: 450ms; }
.reveal-stagger > .reveal:nth-child(7) { --reveal-delay: 540ms; }
.reveal-stagger > .reveal:nth-child(8) { --reveal-delay: 630ms; }

@keyframes media-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0); }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-media,
  .section-photo {
    animation: none;
    transform: none;
    inset: 0;
    will-change: auto;
  }

  .hero-in {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .link-arrow,
  .circle-arrow {
    transition: none;
  }

  .button:hover,
  .link-arrow:hover .circle-arrow {
    transform: none;
  }
}

/* Compact desktop nav before the mobile menu kicks in */
@media (max-width: 1200px) {
  .header-main { gap: 1rem; }
  .main-nav { gap: 0.7rem; font-size: 0.74rem; }
  .main-nav > a,
  .nav-trigger { padding-inline: 0.05rem; }
  .nav-cta { padding-inline: 0.7rem !important; }
  .brand strong { letter-spacing: 0.1em; font-size: 0.76rem; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.7rem; }
  .brand { gap: 0.55rem; }
}

@media (max-width: 960px) {
  .header-main { gap: 0.75rem; }
  .main-nav { gap: 0.45rem; font-size: 0.7rem; }
  .nav-cta { padding: 0.55rem 0.6rem !important; }
  .lang-trigger span { display: none; }
  .brand strong { letter-spacing: 0.08em; font-size: 0.7rem; }
}

@media (max-width: 780px) {
  .header-main { gap: 0.5rem; }
  .main-nav { gap: 0.3rem; font-size: 0.66rem; }
  .main-nav > a,
  .nav-trigger { padding: 0.55rem 0.05rem; }
  .nav-cta { padding: 0.5rem 0.45rem !important; font-size: 0.66rem; }
  .brand strong { letter-spacing: 0.06em; font-size: 0.64rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1.5rem; }
  .brand { gap: 0.4rem; }
}

/* Responsive — collapse header to menu toggle */
@media (max-width: 600px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    margin-left: auto;
    border: 1px solid var(--sand);
    background: transparent;
    color: white;
    padding: 0.6rem 0.8rem;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 3vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(92vw, 430px);
    padding: 1rem;
    background: #101c2f;
    border: 1px solid var(--line-dark);
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .main-nav.open { display: flex; }
  .nav-group { width: 100%; }
  .nav-trigger { width: 100%; text-align: left; }
  .lang-trigger span { display: inline; }

  .dropdown,
  .dropdown.mega {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-group.open .dropdown { display: block; }
}

@media (max-width: 1000px) {
  .contact-layout { grid-template-columns: 1fr; }

  .loan-calc-fields,
  .loan-calc-finance-inputs,
  .loan-calc-finance-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form { margin-top: 0; }

  .footer-content { flex-wrap: wrap; }
  .footer-brand-col { width: 100%; }
  .footer-col { width: auto; min-width: 180px; }

  .direction-list,
  .plan-grid { grid-template-columns: 1fr; }

  .audience-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }

  .audience-card .audience-models,
  .audience-card .link-arrow {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.5rem;
  }

  .team-strip,
  .partner-grid { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }

  .team-cell:nth-child(2n),
  .partner-item:nth-child(2n) { border-right-color: transparent; }

  .plan { min-height: 0; }
}

@media (max-width: 650px) {
  .section { padding: 3.25rem 0; }
  .services { padding-top: 4rem; }
  .services .section-head { padding: 1.25rem; margin-bottom: 2.5rem; }
  .hero { min-height: 0; padding: 7rem 0 3rem; }
  .form-row,
  .plan-grid { grid-template-columns: 1fr; }
  .team-cell { padding-left: 1rem; }
  .team-icon { width: 104px; height: 104px; }
  .contact-form { margin-top: 0; padding: 1.15rem; }
  .brand strong { font-size: 0.7rem; }
  .direction { padding: 1.5rem 1.25rem 0.75rem; }
  .loan-calc { padding: 1.15rem 1.05rem 1.1rem; }
  .loan-calc-fields,
  .loan-calc-finance-inputs,
  .loan-calc-finance-stats { grid-template-columns: 1fr; }
  .loan-calc-choice { grid-column: 1 / -1; width: 100%; }
  .loan-calc-label { white-space: normal; }
  .loan-calc-stats { grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
  .loan-calc-fees-breakdown { grid-template-columns: 1fr; }
  .loan-calc-results { padding-top: 1.1rem; }
}
