/* ============================================================
   Beacon19 — Homepage
   Design system adapted from the Trotter Advisory reference:
   navy/paper palette with Fraunces + Inter, gold → deeper amber.
   ============================================================ */

:root {
  /* Palette */
  --navy: #0B1F3A;
  --navy-deep: #06142A;
  --amber: #B87518;          /* deeper amber (replaces reference gold) */
  --amber-soft: #D8A45C;     /* softer amber for italics on dark */
  --paper: #F4F1EC;
  --paper-2: #EBE6DC;
  --rule: #CFC8BB;
  --ink: #1A1A1A;
  --slate: #4A5568;
  --slate-light: #6B7280;

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ Shared section chrome ============ */
section { padding: 6rem 0; position: relative; }

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.section-title em { font-style: italic; color: var(--amber); }

.section-intro { max-width: 64ch; margin-bottom: 4rem; }
.section-intro .section-body { margin-bottom: 0; }

.section-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

.arrow {
  font-family: var(--serif);
  font-style: italic;
  transition: transform var(--transition);
}
a:hover .arrow { transform: translateX(4px); }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--navy);
  color: var(--paper);
  padding: 1.1rem 2.4rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid var(--navy);
  transition: all 250ms;
}
.btn-primary:hover { background: transparent; color: var(--navy); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo-mark { display: block; height: 32px; }
.nav-logo-mark svg { height: 38px; width: auto; color: var(--navy); display: block; transform: translateY(-3px); }
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-deep); color: var(--amber-soft) !important; }
.nav-actions { display: flex; align-items: center; gap: 1.75rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-actions { gap: 0.75rem; }
  .nav-actions .nav-cta { font-size: 0.88rem; }
  .nav:not(.menu-ready) .nav-inner { flex-direction: column; align-items: stretch; }
  .nav:not(.menu-ready) .nav-actions { flex-wrap: wrap; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-links {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
  }
  .nav-links a { display: block; padding: 0.85rem 0; min-height: 48px; }
  .menu-ready .nav-links { display: none; }
  .menu-ready.menu-open .nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.75rem 2rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 24px rgba(6, 20, 42, 0.12);
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ============ Hero ============ */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 20, 42, 0.94) 0%, rgba(6, 20, 42, 0.82) 40%, rgba(6, 20, 42, 0.24) 74%, rgba(6, 20, 42, 0.08) 100%),
    linear-gradient(0deg, rgba(6, 20, 42, 0.76), transparent 45%);
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-inner { position: relative; z-index: 2; }

.hero-aside {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
@media (min-width: 1181px) {
  .hero-eyebrow { max-width: 65%; }
}
@media (max-width: 1180px) {
  .hero-aside {
    display: none;
  }
}
@media (max-width: 660px) {
  .hero-photo {
    height: 330px;
    object-position: 80% center;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(6, 20, 42, 0.18) 0, rgba(6, 20, 42, 0.65) 160px, var(--navy) 330px);
  }
  .hero { padding-top: 19rem; }
}

.hero-aside-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--amber-soft);
  font-weight: 300;
  line-height: 1.5;
  max-width: 240px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.8rem;
  color: #fff;
  max-width: 16ch;
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-soft);
  font-weight: 300;
}
.hero-sub {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(244, 241, 236, 0.85);
  max-width: 52ch;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.hero-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(244, 241, 236, 0.7);
  max-width: 58ch;
  font-weight: 300;
  margin-bottom: 3rem;
}
.hero-actions { margin-bottom: 0; }

/* Hero variant: light button on navy */
.hero .btn-primary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}
.hero .btn-primary:hover { background: transparent; color: var(--paper); }

