/* ==========================================================================
   Palmor Capital — palmor.com
   Palette and type sourced from the Palmor deck / logo artwork:
   forest green #30574E, tan #CBBCA7, cream #F2E3C4, warm grey #D9D9D6
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-italic.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green:       #30574E;
  --green-deep:  #27453E;
  --green-ink:   #1D332E;
  --paper:       #FAF9F6;
  --stone:       #D9D9D6;
  --stone-soft:  #E9E7E1;
  --cream:       #F2E3C4;
  --tan:         #CBBCA7;
  --ink:         #262E2A;
  --ink-soft:    #4A544E;
  --white-warm:  #F6F2E9;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body:  'Lora', Georgia, serif;

  --container: 1160px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;            /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--cream); color: var(--green-ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cream);
  color: var(--green-ink);
  padding: .6rem 1.2rem;
  font-size: .9rem;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { padding-block: var(--section-y); }

/* ---------- Section headers (deck treatment: serif + thin cream rule) ---------- */
.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.eyebrow .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--tan);
  letter-spacing: .02em;
}

.section-head h2 {
  font-size: clamp(1.85rem, 1.1rem + 2.6vw, 2.7rem);
}
.section-head .rule {
  width: 76px;
  height: 2px;
  background: var(--tan);
  margin-top: 1.15rem;
}

/* Cream tag chips — the deck's "Beta Growth" treatment */
.chip {
  display: inline-block;
  background: var(--cream);
  color: var(--green);
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  line-height: 1;
  padding: .5em .95em .55em;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}
/* Frosted background lives on a pseudo-element: backdrop-filter on .nav itself
   would become the containing block for the fixed mobile menu and clip it. */
/* Two stacked backgrounds cross-fade: a whisper-light wash on the landing,
   the solid frosted bar once scrolled. */
.nav::before,
.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity .35s ease;
}
.nav::before {
  background: linear-gradient(to bottom, rgba(250, 249, 246, .55), rgba(250, 249, 246, .26));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 1;
}
.nav::after {
  background: rgba(250, 249, 246, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(48, 87, 78, .12);
  opacity: 0;
}
.nav.scrolled::before { opacity: 0; }
.nav.scrolled::after { opacity: 1; }
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.05rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand { display: block; line-height: 0; transition: opacity .3s ease; }
.nav-brand img { height: 24px; width: auto; }
/* On the landing the wordmark lives in the hero itself; the nav copy fades in past the hero */
.nav.brand-hidden .nav-brand { opacity: 0; pointer-events: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  transition: opacity .2s ease;
}
.nav-menu a:hover { opacity: .72; }

.nav-menu .lp-login a {
  border: 1px solid currentColor;
  padding: .55em 1.15em;
  border-radius: 2px;
}
.nav-menu .lp-login a:hover { opacity: 1; background: rgba(48, 87, 78, .08); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  margin: -.5rem;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}

/* Mobile nav */
@media (max-width: 859px) {
  .nav-burger { display: block; position: relative; z-index: 102; }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--green-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .nav-menu a {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--white-warm) !important;
  }
  body.nav-open .nav-menu { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-burger span { background: var(--white-warm); }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 0;
  overflow: hidden;
}
.hero-media, .hero-media img,
.break-media, .break-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Oversized wordmark in the hero's open sky, below the menu (live-site treatment) */
.hero-brand {
  position: absolute;
  inset-inline: 0;
  top: clamp(6.5rem, 15vh, 10rem);
  z-index: 1;
}
.hero-brand-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.hero-brand img { height: clamp(46px, 6.5vw, 84px); width: auto; }

/* Translucent green tagline band across the hero, text right of center (live-site treatment) */
.hero-band {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(90deg,
    rgba(48, 87, 78, .1) 0%,
    rgba(48, 87, 78, .38) 28%,
    rgba(39, 69, 62, .8) 58%,
    rgba(30, 53, 47, .95) 100%);
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.hero-band-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}
.hero-band h1 {
  grid-column: 2;
  color: var(--white-warm);
  font-weight: 450;
  font-size: clamp(1.35rem, .95rem + 1.4vw, 1.85rem);
  line-height: 1.5;
}
@media (max-width: 899px) {
  .hero-band-inner { grid-template-columns: 1fr; }
  .hero-band h1 { grid-column: 1; }
  .wide-only { display: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(29, 51, 46, .65);
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Strategy (01) ---------- */
.strategy-copy {
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* Two-circle graphic, rebuilt from the deck — left edge aligns with the section title */
.venn {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}
.venn-circle {
  width: min(46vw, 465px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  color: var(--white-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Top-anchored at 30% of the circle's own width (mirrors the width formula —
     % padding would resolve against the flex container) so both chips sit level
     regardless of how long each description runs. */
  justify-content: flex-start;
  padding: min(13.8vw, 140px) clamp(2rem, 6vw, 3.5rem) clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  gap: 1.1rem;
}
.venn-circle p {
  font-size: clamp(.92rem, .65rem + 1.1vw, 1.28rem);
  line-height: 1.55;
  color: rgba(246, 242, 233, .92);
  max-width: 21ch;
}
.venn-circle .chip { font-size: clamp(.95rem, .8rem + .5vw, 1.15rem); }
.venn-circle:last-child {
  margin-left: clamp(-88px, -7vw, -56px);
  mix-blend-mode: multiply;
  background: #3B655B;
}
@media (max-width: 599px) {
  .venn { flex-direction: column; align-items: center; }
  .venn-circle { width: min(78vw, 320px); padding-top: min(23.4vw, 96px); }
  .venn-circle:last-child { margin-left: 0; margin-top: -44px; }
}

/* ---------- Strategy Themes (02) ---------- */
.themes { background: #F1EFEA; }

/* ---------- Full-bleed photographic break ---------- */
.break {
  position: relative;
  padding: 0;
  height: clamp(300px, 48vw, 520px);
  overflow: hidden;
}
.break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(48, 87, 78, .38);
}

/* ---------- Principles (03) ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.principle {
  background: var(--stone-soft);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  border-top: 2px solid var(--tan);
}
.principle .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--tan);
  margin-bottom: 1rem;
}
.principle h3 {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.3;
  max-width: 14ch;
}
.principle p {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 959px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 519px) { .principles-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio (04) ---------- */
.portfolio-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

/* Strip carousel: main slide with the next one peeking, circular arrows (old-site treatment) */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
}
.carousel-slide img { width: 100%; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(250, 249, 246, .88);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(29, 51, 46, .25);
  transition: background-color .25s ease, opacity .25s ease;
}
.carousel-btn:hover { background: var(--paper); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: 1.1rem; }
.carousel-btn.next { right: 1.1rem; }
@media (max-width: 599px) {
  .carousel-btn { width: 38px; height: 38px; }
}
.portfolio-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
}
.portfolio-caption h3 { font-size: 1.35rem; font-weight: 500; }
.portfolio-caption .meta {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Leadership (05) ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.leader-photo {
  position: relative;
}
.leader-photo img {
  width: 100%;
  position: relative;
  z-index: 1;
}
.leader-photo::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--tan);
  z-index: 0;
}
.leader-bio .chip { margin-bottom: 1.1rem; }
.leader-bio h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.15rem);
  margin-bottom: 1.4rem;
}
.leader-bio p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
@media (max-width: 859px) {
  .leader-grid { grid-template-columns: 1fr; }
  .leader-photo { max-width: 380px; }
}

