/* ═══════════════════════════════════════════════════════════════
   APHIAS CAPITAL — Modern Redesign
   Aesthetic: Refined institutional PE — Advent/Hamilton Lane inspired
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1B32;
  --navy-light: #2C3E6B;
  --accent-blue: #4A7AB5;
  --accent-blue-soft: rgba(74,122,181,0.12);
  --copper: #B87333;
  --light-gray: #F7F8FA;
  --mid-gray: #E4E7EC;
  --border-subtle: rgba(27,42,74,0.08);
  --text-dark: #1A1A2E;
  --text-medium: #4A4A5A;
  --text-light: #8A8A9A;
  --white: #FFFFFF;
  --header-height: 90px;
  --section-pad: clamp(3.5rem, 7vw, 5.5rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  background: var(--white);
}

/* ── Touch Target Minimums (48px per Material Design) ── */
a, button, .btn-outline, .menu-toggle, .back-to-top,
input, select, textarea {
  min-height: 44px;
  min-width: 44px;
}
/* Exempt inline text links from min size */
p a, li a, span a, .footer-links a, .contact-details a,
.site-header nav a {
  min-height: unset;
  min-width: unset;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.15; }
h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); line-height: 1.25; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.35; }
h4 { font-size: 1.25rem; line-height: 1.4; }
p { font-size: 1.08rem; line-height: 1.85; margin-bottom: 1rem; color: var(--text-medium); }
a { color: var(--navy); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-blue); }

.container { max-width: 1300px; margin: 0 auto; padding: 0 clamp(1.5rem, 5%, 3rem); }

/* ── Header / Nav ───────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5%, 3rem);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 30px rgba(27,42,74,0.06);
  background: rgba(255,255,255,0.98);
}
.site-header .logo img { height: 70px; width: auto; transition: opacity 0.3s; }
.site-header .logo:hover img { opacity: 0.8; }
.site-header nav { display: flex; gap: 1.8rem; align-items: center; }
.site-header nav a {
  font-family: 'Lato', sans-serif; font-weight: 400; font-size: 0.88rem;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-medium); position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.site-header nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--accent-blue);
  transition: width 0.4s var(--ease-out-expo);
}
.site-header nav a:hover { color: var(--navy); }
.site-header nav a:hover::after, .site-header nav a.active::after { width: 100%; }
.site-header nav a.active { color: var(--navy); font-weight: 700; }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: 0.3s; }

/* ── Hero Sections ──────────────────────────────── */
.hero {
  position: relative;
  height: clamp(340px, 45vh, 420px);
  /* Progressive enhancement: dvh respects dynamic viewport on Android/iOS */
  height: clamp(340px, 45dvh, 420px);
  display: flex; align-items: center; justify-content: flex-start;
  margin-top: var(--header-height); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform 8s ease-out;
}
.hero:hover .hero-bg { transform: scale(1.02); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: none;
}
.hero-approach .hero-bg::after {
  background: linear-gradient(160deg, rgba(15,27,50,0.65) 0%, rgba(27,42,74,0.35) 50%, rgba(0,0,0,0.2) 100%);
}
.hero-team .hero-bg::after {
  background: linear-gradient(160deg, rgba(15,27,50,0.65) 0%, rgba(27,42,74,0.35) 50%, rgba(0,0,0,0.2) 100%);
}
.hero-about .hero-bg::after {
  background: linear-gradient(160deg, rgba(15,27,50,0.65) 0%, rgba(27,42,74,0.35) 50%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: white;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6%, 5rem);
  max-width: 800px;
}
.hero-content h1 {
  color: white; margin-bottom: 0.5rem;
  font-weight: 300; letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
.accent-line {
  width: 0; height: 2px;
  background: var(--accent-blue);
  margin-bottom: 1.2rem;
  opacity: 0.8;
  animation: lineGrow 1s var(--ease-out-expo) 0.8s forwards;
}
@keyframes lineGrow { from { width: 0; } to { width: 50px; } }
.hero-content .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
.hero-content p {
  text-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.25);
}