.proof-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  gap: 1.5rem 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184, 117, 24, 0.35);
  max-width: 820px;
  margin-top: 3.5rem;
}
.proof-item { display: flex; flex-direction: column; }
.proof-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.02em;
}
.proof-label {
  font-size: 0.78rem;
  color: rgba(244, 241, 236, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
}

/* ============ Client banner ============ */
.clients {
  padding: 4.5rem 0 5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.banner-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.banner-sub {
  font-size: 0.95rem;
  color: var(--slate-light);
  margin-bottom: 3rem;
}

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
}
.marquee-list li {
  width: 190px;
  height: 88px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-list img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1);
}
.marquee-list .client-logo-compact { width: 96px; }
.marquee-list .client-logo-compact img { width: auto; max-width: 84px; height: 58px; }
.marquee-list .client-logo-dark {
  background: #171717;
  padding: 14px;
}
.marquee-list .client-logo-dark img {
  height: auto;
  max-height: 60px;
  mix-blend-mode: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ When to call ============ */
.problem { background: var(--paper); border-bottom: 1px solid var(--rule); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
}
.problem-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 880px) { .challenge-grid { grid-template-columns: 1fr; } }

.challenge {
  background: var(--paper);
  padding: 2.4rem 2rem 2.2rem;
  border: 1px solid var(--rule);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.challenge:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.challenge-num {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--amber);
  font-style: italic;
}
.challenge-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-right: 2.5rem;
}
.challenge p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--slate);
}

/* ============ Focus areas ============ */
.focus {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 880px) { .focus-grid { grid-template-columns: 1fr; } }

.focus-card {
  background: var(--paper);
  padding: 2.4rem 2rem 2.2rem;
  border: 1px solid var(--rule);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.focus-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.card-num {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--amber);
  font-style: italic;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.8rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-right: 2.5rem;
}
.focus-card p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--slate);
}

/* ============ Engagement models ============ */
.modes-section { background: var(--paper); border-bottom: 1px solid var(--rule); }
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 980px) { .modes { grid-template-columns: 1fr; } }

.mode {
  background: var(--paper-2);
  padding: 2.6rem 2rem 2.4rem;
  border: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.mode:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.mode-num {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--amber);
  font-style: italic;
}
.mode-sub {
  font-size: 0.85rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  font-weight: 500;
}
.mode-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.mode > p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 1rem;
}
.fit-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}
.fit-list {
  list-style: none;
  margin: 0 0 1.6rem;
  flex-grow: 1;
}
.fit-list li {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--slate);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}
.fit-list li:last-child { border-bottom: none; }
.card-cta {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  transition: color 0.2s;
  margin-top: auto;
}
.card-cta:hover { color: var(--amber); }

/* Shared desktop rows keep card copy aligned despite different text lengths. */
@media (min-width: 981px) {
  .modes { row-gap: 0; }
  .mode {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
  }
  .mode .card-cta { margin-top: 0; }
}

/* ============ Approach ============ */
.approach { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
@media (max-width: 980px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .approach-grid { grid-template-columns: 1fr; } }

.approach-step { position: relative; padding-top: 0.5rem; }
.step-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.approach-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
}

/* ============ Testimonials ============ */
.testimonials { background: var(--navy); }
.testimonials .section-title { color: #fff; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 1020px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}
.testimonial:hover { border-color: rgba(216, 164, 92, 0.5); }
.testimonial blockquote { margin: 0 0 1.6rem; flex-grow: 1; }
.testimonial blockquote p {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.85);
  font-weight: 300;
}
.quote-placeholder { font-style: italic; color: rgba(244, 241, 236, 0.55); }
.testimonial figcaption {
  border-top: 1px solid rgba(216, 164, 92, 0.3);
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  column-gap: 1rem;
  row-gap: 0.15rem;
}
.quote-photo {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--rule);
}
.quote-name, .quote-role, .quote-loc { grid-column: 1; }
.quote-name { grid-row: 1; }
.quote-role { grid-row: 2; }
.quote-loc { grid-row: 3; }
.quote-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
}
.quote-role {
  font-size: 0.82rem;
  color: var(--amber-soft);
}
.quote-loc {
  font-size: 0.78rem;
  color: rgba(244, 241, 236, 0.5);
}

/* ============ Meet Ryan ============ */
.about { background: var(--paper); border-bottom: 1px solid var(--rule); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.about-photo {
  width: 100%;
  max-width: 400px;
}
.about-photo img {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--rule);
}
.about-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  margin: 1rem auto 0;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}
.about-linkedin:hover,
.about-linkedin:focus-visible {
  color: var(--navy-deep);
  background-color: var(--paper-2);
}
.about-linkedin svg { display: block; flex-shrink: 0; }
.about-body .section-title { margin-bottom: 2rem; }
.about-body > p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 1.3rem;
  max-width: 62ch;
}
.about-close {
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy) !important;
  font-size: 1.15rem !important;
  margin: 1.8rem 0 2.2rem !important;
}

