/* ==========================================================================
   Home
   A full-bleed photographic hero under a navy shade,
   hairline grids, and three deep navy bands for contrast.
   ========================================================================== */

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

.hero-r {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 76svh;
  overflow: hidden;
  background-color: var(--color-night);
  color: var(--color-on-dark);
}

.hero-r__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-settle 2.6s var(--ease-out) both;
}

/* Navy weight sits low and left, where the headline is; the top stays dark enough for the header */
.hero-r__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 27, 44, 0.55) 0%, rgba(14, 27, 44, 0) 22%),
    linear-gradient(0deg, rgba(14, 27, 44, 0.92) 0%, rgba(14, 27, 44, 0.55) 45%, rgba(14, 27, 44, 0.1) 80%),
    linear-gradient(90deg, rgba(14, 27, 44, 0.6) 0%, rgba(14, 27, 44, 0) 65%);
}

@keyframes hero-settle {
  from {
    transform: scale(1.07);
    filter: brightness(0.6);
  }
  to {
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-r__img {
    animation: none;
  }
}

.hero-r__inner {
  padding-block: calc(var(--header-height) + var(--space-16)) calc(clamp(40px, 6vw, 96px) + var(--float-overlap));
}

@media (min-width: 768px) {
  .hero-r {
    min-height: clamp(560px, 92svh, 900px);
  }
}

.hero-r .title {
  max-width: 16ch;
  color: var(--color-on-dark);
}

.hero-r .title em {
  color: var(--color-accent);
}

.hero-r__lede {
  max-width: 50ch;
  margin-top: var(--space-6);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-on-dark-soft);
}

.hero-r__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

/* -------------------------------------------------------------------------
   Services grid
   ------------------------------------------------------------------------- */

/* One feature tile (wealth management) and five companions */
.svc-grid {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-grid > li:first-child,
  .svc-grid > li:last-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .svc-grid > li,
  .svc-grid > li:last-child {
    grid-column: span 2;
  }

  .svc-grid > li:first-child {
    grid-column: span 4;
    grid-row: span 2;
  }
}

.svc {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-ivory);
  color: inherit;
  text-decoration: none;
}

.svc__media,
.svc__body,
.svc__title,
.svc__text {
  display: block;
}

.svc__media {
  overflow: hidden;
}

.svc__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.svc:hover .svc__media img,
.svc:focus-visible .svc__media img {
  transform: scale(1.04);
}

.svc__body {
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.svc__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--font-medium);
  line-height: 1.15;
  color: var(--color-primary);
}

.svc__text {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.svc:hover .svc__title,
.svc:focus-visible .svc__title {
  color: var(--color-accent-dark);
}

/* The feature: photograph fills the tile, text over a navy shade */
.svc--feature {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  min-height: 420px;
  background-color: var(--color-night);
}

.svc--feature .svc__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.svc--feature .svc__media img {
  height: 100%;
  aspect-ratio: auto;
}

.svc--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 27, 44, 0.92) 0%, rgba(14, 27, 44, 0.78) 38%, rgba(14, 27, 44, 0) 78%);
}

.svc--feature .svc__body {
  padding: clamp(28px, 4vw, 44px);
}

.svc--feature .svc__title,
.svc--feature:hover .svc__title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--color-on-dark);
}

.svc--feature .svc__text {
  max-width: 44ch;
  color: var(--color-on-dark-soft);
}

.svc--feature .cell-link {
  margin-top: var(--space-6);
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .svc__media img {
    transition: none;
  }
}

/* -------------------------------------------------------------------------
   Why us (light scroll story)
   ------------------------------------------------------------------------- */

.why-r__statement {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-medium);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--color-primary);
}

.why-r__statement span {
  display: block;
}

.why-r .prose {
  margin-top: var(--space-6);
}

.why-r .prose p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
}

.why-r .prose p + p {
  margin-top: 0.8em;
}

.why-r .signature {
  margin-top: var(--space-6);
}

.why-r .signature__name {
  font-size: clamp(2.5rem, 3.4vw, 3.25rem);
}

.why-r .signature__role {
  margin-top: var(--space-2);
}

.why-r__points .cell-title {
  margin-top: var(--space-3);
}

