/* =====================================================================
   Clara Futura — Industry Advisor · Matt Wilmot
   Unified Advisor Page template (matches /research-collaboration/
   and /consciousness-studies/)
   ===================================================================== */

:root {
  --navy:   #0C2137;
  --navy-2: #0f2840;
  --navy-3: #183552;
  --amber:  #F2B54D;
  --amber-2: #d89a30;
  --cream:  #E8E5DD;
  --muted:  #B5BEC6;
  --fb: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --fd: Georgia, 'Times New Roman', serif;
  --maxw: 1100px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fb);
  color: var(--cream);
  background: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px 12px; background: var(--amber); color: var(--navy); }

/* ===== Nav ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(12, 33, 55, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 190, 198, 0.08);
}
.nav-i {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-name { font-family: var(--fd); font-size: 1.15rem; font-weight: 400; letter-spacing: 0.01em; }
.brand-name em { color: var(--amber); font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-size: 0.95rem; font-weight: 400;
  opacity: 0.88; transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--amber); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 120px;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -6%;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  z-index: 0;
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
  filter: saturate(1.15) brightness(1.08) contrast(1.05);
}
@keyframes hero-drift {
  0%   { transform: scale(1.06) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.2%, -0.8%); }
  100% { transform: scale(1.08) translate(1%, 0.6%); }
}
/* Brightness / glow lights drifting across the hero */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.55;
}
.hero-bg::before {
  /* Warm amber light, top-left */
  width: 55%;
  height: 55%;
  left: -5%;
  top: -5%;
  background: radial-gradient(circle, rgba(255,210,140,0.65) 0%, rgba(242,181,77,0.35) 35%, rgba(242,181,77,0) 70%);
  animation: hero-glow-a 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  /* Cooler cyan-cream light, lower-right */
  width: 50%;
  height: 50%;
  right: -8%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(190,220,255,0.45) 0%, rgba(140,170,210,0.25) 40%, rgba(12,33,55,0) 75%);
  animation: hero-glow-b 22s ease-in-out infinite alternate;
}
@keyframes hero-glow-a {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50%  { transform: translate(18%, 14%) scale(1.18); opacity: 0.7; }
  100% { transform: translate(8%, 26%) scale(1.05); opacity: 0.55; }
}
@keyframes hero-glow-b {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50%  { transform: translate(-14%, -18%) scale(1.22); opacity: 0.65; }
  100% { transform: translate(-22%, -8%) scale(1.1); opacity: 0.5; }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(12,33,55,0.05) 0%, rgba(12,33,55,0.35) 65%, rgba(12,33,55,0.78) 100%),
    linear-gradient(180deg, rgba(12,33,55,0.18) 0%, rgba(12,33,55,0) 35%, rgba(12,33,55,0.45) 100%);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-bg::before, .hero-bg::after { animation: none !important; }
}
.hero-ct {
  position: relative; z-index: 2;
  max-width: 900px; width: 100%;
  text-align: center;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 26px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 28px;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--cream);
  max-width: 780px; margin: 0 auto 18px;
  font-weight: 300;
}
.hero-foot {
  font-size: 0.925rem;
  color: var(--cream);
  opacity: 0.78;
  margin: 0;
  font-weight: 300;
}
.hero-foot em { font-style: italic; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 38px;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.6;
  z-index: 2;
  animation: heroScrollPulse 2.4s var(--ease-out) infinite;
}
.hero-scroll .hero-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--amber);
}
@keyframes heroScrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ===== Shared ===== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Dual Portraits ===== */
.s-duo {
  padding: 88px 0 56px;
  background: var(--navy);
}
.duo-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 160px;
  flex-wrap: wrap;
}
.duo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.duo-card[data-duo="1"].in { transition-delay: 0ms; }
.duo-card[data-duo="2"].in { transition-delay: 180ms; }
.duo-card.in { opacity: 1; transform: translateY(0); }
.duo-img {
  width: 195px; height: 195px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-3);
}
.duo-img img { width: 100%; height: 100%; object-fit: cover; }
.duo-card figcaption {
  margin-top: 24px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 400ms;
}
.duo-card.in figcaption { opacity: 1; }
.duo-card[data-duo="2"].in figcaption { transition-delay: 580ms; }
.duo-name {
  font-family: var(--fb);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--cream);
}
.duo-role {
  font-family: var(--fb);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ===== Accordion ===== */
.s-acc { padding: 32px 0; }
.acc {
  border-top: 1px solid rgba(181, 190, 198, 0.12);
  padding: 40px 0 28px;
}
.acc-hd {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: opacity 0.2s ease;
}
.acc-hd:hover { opacity: 0.92; }
.acc-hd:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 4px; }
.acc-t { flex: 1; min-width: 0; }
.acc-t h2 {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  color: var(--amber);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.acc-cta {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* The + ring */
.acc-plus {
  position: relative;
  width: 72px; height: 72px;
  flex: 0 0 72px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.acc-ring, .acc-glow {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--amber);
  pointer-events: none;
}
.acc-ring {
  inset: 12px;
  border-width: 1.2px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}
.acc-glow {
  inset: 0;
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.acc-icon {
  position: relative;
  z-index: 2;
  color: var(--amber);
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
  display: inline-block;
}
.acc-hd:hover .acc-glow { opacity: 0.6; transform: scale(1.03); }
.acc-hd:hover .acc-ring { transform: scale(1.05); }
.acc-hd[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-hd[aria-expanded="true"] .acc-ring { border-color: var(--amber-2); }
.acc-hd[aria-expanded="true"] .acc-glow {
  animation: accGlowPulse 1.2s var(--ease-out) 1;
}
@keyframes accGlowPulse {
  0%   { transform: scale(1);    opacity: 0.35; }
  50%  { transform: scale(1.12); opacity: 0.7;  }
  100% { transform: scale(1);    opacity: 0.35; }
}

.acc-bd {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.acc-inner {
  padding: 28px 0 8px;
  max-width: 780px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out) 0.15s, transform 0.35s var(--ease-out) 0.15s;
}
.acc-hd[aria-expanded="true"] + .acc-bd .acc-inner {
  opacity: 1;
  transform: translateY(0);
}

.acc-inner p {
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 16px;
  font-weight: 300;
}
.acc-inner strong {
  color: var(--cream);
  font-weight: 500;
}
.acc-inner em { color: var(--cream); font-style: italic; }
.acc-lede { font-size: 1.05rem !important; font-style: italic; color: var(--cream) !important; opacity: 0.92; }
.acc-kicker {
  font-size: 0.72rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber) !important;
  font-weight: 500 !important;
  margin-bottom: 14px !important;
}
.acc-sub {
  font-size: 0.72rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber) !important;
  font-weight: 500 !important;
  margin: 28px 0 16px !important;
}
.acc-sep {
  border: 0;
  height: 1px;
  background: rgba(181, 190, 198, 0.18);
  margin: 28px 0;
}

.pull {
  font-family: var(--fd);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--amber);
  margin: 24px 0;
  padding: 6px 0 6px 20px;
  border-left: 2px solid var(--amber);
  line-height: 1.5;
}

/* Timeline inside accordion */
.tl {
  position: relative;
  padding-left: 26px;
  margin: 8px 0 0;
}
/* Base (dim) line — always visible */
.tl::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(242, 181, 77, 0.22);
}
/* Progress (bright) line — height animated by JS via CSS custom property */
.tl::after {
  content: '';
  position: absolute;
  left: 7px; top: 6px;
  width: 3px;
  height: var(--tl-progress, 0px);
  background: linear-gradient(180deg, rgba(242,181,77,0) 0%, rgba(242,181,77,0.95) 18%, rgba(242,181,77,1) 100%);
  box-shadow: 0 0 12px rgba(242,181,77,0.7), 0 0 28px rgba(242,181,77,0.35);
  border-radius: 2px;
  pointer-events: none;
  transition: height 0.08s linear;
  will-change: height;
}
/* Traveling light pulse — wrapper handles vertical travel only */
.tl-pulse {
  position: absolute;
  left: 8.5px;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.5s ease;
  will-change: transform, opacity;
}
.tl-pulse.is-running {
  opacity: 1;
  animation: tl-travel 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
/* Bright core dot — sits at center of wrapper */
.tl-pulse-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #FFEFC2 25%, #FFD27A 50%, var(--amber) 70%, rgba(242,181,77,0) 100%);
  box-shadow: 0 0 18px rgba(255,255,255,0.95), 0 0 36px rgba(255,220,140,0.85), 0 0 64px rgba(242,181,77,0.55);
  pointer-events: none;
  animation: tl-core-pulse 1.7s ease-in-out infinite;
  will-change: transform, box-shadow;
}
/* Outer expanding halo — breathes outward and back */
.tl-pulse-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,233,176,0.55) 0%, rgba(242,181,77,0.32) 30%, rgba(242,181,77,0.08) 65%, rgba(242,181,77,0) 100%);
  pointer-events: none;
  animation: tl-halo-breathe 2.4s ease-in-out infinite;
  will-change: transform, opacity;
  filter: blur(1px);
}
/* Trailing wisp above the core (looks behind the direction of travel via gradient flip on .is-up) */
.tl-pulse::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -2px;
  margin-top: -56px;
  width: 4px;
  height: 56px;
  background: linear-gradient(180deg, rgba(242,181,77,0) 0%, rgba(255,233,176,0.4) 60%, rgba(255,255,255,0.7) 100%);
  border-radius: 3px;
  filter: blur(0.6px);
  pointer-events: none;
  opacity: 0.85;
}
@keyframes tl-travel {
  0%   { transform: translateY(0); }
  100% { transform: translateY(var(--tl-track, 0px)); }
}
@keyframes tl-core-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(255,255,255,0.95), 0 0 36px rgba(255,220,140,0.85), 0 0 64px rgba(242,181,77,0.55);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 26px rgba(255,255,255,1), 0 0 56px rgba(255,220,140,1), 0 0 96px rgba(242,181,77,0.85), 0 0 140px rgba(242,181,77,0.45);
  }
}
@keyframes tl-halo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(2.4); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-pulse, .tl-pulse.is-running,
  .tl-pulse-core, .tl-pulse-halo {
    animation: none !important;
    opacity: 0 !important;
  }
}
.tl-item {
  position: relative;
  padding: 14px 16px 18px 18px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.4s var(--ease-out), background 0.35s ease, border-color 0.35s ease, box-shadow 0.5s ease;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 22px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(242, 181, 77, 0.4);
  box-shadow: 0 0 0 4px rgba(242, 181, 77, 0.08);
  transition: background 0.35s ease, box-shadow 0.45s ease, transform 0.4s var(--ease-out);
  z-index: 2;
}
/* Lit dot as the progress line reaches it */
.tl-item.is-lit::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242,181,77,0.22), 0 0 14px rgba(242,181,77,0.85), 0 0 28px rgba(242,181,77,0.45);
  transform: scale(1.15);
}
.tl-date {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 6px;
}
.tl-org { font-size: 1rem; font-weight: 500; color: var(--cream); margin-bottom: 2px; }
.tl-role { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; font-style: italic; }

