/* ================================================================
   Ramsay Brown LLP — Pulse & PCPN 2025
   v5 — three-column: hero | resources | expertise
   ================================================================ */

:root {
  --dark:    #0F1923;
  --dark2:   #132030;   /* expertise column */
  --orange:  #E8580A;
  --orange2: #FF6B20;
  --white:   #FFFFFF;
  --ink:     #1A1B2E;
  --muted:   #6B7280;
  --rule:    rgba(26,27,46,0.09);
  --rule-inv: rgba(255,255,255,0.11);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;

  --nav-h: 58px;
  --e: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--dark);
}

@media (min-width: 769px) { body { overflow: hidden; } }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ══════════════════════════════════════════════════════════════
   PAGE SHELL
══════════════════════════════════════════════════════════════ */
.page {
  height: 100vh;
  display: grid;
  grid-template-rows: var(--nav-h) 1fr;
}

/* ══════════════════════════════════════════════════════════════
   NAV — white, logo top-right
══════════════════════════════════════════════════════════════ */
.nav {
  background: var(--white);
  border-bottom: 1.5px solid var(--orange);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 2.2vw, 44px);
  position: relative;
  z-index: 10;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-conf {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-fallback {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════════════════════
   STAGE — three columns + bottom strip
══════════════════════════════════════════════════════════════ */
.stage {
  display: grid;
  grid-template-columns: 33fr 34fr 33fr;
  grid-template-rows: 1fr 50px;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   LEFT PANEL — dark, hero + Alexandra Ross photo
══════════════════════════════════════════════════════════════ */
.panel-l {
  grid-column: 1;
  grid-row: 1;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1.5px solid var(--orange);
}

/* Top — hero text */
.l-top {
  flex-shrink: 0;
  padding: clamp(20px, 2.8vh, 34px) clamp(18px, 2vw, 36px) 0;
  opacity: 0;
  animation: fadeUp 0.7s var(--e) 0.1s forwards;
}

.l-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(10px, 1.4vh, 16px);
}

.l-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:0.2 } }

.l-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.l-hl {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #ffffff;              /* all white — no italic, no grey */
  margin-bottom: clamp(8px, 1.1vh, 13px);
}

.l-sub {
  font-size: clamp(11.5px, 0.95vw, 13px);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 280px;
  padding-bottom: clamp(12px, 1.6vh, 18px);
}

.l-sub-tag {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Bottom — Alexandra's photo fills remaining height */
.l-alex {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.alex-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  opacity: 0;
  animation: photoReveal 1s var(--e) 0.4s forwards;
}

@keyframes photoReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* Top gradient — dark bleeds down over photo */
.l-alex::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, var(--dark) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom gradient — CTA readability */
.l-alex::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(10,20,32,0.97) 0%, rgba(10,20,32,0.7) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* CTA overlaid at bottom of photo */
.alex-cta {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: clamp(20px, 3vh, 34px) clamp(18px, 2vw, 36px);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.65s var(--e) 0.56s forwards;
}

.alex-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  display: block;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.alex-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: clamp(12px, 1.8vh, 20px);
}

.l-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--orange);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 3px;
  width: fit-content;
  transition: all 0.16s var(--e);
  margin-bottom: 9px;
}

.l-book-btn:hover {
  background: var(--orange2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,88,10,0.4);
}

.l-alt {
  font-size: 10.5px;
  color: rgba(255,255,255,0.50);
}

.l-alt a {
  color: rgba(255,255,255,0.68);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.14s;
}

.l-alt a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   MIDDLE PANEL — white, bold resources
══════════════════════════════════════════════════════════════ */
.panel-m {
  grid-column: 2;
  grid-row: 1;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vh, 30px) clamp(18px, 2vw, 36px);
  border-right: 1.5px solid rgba(232,88,10,0.35);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.6s var(--e) 0.28s forwards;
}

.res-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.sec-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.sec-meta {
  font-size: 10px;
  color: var(--muted);
}

.res-rule {
  height: 1px;
  background: var(--rule);
  flex-shrink: 0;
}

.res-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.res-list > li {
  display: contents; /* let .res-item be the direct flex child */
}

