/* Bay Ascent Advisors — site styles
   Palette drawn from the bay and the bridge: deep water blues, fog, and a small dose of the bridge's orange. */

:root {
  --abyss: #021a33;      /* deepest water: footer, text on light */
  --bay: #05366c;        /* primary deep blue */
  --channel: #0e4e8b;    /* mid blue */
  --sky: #6ac5f1;        /* highlight on dark */
  --mist: #eef3f8;       /* light section background */
  --fog: #c9d7e5;        /* rules and borders on light */
  --span: #c8452f;       /* bridge orange, used sparingly */
  --ink: #021a33;
  --ink-soft: #3d5268;
  --white: #ffffff;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--channel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--bay); }
:focus-visible { outline: 2px solid var(--span); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.04; font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.45rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.prose p { max-width: var(--measure); }
.prose h3 { margin: 2.2rem 0 0.8rem; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; color: var(--white); }
.site-header.on-light { position: relative; color: var(--ink); border-bottom: 1px solid var(--fog); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; line-height: 1.1; letter-spacing: -0.005em; }
.brand-name span { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.75; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a { color: inherit; text-decoration: none; font-size: 0.96rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .btn { border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 13px 24px; line-height: 1; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--span); color: var(--white); }
.btn-primary:hover { background: #a93823; color: var(--white); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-line { border: 1px solid var(--bay); color: var(--bay); }
.btn-line:hover { background: var(--bay); color: var(--white); }
.nav .btn { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- Dark surfaces ---------- */
.deep {
  color: var(--white);
  background:
    radial-gradient(120% 90% at 85% 110%, rgba(69,187,242,.28) 0%, rgba(69,187,242,0) 55%),
    linear-gradient(165deg, #021a33 0%, #05366c 52%, #0e4e8b 100%);
}
.deep a:not(.btn) { color: var(--sky); }
.deep .lede { color: rgba(255,255,255,.82); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(150px, 18vw, 200px) 0 clamp(80px, 10vw, 130px); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 19ch; margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { position: absolute; z-index: 1; right: -9%; bottom: -4%; width: min(52vw, 760px); pointer-events: none; }
.hero-figure .grid { stroke: var(--sky); stroke-opacity: .16; stroke-width: 1; fill: none; }
.hero-figure .spiral { stroke: #bfe6fa; stroke-opacity: .85; stroke-width: 1.6; fill: none; stroke-dasharray: 4200; stroke-dashoffset: 4200; animation: draw 3.2s cubic-bezier(.45,.05,.2,1) .3s forwards; }
.hero-figure .eye { fill: var(--span); opacity: 0; animation: appear .6s ease 3.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-figure .spiral { animation: none; stroke-dashoffset: 0; }
  .hero-figure .eye { animation: none; opacity: 1; }
}

.page-hero { padding: clamp(140px, 15vw, 180px) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 18ch; margin-bottom: 22px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.page-hero .hero-figure { width: min(48vw, 620px); right: -8%; bottom: -30%; }
.page-hero .hero-figure .spiral { animation: none; stroke-dashoffset: 0; }
.page-hero .hero-figure .eye { animation: none; opacity: 1; }

/* ---------- Credentials line ---------- */
.creds { border-bottom: 1px solid var(--fog); }
.creds ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.creds li { padding: 4px 22px; border-left: 1px solid var(--fog); font-size: 0.98rem; color: var(--ink-soft); }
.creds li:first-child { border-left: 0; padding-left: 0; }
.creds strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.tint { background: var(--mist); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.deep .section-head p { color: rgba(255,255,255,.78); }

/* Audience rows */
.audiences { border-top: 1px solid var(--fog); }
.audience { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 110px; gap: 16px 48px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--fog); text-decoration: none; color: inherit; }
.audience h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.audience p { margin: 0; color: var(--ink-soft); max-width: 56ch; }
.audience .more { font-size: 0.95rem; font-weight: 600; color: var(--channel); white-space: nowrap; text-align: right; }
a.audience:hover h3 { color: var(--channel); }

/* Lifecycle track */
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: linear-gradient(90deg, rgba(106,197,241,.2), rgba(106,197,241,.9)); }
.stage { position: relative; padding: 40px 28px 0 0; }
.stage::before { content: ""; position: absolute; top: 3px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--abyss); border: 1px solid var(--sky); }
.stage:last-child::before { background: var(--span); border-color: var(--span); }
.stage h3 { font-size: 1.35rem; margin-bottom: 12px; }
.stage ul { list-style: none; margin: 0; padding: 0; }
.stage li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.98rem; color: rgba(255,255,255,.86); }
.throughout { margin-top: 44px; padding: 24px 28px; border: 1px solid rgba(106,197,241,.35); border-radius: 14px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 12px 40px; align-items: baseline; }
.throughout h3 { font-size: 1.3rem; }
.throughout p { margin: 0; color: rgba(255,255,255,.84); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle h3 { font-size: 1.4rem; margin-bottom: 14px; }
.principle p { color: var(--ink-soft); margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.quote { margin: 0; padding: 34px 34px 30px; background: var(--white); border-radius: 16px; border: 1px solid var(--fog); display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.quote:first-child { grid-row: span 2; background: var(--bay); color: var(--white); border-color: var(--bay); }
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.quote:first-child blockquote { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.32; font-weight: 300; }
.quote figcaption { font-size: 0.95rem; color: var(--ink-soft); }
.quote:first-child figcaption { color: rgba(255,255,255,.75); }
.quote figcaption strong { display: block; color: inherit; font-weight: 600; }
.quote:first-child figcaption strong { color: var(--white); }
.quote.placeholder blockquote, .quote.placeholder figcaption { opacity: .62; }
.quote.placeholder { border-style: dashed; }
.quote.placeholder:first-child { border: 1px dashed rgba(255,255,255,.4); }

/* Two-column content */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 72px; }
.split + .split { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--fog); }
.split .aside h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 16px; }
.split .aside p { color: var(--ink-soft); }
.split .aside .tag { display: inline-block; font-size: 0.88rem; color: var(--channel); margin-bottom: 14px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.cols h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--fog); color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--channel); }
.ticks a { font-weight: 500; }

/* Service entries */
.service { padding: 26px 0; border-top: 1px solid var(--fog); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service p { color: var(--ink-soft); max-width: 64ch; margin-bottom: 0.6em; }
.service p:last-child { margin-bottom: 0; }

/* Steps (a genuine sequence) */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 22px 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--fog); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bay); color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.steps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 6px; }
.steps span { color: var(--ink-soft); font-size: 0.98rem; }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.model { padding: 30px 30px 8px 0; }
.model + .model { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.2); }
.model h3 { font-size: 1.4rem; margin-bottom: 10px; }
.model p { color: rgba(255,255,255,.82); }

.section:not(.deep) .models { border-top-color: var(--fog); }
.section:not(.deep) .model + .model { border-left-color: var(--fog); }
.section:not(.deep) .model p { color: var(--ink-soft); }
@media (max-width: 960px) { .section:not(.deep) .model + .model { border-top-color: var(--fog); } }

/* Bay band (photo) */
.bay-band { height: clamp(150px, 22vw, 300px); background: var(--abyss) url("../img/bay-duotone.jpg") center 58% / cover no-repeat; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3.4fr); gap: 72px; }
.glance { position: sticky; top: 28px; align-self: start; padding: 28px; border-radius: 16px; background: var(--mist); }
.glance h2 { font-size: 1.35rem; margin-bottom: 14px; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { padding: 10px 0; border-top: 1px solid var(--fog); font-size: 0.96rem; color: var(--ink-soft); }
.glance .btn { margin-top: 20px; }

/* Insights */
.articles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fog); }
.articles li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 28px; padding: 24px 0; border-bottom: 1px solid var(--fog); }
.articles .year { font-size: 0.95rem; color: var(--ink-soft); padding-top: 4px; }
.articles a { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; text-decoration: none; color: var(--ink); }
.articles a:hover { color: var(--channel); text-decoration: underline; }
.articles p { margin: 6px 0 0; color: var(--ink-soft); max-width: 62ch; }