/* -------------------------------------------------------------------------
   Ways to work with us (dark band over a dimmed photograph)
   ------------------------------------------------------------------------- */

.pathways__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.pathways__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.86) 0%, rgba(14, 27, 44, 0.6) 50%, rgba(14, 27, 44, 0.9) 100%);
}

.pathways__panels {
  display: grid;
  border: 1px solid var(--color-line-dark);
}

@media (min-width: 900px) {
  .pathways__panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel {
  padding: clamp(32px, 4.5vw, 64px);
  background-color: rgba(246, 241, 231, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.panel + .panel {
  border-top: 1px solid var(--color-line-dark);
}

@media (min-width: 900px) {
  .panel + .panel {
    border-top: 0;
    border-left: 1px solid var(--color-line-dark);
  }
}

.panel .eyebrow {
  margin-bottom: var(--space-5);
}

.panel p {
  margin-top: var(--space-5);
  max-width: 46ch;
  line-height: 1.7;
  color: var(--color-on-dark-soft);
}

/* -------------------------------------------------------------------------
   Advisers
   ------------------------------------------------------------------------- */

.voices-r .hairline-grid > li:nth-child(2) {
  background-color: var(--color-limestone);
}

@media (min-width: 1024px) {
  .voices-r .hairline-grid > li:nth-child(2) {
    padding-right: var(--space-8);
  }
}

.voice-r__topic {
  font-size: 0.6875rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.voice-r blockquote {
  margin: var(--space-5) 0 0;
}

.voice-r blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-medium);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.3;
  color: var(--color-primary);
}

.voice-r__who {
  margin-top: var(--space-6);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.voice-r__who strong {
  display: block;
  color: var(--color-ink);
}

/* -------------------------------------------------------------------------
   Scroll story: the left column holds still while the items on the right
   scroll past, with a sandstone line filling as you go. Used by "Why us"
   (light) and "How it works" (dark).
   ------------------------------------------------------------------------- */

.story {
  --story-line: var(--color-hairline);
  padding-block: 0;
  /* clip, not hidden: hidden would stop the left column from sticking */
  overflow: clip;
}

.band--night.story {
  --story-line: var(--color-line-dark);
}

.story__grid {
  display: grid;
}

.story__lead {
  padding-block: clamp(72px, 9vw, 112px) var(--space-6);
}

.scroll-line {
  display: none;
}

.story__items {
  margin: 0;
  padding: 0 0 clamp(72px, 9vw, 112px);
  list-style: none;
}

.story__items > li {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--story-line);
}

.story__items > li:last-child {
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .story__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .story__lead {
    position: sticky;
    top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: var(--space-10) clamp(40px, 5vw, 88px) var(--space-10) 0;
  }

  .scroll-line {
    display: block;
    position: absolute;
    top: 22%;
    right: 0;
    width: 2px;
    height: 56%;
    background-color: var(--story-line);
    overflow: hidden;
  }

  .scroll-line span {
    position: absolute;
    inset: 0;
    background-color: var(--color-accent);
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
  }

  .story__items {
    padding: clamp(140px, 18vw, 240px) 0 clamp(140px, 18vw, 240px) clamp(40px, 5vw, 88px);
    border-left: 1px solid var(--story-line);
  }

  .story__items > li {
    padding: clamp(56px, 7vw, 96px) 0;
  }
}

/* Items slide in from the right as they arrive (only once the script is running) */
.is-armed [data-reveal] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.is-armed [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------
   How it works (dark)
   ------------------------------------------------------------------------- */

.process-r__lead p {
  margin-top: var(--space-6);
  max-width: 44ch;
  line-height: 1.75;
  color: var(--color-on-dark-soft);
}

.process-r__steps {
  counter-reset: step;
}

.process-r__steps li {
  counter-increment: step;
}

.process-r__steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.process-r__steps .cell-title {
  margin-top: var(--space-4);
}

.process-r__steps .cell-text {
  max-width: 46ch;
}

/* -------------------------------------------------------------------------
   Questions
   ------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .faq-r__head {
    position: sticky;
    top: calc(var(--header-height) + 48px);
  }
}

.faq-r__head p {
  margin-top: var(--space-6);
  max-width: 40ch;
  line-height: 1.75;
  color: var(--color-ink-soft);
}