/* Home hero — centered */
.hero-home .hero-bg::after {
  background: none;
}
.hero-home { align-items: center; justify-content: center; }
.hero-home .hero-content { text-align: center; max-width: 850px; padding: 0 5%; }
.hero-home .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-home .accent-line { display: none; }

/* Dynamic home hero positioning — show bridge + sailboat */
.hero-home .hero-bg {
  background-position: center 75%;
}
@media (min-aspect-ratio: 2/1) {
  /* Very wide screens — sailboat is at risk of being cropped, push down more */
  .hero-home .hero-bg { background-position: center 85% !important; }
}
@media (max-aspect-ratio: 4/3) {
  /* Taller screens — more vertical space, can center more */
  .hero-home .hero-bg { background-position: center 65% !important; }
}
@media (max-aspect-ratio: 1/1) {
  /* Portrait/mobile — lots of vertical space, show full composition */
  .hero-home .hero-bg { background-position: center 60% !important; }
}

/* ── Hero Animations ────────────────────────────── */
.hero-animate {
  opacity: 0; animation: heroReveal 1.4s var(--ease-out-expo) forwards;
}
.hero-animate-delay {
  opacity: 0; animation: heroFade 1.2s var(--ease-out-quart) forwards; animation-delay: 0.5s;
}
@keyframes heroReveal { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Scroll Reveal ──────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; transition: all 0.9s var(--ease-out-expo); }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.96); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none; }
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: all 0.7s var(--ease-out-expo); }
.stagger-children.visible > * { opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.54s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.61s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.68s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.75s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.82s; }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.89s; }

/* ── Sections ───────────────────────────────────── */
.section-light { padding: var(--section-pad) clamp(1.5rem, 5%, 3rem); background: var(--white); }
.section-gray { padding: var(--section-pad) clamp(1.5rem, 5%, 3rem); background: var(--light-gray); }
.section-dark { padding: var(--section-pad) clamp(1.5rem, 5%, 3rem); background: var(--navy-deep); color: white; }
.section-header { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-header h2 { color: var(--navy); margin-bottom: 0.8rem; font-weight: 300; }
.section-dark .section-header h2 { color: var(--white); }
.divider { width: 40px; height: 2px; background: var(--accent-blue); margin: 0 auto; opacity: 0.7; }

/* ── Home Three Columns ─────────────────────────── */
.three-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.three-cols .col {
  padding: 2.5rem 1.5rem;
  transition: background 0.4s ease;
}
.three-cols .col:hover { background: var(--light-gray); }
.three-cols .col h3 {
  font-family: 'Lato', sans-serif; font-weight: 600;
  font-size: 0.85rem; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1.2rem;
}
.three-cols .col p {
  font-size: 0.92rem; color: var(--text-medium); line-height: 1.8;
  max-width: 320px; margin: 0 auto 1.2rem;
}

/* ── Buttons ────────────────────────────────────── */
.btn-outline {
  display: inline-block; padding: 11px 32px;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo); cursor: pointer; background: none;
}
.btn-outline:hover {
  background: var(--navy); color: white;
  box-shadow: 0 6px 24px rgba(27,42,74,0.15);
  transform: translateY(-1px);
}

/* ── Home Personal Message ──────────────────────── */
.personal-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.personal-section .text-col p { font-size: 0.95rem; color: var(--text-medium); }
.personal-section .image-col img {
  width: 100%; max-width: 480px; height: auto; object-fit: cover;
}

/* ── About Page ─────────────────────────────────── */
.about-mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start;
  max-width: 1100px; margin: 0 auto;
}
.about-mission .text-col h3 {
  color: var(--navy); margin-bottom: 1rem;
  font-size: 1.8rem; font-weight: 600;
}
.about-mission .text-col p { color: var(--text-medium); }
.about-mission .image-col img { width: 100%; height: auto; }