/* Description: 2-line clamp, expand on hover/focus/tap (adds .is-open) */
.tl-desc {
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.86;
  line-height: 1.72;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  padding-right: 2px;
  transition: opacity 0.35s ease, color 0.35s ease, text-shadow 0.45s ease;
}
/* Fade mask hint that text is clamped */
.tl-desc::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 60px; height: 1.72em;
  background: linear-gradient(90deg, rgba(12,33,55,0) 0%, rgba(12,33,55,0.85) 70%, rgba(12,33,55,1) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.tl-item:hover .tl-desc,
.tl-item:focus-within .tl-desc,
.tl-desc.is-open {
  -webkit-line-clamp: unset;
  display: block;
  opacity: 1;
  color: #F7ECD4;
  text-shadow: 0 0 14px rgba(242,181,77,0.18);
}
.tl-item:hover .tl-desc::after,
.tl-item:focus-within .tl-desc::after,
.tl-desc.is-open::after { opacity: 0; }
.tl-item:hover,
.tl-item:focus-within {
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(242,181,77,0.07) 0%, rgba(12,33,55,0.55) 60%, rgba(12,33,55,0.3) 100%);
  border-color: rgba(242,181,77,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(242,181,77,0.25), 0 0 28px rgba(242,181,77,0.25), inset 0 0 22px rgba(242,181,77,0.08);
}
.tl-item:hover::before,
.tl-item:focus-within::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242,181,77,0.25), 0 0 18px rgba(242,181,77,0.95), 0 0 34px rgba(242,181,77,0.5);
  transform: scale(1.2);
}
.tl-desc:focus-visible { outline: 2px solid rgba(242,181,77,0.6); outline-offset: 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .tl::after, .tl-item, .tl-item::before, .tl-desc, .tl-desc::after { transition: none !important; }
}

