/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #F8F5EF;
  --cream-dark:  #EDE8DF;
  --navy:        #1B2B4B;
  --navy-mid:    #2D4169;
  --brown:       #5a5040;
  --brown-light: #7a6f5f;
  --gold:        #B8973E;
  --gold-light:  #D4B060;
  --white:       #ffffff;
  --border:      #ddd8cc;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,245,239,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 130px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 112px;
  width: 112px;
  object-fit: cover;
  border-radius: 4px;
  background: #e8e2d8;
  display: block;
}

.nav-wordmark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-links .dropdown { position: relative; }

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(27,43,75,0.10);
  z-index: 200;
  /* invisible bridge fills the gap between trigger and menu */
}

/* Invisible bridge so mouse can travel from link to menu without it closing */
.nav-links .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-links .dropdown:hover .dropdown-menu { display: block; }

/* Remove bullets from dropdown */
.nav-links .dropdown-menu,
.nav-links .dropdown-menu li { list-style: none; }

.nav-links .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--brown);
  white-space: nowrap;
}

.nav-links .dropdown-menu a:hover {
  background: var(--cream);
  color: var(--navy);
}

.nav-cta {
  border: 1.5px solid var(--navy);
  color: var(--navy) !important;
  padding: 7px 18px;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.4px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--navy) !important;
  color: var(--cream) !important;
}

/* ── HERO (homepage) ── */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #b0b8c2;
  background-image: url('assets/hero-background.png');
  background-size: cover;
  background-position: center 20%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248,245,239,0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 3rem 3rem 2.5rem;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.75rem;
}

.hero-eyebrow span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 17px;
  color: var(--brown);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline:hover { background: rgba(27,43,75,0.08); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-navy:hover { background: var(--navy-mid); }

/* ── COMMON SECTION ELEMENTS ── */
section { padding: 5rem 3rem; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-inner .section-rule { justify-content: center; }
.section-inner .section-h2 { text-align: center; }
.section-inner .section-lead { text-align: center; margin-left: auto; margin-right: auto; }

.section-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.section-rule::before,
.section-rule::after {
  content: '';
  display: block;
  height: 1px;
  width: 36px;
  background: var(--gold);
}

.section-rule span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.section-lead {
  font-size: 16px;
  color: var(--brown);
  line-height: 1.75;
  max-width: 660px;
  margin-top: 1rem;
}

/* ── HOMEPAGE: INTRO ── */
.intro { background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  direction: rtl; /* visual swap */
}

.intro-grid > * {
  direction: ltr; /* restore text direction inside children */
}

.intro-text p {
  font-size: 16px;
  color: var(--brown);
  line-height: 1.8;
  margin-top: 1.25rem;
}

.intro-text p strong { color: var(--navy); font-weight: 500; }

.intro-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── HOMEPAGE: PILLARS ── */
.pillars { background: var(--cream); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3rem;
}

.pillar {
  background: var(--white);
  padding: 2rem 1.5rem;
  transition: background 0.2s;
}

.pillar:hover { background: var(--cream); }

.pillar-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.65;
}

/* ── HOMEPAGE: PATTERNS ── */
.patterns { background: var(--navy); }

.patterns .section-rule span { color: var(--gold); }
.patterns .section-rule::before,
.patterns .section-rule::after { background: var(--gold); }
.patterns .section-h2 { color: var(--white); }
.patterns .section-lead { color: rgba(255,255,255,0.65); }

.patterns-list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}

.pattern-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pattern-item:nth-child(even) { border-right: none; }
.pattern-item:nth-last-child(-n+2) { border-bottom: none; }

.pattern-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

.pattern-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* ── HOMEPAGE: EXAMPLE CARDS ── */
.examples { background: var(--cream-dark); }

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.example-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27,43,75,0.10);
}

.example-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  margin: 1.5rem auto 0;
}

.example-card-body { padding: 1.25rem; }

.example-card-body h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.example-card-body p {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.6;
}

/* ── HOMEPAGE: BIO ── */
.bio-section { background: var(--white); }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.bio-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  flex-shrink: 0;
  margin: 0 auto;
}