.principles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 0;
  background: var(--mid-gray);
}
.principle-card {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  background: var(--white);
  transition: background 0.3s ease;
}
.principle-card:hover { background: var(--light-gray); }
.principle-card h4 {
  font-family: 'Lato', sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--navy); margin-bottom: 0.8rem;
}
.principle-card p { font-size: 0.95rem; color: var(--text-medium); line-height: 1.75; margin-bottom: 0; }

.results-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 800px; margin: 0 auto; text-align: center;
}
.results-bar .result-item {
  padding: 1.5rem 0;
  display: flex; flex-direction: column; align-items: center;
}
.results-bar .result-item h3 {
  font-size: 1.1rem; font-weight: 600;
  font-family: 'Lato', sans-serif;
}

/* ── Approach Page ──────────────────────────────── */
.approach-overview {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  max-width: 1300px; margin: 0 auto;
  border: 1px solid var(--mid-gray);
}
.approach-card {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-right: 1px solid var(--mid-gray);
  transition: background 0.4s ease;
  display: flex; flex-direction: column;
}
.approach-card:last-child { border-right: none; }
.approach-card:hover { background: var(--light-gray); }
.approach-card h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 1.25rem; color: var(--navy); margin-bottom: 1.2rem;
  font-style: italic;
}
.approach-card p { font-size: 1rem; color: var(--text-medium); line-height: 1.8; flex: 1; }
.approach-card .btn-outline { margin-top: 1.5rem; align-self: flex-start; }

.invest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  max-width: 1100px; margin: 0 auto;
  background: rgba(74,122,181,0.2);
}
.invest-card {
  background: var(--navy); color: white;
  padding: clamp(1.5rem, 2.5vw, 2.2rem); text-align: center;
  transition: background 0.4s ease;
}
.invest-card:hover { background: var(--navy-light); }
.invest-card h4 {
  font-family: 'Lato', sans-serif; font-weight: 600;
  font-size: 1.08rem; margin-bottom: 0.5rem;
}
.invest-card p { font-size: 0.95rem; opacity: 0.75; margin: 0; color: white; }

.industry-section h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 500; }
.industry-section h4 {
  color: var(--accent-blue); font-size: 0.95rem; font-weight: 600;
  font-family: 'Lato', sans-serif; margin: 1.8rem 0 0.8rem;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.industry-section p { color: var(--text-medium); font-size: 0.92rem; }
.industry-section ul {
  list-style: none; padding-left: 0;
  color: var(--text-medium); font-size: 0.95rem; line-height: 2;
}
.industry-section ul li::before {
  content: ''; margin-right: 0;
}

.industry-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.industry-two-col img { width: 100%; height: auto; }

.quote-block {
  max-width: 850px; margin: 0 auto; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.35rem; color: var(--text-medium); line-height: 1.9;
  position: relative; padding: 2rem 0;
}
.quote-block::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--accent-blue); opacity: 0.4;
}
.quote-block .attribution {
  font-style: normal; font-weight: 600; color: var(--navy);
  margin-top: 1.2rem; font-size: 1.1rem;
}