/* Qualifications list */
.qual-list { list-style: none; padding: 0; margin: 0; }
.qual-list li {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--cream);
  opacity: 0.88;
  padding: 12px 0;
  border-bottom: 1px solid rgba(181, 190, 198, 0.1);
  font-weight: 300;
}
.qual-list li:last-child { border-bottom: 0; }
.qual-list strong { color: var(--amber); font-weight: 500; }

/* Track-record entries inside accordion 3 */
.tr-item {
  padding: 18px 18px 16px;
  margin: 6px 0 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease, box-shadow 0.55s ease;
}
.tr-n {
  font-family: var(--fd);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--amber);
  line-height: 1.05;
  margin-bottom: 10px;
  transition: text-shadow 0.45s ease, transform 0.4s var(--ease-out);
}
.tr-h {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 8px;
  transition: color 0.35s ease;
}
.tr-d {
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.5;
  line-height: 1.72;
  font-weight: 300;
  max-height: 3.44em;
  overflow: hidden;
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: max-height 0.6s var(--ease-out), opacity 0.45s ease, color 0.45s ease, -webkit-line-clamp 0.4s ease;
}
.tr-d::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 70px; height: 1.72em;
  background: linear-gradient(90deg, rgba(12,33,55,0) 0%, rgba(12,33,55,0.9) 70%, rgba(12,33,55,1) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.tr-item:hover,
.tr-item:focus-within,
.tr-item.is-open {
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(242,181,77,0.07) 0%, rgba(12,33,55,0.55) 60%, rgba(12,33,55,0.3) 100%);
  border-color: rgba(242,181,77,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(242,181,77,0.25), 0 0 28px rgba(242,181,77,0.25), inset 0 0 22px rgba(242,181,77,0.08);
}
.tr-item:hover .tr-n,
.tr-item:focus-within .tr-n,
.tr-item.is-open .tr-n {
  text-shadow: 0 0 18px rgba(242,181,77,0.45), 0 0 38px rgba(242,181,77,0.2);
  transform: translateX(1px);
}
.tr-item:hover .tr-h,
.tr-item:focus-within .tr-h,
.tr-item.is-open .tr-h { color: #F7ECD4; }
.tr-item:hover .tr-d,
.tr-item:focus-within .tr-d,
.tr-item.is-open .tr-d {
  -webkit-line-clamp: unset;
  display: block;
  max-height: 60em;
  opacity: 1;
  color: #F7ECD4;
  text-shadow: 0 0 14px rgba(242,181,77,0.16);
}
.tr-item:hover .tr-d::after,
.tr-item:focus-within .tr-d::after,
.tr-item.is-open .tr-d::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .tr-item, .tr-n, .tr-h, .tr-d, .tr-d::after { transition: none !important; }
}

/* ===== CTA ===== */
.s-cta {
  padding: 120px 0 100px;
  text-align: center;
}
.cta-h {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--amber);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.cta-sub {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 42px;
  font-weight: 300;
}
.cta-row {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  color: var(--amber);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 400;
  overflow: hidden;
  background: transparent;
  transition: color 0.24s ease;
  z-index: 0;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
  z-index: -1;
}
.cta-btn:hover { color: var(--navy); }
.cta-btn:hover::before { transform: scaleX(1); }
.cta-btn span { transition: transform 0.24s ease; }
.cta-btn:hover span { transform: translateX(3px); }

/* ===== Footer ===== */
footer {
  padding: 44px 32px 56px;
  border-top: 1px solid rgba(181, 190, 198, 0.1);
  background: var(--navy);
}
.foot-i {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  font-size: 0.85rem;
}
.foot-b { color: var(--cream); opacity: 0.85; }
.foot-b strong { color: var(--amber); font-weight: 500; }
.foot-m { color: var(--muted); text-align: right; line-height: 1.75; }
.foot-m sup { font-size: 0.6rem; margin-left: 1px; }

/* ===== Reveal (shared IntersectionObserver) ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .duo-grid { gap: 64px; }
}
@media (max-width: 720px) {
  .nav-i { padding: 14px 18px; }
  .nav-links { display: none; }
  .hero { padding: 120px 20px 90px; min-height: 460px; }
  .wrap { padding: 0 22px; }
  .s-duo { padding: 56px 0 32px; }
  /* Side-by-side portraits on mobile */
  .duo-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
  }
  .duo-card { flex: 0 1 auto; max-width: 48%; }
  .duo-img { width: 130px; height: 130px; }
  .duo-card figcaption { margin-top: 16px; }
  .duo-name { font-size: 0.98rem; }
  .duo-role { font-size: 0.78rem; margin-top: 6px; line-height: 1.4; }
  .acc { padding: 30px 0 22px; }
  .acc-hd { gap: 20px; }
  .acc-plus { width: 52px; height: 52px; flex-basis: 52px; }
  .acc-ring { inset: 8px; }
  .acc-icon { font-size: 1.45rem; }
  .s-cta { padding: 80px 0 72px; }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-btn { width: 100%; justify-content: center; }
  .foot-i { flex-direction: column; }
  .foot-m { text-align: left; }
  .tr-n { font-size: 1.75rem; }
  .tr-item { padding: 14px 14px 12px; }
}
@media (max-width: 420px) {
  .duo-grid { gap: 14px; }
  .duo-img { width: 108px; height: 108px; }
  .duo-name { font-size: 0.92rem; }
  .duo-role { font-size: 0.72rem; }
}