.bio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

#photo-patrick { object-position: center 12%; }
#photo-richard { object-position: center 25%; }

.bio-content { text-align: center; }

.bio-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.bio-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem !important;
  text-align: center;
}

.bio-content p {
  font-size: 14px;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  text-align: left;
}

/* ── LOGO CAROUSEL ── */
.logo-carousel-section {
  background: var(--white);
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logo-carousel-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 3rem;
}

.logo-carousel-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0.6rem;
}

.logo-carousel-eyebrow::before,
.logo-carousel-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 36px;
  background: var(--gold);
}

.logo-carousel-eyebrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.logo-carousel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.logo-carousel-track-wrap {
  overflow: hidden;
  position: relative;
}

.logo-carousel-track-wrap::before,
.logo-carousel-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.logo-carousel-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.logo-carousel-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.logo-carousel-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: carouselScroll 55s linear infinite;
}

.logo-carousel-track:hover { animation-play-state: paused; }

@keyframes carouselScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-carousel-item {
  flex-shrink: 0;
  height: 80px;
  display: flex;
  align-items: center;
}

.logo-carousel-item img {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s;
}

.logo-carousel-item img:hover {
  filter: grayscale(100%) opacity(0.8);
}

/* Individual logo size overrides */
.logo-carousel-item img.logo-size-ucd      { max-height: 90px; }   /* +40% */
.logo-carousel-item img.logo-size-domaine  { max-height: 100px; }  /* +20% then +30% = ~+56% total */
.logo-carousel-item img.logo-size-4subsea  { max-height: 83px; }   /* +30% */
.logo-carousel-item img.logo-size-sos      { max-height: 72px; }   /* +40% then -20% = +12% total */
.logo-carousel-item img.logo-size-cai      { max-height: 77px; }   /* +20% */
.logo-carousel-item img.logo-size-cisi     { max-height: 83px; }   /* +30% */
.logo-carousel-item img.logo-size-coillte  { max-height: 77px; }   /* +20% */
.logo-carousel-item img.logo-size-ei       { max-height: 72px; }   /* +40% then -20% = +12% total */
.logo-carousel-item img.logo-size-harmonic { max-height: 125px; }  /* +50% then +30% = ~+95% total */
.logo-carousel-item img.logo-size-ei-ire   { max-height: 90px; }   /* Enterprise Ireland +40% */

/* ── HOMEPAGE: STORIES ── */
.stories-section { background: var(--cream-dark); }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.story-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(27,43,75,0.10);
}

.story-logo-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}

.story-logo-wrap img {
  max-height: 72px;
  max-width: 190px;
  width: 100%;
  object-fit: contain;
  display: block;
}

.story-logo-placeholder {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brown-light);
  border: 1px dashed var(--border);
  padding: 8px 16px;
  border-radius: 3px;
}

.story-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.story-summary {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.65;
  margin: 0;
}

.story-name sup, .cubic-sup {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}

/* ── HOMEPAGE: WHITEPAPER ── */
.whitepaper-section { background: var(--white); }

.whitepaper-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.whitepaper-cover-link {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,43,75,0.15);
}

.whitepaper-cover-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(27,43,75,0.22);
}

.whitepaper-cover-link img { width: 100%; display: block; }

.whitepaper-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.whitepaper-subhead {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.whitepaper-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.whitepaper-bullets li {
  font-size: 15px;
  color: var(--brown);
  line-height: 1.75;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.whitepaper-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.whitepaper-bullets li:first-child { border-top: 1px solid var(--border); }

/* ── QUOTE BAND ── */
.quote-band {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem;
}

.quote-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.industry-quote {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.industry-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 52px;
  color: var(--gold);
  line-height: 0.85;
  flex-shrink: 0;
}

.industry-quote-text p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.industry-quote-text cite {
  font-size: 12px;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--navy);
  text-align: center;
  padding: 5rem 3rem;
}

.cta-section .section-rule { justify-content: center; }
.cta-section .section-rule::before,
.cta-section .section-rule::after { background: var(--gold); }
.cta-section .section-rule span { color: var(--gold); }

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  background: #111827;
  padding: 3.5rem 3rem 2rem;
  color: rgba(255,255,255,0.55);
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand img {
  height: 120px;
  width: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }

.footer-brand .footer-contact { margin-top: 1rem; font-size: 13px; }

.footer-brand .footer-contact a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.footer-brand .footer-contact a:hover { color: var(--gold-light); }

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-newsletter h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-newsletter p { font-size: 12px; line-height: 1.6; margin-bottom: 1rem; }

.newsletter-form { display: flex; }

.newsletter-form input {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 3px 0 0 3px;
  outline: none;
  font-family: var(--font-sans);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
  padding: 9px 16px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 0 3px 3px 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--gold-light); }

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.footer-linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55) !important;
  font-size: 13px;
}