/* ============ Partners ============ */
.partners {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 880px) { .partner-grid { grid-template-columns: 1fr; } }

.partner {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2.6rem 2rem 2.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: border-color 0.3s, transform 0.3s;
}
.partner:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.partner-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100px;
}
.partner-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.partner-mark-dark {
  background: var(--navy);
  padding: 18px;
}
.partner-mark-dark img {
  width: 100%;
  max-width: 230px;
  mix-blend-mode: normal;
}
.partner-link {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s;
}
.partner-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate);
}
.partner:hover .partner-link { color: var(--amber); }

/* ============ Friends of the Firm ============ */
.friends { background: var(--paper); border-bottom: 1px solid var(--rule); }
.friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1020px) { .friends-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .friends-grid { grid-template-columns: 1fr; } }

.friend {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2.2rem 1.8rem 1.9rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  transition: border-color 0.3s, transform 0.3s;
}
.friend:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.friend-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: block;
  object-fit: cover;
  margin-bottom: 1.2rem;
}
.friend-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
}
.friend-meta {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}
.friend-expertise {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--slate);
  margin-top: 0.65rem;
  margin-bottom: 1rem;
}
.friend-link {
  margin-top: auto;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.friend:hover .friend-link { color: var(--amber); }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  text-align: center;
  padding: 6.5rem 0 7rem;
  border-bottom: 1px solid var(--rule);
}
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.cta-title em { font-style: italic; color: var(--amber); }
.cta-sub {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 52ch;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.cta-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--slate-light);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--serif);
  margin: 0.4rem 0;
}
.cta-divider::before, .cta-divider::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--rule);
}
.cta-secondary {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.97rem;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.cta-secondary:hover { color: var(--amber); }

/* Short contact form */
section[id] { scroll-margin-top: 5.5rem; }
.contact-form {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-field label { font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.form-field label span { font-weight: 400; color: var(--slate); }
.form-field input, .form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(6, 20, 42, 0.28);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form-field textarea { resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--amber); outline-offset: 2px; }
.form-honey { display: none; }
.form-privacy, .form-note { font-size: 0.8rem; line-height: 1.6; color: var(--slate); }
.form-privacy { margin-bottom: 1.25rem; }
.form-note { margin-top: 0.75rem; }
.contact-form button { cursor: pointer; font-family: inherit; }
.contact-alternatives { margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--rule); max-width: 620px; }
.contact-alternatives p { color: var(--slate); line-height: 1.8; margin-bottom: 1rem; }
.contact-linkedin { display: inline-flex; gap: 0.5rem; align-items: center; min-height: 44px; font-size: 0.9rem; color: var(--slate); text-decoration: underline; text-underline-offset: 4px; }
.contact-linkedin:hover { color: var(--navy); }
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form button { width: 100%; justify-content: center; }
  .contact-alternatives .cta-secondary { display: inline-block; }
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3rem;
  width: 60px;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--amber);
}
.ornament-dot {
  width: 5px;
  height: 5px;
  background: var(--amber);
  margin: 0 8px;
  transform: rotate(45deg);
}

/* ============ Footer ============ */
footer {
  background: var(--navy-deep);
  color: rgba(244, 241, 236, 0.7);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-mark svg { height: 38px; width: auto; color: var(--paper); display: block; margin-bottom: 0.8rem; }
.footer-tag {
  font-style: italic;
  font-family: var(--serif);
  color: var(--amber-soft);
  font-size: 0.95rem;
}
.footer-contact { text-align: right; }
@media (max-width: 720px) { .footer-contact { text-align: left; } }
.footer-nav { margin-bottom: 0.8rem; line-height: 2; }
.footer-nav a {
  color: rgba(244, 241, 236, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--amber-soft); }
.footer-email {
  color: var(--amber-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 117, 24, 0.4);
  transition: border-color 0.2s;
}
.footer-email:hover { border-color: var(--amber-soft); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(244, 241, 236, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ Motion & accessibility ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-list[aria-hidden="true"] { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