/* ===== Custom cursor: amber ring + dot ===== */
.cf-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  margin-left: -18px; margin-top: -18px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s var(--ease-out), width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out);
  mix-blend-mode: normal;
  will-change: transform;
}
.cf-cursor::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  box-shadow: 0 0 18px rgba(242, 181, 77, 0.35), inset 0 0 10px rgba(242, 181, 77, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cf-cursor::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(242, 181, 77, 0.7);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease;
}
.cf-cursor.is-on { opacity: 1; }
/* On hover over interactive items, expand the ring and fill the dot */
.cf-cursor.is-hover {
  width: 54px; height: 54px;
  margin-left: -27px; margin-top: -27px;
}
.cf-cursor.is-hover::before {
  border-color: var(--amber);
  background: rgba(242, 181, 77, 0.08);
  box-shadow: 0 0 26px rgba(242, 181, 77, 0.55), inset 0 0 14px rgba(242, 181, 77, 0.2);
}
.cf-cursor.is-hover::after {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
}
/* On click press, briefly shrink */
.cf-cursor.is-down {
  transform: scale(0.82);
}
/* Hide the native cursor only when custom is active */
html.cf-has-cursor, html.cf-has-cursor body { cursor: none; }
html.cf-has-cursor a,
html.cf-has-cursor button,
html.cf-has-cursor [role="button"],
html.cf-has-cursor .acc-hd { cursor: none; }
/* Disable on coarse pointers (touch) */
@media (hover: none), (pointer: coarse) {
  .cf-cursor { display: none !important; }
  html.cf-has-cursor, html.cf-has-cursor body { cursor: auto !important; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-scroll { animation: none; }
  .duo-card, .reveal { opacity: 1; transform: none; }
}