.footer-linkedin svg { width: 18px; height: 18px; fill: currentColor; }

/* ── SCROLL FADE ── */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   CUSTOMER STORIES LISTING PAGE
══════════════════════════════════════════════ */

.stories-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.stories-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #b0b8c2;
  background-image: url('assets/hero-background.png');
  background-size: cover;
  background-position: center 30%;
}

.stories-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,43,75,0.80) 0%, rgba(27,43,75,0.35) 60%, transparent 100%);
}

.stories-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
  animation: fadeUp 0.9s ease both;
}

.stories-hero-content .hero-eyebrow span { color: var(--gold-light); }
.stories-hero-content .hero-eyebrow::before,
.stories-hero-content .hero-eyebrow::after { background: var(--gold-light); }

.stories-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 1rem;
}

.stories-hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  max-width: 620px;
  line-height: 1.7;
  font-weight: 300;
}

.stories-intro { background: var(--white); }

.stories-intro p {
  font-size: 16px;
  color: var(--brown);
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ══════════════════════════════════════════════
   CASE STUDY PAGES
══════════════════════════════════════════════ */

/* Case Hero */
.case-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Move text to top of hero for pages with blank sky/space at top */
.case-hero.text-top {
  align-items: flex-start;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #8a9aaa;
  background-size: cover;
  background-position: center;
}

.case-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,43,75,0.88) 0%, rgba(27,43,75,0.40) 55%, transparent 100%);
}

/* Use this on pages where we want to show the photo naturally */
.case-hero-bg.no-overlay::after {
  display: none;
}

.case-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
  animation: fadeUp 0.9s ease both;
}

.case-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* On no-overlay heroes the background is light, so use navy for legibility */
.case-hero.text-top .case-eyebrow {
  color: var(--navy);
}

.case-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--white);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.2px;
  margin-bottom: 0.5rem;
}

.case-location {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}

/* Case intro */
.case-intro { background: var(--white); padding: 5rem 3rem; }

.case-intro-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.case-intro-text .section-rule { justify-content: center; }

.case-intro-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.case-intro-text p {
  font-size: 15px;
  color: var(--brown);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.summary-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  position: sticky;
  top: 120px;
}