/* CTA band */
.cta-band { padding: clamp(72px, 9vw, 112px) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 32px; align-items: end; }
.cta-band h2 { max-width: 26ch; }
.cta-band p { margin: 16px 0 0; }

/* Contact */
.contact-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.contact-way { padding: 32px; border-radius: 16px; border: 1px solid var(--fog); }
.contact-way h2 { font-size: 1.6rem; margin-bottom: 10px; }
.contact-way p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: rgba(255,255,255,.78); background: var(--abyss); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/bay-duotone-sm.jpg") center 70% / cover no-repeat; opacity: .16; }
.site-footer .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; font-size: 0.95rem; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head, .split, .about-grid, .cta-band .wrap, .throughout { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .track::before { display: none; }
  .principles, .steps, .models { grid-template-columns: 1fr; }
  .model + .model { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .quotes { grid-template-columns: 1fr; }
  .quote:first-child { grid-row: auto; }
  .creds ul { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .creds li:nth-child(3) { border-left: 0; padding-left: 0; }
  .glance { position: static; }
  .hero-figure { width: 110vw; right: -40%; opacity: .55; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--abyss); color: var(--white); box-shadow: 0 18px 40px rgba(2,26,51,.35); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; }
  .audience { grid-template-columns: 1fr; gap: 8px; }
  .cols, .contact-ways { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .articles li { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .creds ul { grid-template-columns: 1fr; }
  .creds li { border-left: 0; padding-left: 0; }
}