/* ── Team Page ──────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(3.3rem, 5.25vw, 5.25rem);
  max-width: 1200px; margin: 0 auto;
}
.team-member {
  cursor: pointer; text-align: left;
  transition: transform 0.4s var(--ease-out-expo);
}
.team-member:hover { transform: translateY(-4px); }
.team-member .photo-wrap {
  overflow: hidden; width: 100%;
  aspect-ratio: 4/5; max-width: 260px;
}
.team-member .photo-wrap img,
.team-member img.photo {
  width: 100%; max-width: 260px;
  height: auto; aspect-ratio: 4/5;
  object-fit: cover; object-position: center 20%;
  display: block;
  image-rendering: auto;
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s ease;
  filter: brightness(0.95);
}
.team-member:hover .photo-wrap img,
.team-member:hover img.photo {
  transform: scale(1.03);
  filter: brightness(1);
}
.team-member h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: var(--navy);
  margin-top: 0.6rem; font-weight: 600;
}
.team-member .role {
  font-size: 0.88rem; color: var(--text-light);
  margin: 0.1rem 0 0; line-height: 1.4;
  letter-spacing: 0.3px;
}

/* ── Contact Page ───────────────────────────────── */
.contact-info { max-width: 700px; margin: 0 auto; }
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  color: var(--navy); font-weight: 300; margin-bottom: 2.5rem;
}
.contact-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem;
}
.contact-details p { font-size: 0.92rem; color: var(--text-dark); line-height: 1.7; margin: 0; }
.contact-details a {
  color: var(--accent-blue); border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-details a:hover { border-bottom-color: var(--accent-blue); }
.contact-map { width: 100%; max-width: 900px; margin: 0 auto; }
.contact-map iframe { width: 100%; height: 320px; border: 0;  }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.6);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5%, 3rem);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
}
.site-footer img { height: 50px; margin-bottom: 0.6rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-copyright { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-text {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  max-width: 480px; line-height: 1.6;
}
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px; transition: color 0.3s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

/* ── Disclaimer / Privacy Pages ─────────────────── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h3 { color: var(--navy); margin: 2.5rem 0 1rem; font-size: 1.25rem; font-weight: 500; }
.legal-content p { font-size: 0.9rem; color: var(--text-medium); }
.legal-content ul { padding-left: 1.2rem; font-size: 0.9rem; color: var(--text-medium); line-height: 1.9; }

/* ── Responsive ─────────────────────────────────── */
/* ── News Page ──────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.news-card {
  background: white;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,42,74,0.08);
}
.news-card-icon {
  color: var(--accent-blue);
  margin-bottom: 1.2rem;
}
.news-card-date {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.8rem;
}
.news-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 1rem;
}
.news-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}
.news-card-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s;
}
.news-card-link:hover { color: var(--navy); }

/* LinkedIn article cards */
.news-feed-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 680px;
  margin: 0 auto;
}
.news-article {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  width: 100%;
  transition: box-shadow 0.4s ease;
}
.news-article:hover {
  box-shadow: 0 8px 30px rgba(27,42,74,0.06);
}
.news-article-badge {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin: 0 0 0.5rem;
  width: 100%;
}
.news-article-inner {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.news-article-header {
  margin-bottom: 1.2rem;
}
.news-article-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}
.news-article-role {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0.2rem 0 0;
}
.news-article-body p {
  font-size: 0.93rem;
  color: var(--text-medium);
  line-height: 1.78;
  margin: 0 0 1rem;
}
.news-article-body p:last-child { margin-bottom: 0; }
.news-article-body a {
  color: var(--accent-blue);
  text-decoration: none;
}
.news-article-body a:hover { text-decoration: underline; }
.news-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.news-article-tags span {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(10,102,194,0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.news-article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
  width: 100%;
  transition: color 0.3s;
}
.news-article-link:hover { color: var(--navy); }

/* Press grid */
.press-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.press-item {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background 0.3s ease;
}
.press-item:first-child { border-top: 1px solid var(--border-subtle); }
.press-item:hover { background: rgba(27,42,74,0.02); }
.press-source {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.press-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.4;
}
.press-date {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: right;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .three-cols, .approach-overview, .invest-grid, .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-overview { border: none; gap: 1px; background: var(--mid-gray); }
  .approach-card { border-right: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .press-item { grid-template-columns: 120px 1fr 100px; gap: 1rem; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; order: -1; }
  .site-header .logo { order: 1; }
  .site-header nav {
    display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
    background: white; flex-direction: column; padding: 2rem 1.5rem; gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  .site-header nav.open { display: flex; }
  .three-cols, .approach-overview, .invest-grid, .principles-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about-mission, .personal-section, .industry-two-col, .contact-details { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .press-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem 0;
  }
  .press-date { text-align: left; }
  .hero { min-height: 280px; }
  .site-footer { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; }

  /* Force ALL inline grid layouts to single column on mobile */
  .section-gray > div[style*="grid-template-columns"],
  .section-light > div[style*="grid-template-columns"],
  .mission-two-col,
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 1fr 2.5fr"],
  [style*="grid-template-columns: 1fr 2.2fr"],
  [style*="grid-template-columns: 1fr 1.8fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Home compass section min-height */
  [style*="min-height: 550px"] {
    min-height: auto !important;
  }
  [style*="min-height: 550px"] .reveal-right {
    min-height: 300px !important;
  }
  /* Home compass section - full bleed, no padding on parent */
  section[style*="padding: 0"] > div[style*="grid-template-columns"] {
    gap: 0 !important;
  }
  section[style*="padding: 0"] > div[style*="grid-template-columns"] > .reveal-left {
    padding: 2rem clamp(1rem, 4%, 2rem) !important;
  }
  section[style*="padding: 0"] > div[style*="grid-template-columns"] > .reveal-right {
    min-height: 280px !important;
    position: relative;
  }

  /* Industry 2x2 grids: single column, reorder to sectors-image-opps-image */
  .reveal-scale[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
  }
  .reveal-scale[style*="grid-template-columns: 1fr 1fr"] > :nth-child(1) { order: 1; } /* Sectors list */
  .reveal-scale[style*="grid-template-columns: 1fr 1fr"] > :nth-child(2) { order: 2; } /* Image 1 */
  .reveal-scale[style*="grid-template-columns: 1fr 1fr"] > :nth-child(3) { order: 4; } /* Image 2 - push to end */
  .reveal-scale[style*="grid-template-columns: 1fr 1fr"] > :nth-child(4) { order: 3; } /* Opportunities list */
  /* Show stethoscope (bottom of image) on mobile crop */
  .img-stethoscope {
    object-position: center bottom !important;
  }
  /* Home compass section - no padding for full-bleed image */
  section[style*="padding: 0"] > div[style*="grid-template-columns"] > .reveal-right {
    min-height: 300px !important;
  }
  /* About page - images full bleed */  
  .section-gray[style*="padding-right: 0"],
  .section-light[style*="padding-left: 0"] {
    padding: 0 !important;
  }
  .section-gray[style*="padding-right: 0"] .reveal-left,
  .section-light[style*="padding-left: 0"] > div > div[style*="padding"] {
    padding: 1.5rem clamp(1rem, 4%, 2rem) !important;
  }
  
  /* All section padding override */
  .section-gray, .section-light {
    padding-left: clamp(1rem, 4%, 2rem) !important;
    padding-right: clamp(1rem, 4%, 2rem) !important;
  }
  /* Re-zero padding on sections that need edge-to-edge images */
  .section-gray[style*="padding-right: 0"],
  .section-light[style*="padding-left: 0"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Industry focus section - zero padding so grid images go edge-to-edge */
  #industry-focus {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #industry-focus > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  /* But keep text content padded */
  #industry-focus .section-header,
  #industry-focus h3,
  #industry-focus > .container > .reveal,
  #industry-focus > .container > p,
  .reveal-scale .industry-section {
    padding-left: clamp(1rem, 4%, 2rem) !important;
    padding-right: clamp(1rem, 4%, 2rem) !important;
  }
  /* Industry images - full viewport width, no max-height restriction */
  .reveal-scale .industry-img-wrap {
    max-height: 220px;
  }
  .reveal-scale .industry-section {
    padding: 1.5rem 1rem !important;
  }
  .sector-label, span.sector-label {
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    padding: 0.3rem 0.8rem !important;
    margin-bottom: 0.8rem !important;
  }
  .sector-list { font-size: 0.95rem !important; line-height: 1.6 !important; }
  .sector-list li { padding: 0.35rem 0.5rem !important; }
  
  /* Remove dotted underlines on sector list items on mobile */
  .sector-list li {
    border-bottom: none !important;
  }

  /* Fix padding-right: 0 sections on mobile */
  .section-gray, .section-light {
    padding-left: clamp(1rem, 4%, 2rem) !important;
    padding-right: clamp(1rem, 4%, 2rem) !important;
  }

  /* Results bar - stack on mobile */
  .results-bar {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    max-width: 300px !important;
  }
  .results-bar .result-item { padding: 0.5rem 0; }
  /* Hide connecting line on mobile */
  .results-bar > div[style*="position: absolute"] {
    display: none !important;
  }

  /* Principles grid 2-col on tablet */
  .principles-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Hero text sizing */
  .hero-content h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero-content p { font-size: 1.1rem !important; }

  /* Prevent any horizontal overflow */
  body, html { overflow-x: hidden; }
  section, .container { max-width: 100vw; overflow-x: hidden; }
  [style*="max-width: none"] { max-width: 100% !important; }
  
  /* iOS safe areas for notch/dynamic island */
  .site-header { padding-left: max(clamp(1.5rem, 5%, 3rem), env(safe-area-inset-left)); padding-right: max(clamp(1.5rem, 5%, 3rem), env(safe-area-inset-right)); }
  .site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  
  /* iOS tap highlight */
  a, button { -webkit-tap-highlight-color: transparent; }
  
  /* Eliminate 300ms tap delay on Android + iOS */
  a, button, input, select, textarea, .menu-toggle {
    touch-action: manipulation;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CLASS ALIASES — Match actual HTML class names
   ═══════════════════════════════════════════════════════════════ */

/* Home hero (HTML uses hero-full, not hero-home) */
.hero-full .hero-bg::after {
  background: none;
}

.hero-full .hero-content { text-align: center; max-width: 850px; padding: 0 5%; }
.hero-full .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-full .accent-line { display: none; }

/* Card grid (HTML uses card-grid + card, not three-cols + col) */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem;
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.card-grid .card {
  padding: 2.5rem 1.8rem;
  transition: background 0.4s ease;
  display: flex; flex-direction: column; align-items: center;
}
.card-grid .card:hover { background: var(--light-gray); }
.card-grid .card h2 {
  font-family: 'Lato', sans-serif; font-weight: 600;
  font-size: 1rem; letter-spacing: 3.5px; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.card-grid .card p {
  font-size: 1rem; color: var(--text-medium); line-height: 1.8;
  max-width: 340px; margin: 0 auto 0; flex: 1;
}
.card-grid .card .btn {
  margin-top: 1.5rem;
}

/* Buttons — .btn class used in HTML */
.btn {
  display: inline-block; padding: 11px 32px;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 400;
  letter-spacing: 1.8px; text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo); cursor: pointer;
  background: none; text-decoration: none;
}
.btn:hover {
  background: var(--navy); color: white;
  box-shadow: 0 6px 24px rgba(27,42,74,0.15);
  transform: translateY(-1px);
}

/* Section-navy (same as section-dark) */
.section-navy {
  padding: var(--section-pad) clamp(1.5rem, 5%, 3rem);
  background: var(--navy-deep); color: white;
}
.section-navy .section-header h2 { color: white; }
.section-navy h3, .section-navy h4 { color: white; }
.section-navy p { color: rgba(255,255,255,0.75); }

/* Principle cards (HTML uses .principle, not .principle-card) */
.principles-grid .principle {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  background: var(--white);
  transition: background 0.3s ease;
}
.principles-grid .principle:hover { background: var(--light-gray); }
.principles-grid .principle h4 {
  font-family: 'Lato', sans-serif; font-weight: 600; font-size: 1.1rem;
  color: var(--navy); margin-bottom: 0.8rem; text-align: center;
}
.principles-grid .principle p {
  font-size: 1.02rem; color: var(--text-medium); line-height: 1.8; margin-bottom: 0;
}

/* Sector labels for approach page */
.sector-label,
span.sector-label {
  display: inline-block !important; padding: 0.45rem 1.2rem;
  background: none !important; color: var(--navy) !important;
  font-size: 0.85rem; font-weight: 700;
  font-family: 'Lato', sans-serif; letter-spacing: 2.5px;
  text-transform: uppercase; margin: 0 auto 1.2rem;
  border-bottom: 2px solid var(--accent-blue);
  text-align: center;
}
.sector-label[style*="copper"],
span.sector-label[style*="copper"] { background: none !important; color: var(--navy) !important; border-bottom-color: var(--copper) !important; }
.sector-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  color: var(--text-medium); font-size: 1.05rem; line-height: 1.7;
  text-align: center;
}
.sector-list li {
  padding: 0.5rem 0.8rem; position: relative;
  border-bottom: none;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: default;
}
.sector-list li:hover {
  background: rgba(27,42,74,0.06);
  color: var(--navy);
}
.sector-list li::before {
  content: '' !important; margin-right: 0 !important;
  display: none;
}
.sector-label[style*="copper"] + .sector-list li:hover {
  background: rgba(179,142,93,0.1);
  color: var(--copper-dark, #8a6d3b);
}
.industry-section {
  max-width: 1100px; margin: 0 auto;
  background: var(--white);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* OTA section on approach page */

/* Industry grid image hover — expand to show full image */
.industry-img-wrap {
  overflow: hidden; position: relative;
}
.industry-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.industry-img-wrap:hover img {
  transform: scale(1.06);
}
.industry-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(27,42,74,0.15);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.industry-img-wrap:hover::after {
  opacity: 0;
}

.ota-section {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.ota-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: white; font-weight: 300; margin-bottom: 1.5rem;
}
.ota-section p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.85; }

/* Icon class for approach invest cards */
.invest-card .icon {
  font-size: 2rem; margin-bottom: 0.8rem; opacity: 0.7;
  display: block;
}

/* ── Dark footer with inverted logo ──────────────── */
.footer-logo img { filter: brightness(0) invert(1); opacity: 0.85; }

/* ── About Results Section ────────────────────────── */
.results-section {
  background: linear-gradient(170deg, #162647 0%, #0F1B32 60%, #0B1425 100%);
  position: relative;
}
.results-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,115,51,0.4), rgba(74,122,181,0.3), transparent);
}

/* ── Responsive additions ────────────────────────── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid .card { padding: 2rem 1.2rem; }
}


/* ── OTA Cycle Diagram ──────────────────────────── */
.ota-section {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.ota-section img {
  width: 100%; max-width: 800px; height: auto; display: block; margin: 0 auto;
}

/* ── Approach Full-Width Image ──────────────────── */
.approach-full-img {
  width: 100%; max-width: 1100px; margin: 0 auto;
}
.approach-full-img img {
  width: 100%; height: auto; display: block;
}

/* ── About Mission 2-Col ────────────────────────── */
.mission-two-col {
  display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center; max-width: 1200px; margin: 0 auto;
}
.mission-two-col .text-col p {
  font-size: 1.3rem; line-height: 2; color: var(--text-medium);
}
.mission-two-col .image-col img {
  width: 100%; height: auto; display: block;
}
@media (max-width: 768px) {
  .mission-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr !important; gap: 2rem !important; max-width: 300px; }
  .team-member { text-align: center; }
  .team-member .photo-wrap { margin: 0 auto; }
  .card-grid { gap: 1.5rem; }
  .card-grid .card { padding: 1.5rem 1rem; }
  .invest-grid { grid-template-columns: 1fr !important; }
  .principles-grid { grid-template-columns: 1fr !important; }
  .results-bar { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .hero { min-height: 220px; }
  .hero-content h1 { font-size: 1.8rem; }
}

/* ── Aligned Buttons Row ────────────────────────── */
.approach-card { display: flex; flex-direction: column; }
.approach-card .btn-outline { margin-top: auto; align-self: flex-start; }

/* ── Back to Top Button ────────────────────────── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--navy); color: white;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
  z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--accent-blue); }
.back-to-top svg { width: 20px; height: 20px; }

/* ── Consistent Section Header Spacing ─────────── */
.section-header {
  letter-spacing: -0.01em;
}
.section-header h2 {
  letter-spacing: -0.02em;
}

/* ── Hero Gradient Overlay for Depth ───────────── */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,27,50,0.05) 0%, rgba(15,27,50,0.15) 50%, rgba(15,27,50,0.35) 100%);
  pointer-events: none;
}

/* ── Accessibility: 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;
  }
}

/* ── Smooth Page Load ──────────────────────────── */
body {
  animation: pageIn 0.6s ease;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Link Hover Transition Polish ──────────────── */
a { transition: color 0.3s ease; }
.btn-outline {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27,42,74,0.12);
}

/* ── Header Auto-Hide Transition ───────────────── */
.site-header {
  transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.35s ease;
}

/* ── Enhanced Card Hover Effects ────────────────── */
.card {
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(27,42,74,0.08);
}

/* ── Divider Animation on Reveal ───────────────── */
.divider {
  transition: width 0.8s var(--ease-out-expo);
  width: 0;
}
.visible .divider,
.hero .divider,
.hero-content .divider {
  width: 60px;
}

/* ── Section Header Accent Line Animation ──────── */
.section-header .divider {
  width: 0;
}
.section-header.visible .divider {
  width: 60px;
}

/* ── Image Hover Lift ──────────────────────────── */
.industry-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.industry-img-wrap:hover img {
  transform: scale(1.06);
}

/* ── Focus Styles for Keyboard Navigation ──────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Smooth Color Transitions on Interactive Elements ── */
.site-header nav a, .footer-links a, .contact-details a {
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* Dynamic Aphias Index hero — keep Painted Ladies houses in focus */
.hero-aphias-index .hero-bg {
  background-position: center 40%;
}
@media (min-aspect-ratio: 2/1) {
  /* Very wide screens — hero is a thin strip, push down to show rooflines + houses */
  .hero-aphias-index .hero-bg { background-position: center 55% !important; }
}
@media (min-aspect-ratio: 3/2) and (max-aspect-ratio: 2/1) {
  /* Standard widescreen — balanced view of houses and sky */
  .hero-aphias-index .hero-bg { background-position: center 45% !important; }
}
@media (max-aspect-ratio: 4/3) {
  /* Taller screens — more vertical space, can show more sky above houses */
  .hero-aphias-index .hero-bg { background-position: center 38% !important; }
}
@media (max-aspect-ratio: 1/1) {
  /* Portrait / mobile — lots of vertical space, center on the house facades */
  .hero-aphias-index .hero-bg { background-position: center 42% !important; }
}

/* ── Hero Parallax Container ───────────────────── */
.hero { overflow: hidden; }
.hero-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Aphias Index Hero — keep Painted Ladies houses in focus ── */
.hero-aphias-index .hero-bg {
  background-position: center 45%;
}
@media (min-aspect-ratio: 2/1) {
  /* Very wide screens — houses at risk of being cropped out, push down */
  .hero-aphias-index .hero-bg { background-position: center 55% !important; }
}
@media (max-aspect-ratio: 4/3) {
  /* Taller screens — more vertical space visible */
  .hero-aphias-index .hero-bg { background-position: center 40% !important; }
}
@media (max-aspect-ratio: 1/1) {
  /* Portrait/mobile — show the houses centered */
  .hero-aphias-index .hero-bg { background-position: center 38% !important; }
}