.res-item {
  flex: 1;
  display: grid;
  grid-template-columns: 26px 44px 1fr auto;
  align-items: center;
  gap: 0 clamp(8px, 0.85vw, 14px);
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.13s;
  position: relative;
  min-height: 0;
}

.res-item:last-child { border-bottom: none; }

.res-item:hover {
  background: rgba(232,88,10,0.04);
  box-shadow: inset 3px 0 0 var(--orange);
}

.res-item:hover .res-title  { color: var(--orange); }
.res-item:hover .res-pill   { background: var(--orange); color: #fff; border-color: transparent; }
.res-item:hover .res-icon-w { background: rgba(232,88,10,0.15); }

.res-num {
  font-size: 9px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-align: right;
}

.res-icon-w {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(232,88,10,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  transition: background 0.13s;
}

.res-icon-w svg { width: 19px; height: 19px; }

.res-body { min-width: 0; }

.res-title {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.13s;
  margin-bottom: 2px;
}

.res-desc {
  font-size: 12px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-pill {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(26,27,46,0.14);
  padding: 5px 12px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: all 0.13s;
  white-space: nowrap;
}

/* Newsletter — always highlighted */
.res-item--nl .res-pill {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
}
.res-item--nl:hover .res-pill { background: var(--orange2); }

/* ══════════════════════════════════════════════════════════════
   RIGHT PANEL — dark, expertise (6 items stacked)
══════════════════════════════════════════════════════════════ */
.panel-r {
  grid-column: 3;
  grid-row: 1;
  background: var(--dark2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.6s var(--e) 0.38s forwards;
}

.exp-head {
  flex-shrink: 0;
  padding: clamp(16px, 2.2vh, 26px) clamp(18px, 2vw, 36px) 8px;
}

.exp-rule {
  height: 1px;
  background: var(--rule-inv);
  flex-shrink: 0;
  margin: 0 clamp(18px, 2vw, 36px);
}

.exp-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.exp-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 1.2vh, 14px) clamp(18px, 2vw, 36px);
  border-bottom: 1px solid var(--rule-inv);
  overflow: hidden;
  transition: background 0.14s;
}

.exp-item:last-child { border-bottom: none; }
.exp-item:hover { background: rgba(232,88,10,0.08); }
.exp-item:hover .exp-icon-w { color: var(--orange); }
.exp-item:hover .exp-title  { color: #fff; }
.exp-item:hover::before     { opacity: 1; }

/* Left orange accent on hover */
.exp-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.14s;
}

/* Watermark number — decorative background */
.exp-bg-n {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.exp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.exp-icon-w {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  transition: color 0.14s;
  display: flex;
}

.exp-icon-w svg { width: 16px; height: 16px; }

.exp-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.06em;
}

.exp-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: color 0.14s;
}

.exp-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM STRIP — stats
══════════════════════════════════════════════════════════════ */
.strip {
  grid-column: 1 / -1;
  grid-row: 2;
  background: var(--dark);
  border-top: 1px solid rgba(232,88,10,0.4);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  padding: 0 clamp(18px, 2.2vw, 44px);
  opacity: 0;
  animation: fadeIn 0.5s var(--e) 0.6s forwards;
}

.strip-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.strip-n {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.strip-l {
  font-size: 9.5px;
  color: rgba(255,255,255,0.52);   /* improved contrast */
  line-height: 1.35;
}

.strip-rule {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.strip-book {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition: gap 0.15s;
}

.strip-book:hover { gap: 10px; }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE — single column scroll
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  body { overflow: auto; height: auto; background: var(--dark); }
  .page { height: auto; display: block; }

  .stage { display: block; overflow: visible; }

  .panel-l  { min-height: 85vh; border-right: none; border-bottom: 1.5px solid var(--orange); }
  .panel-m  { border-right: none; border-bottom: 1px solid var(--rule); min-height: 360px; }
  .panel-r  { min-height: 400px; }

  .exp-list { flex-wrap: wrap; flex-direction: row; min-height: auto; }
  .exp-item { min-width: 50%; flex: unset; border-right: 1px solid var(--rule-inv); }
  .exp-item:nth-child(2n) { border-right: none; }

  .strip { min-height: 50px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .strip-book { margin-left: 0; }
}

@media (max-width: 500px) {
  .exp-item { min-width: 100%; border-right: none; }
  .res-title { font-size: 15px; }
}