/* ---------- Contact (05) ---------- */
.contact {
  background: var(--green-deep);
  color: var(--white-warm);
}
.contact .eyebrow .label { color: rgba(246, 242, 233, .66); }
.contact h2 { color: var(--white-warm); }
.contact .rule { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-block .kicker {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
}
.contact-block address {
  font-style: normal;
  line-height: 1.75;
  font-size: 1.05rem;
}
.contact a {
  color: var(--cream);
  text-decoration-color: rgba(242, 227, 196, .5);
}
.contact a:hover { text-decoration-color: var(--cream); }
.contact-lines { margin-top: .35rem; }
.contact-lines p { margin-bottom: .8em; color: rgba(246, 242, 233, .88); }
@media (max-width: 719px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-ink);
  color: rgba(237, 229, 209, .78);
  padding-block: 2.75rem;
  font-size: .85rem;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.footer-brand img { height: 18px; width: auto; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.footer a { color: rgba(237, 229, 209, .85); }
.footer .disclaimer {
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(237, 229, 209, .72);
  max-width: 72ch;
  border-top: 1px solid rgba(203, 188, 167, .18);
  padding-top: 1.5rem;
}

/* ---------- Investor portal page ---------- */
.portal-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--pad-x) 3rem;
  background:
    linear-gradient(180deg, rgba(48, 87, 78, .05), rgba(48, 87, 78, 0) 40%),
    var(--paper);
}
.portal-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid rgba(203, 188, 167, .55);
  border-top: 2px solid var(--tan);
  padding: clamp(2rem, 6vw, 3rem);
  text-align: center;
}
.portal-card .brand img { height: 22px; width: auto; margin-inline: auto; }
.portal-card h1 {
  font-size: 1.45rem;
  font-weight: 500;
  margin-top: 1.9rem;
}
.portal-card .rule {
  width: 56px;
  height: 2px;
  background: var(--tan);
  margin: 1rem auto 2rem;
}
.portal-form { text-align: left; }
.portal-form label {
  display: block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .45rem;
}
.portal-form input {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: .7rem .85rem;
  margin-bottom: 1.25rem;
}
.portal-form input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.portal-form button {
  width: 100%;
  font-family: var(--body);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white-warm);
  background: var(--green);
  border: 0;
  border-radius: 2px;
  padding: .95rem 1rem;
  cursor: pointer;
  transition: background-color .25s ease;
}
.portal-form button:hover { background: var(--green-deep); }
.portal-note {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: 1.75rem;
}
.portal-note.notice { color: var(--green); }
.portal-back {
  margin-top: 2.25rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Reveal on scroll (JS adds .reveal; guarded for no-JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .scroll-cue { display: none; }
  .hero { min-height: 0; padding-block: 4rem; }
}
