/* Twin Peaks Capital — styles.css
   Editorial, institutional: petrol navy, steel teal, Cinzel display serif. */

/* Self-hosted fonts: Cinzel (display) + Inter (body) */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/cinzel-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0b3d56;          /* brand ground */
  --navy-deep: #062a3d;     /* footer / hero veil floor */
  --petrol: #0f4c6b;        /* interactive accents */
  --teal: #3e7e9e;          /* icon steel teal */
  --teal-light: #7faeC4;
  --ice: #f5f9fb;           /* section wash */
  --mist: #dce8ef;          /* hairlines on light */
  --ink: #1d2b33;           /* body text */
  --ink-soft: #4a5c66;      /* secondary text */
  --gold: #a98a45;          /* whisper-of-gold hairline accent */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --measure: 42rem;
  --header-h: 4.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(245, 249, 251, .97);
  box-shadow: 0 1px 0 rgba(6, 42, 61, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img {
  height: 64px;
  width: 64px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(6, 42, 61, .25);
}
.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(11, 61, 86, .72);
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, #125a7d 100%);
}
.hero-peaks {
  position: relative;
  z-index: 1;
  order: 2;
  flex: 0 0 42%;
  width: 100%;
}
.hero-peaks img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 38%, rgba(6, 42, 61, .0) 0%, rgba(6, 42, 61, .38) 100%),
    linear-gradient(180deg, rgba(6, 42, 61, .55) 0%, rgba(6, 42, 61, .05) 45%, rgba(6, 42, 61, .35) 100%);
}
/* text is locked to the upper (navy) zone; the image owns the lower zone,
   so the tagline can never spill into the picture or the next section */
.hero-content {
  position: relative;
  z-index: 3;
  order: 1;
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) 1.5rem 0;
  animation: hero-rise 1.1s ease both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 4.25rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(6, 42, 61, .55);
}
.hero-tag {
  margin-top: 1.1rem;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .85);
}

/* double hairline rule — echoes the logo mark */
.rule-double {
  width: 7.5rem;
  height: 6px;
  margin-top: 1.4rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.rule-double.center { margin-left: auto; margin-right: auto; }

/* ---------- statement (home) ---------- */

.statement {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) 1.5rem;
  text-align: center;
}
.statement-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.65;
  color: var(--navy);
}
.statement .rule-double { margin-top: 2.5rem; }

/* ---------- inner page hero ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  text-align: center;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 6.5rem)) 1.5rem clamp(3rem, 7vw, 5rem);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.page-hero .rule-double { margin-top: 1.5rem; }

/* ---------- philosophy tenets ---------- */

.tenets { max-width: 62rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(4.5rem, 9vw, 7rem); }
.tenet {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}
.tenet + .tenet { border-top: 1px solid var(--mist); }
.tenet-icon img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  padding: 1.1rem;
  border: 1px solid var(--mist);
  border-radius: 50%;
  background: var(--ice);
}
.tenet-number {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: .4rem;
}
.tenet h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: .05em;
  color: var(--navy);
  margin-bottom: .9rem;
}
.tenet p + p { margin-top: .9rem; }
.tenet p { color: var(--ink-soft); }

/* ---------- team ---------- */

.principals {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(4.5rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.principal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: .06em;
  color: var(--navy);
}
.principal-role {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: .4rem 0 1.6rem;
}
.timeline { list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.4rem;
  border-left: 1px solid var(--mist);
  color: var(--ink-soft);
  font-size: .98rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: .55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.timeline-years {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
  letter-spacing: .04em;
}
.timeline-edu { color: var(--ink); font-style: italic; }
.timeline li.timeline-edu::before { background: var(--gold); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .82); }
.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-brand img {
  height: 55px;
  width: auto;
  margin-bottom: 1.25rem;
}
.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}
.footer-brand .rule-double { width: 5.5rem; margin: 0 0 1.1rem; }
.footer-heading {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .8rem;
}
.footer-small { font-size: .85rem; line-height: 1.8; color: rgba(255, 255, 255, .62); }
.footer-small a { color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 1px solid var(--teal); white-space: nowrap; }
.footer-small a:hover { color: #fff; border-bottom-color: var(--gold); }
.pi-badge {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(169, 138, 69, .65);
  border-radius: 3px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d9c79a;
  white-space: nowrap;
}
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(245, 249, 251, .98);
    box-shadow: 0 8px 16px rgba(6, 42, 61, .12);
    padding: .5rem 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(6, 42, 61, .1); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

  .tenet { grid-template-columns: 1fr; }
  .tenet-icon img { width: 5.5rem; height: 5.5rem; }
  .footer-grid { grid-template-columns: 1fr; }

  /* rebalance the hero: 60% text zone, 40% photograph (Eric-approved ratio) */
  .hero-content { flex: 1 1 60%; }
  .hero-peaks { flex: 0 0 40%; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  * { transition-duration: .01ms !important; }
}
