/* ============================================
   DESIGN SYSTEM v6 — Alex Searle
   "Pages of a novel" — cream-first, contained, literary
   Fonts: Cormorant SC / EB Garamond / Glacial Indifference
   Palette: #34795a green / #dfa700 gold / #fffef8 cream
   ============================================ */

@import url('https://fonts.cdnfonts.com/css/glacial-indifference');

:root {
  --green: #34795a;
  --green-hover: #2a6349;
  --green-light: #5CB88A;
  --green-subtle: rgba(52, 121, 90, 0.06);
  --gold: #dfa700;
  --gold-hover: #c89500;
  --bg: #fffef8;
  --bg-alt: #f7f5ef;
  --text: #1A1816;
  --text-secondary: #4a4640;
  --text-muted: #8a8480;
  --border: #e0dcd4;
  --card-bg: #FFFFFF;

  /* Layout widths */
  --reading-width: 700px;
  --content-width: 1000px;
  --page-pad: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --green: #5CB88A;
  --green-hover: #4da87a;
  --green-light: #5CB88A;
  --green-subtle: rgba(92, 184, 138, 0.08);
  --gold: #E8B82A;
  --gold-hover: #dfa700;
  --bg: #1A1816;
  --bg-alt: #222018;
  --text: #F0EDE8;
  --text-secondary: #A09A94;
  --text-muted: #6B6560;
  --border: #302c28;
  --card-bg: #252220;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }


/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h3 {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }


/* ============================================
   NAV — Literary, minimal, on cream
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Over hero: white text and white logo */
.nav:not(.scrolled) .nav-links a {
  color: rgba(240, 237, 232, 0.75);
}

.nav:not(.scrolled) .nav-links a:hover {
  color: var(--green-light);
}

.nav:not(.scrolled) .theme-toggle {
  color: rgba(240, 237, 232, 0.75);
}

.nav:not(.scrolled) .nav-logo-img {
  filter: brightness(0) invert(1);
}

.nav.scrolled {
  background: rgba(255, 254, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(26, 24, 22, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
}

.nav-logo-img {
  height: 120px;
  width: auto;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .nav-logo-img {
  filter: brightness(0) invert(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-links a {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

/* Organic line underline on hover — draws left to right */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-image: url('line-dark.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

[data-theme="dark"] .nav-links a::after {
  background-image: url('line-light.png');
}

.nav:not(.scrolled) .nav-links a::after {
  background-image: url('line-light.png');
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

.nav-links a.active {
  color: var(--green);
}

/* --- Work dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 50;
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-dropdown-menu li a::after {
  display: none;
}

.nav-dropdown-menu li a:hover {
  color: var(--green);
  background: rgba(52, 121, 90, 0.06);
}

[data-theme="dark"] .nav-dropdown-menu {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.nav:not(.scrolled) .nav-dropdown-menu {
  background: rgba(26, 24, 22, 0.92);
  border-color: rgba(240, 237, 232, 0.15);
}

.nav:not(.scrolled) .nav-dropdown-menu li a {
  color: rgba(240, 237, 232, 0.75);
}

.nav:not(.scrolled) .nav-dropdown-menu li a:hover {
  color: var(--green-light);
  background: rgba(240, 237, 232, 0.08);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--text);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}


/* ============================================
   HERO — Full-width carousel with text overlay
   ============================================ */
.hero-section {
  padding-top: 0;
  width: 100%;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}

.hero-img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-headline {
  position: relative;
  text-align: center;
  max-width: var(--reading-width);
  width: calc(100% - var(--page-pad) * 2);
  font-weight: 400;
  color: #F0EDE8;
  line-height: 1.35;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease;
}


/* ============================================
   SHARPIE DIVIDERS — image-based
   ============================================ */
.divider-wrap {
  max-width: var(--reading-width);
  margin: clamp(16px, 3vh, 28px) auto;
  padding: 0 var(--page-pad);
}

.sharpie-divider {
  width: 100%;
  height: auto;
  display: block;
}

/* Light mode: show dark line, hide light line */
.sharpie-light {
  display: none;
}

/* Dark mode: show light line, hide dark line */
[data-theme="dark"] .sharpie-dark {
  display: none;
}

[data-theme="dark"] .sharpie-light {
  display: block;
}


/* ============================================
   VIDEO — Contained, click-to-play
   ============================================ */
.video-section {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}

.video-frame:hover .video-play-btn {
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
  margin-left: 3px;
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.video-frame.playing .video-thumb,
.video-frame.playing .video-overlay,
.video-frame.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-frame.playing .video-iframe {
  opacity: 1;
  pointer-events: auto;
}

.video-frame.playing {
  cursor: default;
}


/* ============================================
   STATEMENT — Narrow reading column
   ============================================ */
.statement-section {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.statement-text {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

.statement-text + .statement-text {
  margin-top: 1em;
}

/* Extra top margin when a divider sits directly after a full-bleed hero */
.hero-section + .divider-wrap,
.media-hero + .divider-wrap {
  margin-top: clamp(48px, 7vh, 80px);
}


/* ============================================
   OFFERS — Three contained columns
   ============================================ */
.offers-section {
  padding: clamp(40px, 6vh, 72px) var(--page-pad);
  max-width: calc(1200px + var(--page-pad) * 2);
  margin: 0 auto;
}

.offers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.offer-card {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .offer-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.offer-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.offer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-img-wrap img {
  transform: scale(1.03);
}

.offer-card h3 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 28px) 0;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.offer-card:hover h3 {
  color: var(--green);
}

.offer-card p {
  font-size: 1.0rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 12px clamp(20px, 2.5vw, 28px) 0;
  flex: 1;
}

.offer-cta {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding: 20px clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.offer-cta .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.offer-card:hover .offer-cta .arrow {
  transform: translateX(4px);
}


/* ============================================
   ABOUT — Contained photo + text
   ============================================ */
.about-section {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.about-photo-wrap {
  border-radius: 4px;
  overflow: hidden;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about-text h2 {
  margin-bottom: clamp(16px, 2vh, 24px);
  color: var(--text);
}

.about-text p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(0.97rem, 1.35vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2em;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(16px, 2vh, 24px);
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}

.read-more-link:hover {
  color: var(--green);
}

.read-more-link .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.read-more-link:hover .arrow {
  transform: translateX(4px);
}


/* ============================================
   WINDOWS — Two contained image cards
   ============================================ */
.windows-section {
  padding: clamp(40px, 6vh, 72px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.windows-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.window-card {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}

.window-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.window-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.window-card:hover .window-card-img img {
  transform: scale(1.03);
}

.window-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 24, 22, 0.1) 0%,
    rgba(26, 24, 22, 0.55) 100%
  );
  transition: background 0.4s ease;
}

.window-card:hover .window-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 24, 22, 0.05) 0%,
    rgba(26, 24, 22, 0.45) 100%
  );
}

.window-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(20px, 3vw, 32px);
  z-index: 2;
}

.window-card-content h2 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  color: #F0EDE8;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 6px;
}

.window-card-link {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.window-card-link .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.window-card:hover .window-card-link .arrow {
  transform: translateX(4px);
}


/* ============================================
   CTA — Two-column: logo left 30%, links right
   ============================================ */
.cta-section {
  padding: clamp(56px, 8vh, 96px) var(--page-pad);
  border-top: 0.5px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 30% 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.cta-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-logo-img {
  width: 100%;
  max-width: 440px;
  height: auto;
}

[data-theme="dark"] .cta-logo-img {
  filter: brightness(0) invert(1);
}

.cta-content-col {
  display: flex;
  flex-direction: column;
}

.cta-headline {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: clamp(16px, 2vh, 28px);
}

.cta-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cta-link {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.cta-link:last-child {
  border-bottom: none;
}

.cta-link:hover {
  color: var(--green);
}

.cta-link .arrow {
  display: inline-block;
  transition: transform 0.2s;
  margin-left: 12px;
}

.cta-link:hover .arrow {
  transform: translateX(6px);
}


/* ============================================
   FOOTER — Social links + copyright
   ============================================ */
.footer {
  padding: 24px 0 20px;
  border-top: 0.5px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-credit {
  font-size: 0.7rem;
  color: var(--text-muted);
}


/* ============================================
   BLOCKQUOTE — Gold accent
   ============================================ */
blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 1.5em 0;
  font-family: 'EB Garamond', 'Georgia', serif;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}


/* ============================================
   FADE-IN SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}


/* ============================================
   PAGE HERO — inner pages (work, media, about)
   These remain full-bleed for now
   ============================================ */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(100px, 15vh, 160px) 24px clamp(80px, 12vh, 120px);
}

.page-hero h1 {
  color: #F0EDE8;
}


/* ============================================
   SERVICE COLUMNS — work page
   ============================================ */
.services-section {
  padding: clamp(60px, 6vh, 80px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.services-section h2 {
  margin-bottom: clamp(20px, 3vh, 32px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-col {
  padding: 28px 24px;
  border-right: 0.5px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.service-col:last-child { border-right: none; }

.service-col::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.service-col:hover::after { transform: scaleX(1); }

.service-col h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.service-col:hover h4 { color: var(--green); }

.service-col .service-short {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.service-col:hover .service-short { opacity: 1; }

.service-col .service-detail {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
}

.service-col:hover .service-detail {
  max-height: 160px; opacity: 1; margin-top: 12px;
}


/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  padding: clamp(80px, 12vh, 140px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.about-content p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.about-content a {
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.about-content a:hover { border-bottom-color: var(--green); }

/* About page inline photos — match video spacing */
.about-content .about-photo {
  margin: clamp(32px, 5vh, 60px) 0;
  border-radius: 4px;
  overflow: hidden;
}

.about-content .about-photo img {
  width: 100%;
  display: block;
}


/* About video (inline, click to play) */
.about-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: clamp(32px, 5vh, 60px) 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.about-video img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.about-video .about-video-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.about-video .about-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px; height: 56px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}

.about-video:hover .about-video-play {
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.about-video .about-video-play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.8);
  margin-left: 3px;
}

.about-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3; opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}

.about-video.playing img,
.about-video.playing .about-video-overlay,
.about-video.playing .about-video-play {
  opacity: 0; pointer-events: none;
}

.about-video.playing iframe { opacity: 1; pointer-events: auto; }
.about-video.playing { cursor: default; }


/* ============================================
   CONTACT FORM
   ============================================ */
.contact-content {
  padding: clamp(80px, 12vh, 140px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.contact-content p {
  font-size: clamp(0.95rem, 1.45vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2em;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-submit {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; background: var(--green);
  border: none; border-radius: 4px;
  padding: 14px 28px; cursor: pointer;
  transition: opacity 0.3s;
  align-self: flex-start; margin-top: 8px;
}

.form-submit:hover { opacity: 0.85; }

.form-success {
  display: none;
  font-size: 0.95rem;
  color: var(--green);
  line-height: 1.7;
  padding: 20px 0;
}

.form-error {
  display: none;
  font-size: 0.95rem;
  color: #b44;
  line-height: 1.7;
  padding: 20px 0;
}

.form-error a { color: #b44; text-decoration: underline; }

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================
   MEDIA PAGE
   ============================================ */
/* Media hero — full-bleed click-to-play video */
.media-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.media-hero-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.media-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.media-hero-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 72px; height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}

.media-hero:hover .media-hero-play {
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}

.media-hero-play::after {
  content: '';
  width: 0; height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 4px;
}

.media-hero-title {
  position: absolute;
  bottom: clamp(40px, 6vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.media-hero iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 4;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}

.media-hero.playing .media-hero-thumb,
.media-hero.playing .media-hero-overlay,
.media-hero.playing .media-hero-play,
.media-hero.playing .media-hero-title {
  opacity: 0; pointer-events: none;
}

.media-hero.playing iframe {
  opacity: 1; pointer-events: auto;
}

.media-hero.playing {
  cursor: default;
}


.media-grid {
  display: flex; flex-wrap: wrap;
  justify-content: flex-start; gap: 24px;
  padding: clamp(80px, 10vh, 120px) var(--page-pad) clamp(80px, 10vh, 120px);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
  align-content: flex-start;
}

.media-grid-heading {
  flex-basis: 100%;
  text-align: center;
  margin-bottom: clamp(12px, 2vh, 24px);
}

.media-grid .media-item {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 260px;
}

.media-item { cursor: pointer; width: 100%; }

.media-thumbnail {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}

.media-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.media-thumbnail .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.media-item:hover .play-btn { background: rgba(255, 255, 255, 0.35); }

.play-btn::after {
  content: '';
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.media-item h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text);
  margin-top: 10px; line-height: 1.35;
}

.media-player { cursor: pointer; }

.media-player .media-thumbnail iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}

.media-player.playing .media-thumbnail img,
.media-player.playing .media-thumbnail .play-btn {
  opacity: 0; pointer-events: none;
}

.media-player.playing .media-thumbnail iframe { opacity: 1; pointer-events: auto; }
.media-player.playing { cursor: default; }

.press-section {
  padding: clamp(80px, 10vh, 120px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.press-section h2 { margin-bottom: clamp(24px, 3vh, 36px); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  display: block; border-radius: 6px; overflow: hidden;
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .article-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; }

.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img { transform: scale(1.03); }

.article-info { padding: 16px 18px 20px; }

.article-info h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text); line-height: 1.35;
  margin-bottom: 6px; transition: color 0.2s;
}

.article-card:hover .article-info h4 { color: var(--green); }

.article-info p {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.55; margin-bottom: 10px;
}

.article-source {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}


/* ============================================
   SPEAKING & MEDIA ENQUIRIES
   ============================================ */
.speaking-section {
  padding: clamp(64px, 10vh, 100px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.speaking-section h2 {
  margin-bottom: clamp(16px, 2vh, 24px);
}

.speaking-section p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: clamp(24px, 3vh, 36px);
}

.speaking-cta {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 2px;
  transition: opacity 0.25s ease;
}

.speaking-cta:hover {
  opacity: 0.7;
}


/* ============================================
   MEDIA PAGE — Podcast section (2-column)
   ============================================ */
.media-podcast {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.media-podcast-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.media-podcast-text {
  text-align: left;
}

.media-podcast-text h2 {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.media-podcast-sub {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--green);
  line-height: 1.6;
  margin-bottom: clamp(12px, 1.5vh, 18px);
}

.media-podcast-text p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.media-podcast-avail {
  margin-top: clamp(12px, 1.5vh, 18px);
  font-style: italic;
  opacity: 0.75;
}

.media-podcast-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.media-podcast-embed iframe {
  width: 100%;
  border: none;
}


/* ============================================
   WORK PAGE — offers heading
   ============================================ */
.work-offers-heading {
  text-align: center;
  margin-bottom: clamp(28px, 4vh, 44px);
}


/* ============================================
   FIVE-CARD OFFERS GRID (3 + 2 centred)
   Uses a 6-col grid so 2 bottom cards can centre
   ============================================ */
.offers-row-five {
  grid-template-columns: repeat(6, 1fr);
}

.offers-row-five .offer-card:nth-child(1) { grid-column: 1 / 3; }
.offers-row-five .offer-card:nth-child(2) { grid-column: 3 / 5; }
.offers-row-five .offer-card:nth-child(3) { grid-column: 5 / 7; }
.offers-row-five .offer-card:nth-child(4) { grid-column: 2 / 4; }
.offers-row-five .offer-card:nth-child(5) { grid-column: 4 / 6; }


/* ============================================
   TESTIMONIALS — polished carousel
   ============================================ */
.testimonials {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials-inner {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.testimonial-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 2px solid var(--border);
}

.testimonial-quote {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

.testimonial-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.testimonial-name {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.testimonial-role {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-role::before {
  content: '·';
  margin-right: 8px;
}


/* ============================================
   CLIENT LOGOS
   ============================================ */
.client-logos {
  padding: clamp(32px, 5vh, 60px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.client-logos-inner {
  display: flex;
  justify-content: center;
}

.client-logos-inner img {
  max-width: 100%;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .client-logos-inner img {
  filter: invert(1) brightness(1.1) contrast(0.85);
  opacity: 0.65;
}

.client-logos-inner img:hover {
  opacity: 1;
}


/* ============================================
   MY ECOSYSTEM
   ============================================ */
.ecosystem {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.ecosystem h2 {
  margin-bottom: clamp(28px, 4vh, 44px);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
}

.ecosystem-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: box-shadow 0.3s ease;
}

.ecosystem-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .ecosystem-card {
  background: #252220;
}

[data-theme="dark"] .ecosystem-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.ecosystem-logo {
  max-width: 85%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.35s ease;
  z-index: 1;
}

[data-theme="dark"] .ecosystem-logo {
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.ecosystem-card:hover .ecosystem-logo {
  opacity: 0;
}

[data-theme="dark"] .ecosystem-card:hover .ecosystem-logo {
  opacity: 0;
}

.ecosystem-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2vw, 28px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.ecosystem-card:hover .ecosystem-overlay {
  opacity: 1;
}

.ecosystem-overlay p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(0.85rem, 1.1vw, 1.0rem);
  line-height: 1.6;
  color: var(--text);
  text-align: center;
  margin: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .offers-row {
    grid-template-columns: 1fr 1fr;
  }

  .offer-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    justify-self: center;
  }

  /* 5-card variant: reset to 2-col at tablet */
  .offers-row-five {
    grid-template-columns: 1fr 1fr;
  }

  .offers-row-five .offer-card:nth-child(1),
  .offers-row-five .offer-card:nth-child(2),
  .offers-row-five .offer-card:nth-child(3),
  .offers-row-five .offer-card:nth-child(4),
  .offers-row-five .offer-card:nth-child(5) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap img {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }

  .windows-row {
    grid-template-columns: 1fr;
    gap: clamp(16px, 2vw, 24px);
  }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-col:nth-child(2) { border-right: none; }

  .media-grid .media-item { flex: 0 1 calc(50% - 12px); min-width: 220px; }
  .article-grid { gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 254, 248, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 99;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(26, 24, 22, 0.97);
  }

  .nav-links.open { display: flex; }

  /* When mobile menu is open, expand nav to fill viewport and
     remove all properties that create containing blocks —
     this ensures the overlay covers the full screen regardless
     of scroll position */
  .nav.mobile-menu-open {
    bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.mobile-menu-open.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
  }

  /* Override hero-state white text/logo when mobile menu is open */
  .nav:not(.scrolled) .nav-links.open a {
    color: var(--text-secondary);
  }
  .nav:not(.scrolled) .nav-links.open a.active {
    color: var(--green);
  }
  .nav:not(.scrolled) .nav-links.open .nav-dropdown-menu li a {
    color: var(--text-muted);
  }
  .nav.mobile-menu-open:not(.scrolled) .nav-logo-img {
    filter: none;
  }
  .nav.mobile-menu-open:not(.scrolled) .nav-mobile-toggle,
  .nav.mobile-menu-open:not(.scrolled) .theme-toggle {
    color: var(--text);
  }

  /* Ensure logo and controls sit above the overlay when menu is open */
  .nav.mobile-menu-open .nav-logo {
    position: relative;
    z-index: 101;
  }
  .nav.mobile-menu-open .theme-toggle {
    position: relative;
    z-index: 101;
  }

  [data-theme="dark"] .nav.mobile-menu-open.scrolled {
    background: transparent;
  }

  [data-theme="dark"] .nav.mobile-menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links a.active { color: var(--green); }
  .nav-mobile-toggle { display: block; z-index: 101; }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
  }

  .nav:not(.scrolled) .nav-dropdown-menu {
    background: none;
    border: none;
  }

  .nav-dropdown-menu li a {
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.7;
  }

  .nav-dropdown-menu li a:hover {
    background: none;
  }

  .hero-image-frame {
    height: 100vh;
    min-height: 400px;
  }

  .hero-headline {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    width: calc(100% - 80px);
    max-width: 280px;
  }

  .offers-row,
  .offers-row-five {
    grid-template-columns: 1fr;
  }

  .offer-card:last-child,
  .offers-row-five .offer-card,
  .offers-row-five .offer-card:nth-child(5) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ecosystem-card {
    aspect-ratio: auto;
    flex-direction: row;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 10px;
  }

  .ecosystem-logo {
    max-width: 100px;
    max-height: 44px;
    flex-shrink: 0;
    opacity: 1;
  }

  [data-theme="dark"] .ecosystem-logo {
    opacity: 0.85;
  }

  .ecosystem-card:hover .ecosystem-logo {
    opacity: 1;
  }

  [data-theme="dark"] .ecosystem-card:hover .ecosystem-logo {
    opacity: 0.85;
  }

  .ecosystem-overlay {
    position: static;
    opacity: 1;
    padding: 0;
    flex: 1;
  }

  .ecosystem-overlay p {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .windows-row {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-logo-col {
    justify-content: center;
  }

  .cta-logo-img {
    max-width: 280px;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }

  .service-col {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
    padding: 20px 0;
  }

  .service-col:last-child { border-bottom: none; }
  .service-col .service-short { opacity: 1; }
  .service-col .service-detail { max-height: 160px; opacity: 1; margin-top: 10px; }
  .service-col::after { display: none; }

  .media-grid .media-item { flex: 0 1 100%; }
  .article-grid { grid-template-columns: 1fr; }

  .page-hero { min-height: 100vh; }
}


/* ============================================
   STORY PAGE
   ============================================ */

/* Narrative section — reading width, editorial type */
.story-narrative {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.story-narrative h2 {
  text-align: center;
  margin-bottom: clamp(20px, 3vh, 32px);
}

.story-narrative p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.story-narrative p:last-child { margin-bottom: 0; }


/* (reserved) */


/* Video course section — 2-column */
.story-course {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.story-course-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.story-course-text {
  text-align: left;
}

.story-course-text h2 {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.story-course-text p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.story-course-embed {
  position: relative;
  width: 100%;
}

.story-course-embed .about-video {
  margin: 0;
}


/* Unique way of working */
.story-unique {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.story-unique h2 {
  text-align: center;
  margin-bottom: clamp(16px, 2vh, 28px);
}

.story-unique > p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.story-deliverables {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-deliverable {
  padding: clamp(20px, 3vh, 32px) 0;
  border-bottom: 0.5px solid var(--border);
}

.story-deliverable:last-child {
  border-bottom: none;
}

.story-deliverable h3 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.story-deliverable:hover h3 {
  color: var(--green);
}

.story-deliverable p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(0.97rem, 1.35vw, 1.07rem);
  color: var(--text-secondary);
  line-height: 1.75;
}


/* 8-step process grid */
.story-process {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.story-process h2 {
  margin-bottom: clamp(8px, 1.5vh, 16px);
}

.story-process-intro {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.process-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  transition: color 0.3s ease, filter 0.3s ease;
}

.process-icon svg {
  width: 100%;
  height: 100%;
}

.process-step:hover .process-icon {
  color: var(--green);
  filter: drop-shadow(0 0 8px rgba(52, 121, 90, 0.4)) drop-shadow(0 0 16px rgba(223, 167, 0, 0.25));
}

[data-theme="dark"] .process-step:hover .process-icon {
  color: var(--green);
  filter: drop-shadow(0 0 10px rgba(92, 184, 138, 0.5)) drop-shadow(0 0 20px rgba(232, 184, 42, 0.3));
}

.process-step h3 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  transition: color 0.25s ease;
}

.process-step:hover h3 {
  color: var(--green);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 220px;
}


/* AI Intelligence Layer */
.story-ai {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.story-ai h2 {
  text-align: center;
  margin-bottom: clamp(20px, 3vh, 32px);
}

.story-ai p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.story-ai p:last-child { margin-bottom: 0; }


/* How we find your story — 2-column */
.story-how {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.story-how-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.story-how-photo {
  border-radius: 4px;
  overflow: hidden;
}

.story-how-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.story-how-text h2 {
  margin-bottom: clamp(16px, 2vh, 24px);
}

.story-how-text p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(0.97rem, 1.35vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2em;
}

.story-how-text p:last-child { margin-bottom: 0; }


/* Who this is for */
.story-who {
  padding: clamp(60px, 8vh, 100px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.story-who h2 {
  margin-bottom: clamp(28px, 4vh, 44px);
}

.story-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  text-align: left;
}

.story-who-profile {
  padding: clamp(24px, 3vw, 36px);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-who-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .story-who-profile:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.story-who-profile h3 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.story-who-profile:hover h3 {
  color: var(--green);
}

.story-who-profile p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(0.97rem, 1.35vw, 1.07rem);
  color: var(--text-secondary);
  line-height: 1.75;
}


/* Bespoke qualifier */
.story-bespoke {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}


/* Story CTA */
.story-cta {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.story-cta h2 {
  margin-bottom: clamp(20px, 3vh, 32px);
}

/* .story-cta-btn removed — final CTA now uses .read-more-link (gold text, hover arrow) */


/* Responsive — story page */
@media (max-width: 900px) {
  .story-how-inner { grid-template-columns: 1fr; }
  .story-how-photo img { aspect-ratio: 16 / 9; max-height: 360px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .story-course-inner { grid-template-columns: 1fr; }
  .media-podcast-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .story-how-inner { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .story-who-grid { grid-template-columns: 1fr; }
}


/* ============================================
   RELATIONAL PAGE
   ============================================ */

/* Narrative sections — reading-width prose */
.rel-narrative {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.rel-narrative h2 {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.rel-narrative p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: clamp(12px, 1.5vh, 18px);
}

.rel-narrative p:last-child {
  margin-bottom: 0;
}


/* Quote — full-bleed photo overlay */
.rel-quote {
  position: relative;
  width: 100%;
  min-height: clamp(400px, 55vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rel-quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.rel-quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0.65);
}

.rel-quote-content {
  position: relative;
  z-index: 2;
  max-width: var(--reading-width);
  padding: clamp(40px, 6vh, 80px) var(--page-pad);
  text-align: left;
}

.rel-quote-content blockquote {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-style: normal;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.7;
  color: #F0EDE8;
  margin: 0;
}

.rel-quote-content cite {
  display: block;
  margin-top: clamp(16px, 2vh, 24px);
  font-family: 'Glacial Indifference', 'Helvetica Neue', sans-serif;
  font-style: normal;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.7);
}


/* Video slot placeholder */
.rel-video {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.rel-video-frame {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.rel-video-frame .about-video {
  margin: 0;
}

.rel-video-placeholder {
  font-family: 'Glacial Indifference', 'Helvetica Neue', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* Shape of the Work — content-width, 3-column tiles */
.rel-shape {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.rel-shape h2 {
  text-align: center;
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.rel-shape-intro {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: var(--reading-width);
  margin: 0 auto clamp(32px, 4vh, 48px);
  text-align: center;
}

.rel-shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.rel-shape-tile {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
}

.rel-shape-tile h3 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: var(--green);
  margin-bottom: clamp(12px, 1.5vh, 18px);
}

.rel-shape-tile p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}


/* The Principles */
.rel-principles {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.rel-principles h2 {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.rel-principles > p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: clamp(20px, 3vh, 32px);
}

.rel-principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rel-principles-list li {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--text);
  line-height: 1.6;
  padding: clamp(12px, 1.5vh, 16px) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: clamp(20px, 2.5vw, 28px);
}

.rel-principles-list li:first-child {
  border-top: 1px solid var(--border);
}

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


/* How It Works */
.rel-how {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.rel-how h2 {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.rel-how > p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: clamp(12px, 1.5vh, 18px);
}

.rel-how h3 {
  font-family: 'Cormorant SC', 'Georgia', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  margin-top: clamp(28px, 4vh, 40px);
  margin-bottom: clamp(16px, 2vh, 24px);
}

.rel-expect-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rel-expect-list li {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  padding: clamp(10px, 1.2vh, 14px) 0;
  padding-left: clamp(20px, 2.5vw, 28px);
  position: relative;
}

.rel-expect-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}


/* Relational CTA — page-specific (before the standard site CTA) */
.rel-cta {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--reading-width) + var(--page-pad) * 2);
  margin: 0 auto;
  text-align: center;
}

.rel-cta > p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: clamp(24px, 3vh, 36px);
}

.rel-cta-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vh, 18px);
}


/* Book & Writing — two-column with vertical divider */
.rel-book-writing {
  padding: clamp(48px, 7vh, 80px) var(--page-pad);
  max-width: calc(var(--content-width) + var(--page-pad) * 2);
  margin: 0 auto;
}

.rel-book-writing-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.rel-book-writing-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.rel-book-writing-divider img {
  display: block;
  width: auto;
  height: 65%;
  max-height: 280px;
  object-fit: contain;
  opacity: 0.55;
}

.rel-book-writing-divider .sharpie-dark { display: block; }
.rel-book-writing-divider .sharpie-light { display: none; }
[data-theme="dark"] .rel-book-writing-divider .sharpie-dark { display: none; }
[data-theme="dark"] .rel-book-writing-divider .sharpie-light { display: block; }

.rel-book-writing-col h2 {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.rel-book-writing-col p {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: clamp(1.0rem, 1.45vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: clamp(12px, 1.5vh, 18px);
}

.rel-book-writing-col p:last-child {
  margin-bottom: 0;
}

.rel-writing-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: clamp(16px, 2vh, 24px);
}


/* Responsive — relational page */
@media (max-width: 900px) {
  .rel-shape-grid { grid-template-columns: 1fr; }
  .rel-book-writing-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vh, 48px);
  }
  .rel-book-writing-divider { display: none; }
}

@media (max-width: 640px) {
  .rel-quote { min-height: 350px; }
  .rel-quote-content blockquote { font-size: clamp(1.1rem, 4.5vw, 1.35rem); }
}