.summary-logo {
  margin-bottom: 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-logo img {
  max-height: 57px;
  max-width: 208px;
  object-fit: contain;
}

.summary-card h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.summary-card .summary-tag {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.summary-deliverables {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.summary-deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.summary-deliverables ul li {
  font-size: 13px;
  color: var(--brown);
  line-height: 1.6;
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.summary-deliverables ul li:last-child { border-bottom: none; }

.summary-deliverables ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Case brief */
.case-brief { background: var(--navy); padding: 5rem 3rem; }

.case-brief .section-inner .section-rule::before,
.case-brief .section-inner .section-rule::after { background: var(--gold); }
.case-brief .section-inner .section-rule span { color: var(--gold); }
.case-brief .section-inner .section-h2 { color: var(--white); }

.brief-body {
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.brief-body p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 1rem;
  text-align: center;
}

.brief-items {
  margin-top: 2rem;
}

.brief-item {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

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

.brief-item .pattern-dot { margin-top: 6px; }

.brief-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* Engagement phases */
.case-phases { background: var(--cream); padding: 5rem 3rem; }

.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3rem;
}

.phases-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.phases-grid.col-2 { grid-template-columns: repeat(2, 1fr); }

/* Use flexbox so deliverables always align at the same vertical position */
.phase {
  background: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.phase-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.phase h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.phase p {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.phase-deliverables {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.phase-deliverables h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.phase-deliverables ul { list-style: none; padding: 0; }

.phase-deliverables ul li {
  font-size: 12px;
  color: var(--brown-light);
  padding: 3px 0 3px 12px;
  position: relative;
  line-height: 1.5;
}

.phase-deliverables ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* Outcomes */
.case-outcomes { background: var(--cream-dark); padding: 5rem 3rem; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.outcomes-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.outcomes-grid.col-4 { grid-template-columns: repeat(4, 1fr); }

.outcome-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  border-top: 3px solid var(--gold);
  padding: 1.75rem;
}

.outcome-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.outcome-item p {
  font-size: 13px;
  color: var(--brown-light);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.outcome-item ul { list-style: none; padding: 0; margin-top: 0.5rem; }

.outcome-item ul li {
  font-size: 13px;
  color: var(--brown-light);
  padding: 4px 0 4px 14px;
  position: relative;
  line-height: 1.6;
}

.outcome-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Testimonials */
.case-testimonials { background: var(--white); padding: 5rem 3rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonials-grid.col-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.testimonial-photo {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--cream-dark);
  flex-shrink: 0;
  margin: 0 auto;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.75;
  flex: 1;
  position: relative;
  padding-top: 0.75rem;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: -4px;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-style: normal;
}

.testimonial-name {
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  margin-top: 0.25rem;
}

.testimonial-role {
  font-size: 12px;
  color: var(--brown-light);
  margin-top: 1px;
}

/* Back nav strip */
.case-back-strip {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  padding: 1.25rem 3rem;
}

.case-back-strip a {
  font-size: 13px;
  color: var(--brown);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  transition: color 0.2s;
}

.case-back-strip a:hover { color: var(--navy); }

.case-back-strip a::before { content: '←'; }

/* Featured quote (inline blockquote on case pages) */
.case-pullquote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 1.75rem 0;
}

.case-pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px !important;
  color: var(--navy) !important;
  line-height: 1.65;
}

.case-pullquote cite {
  font-size: 12px;
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
  margin-top: 0.4rem;
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }

  section { padding: 3.5rem 1.5rem; }
  .case-intro { padding: 3.5rem 1.5rem; }
  .case-brief { padding: 3.5rem 1.5rem; }
  .case-phases { padding: 3.5rem 1.5rem; }
  .case-outcomes { padding: 3.5rem 1.5rem; }
  .case-testimonials { padding: 3.5rem 1.5rem; }
  .cta-section { padding: 3.5rem 1.5rem; }

  .intro-grid, .quote-band-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .examples-grid { grid-template-columns: 1fr 1fr; }
  .patterns-list { grid-template-columns: 1fr; }
  .pattern-item { border-right: none !important; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr 1fr; }

  .case-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .summary-card { position: static; }
  .phases-grid,
  .phases-grid.col-3 { grid-template-columns: 1fr 1fr; }
  .outcomes-grid,
  .outcomes-grid.col-3,
  .outcomes-grid.col-4 { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .quote-band { padding: 3rem 1.5rem; }
  .case-back-strip { padding: 1.25rem 1.5rem; }

  .stories-hero-content { padding: 3rem 1.5rem; }
  .case-hero-content { padding: 2.5rem 1.5rem; }
}

@media (max-width: 700px) {
  .whitepaper-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-content { padding: 3rem 1.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .phases-grid,
  .phases-grid.col-3,
  .phases-grid.col-2 { grid-template-columns: 1fr; }
  .outcomes-grid,
  .outcomes-grid.col-3,
  .outcomes-grid.col-4 { grid-template-columns: 1fr; }
  .testimonials-grid,
  .testimonials-grid.col-2 { grid-template-columns: 1fr; max-width: none; }
  .quote-band-inner { grid-template-columns: 1fr; }
}
